/* =========================================================
   OUTFITARNA — HOMEPAGE VIDEO CAROUSEL v5
   SAFE OVERLAY FOR CONFIRMED STABLE 10G

   This file is intentionally scoped to:
   body.type-index
   + the exact section marked by JS with .of-video-carousel-mounted

   It does not style header, navigation, hero, Shoptet banners,
   product rows, PLP/PDP, search, newsletter or footer.
   ========================================================= */

body.type-index .of-section.of-video-carousel-mounted{
  overflow:visible!important;
  padding-top:14px!important;
  padding-bottom:20px!important;
}

body.type-index .of-section.of-video-carousel-mounted > .of-section__head,
body.type-index .of-section.of-video-carousel-mounted > .of-section__row-head{
  margin-bottom:14px!important;
}

/* Original "Jak je nosíte" grid stays in DOM as rollback fallback. */
body.type-index .of-section.of-video-carousel-mounted .of-ugc-grid{
  display:none!important;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc{
  position:relative;
  width:100%;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__track{
  display:flex;
  gap:12px;
  margin:0;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  padding:38px 54px 18px;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__track::-webkit-scrollbar{
  display:none;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__card{
  background:var(--of-beige,#eee8df);
  border-radius:17px;
  flex:0 0 clamp(225px,18.2vw,310px);
  min-width:0;
  opacity:.80;
  overflow:hidden;
  position:relative;
  scroll-snap-align:center;
  transform:scale(.94);
  transform-origin:center bottom;
  transition:
    transform .24s ease,
    opacity .24s ease,
    box-shadow .24s ease;
  z-index:1;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__card.is-active{
  box-shadow:0 16px 34px rgba(43,33,28,.14);
  opacity:1;
  transform:scale(1.09);
  z-index:3;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__media{
  aspect-ratio:9/16;
  background:#ded7cf;
  display:block;
  overflow:hidden;
  position:relative;
  width:100%;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__media::after{
  background:linear-gradient(
    to top,
    rgba(24,18,15,.30),
    rgba(24,18,15,0) 35%
  );
  content:"";
  inset:0;
  pointer-events:none;
  position:absolute;
  z-index:1;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__video{
  border:0;
  display:block;
  height:100%;
  inset:0;
  object-fit:cover;
  position:absolute;
  width:100%;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__cta{
  align-items:center;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  background:rgba(248,245,239,.92);
  border:1px solid rgba(255,255,255,.72);
  border-radius:12px;
  bottom:14px;
  color:var(--of-ink,#2b211c)!important;
  display:flex;
  font-family:var(--of-sans,"Mulish",Arial,sans-serif)!important;
  font-size:14px;
  font-weight:800;
  gap:12px;
  justify-content:space-between;
  left:14px;
  line-height:1.25;
  min-height:52px;
  padding:11px 14px;
  position:absolute;
  right:14px;
  text-decoration:none!important;
  z-index:4;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__cta:hover,
body.type-index .of-section.of-video-carousel-mounted .of-vc__cta:focus{
  background:#fff;
  color:var(--of-accent,#6f1f2d)!important;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__cta-arrow{
  flex:0 0 auto;
  font-size:24px;
  font-weight:400;
  line-height:1;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__sound{
  align-items:center;
  background:rgba(43,33,28,.68);
  border:0;
  border-radius:999px;
  bottom:78px;
  color:#fff;
  cursor:pointer;
  display:flex;
  height:40px;
  justify-content:center;
  padding:0;
  position:absolute;
  right:14px;
  width:40px;
  z-index:5;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__card--no-cta .of-vc__sound{
  bottom:14px;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__sound svg{
  height:18px;
  width:18px;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__arrow{
  align-items:center;
  background:#fff;
  border:1px solid rgba(43,33,28,.10);
  border-radius:999px;
  box-shadow:0 8px 24px rgba(43,33,28,.12);
  color:var(--of-ink,#2b211c);
  cursor:pointer;
  display:flex;
  font-family:Arial,sans-serif;
  font-size:30px;
  font-weight:300;
  height:50px;
  justify-content:center;
  line-height:1;
  padding:0 0 3px;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:50px;
  z-index:8;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__arrow--prev{
  left:8px;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__arrow--next{
  right:8px;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc__status{
  border:0!important;
  clip:rect(1px,1px,1px,1px)!important;
  clip-path:inset(50%)!important;
  height:1px!important;
  overflow:hidden!important;
  position:absolute!important;
  white-space:nowrap!important;
  width:1px!important;
}

/* 1–2 valid videos: keep the section visible instead of failing the module. */
body.type-index .of-section.of-video-carousel-mounted .of-vc--compact .of-vc__track{
  justify-content:center;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc--compact .of-vc__arrow{
  display:none!important;
}

body.type-index .of-section.of-video-carousel-mounted .of-vc--single .of-vc__card{
  flex-basis:min(340px,80vw);
}

@media (max-width:1100px){
  body.type-index .of-section.of-video-carousel-mounted .of-vc__card{
    flex-basis:clamp(220px,26vw,282px);
  }
}

@media (max-width:767px){
  body.type-index .of-section.of-video-carousel-mounted{
    padding-top:10px!important;
    padding-bottom:16px!important;
  }

  body.type-index .of-section.of-video-carousel-mounted > .of-section__head,
  body.type-index .of-section.of-video-carousel-mounted > .of-section__row-head{
    margin-bottom:10px!important;
  }

  body.type-index .of-section.of-video-carousel-mounted .of-vc{
    margin-left:-18px;
    margin-right:-18px;
    width:calc(100% + 36px);
  }

  body.type-index .of-section.of-video-carousel-mounted .of-vc__track{
    gap:12px;
    justify-content:flex-start;
    padding:26px 18px 16px;
    scroll-padding-left:18px;
  }

  body.type-index .of-section.of-video-carousel-mounted .of-vc__card{
    border-radius:15px;
    flex:0 0 min(74vw,300px);
    transform:scale(.965);
  }

  body.type-index .of-section.of-video-carousel-mounted .of-vc__card.is-active{
    transform:scale(1.035);
  }

  body.type-index .of-section.of-video-carousel-mounted .of-vc__cta{
    bottom:12px;
    font-size:13px;
    left:12px;
    min-height:50px;
    right:12px;
  }

  body.type-index .of-section.of-video-carousel-mounted .of-vc__sound{
    bottom:74px;
    height:38px;
    right:12px;
    width:38px;
  }

  body.type-index .of-section.of-video-carousel-mounted .of-vc__card--no-cta .of-vc__sound{
    bottom:12px;
  }

  body.type-index .of-section.of-video-carousel-mounted .of-vc__arrow{
    display:none!important;
  }

  body.type-index .of-section.of-video-carousel-mounted .of-vc--single .of-vc__card{
    flex-basis:min(80vw,320px);
  }
}

@media (prefers-reduced-motion:reduce){
  body.type-index .of-section.of-video-carousel-mounted .of-vc__track{
    scroll-behavior:auto;
  }

  body.type-index .of-section.of-video-carousel-mounted .of-vc__card{
    transition:none;
  }
}

/* =========================================================
   V5 HOMEPAGE EDITORIAL POLISH
   Scoped only to body.type-index / .of-home.
   ========================================================= */

/* The video section now uses one clean heading: Inspirace. */
body.type-index .of-home .of-home-inspiration-section .of-kicker{
  display:none!important;
}

/* More e-commerce-sized editorial headings.
   Keeps the serif identity without the oversized poster scale. */
body.type-index .of-home .of-section__head h2,
body.type-index .of-home .of-section__row-head h2,
body.type-index .of-home .of-look h2{
  font-size:clamp(34px,3.8vw,62px)!important;
  line-height:1.02!important;
  letter-spacing:-.03em!important;
}

/* Reduce the empty transition specifically between Bestsellery -> Inspirace. */
body.type-index .of-home .of-home-section--bestsellers{
  padding-bottom:26px!important;
}

body.type-index .of-home .of-home-inspiration-section{
  padding-top:14px!important;
}

/* Reduce the empty transition specifically between videos -> trust/USP graphic. */
body.type-index .of-home > .of-trust{
  margin-top:0!important;
}

@media (max-width:767px){
  body.type-index .of-home .of-section__head h2,
  body.type-index .of-home .of-section__row-head h2,
  body.type-index .of-home .of-look h2{
    font-size:38px!important;
    line-height:1.04!important;
  }

  body.type-index .of-home .of-home-section--bestsellers{
    padding-bottom:18px!important;
  }

  body.type-index .of-home .of-home-inspiration-section{
    padding-top:8px!important;
  }
}

