.stories-strip{padding-bottom:22px;}
.stories-strip+.home-catalog{padding-top:30px;}
.categories .category-scene{height:clamp(170px,12vw,230px);isolation:isolate;background-color:var(--scene-color);background-image:linear-gradient(128deg,transparent 10%,#ffffffb3 23%,transparent 35%,#ffffff80 47%,transparent 59%),radial-gradient(ellipse at 65% 90%,#ffffffed,transparent 65%),linear-gradient(165deg,#ffffff88,transparent 70%);}
.category-scene--creams{--scene-color:#d7e4ed;}
.category-scene--serums{--scene-color:#e4dfed;}
.category-scene--cleansing{--scene-color:#d9e9e6;}
.category-scene--hands{--scene-color:#e8e1dc;}
.category-scene--hair{--scene-color:#dce7d9;}
.category-scene--spf{--scene-color:#e0ebef;}
.categories .category-scene:nth-child(n+5){background-color:var(--scene-color);}
.categories .category-scene::before{content:"";position:absolute;left:34%;right:12%;height:9%;bottom:8%;border-radius:50%;background:#637c8055;filter:blur(12px);transform:rotate(-5deg);}
.categories .category-scene::after{inset:74% 0 0;background:linear-gradient(transparent,#ffffff99);z-index:1;}
.category-scene-products{position:absolute;inset:0;pointer-events:none;}
.category-scene-products img{position:absolute;display:block;width:auto;height:98%;max-width:none;mix-blend-mode:multiply;aspect-ratio:1;object-fit:contain;left:44%;top:49%;--rotation:-9deg;transform:translate(calc(-50% + var(--drift-x,0px)),calc(-50% + var(--drift-y,0px))) rotate(var(--rotation));transition:transform .65s cubic-bezier(.2,.65,.3,1);}
.category-scene-products img:nth-child(2){left:66%;top:50%;height:96%;--rotation:11deg;transform:translate(calc(-50% + var(--drift-x,0px)),calc(-50% + var(--drift-y,0px))) rotate(var(--rotation));}
.category-scene--serums .category-scene-products img{height:103%;top:49%;}
.category-scene--serums .category-scene-products img:nth-child(2){height:99%;top:50%;}
.category-scene--hair .category-scene-products img{--rotation:0deg;height:110%;left:47%;top:49%;}
.category-scene--hair .category-scene-products img:nth-child(2){--rotation:0deg;left:60%;top:49%;height:110%;}
.category-scene--hair .category-scene-products img:nth-child(3){--rotation:0deg;left:73%;top:49%;height:110%;}
.category-scene--spf .category-scene-products img{--rotation:0deg;height:98%;left:57%;top:49%;}
.category-scene--spf .category-scene-products img:nth-child(2){--rotation:0deg;height:92%;left:70%;top:51%;}
.category-scene-light{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 60% 105% at var(--light-x,50%) var(--light-y,45%),#ffffffa6,transparent 75%);opacity:0;transition:opacity .45s ease;}
.category-scene:focus-visible .category-scene-light{opacity:1;}
@media (min-width: 701px) and (hover: hover) and (pointer: fine){.category-scene.is-hovered .category-scene-light{opacity:1;}}
.categories .category-scene .category-scene-products img{--drift-x:calc(var(--pointer-x,0px) * .8);--drift-y:calc(var(--pointer-y,0px) * .55);transform:translate(calc(-50% + var(--drift-x)),calc(-50% + var(--drift-y))) rotate(var(--rotation));rotate:0deg;transition:rotate .75s cubic-bezier(.22,.61,.36,1) !important;}
.categories .category-scene .category-scene-products img:nth-child(2){--drift-x:calc(var(--pointer-x,0px) * -.45);--drift-y:calc(var(--pointer-y,0px) * -.3);}
.categories .category-scene>span{z-index:2;}

@media(max-width:900px){.categories .category-scene:nth-child(n+5){grid-column:span 2;height:clamp(170px,25vw,230px);}}
@media(max-width:600px){.stories-strip+.home-catalog{padding-top:20px;}.categories{grid-template-columns:1fr;}.categories .category-scene:nth-child(n){grid-column:1;height:auto;aspect-ratio:1.9;}.categories .category-scene:nth-child(n+5){aspect-ratio:2.3;min-height:150px;}.categories .category-scene span{font-size:22px;}}
@media(prefers-reduced-motion:reduce){.category-scene-products,.category-scene-products img,.category-scene-light{transition:none;}}

/* Each product has its own small change of angle; no shared upward translation. */
.category-scene--creams{--turn-first:-3deg;--turn-second:4deg;}
.category-scene--serums{--turn-first:4deg;--turn-second:-3deg;}
.category-scene--cleansing{--turn-first:-2.5deg;--turn-second:3.5deg;}
.category-scene--hands{--turn-first:3deg;--turn-second:-4deg;}
.category-scene--hair{--turn-first:-2.5deg;--turn-second:3deg;}
.category-scene--spf{--turn-first:3deg;--turn-second:-4deg;}
@media(hover:hover) and (pointer:fine){
 @media (min-width: 701px) and (hover: hover) and (pointer: fine){.categories .category-scene:hover .category-scene-products img{rotate:var(--turn-first);}}
 @media (min-width: 701px) and (hover: hover) and (pointer: fine){.categories .category-scene:hover .category-scene-products img:nth-child(2){rotate:var(--turn-second);}}
}

/* This small user-requested hover tilt remains eased even when the global motion reset applies. */
@media(hover:hover) and (pointer:fine){
 @media (min-width: 701px) and (hover: hover) and (pointer: fine){.categories .category-scene:hover .category-scene-products img:nth-child(3){rotate:-1.5deg;}}
}
@media(max-width:600px){
 .category-scene--hair .category-scene-products img{left:50%;}
 .category-scene--hair .category-scene-products img:nth-child(2){left:68%;}
 .category-scene--hair .category-scene-products img:nth-child(3){left:86%;}
 .category-scene--spf .category-scene-products img{left:56%;}
 .category-scene--spf .category-scene-products img:nth-child(2){left:75%;}
}

:is(.bestsellers, #catalog-grid) .product-photo img {
  rotate: none;
  transform: translate3d(0,0,0) rotate(0deg);
  backface-visibility: hidden;
  transition: transform .75s cubic-bezier(.22,.61,.36,1) !important;
}

@media (hover: hover) and (pointer: fine) {
  @media (min-width: 701px) and (hover: hover) and (pointer: fine) {:is(.bestsellers, #catalog-grid) .product-card:hover .product-photo img {
    transform: translate3d(0,0,0) rotate(2deg);
  }}

  @media (min-width: 701px) and (hover: hover) and (pointer: fine) {:is(.bestsellers, #catalog-grid) .product-card:nth-child(even):hover .product-photo img {
    transform: translate3d(0,0,0) rotate(-2deg);
  }}
}

/* Let the card receive pointer input instead of the decorative product image. */
.product-card .product-photo img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
