/* Radhe Shyam Mart: crop-safe media and tactile interaction layer */
.hero {
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
  height: min(900px, 100svh);
  min-height: 720px;
}

.hero-media {
  overflow: hidden;
  transform: translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0) scale(1.012);
  transition: transform .3s cubic-bezier(.2, .75, .2, 1);
}

.hero-media img { object-fit: cover; }
.hero-media--one img,
.hero-media--two img { object-position: right center; }
.hero-slide:not(.is-active) .hero-content { opacity: 0; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease; }

.hero-tint {
  background: linear-gradient(90deg, rgba(247, 248, 245, .9) 0%, rgba(247, 248, 245, .66) 30%, rgba(247, 248, 245, .12) 57%, transparent 72%);
}

.editorial-board {
  min-height: 690px;
  isolation: isolate;
}

.editorial-main-frame {
  --base-rotate: -1deg;
  position: absolute;
  z-index: 1;
  top: 11%;
  left: 9%;
  width: 82%;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(31, 75, 82, .14);
  border-radius: 28px;
  background: var(--soft-white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.editorial-main-frame .editorial-main {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border: 0;
  border-radius: 19px;
  object-fit: contain;
  box-shadow: none;
}

.editorial-main-frame figcaption,
.editorial-card figcaption {
  padding: 10px 6px 2px;
  color: var(--deep-teal);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.editorial-card {
  z-index: 3;
  padding: 10px;
  overflow: hidden;
}

.editorial-card img {
  display: block;
  width: clamp(112px, 12vw, 168px);
  height: auto;
  border-radius: 15px;
  object-fit: contain;
}

.editorial-card--one { --base-rotate: -6deg; top: 0; left: -3%; }
.editorial-card--two { --base-rotate: 5deg; right: -2%; bottom: 3%; }
.editorial-card--three { --base-rotate: -3deg; left: 2%; bottom: -1%; }
.editorial-card--three img { width: clamp(150px, 16vw, 220px); }
.measurement { z-index: 2; }

.product-grid { align-items: start; }

.product-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  min-height: 0;
  perspective: none;
  transform-style: preserve-3d;
}

.product-card__inner {
  display: grid;
  width: 100%;
  height: auto;
  min-height: 0;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.2, .78, .2, 1);
}

.product-face {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.product-front { padding: 12px 12px 78px; }
.product-back { min-height: 100%; padding: 34px 34px 86px; }

.product-image-btn {
  width: 100%;
  height: auto;
  aspect-ratio: var(--media-ratio);
  background: linear-gradient(145deg, #edf2f1, #f8f7f3);
  cursor: zoom-in;
}

.product-image-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transition: transform .55s cubic-bezier(.2, .78, .2, 1), filter .55s ease;
}

.product-card:hover .product-image-btn img,
.product-image-btn:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.02);
}

.product-copy h3 { padding-right: 0; }

.flip-toggle {
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  width: auto;
  height: 44px;
  padding: 0 13px;
  gap: 8px;
  border-radius: 13px;
}

.flip-toggle .flip-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.flip-toggle .flip-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  font-size: .9rem;
  transition: transform .35s ease;
}

.product-card.is-flipped .flip-toggle span { transform: none; }
.product-card.is-flipped .flip-toggle .flip-icon { transform: rotate(180deg); }

.fabric-samples { align-items: start; gap: 14px; }

.fabric-sample {
  min-height: 0;
  margin: 0 !important;
  border: 1px solid rgba(31, 75, 82, .14);
  background: var(--soft-white) !important;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.fabric-sample--landscape { aspect-ratio: 1402 / 1122; }
.fabric-sample--portrait { aspect-ratio: 1122 / 1402; }

.fabric-sample img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s cubic-bezier(.2, .78, .2, 1), filter .6s ease;
}

.fabric-sample:hover img { transform: scale(1.035); filter: saturate(1.08); }

.fabric-sample figcaption {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 9px;
  background: rgba(252, 252, 250, .86);
  box-shadow: 0 8px 24px rgba(22, 49, 58, .12);
  color: var(--deep-teal);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  backdrop-filter: blur(8px);
}

.garment-rack { align-items: center; }

.garment-rack img {
  width: 31%;
  height: auto;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #eef2f1;
  filter: saturate(.9);
}

.locker.is-active .garment-rack img:nth-child(1) { transform: translateY(8px) rotate(-2deg); }
.locker.is-active .garment-rack img:nth-child(2) { transform: translateY(-14px) rotate(1.5deg); filter: saturate(1.05); }
.locker.is-active .garment-rack img:nth-child(3) { transform: translateY(7px) rotate(2deg); }

.tilt-surface {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --base-rotate: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .18s ease-out, box-shadow .28s ease;
}

.tilt-surface:not(.reveal),
.tilt-surface.reveal.is-visible {
  transform: perspective(1000px) rotate(var(--base-rotate)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
}

.tilt-surface:hover { box-shadow: 0 24px 55px rgba(22, 49, 58, .16); }
.modal-dialog { animation: modal-pop .42s cubic-bezier(.2, .8, .2, 1) both; }
.modal-media img { transform: scale(.985); animation: modal-image-in .55s .08s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes hero-zoom-out {
  0% { transform: scale(1.07); filter: blur(2px); }
  100% { transform: scale(1); filter: blur(0); }
}

@keyframes hero-copy-in {
  0% { opacity: 0; transform: translateY(22px) rotateX(-5deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes impact-shake {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  22% { translate: -2px 0; rotate: -1deg; }
  44% { translate: 2px -1px; rotate: 1deg; }
  66% { translate: -1px 1px; rotate: -.5deg; }
  82% { translate: 1px 0; rotate: .5deg; }
}

@keyframes tag-shake {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-1.8deg) translateX(-1px); }
  65% { transform: rotate(1.8deg) translateX(1px); }
}

@keyframes step-wobble {
  0%, 100% { transform: rotate(0) scale(1); }
  35% { transform: rotate(-7deg) scale(1.07); }
  70% { transform: rotate(5deg) scale(1.04); }
}

@keyframes modal-pop {
  0% { opacity: 0; transform: translateY(24px) scale(.94) rotateX(-4deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes modal-image-in {
  0% { opacity: .35; transform: scale(.94); }
  100% { opacity: 1; transform: scale(.985); }
}

.hero-slide.is-active .hero-media img { animation: hero-zoom-out 5s cubic-bezier(.18, .7, .2, 1) both; }
.hero-slide.is-active .hero-content > * { animation: hero-copy-in .7s cubic-bezier(.2, .75, .2, 1) both; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: .06s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: .12s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { animation-delay: .18s; }
.hero-slide.is-active .hero-content > *:nth-child(5) { animation-delay: .24s; }
.hero-slide.is-active .hero-content > *:nth-child(6) { animation-delay: .3s; }
.is-impact { animation: impact-shake .42s ease both; }
.chip:hover,
.product-card:hover .product-category { animation: tag-shake .38s ease; }
.process-step:hover .step-number { animation: step-wobble .55s ease; }

@media (max-width: 1024px) {
  .hero { height: auto; min-height: 820px; }
  .editorial-board { min-height: 650px; }
}

@media (max-width: 768px) {
  .hero { height: auto; min-height: 1060px; overflow: hidden; }
  .hero-slide { display: block; }
  .hero-media {
    top: 92px;
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    height: auto;
    aspect-ratio: 1672 / 941;
    border: 1px solid rgba(31, 75, 82, .14);
    border-radius: 24px;
    background: var(--mist-grey);
    box-shadow: var(--shadow-md);
    transform: none;
  }
  .hero-media img,
  .hero-media--one img,
  .hero-media--two img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
  .hero-tint { display: none; }
  .hero-slide__inner { width: calc(100% - 28px); padding-top: calc(120px + (100vw - 28px) * .5628); }
  .hero-content { gap: 17px; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .hero-content h1 { font-size: clamp(2.25rem, 9.5vw, 3.5rem); }
  .hero-micro-rail { bottom: 16px; }
  .editorial-board { min-height: 610px; }
  .editorial-main-frame { top: 12%; left: 3%; width: 94%; padding: 8px; }
  .editorial-card img { width: 118px; height: auto; }
  .editorial-card--one { top: 0; left: -1%; }
  .editorial-card--two { right: -1%; bottom: 2%; }
  .editorial-card--three { left: 1%; bottom: 0; }
  .editorial-card--three img { width: 160px; }
  .product-card,
  .product-card__inner { min-height: 0; }
  .product-image-btn { height: auto; aspect-ratio: var(--media-ratio); }
  .product-front { padding-bottom: 76px; }
  .fabric-sample { min-height: 0; }
  .garment-rack { inset: 72px 12px 160px; gap: 10px; }
}

@media (max-width: 480px) {
  .hero { min-height: 1050px; }
  .hero-media { top: 84px; border-radius: 19px; }
  .hero-slide__inner { padding-top: calc(110px + (100vw - 28px) * .5628); }
  .hero-content { padding: 0; }
  .editorial-board { min-height: 520px; }
  .editorial-main-frame { top: 14%; left: 2%; width: 96%; padding: 6px; border-radius: 20px; }
  .editorial-main-frame .editorial-main { border-radius: 14px; }
  .editorial-card { padding: 7px; }
  .editorial-card img { width: 88px; height: auto; }
  .editorial-card--three img { width: 118px; }
  .editorial-main-frame figcaption,
  .editorial-card figcaption { padding: 7px 4px 1px; font-size: .56rem; }
  .product-front { padding: 8px 8px 74px; }
  .product-image-btn { height: auto; }
  .product-back { padding: 27px 24px 82px; }
  .fabric-samples { gap: 8px; }
  .garment-rack { inset: 66px 6px 172px; gap: 5px; }
  .garment-rack img { border-radius: 12px; }
  .flip-toggle { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-media,
  .tilt-surface:not(.reveal),
  .tilt-surface.reveal.is-visible { transform: none !important; }
}
