/* Touch Fashion Slider Pro 2.0 */
.tfsel-slider,
.tfsel-slider * {
  box-sizing: border-box;
}

.tfsel-slider > .swiper-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  transition-property: transform;
}

.tfsel-slider.swiper-vertical > .swiper-wrapper { flex-direction: column; }
.tfsel-slider .swiper-slide { flex-shrink: 0; width: 100%; }

.tfsel-slider {
  --tfsel-height: 720px;
  --tfsel-content-gap: 18px;
  --tfsel-pagination-color: rgba(255, 255, 255, 0.45);
  --tfsel-pagination-active: #fff;
  --tfsel-pagination-size: 8px;
  position: relative;
  width: 100%;
  min-width: 0;
  isolation: isolate;
}

.tfsel-slider--pro {
  height: var(--tfsel-height);
  min-height: 320px;
  background: #111;
  color: #fff;
  overflow: hidden;
}

.tfsel-slider--pro > .swiper-wrapper,
.tfsel-slider--pro .tfsel-slide {
  height: 100%;
}

.tfsel-slider--pro .tfsel-slide {
  position: relative;
  overflow: hidden;
  background: var(--tfsel-slide-bg, #111);
  color: var(--tfsel-slide-text, #fff);
}

.tfsel-slide-media,
.tfsel-slide-media picture,
.tfsel-slide-media img,
.tfsel-slide-overlay,
.tfsel-slide-decoration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tfsel-slide-media {
  overflow: hidden;
  z-index: 0;
}

.tfsel-slide-media picture {
  display: block;
}

.tfsel-slide-media img {
  display: block;
  object-fit: cover;
  transform: scale(var(--tfsel-image-scale, 1));
  transition: transform 7s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.tfsel-slide-overlay {
  z-index: 1;
  pointer-events: none;
  background: var(--tfsel-overlay, #000);
  opacity: var(--tfsel-overlay-opacity, 0.38);
}

.tfsel-slide-decoration {
  z-index: 2;
  pointer-events: none;
}

.tfsel-slide-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: min(100%, 1440px);
  height: 100%;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 84px);
}

.tfsel-content-position-start .tfsel-slide-inner { justify-content: flex-start; }
.tfsel-content-position-center .tfsel-slide-inner { justify-content: center; }
.tfsel-content-position-end .tfsel-slide-inner { justify-content: flex-end; }

.tfsel-content-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--tfsel-content-gap);
  width: 100%;
  max-width: 650px;
  color: var(--tfsel-slide-text, #fff);
  transition: opacity 0.65s ease, transform 0.65s ease, clip-path 0.8s ease;
}

.tfsel-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.tfsel-kicker {
  color: var(--tfsel-slide-accent, #d8ff3e);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tfsel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--tfsel-slide-accent, #d8ff3e);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tfsel-title {
  max-width: 16ch;
  margin: 0;
  color: var(--tfsel-slide-text, #fff);
  font-family: inherit;
  font-size: clamp(42px, 6vw, 92px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.tfsel-description,
.tfsel-description p {
  max-width: 58ch;
  margin: 0;
  color: var(--tfsel-slide-text, #fff);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.65;
  opacity: 0.82;
}

.tfsel-price {
  color: var(--tfsel-slide-accent, #d8ff3e);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.tfsel-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.tfsel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tfsel-button:hover { transform: translateY(-2px); }
.tfsel-button:focus-visible,
.tfsel-nav-button:focus-visible {
  outline: 3px solid var(--tfsel-slide-accent, #d8ff3e);
  outline-offset: 3px;
}

.tfsel-button--primary {
  background: var(--tfsel-slide-accent, #d8ff3e);
  color: #111;
}

.tfsel-button--primary:hover,
.tfsel-button--primary:focus-visible {
  background: #fff;
  color: #111;
}

.tfsel-button--secondary {
  border-color: currentColor;
  background: transparent;
  color: var(--tfsel-slide-text, #fff);
}

.tfsel-button--secondary:hover,
.tfsel-button--secondary:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.tfsel-button-icon,
.tfsel-button-icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

.tfsel-navigation {
  position: absolute;
  z-index: 8;
  inset-inline-end: clamp(18px, 3vw, 48px);
  bottom: clamp(18px, 3vw, 42px);
  display: flex;
  gap: 8px;
}

.tfsel-nav-button {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.36);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.tfsel-nav-button:hover { background: #fff; color: #111; border-color: #fff; }
.tfsel-nav-button svg { width: 18px; height: 18px; }
.tfsel-nav-button.swiper-button-disabled { opacity: 0.35; cursor: not-allowed; }

.tfsel-pagination.swiper-pagination {
  --swiper-pagination-color: var(--tfsel-pagination-active);
  --swiper-pagination-bullet-inactive-color: var(--tfsel-pagination-color);
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-pagination-bullet-size: var(--tfsel-pagination-size);
  position: absolute;
  z-index: 8;
  inset-inline-start: clamp(22px, 5vw, 84px);
  inset-inline-end: auto;
  bottom: clamp(26px, 4vw, 52px);
  width: auto;
  color: var(--tfsel-pagination-active);
  text-align: start;
}

.tfsel-pagination .swiper-pagination-bullet {
  width: var(--tfsel-pagination-size);
  height: var(--tfsel-pagination-size);
  background: var(--tfsel-pagination-color);
  opacity: 1;
  transition: width 0.25s ease, border-radius 0.25s ease, background-color 0.25s ease;
}

.tfsel-pagination .swiper-pagination-bullet-active {
  width: calc(var(--tfsel-pagination-size) * 3.25);
  border-radius: 999px;
  background: var(--tfsel-pagination-active);
}

.tfsel-pagination.swiper-pagination-progressbar {
  top: auto;
  width: min(240px, 32vw);
  height: 2px;
  background: var(--tfsel-pagination-color);
}

.tfsel-pagination .swiper-pagination-progressbar-fill { background: var(--tfsel-pagination-active); }

.tfsel-counter {
  position: absolute;
  z-index: 8;
  top: clamp(20px, 3vw, 42px);
  inset-inline-end: clamp(22px, 4vw, 58px);
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tfsel-current { font-size: 22px; }
.tfsel-counter-divider,
.tfsel-total { opacity: 0.5; }

/* Active slide motion */
.tfsel-animation-fade-up .tfsel-slide:not(.swiper-slide-active) .tfsel-content-panel {
  opacity: 0;
  transform: translateY(34px);
}
.tfsel-animation-fade-left .tfsel-slide:not(.swiper-slide-active) .tfsel-content-panel {
  opacity: 0;
  transform: translateX(44px);
}
.tfsel-animation-reveal .tfsel-slide:not(.swiper-slide-active) .tfsel-content-panel {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}
.tfsel-animation-reveal .tfsel-slide.swiper-slide-active .tfsel-content-panel {
  clip-path: inset(0 0 0 0);
}
.tfsel-animation-zoom .tfsel-slide:not(.swiper-slide-active) .tfsel-content-panel {
  opacity: 0;
  transform: scale(0.94);
}

.tfsel-has-ken-burns .tfsel-slide.swiper-slide-active .tfsel-slide-media img {
  transform: scale(calc(var(--tfsel-image-scale, 1) + 0.07));
}

/* Template 1: Editorial Split */
.tfsel-template-editorial-split .tfsel-slide-media {
  inset-inline-start: auto;
  width: 57%;
}
.tfsel-template-editorial-split .tfsel-slide-overlay {
  background: linear-gradient(90deg, var(--tfsel-slide-bg) 0%, var(--tfsel-slide-bg) 40%, transparent 75%);
  opacity: 1;
}
.tfsel-template-editorial-split .tfsel-slide-inner { width: 100%; }
.tfsel-template-editorial-split .tfsel-content-panel { width: 48%; }
.tfsel-template-editorial-split .tfsel-slide-decoration::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 43%;
  width: 1px;
  background: linear-gradient(transparent, color-mix(in srgb, var(--tfsel-slide-accent) 70%, transparent), transparent);
}

/* Template 2: Cinematic */
.tfsel-template-cinematic .tfsel-slide-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.34) 52%, rgba(0,0,0,.08) 100%), linear-gradient(0deg, rgba(0,0,0,.55), transparent 55%);
  opacity: 1;
}
.tfsel-template-cinematic .tfsel-slide-inner { align-items: flex-end; padding-bottom: clamp(76px, 10vw, 132px); }
.tfsel-template-cinematic .tfsel-title { max-width: 12ch; font-size: clamp(48px, 7.3vw, 112px); }
.tfsel-template-cinematic .tfsel-content-panel { padding: 0; background: transparent; }

/* Template 3: Product Spotlight */
.tfsel-template-product-spotlight .tfsel-slide-media {
  inset-inline-start: auto;
  width: 58%;
  padding: clamp(30px, 5vw, 80px);
}
.tfsel-template-product-spotlight .tfsel-slide-media img { object-fit: contain; }
.tfsel-template-product-spotlight .tfsel-slide-overlay { display: none; }
.tfsel-template-product-spotlight .tfsel-content-panel { width: 44%; }
.tfsel-template-product-spotlight .tfsel-slide-decoration::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 8%;
  width: min(40vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tfsel-slide-accent);
  opacity: 0.16;
  transform: translateY(-50%);
}

/* Template 4: Lookbook Cards */
.tfsel-template-lookbook-cards {
  padding: clamp(12px, 2.5vw, 34px);
  background: #ecebe7;
}
.tfsel-template-lookbook-cards .swiper-wrapper { align-items: stretch; }
.tfsel-template-lookbook-cards .tfsel-slide {
  height: calc(var(--tfsel-height) - clamp(24px, 5vw, 68px));
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.14);
  transition: transform .35s ease, box-shadow .35s ease;
}
.tfsel-template-lookbook-cards.tfsel-has-hover-lift .tfsel-slide:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0,0,0,.22);
}
.tfsel-template-lookbook-cards .tfsel-slide-overlay {
  background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.1) 68%);
  opacity: 1;
}
.tfsel-template-lookbook-cards .tfsel-slide-inner {
  align-items: flex-end;
  padding: clamp(22px, 3vw, 42px);
}
.tfsel-template-lookbook-cards .tfsel-content-panel {
  max-width: 100%;
  padding: 0;
  background: transparent;
}
.tfsel-template-lookbook-cards .tfsel-title { font-size: clamp(32px, 3.6vw, 58px); }
.tfsel-template-lookbook-cards .tfsel-description { display: none; }
.tfsel-template-lookbook-cards .tfsel-navigation { bottom: 50%; transform: translateY(50%); inset-inline: 10px; justify-content: space-between; pointer-events: none; }
.tfsel-template-lookbook-cards .tfsel-nav-button { pointer-events: auto; }
.tfsel-template-lookbook-cards .tfsel-pagination { left: 50%; bottom: 8px; transform: translateX(-50%); }
.tfsel-template-lookbook-cards .tfsel-counter { display: none; }

/* Template 5: Glass Luxury */
.tfsel-template-glass-luxury .tfsel-slide-overlay {
  background: radial-gradient(circle at 70% 35%, transparent 0 22%, rgba(0,0,0,.28) 58%, rgba(0,0,0,.7) 100%);
  opacity: 1;
}
.tfsel-template-glass-luxury .tfsel-content-panel {
  padding: clamp(30px, 4vw, 58px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: rgba(15,15,15,.26);
  box-shadow: 0 28px 70px rgba(0,0,0,.26);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.tfsel-template-glass-luxury .tfsel-slide-decoration::before,
.tfsel-template-glass-luxury .tfsel-slide-decoration::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}
.tfsel-template-glass-luxury .tfsel-slide-decoration::before { width: 34vw; height: 34vw; inset-inline-end: -10vw; top: -15vw; }
.tfsel-template-glass-luxury .tfsel-slide-decoration::after { width: 20vw; height: 20vw; inset-inline-end: 8vw; bottom: -10vw; }

/* Template 6: Vertical Reveal */
.tfsel-template-vertical-reveal .tfsel-slide-media { width: 50%; }
.tfsel-template-vertical-reveal .tfsel-slide-overlay { display: none; }
.tfsel-template-vertical-reveal .tfsel-slide-inner { justify-content: flex-end; }
.tfsel-template-vertical-reveal .tfsel-content-panel { width: 48%; }
.tfsel-template-vertical-reveal .tfsel-slide-decoration::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  inset-inline-start: 50%;
  width: 1px;
  background: color-mix(in srgb, var(--tfsel-slide-accent) 62%, transparent);
}
.tfsel-template-vertical-reveal .tfsel-title { max-width: 11ch; }
.tfsel-template-vertical-reveal .tfsel-navigation { flex-direction: column; }

.tfsel-empty-state {
  padding: 36px;
  border: 1px dashed #a7a7a7;
  border-radius: 8px;
  background: #f7f7f7;
  color: #555;
  text-align: center;
}

.tfsel-swiper-unavailable > .swiper-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.tfsel-swiper-unavailable .swiper-slide { flex: 0 0 100%; scroll-snap-align: start; }

@media (max-width: 1024px) {
  .tfsel-slide-inner { padding: clamp(28px, 5vw, 54px); }
  .tfsel-title { font-size: clamp(40px, 7vw, 74px); }
  .tfsel-template-editorial-split .tfsel-slide-media,
  .tfsel-template-product-spotlight .tfsel-slide-media { width: 54%; }
}

@media (max-width: 767px) {
  .tfsel-slider--pro { min-height: 460px; }
  .tfsel-slide-inner {
    align-items: flex-end;
    justify-content: flex-start !important;
    padding: 24px 20px 82px;
  }
  .tfsel-content-panel,
  .tfsel-template-editorial-split .tfsel-content-panel,
  .tfsel-template-product-spotlight .tfsel-content-panel,
  .tfsel-template-vertical-reveal .tfsel-content-panel {
    width: 100%;
    max-width: 100%;
  }
  .tfsel-title { max-width: 14ch; font-size: clamp(36px, 12vw, 58px); line-height: 1.02; }
  .tfsel-description,
  .tfsel-description p { font-size: 15px; line-height: 1.55; }
  .tfsel-buttons { width: 100%; }
  .tfsel-button { min-height: 44px; padding: 12px 16px; font-size: 11px; }
  .tfsel-navigation { inset-inline-end: 16px; bottom: 16px; }
  .tfsel-nav-button { width: 44px; height: 44px; }
  .tfsel-pagination.swiper-pagination { inset-inline-start: 20px; bottom: 30px; }
  .tfsel-counter { top: 16px; inset-inline-end: 18px; }

  .tfsel-template-editorial-split .tfsel-slide-media,
  .tfsel-template-product-spotlight .tfsel-slide-media,
  .tfsel-template-vertical-reveal .tfsel-slide-media {
    inset: 0;
    width: 100%;
    padding: 0;
  }
  .tfsel-template-editorial-split .tfsel-slide-overlay,
  .tfsel-template-product-spotlight .tfsel-slide-overlay,
  .tfsel-template-vertical-reveal .tfsel-slide-overlay {
    display: block;
    background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.2) 65%, rgba(0,0,0,.04) 100%);
    opacity: 1;
  }
  .tfsel-template-editorial-split .tfsel-slide-decoration,
  .tfsel-template-product-spotlight .tfsel-slide-decoration,
  .tfsel-template-vertical-reveal .tfsel-slide-decoration { display: none; }
  .tfsel-template-product-spotlight .tfsel-slide-media img { object-fit: contain; padding: 20px 20px 160px; }
  .tfsel-template-glass-luxury .tfsel-content-panel { padding: 24px; border-radius: 18px; }
  .tfsel-template-lookbook-cards .tfsel-slide { border-radius: 14px; }
  .tfsel-template-lookbook-cards .tfsel-slide-inner { padding: 24px 20px 62px; }
  .tfsel-template-lookbook-cards .tfsel-title { font-size: clamp(32px, 10vw, 48px); }
}

/* Motion is intentionally kept active for this slider even when a theme,
   Elementor setting, or OS-level reduced-motion stylesheet disables site motion. */
.tfsel-slider.tfsel-force-motion > .swiper-wrapper {
  transition-property: transform !important;
  transition-duration: var(--tfsel-force-speed, 800ms) !important;
}
.tfsel-slider.tfsel-force-motion .tfsel-content-panel {
  transition-property: opacity, transform, clip-path !important;
  transition-duration: var(--tfsel-force-speed, 800ms) !important;
}
.tfsel-slider.tfsel-force-motion.tfsel-hero-1 .swiper-item,
.tfsel-slider.tfsel-force-motion.tfsel-hero-2 .slide-inner {
  transition-property: transform !important;
  transition-duration: var(--tfsel-force-speed, 800ms) !important;
}
.tfsel-slider.tfsel-force-motion.tfsel-hero-1 .slide-text,
.tfsel-slider.tfsel-force-motion.tfsel-hero-2 .hero-2-slide-text {
  transition-property: opacity, transform, right !important;
  transition-duration: var(--tfsel-force-speed, 800ms) !important;
}


/* RTL navigation direction */
[dir="rtl"] .tfsel-slider--pro .tfsel-button-prev svg,
[dir="rtl"] .tfsel-slider--pro .tfsel-button-next svg {
  transform: rotate(180deg);
}
