/* Nivah Featured Categories — native-resolution card motion.
   Never resample the entire card as a rotated, scaled GPU texture:
   text and photographs retain sharp rasterisation when a slide settles.
   The animation is driven by native left/top/width/height from app.js. */
#nv-featured-categories {
  --nv-luxe-base-width:clamp(280px,29vw,410px);
  --nv-luxe-base-height:568px;
}
#nv-featured-categories .nv-luxe-cat-scene,
#nv-featured-categories .nv-luxe-cat-cards {
  perspective:none !important;
}
#nv-featured-categories .nv-luxe-cat-card,
#nv-featured-categories .nv-luxe-cat-card[data-pos] {
  transform:none;
  transform-origin:top left !important;
  filter:none !important;
  backface-visibility:visible !important;
  will-change:auto;
  transition:none !important;
}
#nv-featured-categories .nv-luxe-cat-card.nv-luxe-no-transition,
#nv-featured-categories .nv-luxe-cat-card.nv-luxe-no-transition[data-pos] {
  transition:none !important;
}
#nv-featured-categories .nv-luxe-cat-card[data-pos="-3"],
#nv-featured-categories .nv-luxe-cat-card[data-pos="-2"],
#nv-featured-categories .nv-luxe-cat-card[data-pos="-1"],
#nv-featured-categories .nv-luxe-cat-card[data-pos="0"],
#nv-featured-categories .nv-luxe-cat-card[data-pos="1"],
#nv-featured-categories .nv-luxe-cat-card[data-pos="2"],
#nv-featured-categories .nv-luxe-cat-card[data-pos="3"] {
  opacity:1;
}
#nv-featured-categories .nv-luxe-cat-card[data-pos="-4"],
#nv-featured-categories .nv-luxe-cat-card[data-pos="4"]{
  opacity:0;
}
/* Hover must not enlarge and blur the photo after the card has stopped. */
#nv-featured-categories .nv-luxe-cat-photo img,
#nv-featured-categories .nv-luxe-cat-card:hover .nv-luxe-cat-photo img {
  transform:none !important;
  transition:none !important;
  filter:none !important;
  image-rendering:auto;
}
@media(min-width:1101px){
  #nv-featured-categories{
    --nv-luxe-base-width:clamp(240px,20vw,315px);
    --nv-luxe-base-height:clamp(338px,25vw,405px);
  }
}
@media(min-width:701px) and (max-width:1100px){
  #nv-featured-categories{
    --nv-luxe-base-width:clamp(255px,31vw,320px);
    --nv-luxe-base-height:400px;
  }
}
@media(max-width:700px){
  #nv-featured-categories{
    --nv-luxe-base-width:clamp(142px,43vw,190px);
    --nv-luxe-base-height:clamp(250px,76vw,325px);
  }
  #nv-featured-categories .nv-luxe-cat-card[data-pos="-3"],
  #nv-featured-categories .nv-luxe-cat-card[data-pos="3"]{
    opacity:0;
  }
}
@media(max-width:360px){
  #nv-featured-categories{
    --nv-luxe-base-width:clamp(142px,43vw,155px);
    --nv-luxe-base-height:250px;
  }
}
@media(prefers-reduced-motion:reduce){
  #nv-featured-categories .nv-luxe-cat-card,
  #nv-featured-categories .nv-luxe-cat-card[data-pos]{transition:none !important;}
}


/* Exactly centre the vector arrow in every resized circle, at every carousel
   position. SVG alignment avoids the off-centre font baseline of the former
   U+2192 glyph and keeps the icon crisp during and after carousel movement. */
#nv-featured-categories .nv-luxe-cat-link {
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  line-height:0 !important;
  box-sizing:border-box !important;
  text-align:center !important;
}
#nv-featured-categories .nv-luxe-cat-link > svg {
  position:static !important;
  display:block !important;
  width:var(--nv-arrow-svg-size, 15px) !important;
  height:var(--nv-arrow-svg-size, 15px) !important;
  padding:0 !important;
  margin:0 !important;
  transform:none !important;
  flex:none !important;
  overflow:visible;
  pointer-events:none;
}

/* 13 Nov 2026 — compact category cards on phones only.
   The JS carousel reads the base-height/width variables, so resize the real
   native boxes and the scene together, not a scaled blurry GPU layer. */
@media (max-width:700px) {
  #nv-featured-categories {
    --nv-luxe-base-width:clamp(135px,40.5vw,178px);
    --nv-luxe-base-height:clamp(208px,60vw,265px);
  }
  #nv-featured-categories .nv-luxe-cat-scene {
    height:clamp(232px,65vw,290px);
    margin-top:12px;
  }
  #nv-featured-categories .nv-luxe-cat-content {
    height:46%;
    padding:0 7px 7px;
  }
  #nv-featured-categories .nv-luxe-cat-name {
    font-size:clamp(14px,4.05vw,18px);
    line-height:1.14;
    margin-bottom:5px;
  }
  #nv-featured-categories .nv-luxe-cat-rule {
    margin-bottom:5px;
  }
  #nv-featured-categories .nv-luxe-cat-desc {
    min-height:21px;
    font-size:clamp(6.3px,1.75vw,7.8px);
    line-height:1.35;
    letter-spacing:.08em;
    max-width:160px;
  }
  #nv-featured-categories .nv-luxe-cat-link {
    width:25px;
    height:25px;
    margin-top:5px;
  }
  #nv-featured-categories .nv-luxe-cat-dots {
    margin-top:10px;
  }
}
