/* =====================================================
   LOMAVEIL — LUXURY STOCKINGS
   Complete Stylesheet
   ===================================================== */

/* ── DESIGN TOKENS ── */
:root {
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0ede8;
  --text-muted: rgba(240, 237, 232, 0.55);
  --text-dim: rgba(240, 237, 232, 0.3);
  --accent: #c9a96e;
  --accent-light: #e4c89a;
  --accent-dark: #9e7a45;
  --white: #ffffff;
  --nav-bg: rgba(10, 10, 10, 0.85);
  --logo-filter: invert(1) brightness(1.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.4);
  --radius: 2px;
  --radius-lg: 6px;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  --trans: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans-fast: 0.2s ease;
  --navbar-h: 72px;
  /* Safe area insets — fallback for non-notched devices */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Viewport height fallback: svh (small viewport) with vh fallback */
  --vh100: 100vh;
}

[data-theme="light"] {
  --bg: #faf9f7;
  --bg-secondary: #f2f0ec;
  --bg-card: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.08);
  --text: #1a1714;
  --text-muted: rgba(26, 23, 20, 0.55);
  --text-dim: rgba(26, 23, 20, 0.3);
  --nav-bg: rgba(250, 249, 247, 0.88);
  --logo-filter: none;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
  cursor: none;
  /* Safe area for notched phones */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  /* Better touch scrolling */
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%; /* Prevent font inflation on rotation */
  text-size-adjust: 100%;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: none;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ── WEBGL CANVAS ── */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.80;
  transition: opacity 0.5s ease;
  transform: translateZ(0);
  will-change: opacity;
  contain: layout paint size;
}

[data-theme="light"] #webgl-canvas {
  opacity: 0.85;
}

/* ── PRELOADER ── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.preloader__logo {
  width: 220px;
  filter: invert(1) brightness(1.2);
  animation: logoPulse 1.6s ease-in-out infinite;
}

@keyframes logoPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.preloader__bar {
  width: 240px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.preloader__fill {
  height: 100%;
  background: #C3A976;
  width: 0%;
  transition: width 0.1s ease;
}

.preloader__text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  scale: 1;
  transition: scale 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.2s ease;
  will-change: translate;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  scale: 1;
  transition: scale 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease;
  will-change: translate;
}

body.cursor-hover .cursor {
  scale: 2.5;
  background: var(--accent-light);
}

body.cursor-hover .cursor-follower {
  scale: 1.66;
  border-color: rgba(201, 169, 110, 0.2);
}

/* Hide custom cursor on mobile/touch devices */
@media (max-width: 768px), (pointer: coarse) {
  .cursor,
  .cursor-follower {
    display: none !important;
  }
  body {
    cursor: default !important;
  }
  a, button, .product-card, .lookbook__cell, .filter-tab, .color-option, .size-option, .qty-btn, .zoom-btn {
    cursor: pointer !important;
  }
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 2rem;
  right: 2rem;
  z-index: 1000;
  height: 64px;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  /* Promote to compositor layer: backdrop-filter is isolated from page scroll repaints */
  transform: translateZ(0);
  will-change: transform;
}

[data-theme="light"] .navbar {
  background: rgba(250, 249, 247, 0.4);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
  top: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(250, 249, 247, 0.85);
  border-color: rgba(0, 0, 0, 0.15);
}

.navbar__container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.navbar__logo {
  height: 28px;
  width: auto;
  filter: var(--logo-filter);
  transition: var(--trans);
}

.navbar__logo:hover {
  opacity: 0.75;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 769px) {
  .navbar__links {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar__hamburger {
    display: none;
  }

  /* Narrow centered pill header on desktop */
  .navbar {
    left: 50%;
    right: auto;
    width: min(920px, calc(100vw - 4rem));
    transform: translateX(-50%) translateZ(0);
  }
}

.navbar__link {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-muted);
  position: relative;
  transition: color var(--trans-fast);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--trans);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

@media (max-width: 600px) {
  .navbar {
    top: 1rem;
    left: 1rem;
    right: 1rem;
    height: 52px;
  }
  .navbar.scrolled {
    top: 0.75rem;
  }
  .navbar__container {
    padding: 0 1rem;
  }
  .navbar__logo {
    height: 22px;
  }
}

.theme-toggle {
  width: 42px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--border);
  transition: background var(--trans);
  overflow: hidden;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  left: 3px;
  transition: transform var(--trans);
}

[data-theme="light"] .theme-toggle::after {
  transform: translateX(20px);
}

.theme-toggle__icon {
  font-size: 0.7rem;
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--trans);
}

.theme-toggle__sun {
  margin-left: auto;
  opacity: 0;
}

.theme-toggle__moon {
  margin-right: auto;
}

[data-theme="light"] .theme-toggle__sun {
  opacity: 1;
}

[data-theme="light"] .theme-toggle__moon {
  opacity: 0;
}

.navbar__cart,
.navbar__wishlist {
  position: relative;
  color: var(--text);
  transition: color var(--trans-fast);
  display: flex;
  align-items: center;
}

.navbar__cart:hover,
.navbar__wishlist:hover {
  color: var(--accent);
}

.navbar__cart-count,
.navbar__wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: var(--trans);
}

.navbar__cart-count.visible,
.navbar__wishlist-count.visible {
  opacity: 1;
  transform: scale(1);
}

.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1200;
  position: relative;
}

.hamburger-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 22px;
  height: 14px;
}

.hamburger-line {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              background-color 0.3s ease;
  transform-origin: center right;
  will-change: transform, width, opacity;
}

.hamburger-line:nth-child(1) {
  width: 22px;
}

.hamburger-line:nth-child(2) {
  width: 14px;
}

.hamburger-line:nth-child(3) {
  width: 18px;
}

.navbar__hamburger:hover .hamburger-line {
  width: 22px;
  background: var(--accent);
}

/* Hamburguer Morph into an "X" when open */
.navbar__hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(4.5px) rotate(-45deg);
  width: 22px;
  transform-origin: center;
  background: var(--accent);
}

.navbar__hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.navbar__hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-4.5px) rotate(45deg);
  width: 22px;
  transform-origin: center;
  background: var(--accent);
}

/* ── SIDE PANEL NAVIGATION ── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(420px, 100%);
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height: tracks mobile browser chrome */
  background: transparent; /* Set to transparent to show WebGL container */
  z-index: 1100;
  padding: 7rem 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu__close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color var(--trans-fast), transform var(--trans-fast);
  cursor: none;
  z-index: 10;
}

.mobile-menu__close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--trans-fast), padding-left var(--trans);
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--accent);
}

.mobile-menu__link:hover {
  padding-left: 0.75rem;
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.mobile-menu__logo {
  width: 120px;
  height: auto;
  filter: var(--logo-filter);
  opacity: 0.85;
}

.mobile-menu__tagline {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu__overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn--primary {
  background: var(--accent);
  color: #000;
}

.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(201, 169, 110, 0.25);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--light {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
}

.btn--light:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.btn--full {
  width: 100%;
}

/* ── SECTION COMMON ── */
.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  padding: 0 1rem 4rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--navbar-h) + 1.5rem) 2.5rem 3rem;
  gap: 2.25rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6.2vw, 5.2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}

.hero__title--italic {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Landscape Image Wrapper */
.hero__image-area {
  width: 100%;
  max-width: min(820px, 78vh);
  margin: 0 auto;
}

.hero__effects-container {
  position: relative;
  width: 100%;
}

.hero__image-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  height: min(68vh, 740px);
  max-height: 740px;
  min-height: 420px;
  width: 100%;
}

/* Ambient Sparkles Styling */
.ambient-sparkle {
  position: absolute;
  pointer-events: none;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: var(--size, 14px);
  opacity: 0;
  z-index: 4;
  will-change: transform, opacity;
  animation: roamFloat var(--duration, 6s) ease-in-out infinite alternate;
}

@keyframes roamFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.1;
  }

  50% {
    opacity: var(--max-opacity, 0.75);
  }

  100% {
    transform: translate(var(--tx, 40px), var(--ty, -40px)) rotate(var(--tr, 180deg));
    opacity: 0.1;
  }
}

.hero__image-wrapper {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 38%, rgba(201, 169, 110, 0.16), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 42%, rgba(201, 169, 110, 0.075));
  border: 1px solid rgba(201, 169, 110, 0.16);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.hero__image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%),
    radial-gradient(circle at var(--hero-glow-x, 50%) var(--hero-glow-y, 50%), rgba(228, 200, 154, 0.16), transparent 24%);
  z-index: 3;
  /* Elevated to sit on top of both image layers */
  pointer-events: none;
}

.hero__image {
  position: relative;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center center;
  transform: translate3d(0, var(--hero-img-y, 0px), 0) scale(var(--hero-img-scale, 1));
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.22));
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
@media (hover: hover) {
  .hero__image-wrapper:hover .hero__image {
    --hero-img-scale: 1.025;
  }
}

.hero__image--base {
  display: block;
  z-index: 1;
}

.hero__image--reveal {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  will-change: mask-image, -webkit-mask-image;

  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.28)) saturate(1.05);

  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;

  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;

  mask-position: 0px 0px;
  -webkit-mask-position: 0px 0px;

  /* Default mask on load is 0px radius (hidden) */
  mask-image: radial-gradient(circle 0px at 0px 0px, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 0px at 0px 0px, transparent 100%);
}

.hero__image-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 100px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  z-index: 2;
}

.hero__image-badge img {
  height: auto;
  filter: invert(1) brightness(1.2);
}

/* ── REVEAL ANIMATIONS ── */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── MARQUEE STRIP ── */
.marquee-strip {
  position: relative;
  z-index: 10;
  background: var(--accent);
  padding: 0.85rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  perspective: 1200px;
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: marqueeScroll 26s linear infinite;
  transform-origin: center center;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  flex-shrink: 0;
}

.marquee-group span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #000000;
  font-weight: 600;
  user-select: none;
}

.marquee-dot {
  color: rgba(0, 0, 0, 0.45) !important;
  font-size: 0.65rem;
}

@keyframes marqueeScroll {
  0% {
    transform: translate3d(0, 0, 0) skewX(var(--marquee-skew, 0deg)) scale(var(--marquee-scale, 1));
  }

  100% {
    transform: translate3d(-50%, 0, 0) skewX(var(--marquee-skew, 0deg)) scale(var(--marquee-scale, 1));
  }
}

/* ── CRAFTSMANSHIP HOTSPOT TOUR ── */
.craftsmanship {
  position: relative;
  z-index: 1;
  padding: 8rem 2.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.craftsmanship__container {
  max-width: 1200px;
  margin: 0 auto;
}

.craftsmanship__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

/* Hotspot Visual styling */
.craftsmanship__visual-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.craftsmanship__visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #111;
  aspect-ratio: 4/5;
}

.craftsmanship__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hotspots */
.hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--accent-light);
  cursor: pointer;
  z-index: 5;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
  padding: 0;
  box-shadow: 0 0 10px rgba(201, 169, 110, 0.5);
}

.hotspot:hover,
.hotspot.active {
  transform: scale(1.25);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.hotspot__pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  z-index: -1;
  animation: pulseHotspot 2s infinite ease-out;
  pointer-events: none;
}

.hotspot.active .hotspot__pulse {
  background: #fff;
}

@keyframes pulseHotspot {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Coordinates for hotspots overlaying hero-legs-stocking.png */
.hotspot--waist {
  top: 10%;
  left: 55%;
}

.hotspot--thigh {
  top: 25%;
  left: 50%;
}

.hotspot--knee {
  top: 48%;
  left: 46%;
}

.hotspot--toe {
  top: 86%;
  left: 45%;
}

/* Info Cards Column styling */
.craftsmanship__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.craftsmanship-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s ease, box-shadow 0.4s ease;
}

.craftsmanship-card:hover {
  border-color: rgba(201, 169, 110, 0.2);
  transform: translateX(6px);
}

.craftsmanship-card.active {
  border-color: var(--accent);
  background: rgba(201, 169, 110, 0.05);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.1);
  transform: translateX(10px);
}

.craftsmanship-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.craftsmanship-card__num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.craftsmanship-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
}

.craftsmanship-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  transition: color 0.3s ease;
}

.craftsmanship-card.active p {
  color: var(--text);
}

/* Responsive Craftsmanship */
@media (max-width: 900px) {
  .craftsmanship {
    padding: 5rem 1.5rem;
  }
  /* Keep side-by-side on tablet — just tighten the gap */
  .craftsmanship__grid {
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
  }
  .craftsmanship__visual {
    max-width: 100%;
  }
  .craftsmanship-card.active {
    transform: translateX(4px);
  }
  .craftsmanship-card:hover {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .craftsmanship__grid {
    gap: 1.2rem;
    grid-template-columns: 1fr 1fr;
  }
  .craftsmanship-card {
    padding: 1rem;
  }
  .craftsmanship-card h3 {
    font-size: 0.9rem;
  }
  .craftsmanship-card p {
    font-size: 0.78rem;
    line-height: 1.6;
  }
  .craftsmanship-card__num {
    font-size: 0.78rem;
  }
}

/* Only stack on very small phones */
@media (max-width: 440px) {
  .craftsmanship__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .craftsmanship-card.active {
    transform: translateY(4px);
  }
  .craftsmanship-card:hover {
    transform: translateY(0);
  }
}

/* ── COLLECTION SECTION ── */
.collection {
  position: relative;
  z-index: 1;
  padding: 8rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-tab {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--text-muted);
  transition: var(--trans);
  font-family: var(--font-sans);
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s ease, border-color 0.28s ease;
  cursor: none;
  will-change: transform;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, transparent 40%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.product-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #121212;
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translateZ(0) scale(1);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(201, 169, 110, 0.15);
    border-color: rgba(201, 169, 110, 0.35);
  }

  .product-card:hover::after {
    opacity: 1;
  }

  .product-card:hover .product-card__img-wrap img {
    transform: translateZ(0) scale(1.06);
  }

  .product-card:hover .product-card__overlay {
    opacity: 1;
  }
}

.product-card__quick-add {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #000;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.3);
  transition: all 0.2s ease;
}

.product-card__quick-add:hover {
  background: #ffffff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #000;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 40px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-card__wishlist {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.product-card__wishlist:hover,
.product-card__wishlist.active {
  background: rgba(201, 169, 110, 0.25);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
}

.product-card__body {
  padding: 1.25rem 1.1rem 1.1rem;
}

.product-card__category {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-serif);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.product-card__stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.product-card__score {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.collection__cta {
  text-align: center;
  padding-top: 4rem;
}

/* ── FEATURED / PARALLAX SECTION ── */
.featured {
  position: relative;
  z-index: 1;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured__parallax {
  position: absolute;
  inset: -20%;
  will-change: transform;
}

.featured__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.featured__content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  width: 100%;
  padding: 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 680px;
  margin-left: 5vw;
}

.featured__badge {
  width: 90px;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.featured__badge img {
  filter: invert(1) brightness(1.2);
  height: auto;
}

.featured__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: white;
  line-height: 1.1;
}

.featured__title em {
  font-style: italic;
  color: var(--accent-light);
}

.featured__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 500px;
  font-weight: 300;
}

.btn--featured {
  align-self: flex-start;
  padding: 1.05rem 2.4rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0ede8 100%);
  color: #0a0a0a;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 169, 110, 0.25);
  border: 1px solid rgba(201, 169, 110, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--featured .btn__icon {
  font-size: 0.75rem;
  color: var(--accent-dark);
  transition: transform 0.4s ease, color 0.4s ease;
  display: inline-block;
  margin-left: 0.3rem;
}

.btn--featured:hover {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 45px rgba(201, 169, 110, 0.45);
}

.btn--featured:hover .btn__icon {
  color: #000000;
  transform: translateX(4px) rotate(45deg);
}

/* ── LOOKBOOK ── */
.lookbook {
  position: relative;
  z-index: 1;
  padding: 8rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.lookbook__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.lookbook__cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  cursor: none;
}

.lookbook__cell--tall {
  grid-row: span 2;
  aspect-ratio: unset;
}

.lookbook__cell--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.lookbook__cell--rect {
  grid-row: unset;
  grid-column: unset;
  aspect-ratio: 3/4;
}

.lookbook__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lookbook__hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

@media (hover: hover) {
  .lookbook__cell:hover img {
    transform: scale(1.06);
  }

  .lookbook__cell:hover .lookbook__hover {
    opacity: 1;
  }
}

.lookbook__hover span {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  backdrop-filter: blur(4px);
}

/* ── ABOUT ── */
.about {
  position: relative;
  z-index: 1;
  padding: 8rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.about__image-stack {
  position: relative;
  height: 600px;
}

.about__img {
  position: absolute;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}

.about__img--back {
  width: 72%;
  height: 85%;
  top: 0;
  right: 0;
}

.about__img--front {
  width: 56%;
  height: 65%;
  bottom: 0;
  left: 0;
  border: 4px solid var(--bg);
  z-index: 1;
}

.about__logo-stamp {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  z-index: 2;
}

.about__logo-stamp img {
  filter: var(--logo-filter);
  height: auto;
}

.about__text-col {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.about__para {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.9;
  font-weight: 300;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about__feature-icon {
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.about__feature div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about__feature strong {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.about__feature span {
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* ── CONTACT SECTION ── */
.contact {
  position: relative;
  z-index: 1;
  padding: 8rem 2.5rem;
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact__logo {
  width: 160px;
  height: auto;
  filter: var(--logo-filter);
  margin-bottom: 0.5rem;
}

.contact__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact__info-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--trans-fast);
  letter-spacing: 0.05em;
}

.contact__info-item:hover {
  color: var(--accent);
}

.contact__socials {
  display: flex;
  gap: 1rem;
}

.contact__social {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--trans);
}

.contact__social:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── CONTACT FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.08);
}

.form-group select option {
  background: var(--bg-card);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  color: var(--accent);
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 0.05em;
  padding: 0.8rem;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius);
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer__top {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2.5rem 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo {
  width: 140px;
  height: auto;
  filter: var(--logo-filter);
}

.footer__tagline {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
}

.footer__links-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__links-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.footer__links-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--trans-fast);
}

.footer__links-col a:hover {
  color: var(--accent);
}

.footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── CART SIDEBAR ── */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height: keeps checkout footer reachable on mobile */
  background: transparent; /* Set to transparent to show WebGL container */
  border-left: 1px solid var(--border);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.cart-sidebar__header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
}

.cart-sidebar__close {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color var(--trans-fast);
}

.cart-sidebar__close:hover {
  color: var(--text);
}

.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 3rem 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item__img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-item__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
}

.cart-item__price {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

.cart-item__remove {
  font-size: 1rem;
  color: var(--text-dim);
  padding: 0.2rem;
  transition: color var(--trans-fast);
}

.cart-item__remove:hover {
  color: #e05555;
}

.cart-sidebar__footer {
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}

#cartTotal {
  color: var(--accent);
  font-size: 1.1rem;
  font-family: var(--font-serif);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 0.9rem 2rem;
  border-radius: 40px;
  font-size: 0.82rem;
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--navbar-h) + 2rem);
  }

  .hero__image-frame {
    height: min(58vh, 560px);
    min-height: 340px;
    max-height: 560px;
  }

  .stats__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem 2rem;
  }

  .about__image-stack {
    height: 380px;
  }

  .contact {
    padding: 5rem 2rem;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .lookbook {
    padding: 5rem 2rem;
  }

  .lookbook__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lookbook__cell--wide {
    grid-column: span 1;
    aspect-ratio: 3/4;
  }

  .lookbook__cell--tall {
    grid-row: span 1;
    aspect-ratio: 3/4;
  }

  .collection {
    padding: 5rem 2rem;
  }

  .featured__content {
    margin-left: 2rem;
    padding: 0 1.5rem;
    max-width: 520px;
  }

  .section-header {
    padding: 0 1rem 3rem;
  }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {
  .navbar__container {
    padding: 0 1.2rem;
    gap: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 2.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.2rem 1.5rem;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .about {
    padding: 4rem 1.5rem;
    gap: 2.5rem;
  }

  .about__image-stack {
    height: 320px;
  }

  .about__img--back {
    width: 75%;
    height: 82%;
  }

  .about__img--front {
    width: 58%;
    height: 62%;
  }

  .contact {
    padding: 4rem 1.5rem;
  }

  .contact__inner {
    gap: 2.5rem;
  }

  .contact__logo {
    width: 130px;
  }

  .collection {
    padding: 4rem 1.5rem;
  }

  .lookbook {
    padding: 4rem 1.5rem;
  }

  .featured {
    height: 75vh;
    min-height: 480px;
  }

  .featured__content {
    margin-left: 0;
    padding: 0 1.5rem;
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .featured__overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0.85) 100%);
  }

  .featured__badge {
    margin: 0 auto 0.5rem;
  }

  .featured__desc {
    text-align: center;
  }

  .craftsmanship {
    padding: 4rem 1.5rem;
  }

  .section-header {
    padding: 0 0.5rem 2.5rem;
  }

  .filter-tabs {
    margin-bottom: 2.5rem;
    gap: 0.4rem;
  }

  .filter-tab {
    padding: 0.5rem 1rem;
    font-size: 0.68rem;
  }

  .showroom {
    padding: 4rem 1.5rem;
  }
}

/* ── SMALL MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  .stats__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .product-card__name {
    font-size: 1rem;
  }

  .lookbook__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .lookbook__cell--tall {
    grid-row: unset;
    aspect-ratio: 3/4;
  }

  .lookbook__cell--wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }

  .hero {
    gap: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }

  .hero__title {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .hero__actions {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.85rem 1.6rem;
    font-size: 0.7rem;
  }

  .collection {
    padding: 3rem 1rem;
  }

  .lookbook {
    padding: 3rem 1rem;
  }

  .about {
    padding: 3rem 1rem;
    gap: 2rem;
  }

  .about__image-stack {
    height: 260px;
  }

  .contact {
    padding: 3rem 1rem;
  }

  .craftsmanship {
    padding: 3rem 1rem;
  }

  .showroom {
    padding: 3rem 1rem;
  }

  .footer__top {
    padding: 2.5rem 1rem 2rem;
  }

  .section-title {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }

  .section-header {
    padding: 0 0 2rem;
  }

  .featured {
    height: 65vh;
    min-height: 400px;
  }

  .featured__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .craftsmanship-card {
    padding: 1.2rem;
  }

  .craftsmanship-card h3 {
    font-size: 0.95rem;
  }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

/* ── SELECTION ── */
::selection {
  background: rgba(201, 169, 110, 0.2);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════
   HEALTH BAR
   ═══════════════════════════════════════════════════ */
.health-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: 1001;
}

.health-bar__fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,
      var(--accent-dark) 0%,
      var(--accent) 50%,
      var(--accent-light) 100%);
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.3s ease,
    background 0.5s ease;
  filter: drop-shadow(0 0 6px rgba(201, 169, 110, 0.8));
}

/* Low HP — pulsing red */
.health-bar__fill.hp-low {
  background: linear-gradient(90deg, #6b1a1a, #c94040, #e05555);
  filter: drop-shadow(0 0 8px rgba(224, 85, 85, 0.9));
  animation: hpPulse 0.8s ease-in-out infinite;
}

/* Healing — green flash */
.health-bar__fill.hp-heal {
  background: linear-gradient(90deg, #1a5c2e, #2d9e52, var(--accent-light));
  filter: drop-shadow(0 0 10px rgba(45, 158, 82, 0.9));
}

/* Overheal — golden shimmer */
.health-bar__fill.hp-overheal {
  background: linear-gradient(90deg,
      var(--accent-dark),
      var(--accent),
      var(--accent-light),
      #fff6d4,
      var(--accent-light),
      var(--accent));
  background-size: 200% 100%;
  animation: hpOverhealShimmer 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(228, 200, 154, 1));
}

/* Critical — full-bar flash red */
.health-bar__fill.hp-critical {
  background: linear-gradient(90deg, #3b0000, #c94040, #ff6b6b);
  filter: drop-shadow(0 0 14px rgba(255, 107, 107, 1));
  animation: hpCritical 0.4s ease-in-out infinite;
}

.health-bar__sheen {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: hpSheen 3s ease-in-out infinite 1s;
}

@keyframes hpPulse {

  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(224, 85, 85, 0.7));
  }

  50% {
    opacity: 0.65;
    filter: drop-shadow(0 0 16px rgba(224, 85, 85, 1));
  }
}

@keyframes hpOverhealShimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@keyframes hpCritical {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes hpSheen {
  0% {
    left: -100%;
  }

  40% {
    left: 120%;
  }

  100% {
    left: 120%;
  }
}

/* ── HP BADGE ── */
.hp-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
  white-space: nowrap;
}

.hp-badge__icon {
  color: var(--accent);
  font-size: 0.6rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hp-badge__label {
  text-transform: uppercase;
  color: var(--text-dim);
}

.hp-badge__value {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--accent);
  transition: color 0.3s ease;
  min-width: 1.5ch;
  text-align: right;
}

.hp-badge__max {
  color: var(--text-dim);
  font-size: 0.65rem;
}

/* HP badge states */
.hp-badge.hp-badge--heal {
  border-color: rgba(45, 158, 82, 0.6);
  box-shadow: 0 0 20px rgba(45, 158, 82, 0.2);
}

.hp-badge.hp-badge--heal .hp-badge__value {
  color: #2d9e52;
}

.hp-badge.hp-badge--heal .hp-badge__icon {
  color: #2d9e52;
  transform: scale(1.3);
}

.hp-badge.hp-badge--low {
  border-color: rgba(224, 85, 85, 0.6);
  box-shadow: 0 0 20px rgba(224, 85, 85, 0.2);
  animation: badgePulse 1s ease-in-out infinite;
}

.hp-badge.hp-badge--low .hp-badge__value {
  color: #e05555;
}

.hp-badge.hp-badge--low .hp-badge__icon {
  color: #e05555;
}

.hp-badge.hp-badge--overheal {
  border-color: rgba(228, 200, 154, 0.8);
  box-shadow: 0 0 24px rgba(228, 200, 154, 0.35);
}

.hp-badge.hp-badge--overheal .hp-badge__value {
  color: var(--accent-light);
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(224, 85, 85, 0.2);
  }

  50% {
    box-shadow: 0 0 24px rgba(224, 85, 85, 0.5);
  }
}

/* ── HP FLOATING NOTIFICATION ── */
.hp-float {
  position: fixed;
  z-index: 3000;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 300;
  pointer-events: none;
  animation: hpFloat 1.4s ease-out forwards;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hp-float--heal {
  color: #4ee882;
}

.hp-float--damage {
  color: #e05555;
}

.hp-float--max {
  color: var(--accent-light);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

@keyframes hpFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.8);
  }

  15% {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
  }

  70% {
    opacity: 1;
    transform: translateY(-36px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-60px) scale(0.9);
  }
}

/* ── CURSOR PARTICLES ── */
.cursor-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9996;
  font-size: 0.65rem;
  color: var(--accent);
  animation: particleFly 1s ease-out forwards;
  text-shadow: 0 0 6px currentColor;
}

@keyframes particleFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(0.4);
  }
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL — ENHANCED CLASSES
   ═══════════════════════════════════════════════════ */

/* Skew-up reveal (editorial feel) */
.reveal-skew {
  opacity: 0;
  transform: translateY(36px) skewY(1.5deg);
  /* Removed filter:blur — it forces GPU compositing & causes scroll jank */
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

.reveal-skew.visible {
  opacity: 1;
  transform: translateY(0) skewY(0deg);
}

/* Clip-path wipe reveal (title lines) */
.reveal-clip {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(12px);
  transition: opacity 0.6s ease,
    clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: clip-path, transform, opacity;
}

.reveal-clip.visible {
  opacity: 1;
  clip-path: inset(0 0% 0 0);
  transform: translateY(0);
}

/* Scale-up reveal (cards, stats) */
.reveal-scale {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  /* Removed filter:blur — GPU compositing overhead kills scroll performance */
  transition: opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children (parent wrapper) */
.stagger-children>* {
  opacity: 0;
  transform: translateY(24px);
  /* No filter:blur — compositor-only properties only */
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: transform, opacity;
}

.stagger-children.visible>* {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible>*:nth-child(1) {
  transition-delay: 0s;
}

.stagger-children.visible>*:nth-child(2) {
  transition-delay: 0.08s;
}

.stagger-children.visible>*:nth-child(3) {
  transition-delay: 0.16s;
}

.stagger-children.visible>*:nth-child(4) {
  transition-delay: 0.24s;
}

.stagger-children.visible>*:nth-child(5) {
  transition-delay: 0.32s;
}

.stagger-children.visible>*:nth-child(6) {
  transition-delay: 0.40s;
}

/* Scroll-linked motion — only opacity + vertical lift, no scale/rotate */
/* Keeping it to 2 compositor properties (transform, opacity) avoids layer promotion storms */
.scroll-motion {
  transform: translate3d(0, var(--scroll-lift, 0px), 0);
  opacity: var(--scroll-fade, 1);
  will-change: transform, opacity;
}

/* Tilt variant: add rotate only for lookbook cells (limited count) */
.scroll-motion--tilt {
  transform: translate3d(0, var(--scroll-lift, 0px), 0) rotate(var(--scroll-rotate, 0deg));
  transform-origin: center center;
}

/* ═══════════════════════════════════════════════════
   BACK TO TOP — CIRCULAR PROGRESS
   ═══════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  pointer-events: none;
  cursor: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.back-to-top:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.25);
}

.back-to-top:hover .back-to-top__arrow {
  stroke: var(--accent);
}

/* SVG progress ring */
.back-to-top__progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2;
}

.back-to-top__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.2s ease;
  filter: drop-shadow(0 0 4px rgba(201, 169, 110, 0.6));
}

.back-to-top__arrow {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: stroke 0.3s ease;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }

  .hp-badge {
    display: none;
  }

  .hero {
    padding: calc(var(--navbar-h) + 1.5rem) 1.2rem 2rem;
    gap: 2rem;
  }

  .hero__image-frame {
    height: min(54vh, 500px);
    min-height: 310px;
    max-height: 500px;
  }

  .hero__image-area {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__image-frame {
    height: min(48vh, 410px);
    min-height: 280px;
    max-height: 410px;
  }

  .ambient-sparkle {
    display: none;
  }
}

/* ── HERO IMAGE FRAME GLOW BORDER ── */
.hero__effects-container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg,
      rgba(201, 169, 110, 0.35) 0%,
      transparent 40%,
      rgba(201, 169, 110, 0.15) 60%,
      transparent 80%,
      rgba(201, 169, 110, 0.25) 100%);
  pointer-events: none;
  z-index: 5;
  animation: frameGlow 6s ease-in-out infinite alternate;
}

@keyframes frameGlow {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }

  100% {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  #webgl-canvas,
  .ambient-sparkle,
  .cursor-particle {
    display: none !important;
  }

  .reveal-text,
  .fade-in-up,
  .fade-in-left,
  .fade-in-right,
  .reveal-skew,
  .reveal-clip,
  .reveal-scale,
  .stagger-children>*,
  .scroll-motion,
  .scroll-motion--tilt {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}

/* ── LENIS SMOOTH SCROLL STYLES ── */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ── IMMERSIVE PARALLAX TYPOGRAPHY ── */
.scroll-bg-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 16vw;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text);
  opacity: 0.024;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  z-index: 0;
  will-change: transform;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .scroll-bg-text {
  opacity: 0.046;
}

.about,
.lookbook {
  overflow: hidden;
  /* Prevent floating text horizontal overflow */
}

/* ── ZOOM ON SCROLL ── */
.zoom-on-scroll {
  will-change: transform;
  transform: scale(var(--scroll-zoom, 1.12));
  /* No transition — scroll-driven transforms must never have CSS transitions.
     The transition fights requestAnimationFrame updates causing stuttering. */
}

/* =====================================================
   PRODUCT DETAIL MODAL
   ===================================================== */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.product-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-modal.open .product-modal__overlay {
  opacity: 1;
}

.product-modal__card {
  position: relative;
  z-index: 2;
  width: min(960px, 92vw);
  max-height: 88vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-secondary);
  -webkit-overflow-scrolling: touch;
}

.product-modal.open .product-modal__card {
  transform: translateY(0) scale(1);
}

.product-modal__card::-webkit-scrollbar {
  width: 6px;
}
.product-modal__card::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
.product-modal__card::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.product-modal__card::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.product-modal__close {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: color var(--trans-fast), transform var(--trans-fast);
  cursor: none;
  z-index: 10;
}

.product-modal__close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.product-modal__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  min-height: 520px;
}

.product-modal__image-col {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 169, 110, 0.08), transparent 70%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(201, 169, 110, 0.04));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  overflow: hidden;
}

.product-modal__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 110, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.product-modal__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-modal__img-wrap:hover img {
  transform: scale(1.08);
}

.product-modal__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 40px;
  font-weight: 500;
  z-index: 2;
}



.product-modal__info-col {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.product-modal__category {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.product-modal__name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
}

.product-modal__price {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  font-family: var(--font-serif);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.product-modal__description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

.product-modal__options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-modal__option-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.option-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.color-options {
  display: flex;
  gap: 0.8rem;
}

.color-option {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  cursor: none;
  position: relative;
  transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.color-option::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color var(--trans-fast);
}

.color-option.active::after {
  border-color: var(--accent);
}

.color-option:hover {
  transform: scale(1.1);
}

.size-options {
  display: flex;
  gap: 0.6rem;
}

.size-option {
  min-width: 42px;
  height: 36px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: var(--trans-fast);
}

.size-option:hover,
.size-option.active {
  border-color: var(--accent);
  color: var(--accent);
}

.size-option.active {
  background: rgba(201, 169, 110, 0.08);
}

.product-modal__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 48px;
  overflow: hidden;
  background: var(--bg-glass);
}

.qty-btn {
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: none;
  transition: color var(--trans-fast), background var(--trans-fast);
}

.qty-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.qty-val {
  min-width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.btn--modal-add {
  flex-grow: 1;
  height: 48px;
  padding: 0 2rem;
}

.product-modal__wishlist-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.1rem;
  cursor: none;
  transition: var(--trans);
  background: var(--bg-glass);
}

.product-modal__wishlist-btn:hover,
.product-modal__wishlist-btn.active {
  background: rgba(201, 169, 110, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.product-modal__meta {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-modal__meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --- PRODUCT ZOOM STYLES --- */
.product-zoom-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 0.35rem;
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-fast), visibility var(--trans-fast);
}

.product-modal__img-wrap:hover .product-zoom-controls,
.product-modal__img-wrap.zoomed .product-zoom-controls {
  opacity: 1;
  visibility: visible;
}

.zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans-fast), border-color var(--trans-fast), transform var(--trans-fast);
}

.zoom-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: scale(1.05);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.product-zoom-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.product-modal__img-wrap.zoomed .product-zoom-hint {
  opacity: 1;
}

.product-modal__img-wrap.zoomed.dragging .product-zoom-hint {
  opacity: 0;
}

.product-modal__img-wrap img {
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-modal__img-wrap.dragging img {
  transition: none !important;
}

.product-modal__img-wrap.zoomed {
  cursor: grab;
}

.product-modal__img-wrap.zoomed.dragging {
  cursor: grabbing;
}

/* Responsive Modal Grid */
@media (max-width: 860px) {
  .product-modal__grid {
    grid-template-columns: 1fr;
  }
  
  .product-modal__image-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
  }
  
  .product-modal__info-col {
    padding: 2rem 2rem 3rem;
  }
  
  .product-modal__img-wrap {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .product-modal {
    align-items: flex-end; /* Standard luxury bottom-sheet alignment */
  }
  
  .product-modal__card {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    transform: translateY(100%) scale(1);
    margin-bottom: 0;
  }
  
  .product-modal.open .product-modal__card {
    transform: translateY(0) scale(1);
  }
  
  .product-modal__image-col {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .product-modal__info-col {
    padding: 1.5rem 1.5rem 2.5rem;
    gap: 1.2rem;
  }
  
  .product-modal__name {
    font-size: 1.8rem;
  }
  
  .product-modal__img-wrap {
    max-width: 220px;
  }
  
  .product-zoom-controls {
    opacity: 1;
    visibility: visible;
    bottom: 0.5rem;
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .product-modal__actions {
    flex-wrap: wrap;
  }
  
  .quantity-selector {
    width: 100%;
  }
  
  .btn--modal-add {
    width: calc(100% - 60px);
  }
}

/* =====================================================
   SIZE & DENIER GUIDE MODAL
   ===================================================== */
.size-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.size-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.size-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
}

.size-modal__card {
  position: relative;
  z-index: 2;
  width: min(840px, 92vw);
  max-height: 88vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow-y: auto;
  padding: 3rem 2.5rem;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .size-modal {
    align-items: flex-end;
  }
  .size-modal__card {
    width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    padding: 2.5rem 1.5rem 2rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .size-modal.open .size-modal__card {
    transform: translateY(0);
  }
}

.size-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: color var(--trans-fast), transform var(--trans-fast);
  cursor: none;
  z-index: 10;
}

.size-modal__close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.size-modal__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.size-modal__tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  justify-content: center;
}

.size-tab {
  padding: 0.8rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--trans-fast), border-color var(--trans-fast);
}

.size-tab:hover,
.size-tab.active {
  color: var(--accent);
}

.size-tab.active {
  border-color: var(--accent);
}

.size-tab-content {
  display: none;
}

.size-tab-content.active {
  display: block;
}

.tab-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
}

/* Sizing Finder / Calculator Grid Layout */
.finder-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .finder-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.finder-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.finder-control {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.finder-control label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text);
  font-weight: 500;
}

.finder-control label span {
  color: var(--accent);
  font-weight: 600;
}

.finder-control input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}

.finder-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--accent-light);
  cursor: grab;
  transition: transform var(--trans-fast);
}

.finder-control input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
}

.finder-result {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.finder-result span {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.finder-result-badge {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 400;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--accent);
  border-radius: 50%;
}

.finder-chart-wrap {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
}

.finder-chart-header {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Sizing Matrix Grid Styles */
.finder-grid-container {
  display: grid;
  grid-template-columns: 40px repeat(4, 1fr);
  gap: 4px;
}

.grid-cell {
  height: 34px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.grid-cell.label-cell {
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
}

.grid-cell.size-cell {
  font-weight: 600;
  color: var(--text-muted);
}

.grid-cell.size-cell.active-size {
  background: rgba(201, 169, 110, 0.16);
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.25);
}

/* Denier Visualizer Styles */
.denier-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .denier-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.denier-visualizer {
  display: flex;
  justify-content: center;
}

.denier-preview-container {
  position: relative;
  width: 190px;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.denier-preview-skin {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffd6bc 0%, #ebbfa6 100%);
  z-index: 1;
}

.denier-preview-stocking {
  position: absolute;
  inset: 0;
  background-color: #111111;
  opacity: 0.15;
  z-index: 2;
  mix-blend-mode: multiply;
  transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Elegant stocking weave pattern */
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.4) 1px, transparent 1px);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
}

.denier-preview-label {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  white-space: nowrap;
}

.denier-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.denier-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.denier-slider-wrap label {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text);
}

.denier-slider-wrap label span {
  color: var(--accent);
  font-weight: 600;
}

.denier-slider-wrap input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}

.denier-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--accent-light);
  cursor: grab;
  transition: transform var(--trans-fast);
}

.denier-slider-wrap input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
}

.denier-info {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.denier-info h4 {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.denier-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =====================================================
   SHOPPING CART ENHANCEMENTS
   ===================================================== */
.cart-progress {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-glass);
}

.cart-progress__text {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.cart-progress__bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.cart-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cart drawer upsell section */
.cart-sidebar__upsell {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.cart-upsell-header {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.cart-upsell-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
}

.cart-upsell-img {
  width: 48px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cart-upsell-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-upsell-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.cart-upsell-price {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}

#btnUpsellAdd {
  cursor: pointer !important;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans-fast), color var(--trans-fast);
}

#btnUpsellAdd:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* Fly to cart item animation stylesheet */
.cart-fly-item {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 0 12px var(--accent);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
  transform: translate(-50%, -50%) scale(1);
}

/* NAVBAR CART BOUNCE ANIMATION */
.navbar__cart.bounce {
  animation: cartBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* ═══════════════════════════════════════════════════
   PRODUCT CARD SPOTLIGHT BORDER GLOW
   ═══════════════════════════════════════════════════ */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    280px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(201, 169, 110, 0.15) 0%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.product-card:hover::before {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   INTERACTIVE DENIER SHOWROOM
   ═══════════════════════════════════════════════════ */
.showroom {
  position: relative;
  padding: 8rem 2rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.showroom__container {
  max-width: 1200px;
  margin: 0 auto;
}

.showroom__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Slider Column */
.showroom__slider-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.showroom__comparison-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  cursor: ew-resize;
  user-select: none;
  background: #151515;
}

.showroom__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.showroom__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.showroom__layer--overlay {
  z-index: 2;
  clip-path: inset(0 0 0 50%); /* Start at 50% slider position */
}

.showroom__layer--overlay.smooth {
  transition: clip-path 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showroom__layer-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1rem;
  z-index: 5;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showroom__layer-label--right {
  left: auto;
  right: 1rem;
  color: var(--accent);
}

/* Mobile: stack labels vertically to avoid collision */
@media (max-width: 600px) {
  .showroom__layer-label {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.55rem;
    bottom: 0.75rem;
    left: 0.6rem;
    max-width: 42%;
  }

  .showroom__layer-label--right {
    right: 0.6rem;
    bottom: 0.75rem;
  }
}

@media (max-width: 400px) {
  .showroom__layer-label {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.45rem;
    bottom: 2.6rem;
    left: 0.5rem;
    max-width: 55%;
  }

  .showroom__layer-label--right {
    right: auto;
    left: 0.5rem;
    bottom: 0.6rem;
    color: var(--accent);
  }
}

.showroom__slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* Sync with clip-path 50% */
  width: 2px;
  background: var(--accent);
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.showroom__slider-handle.smooth {
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showroom__slider-line {
  width: 100%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.showroom__slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.75rem;
  box-shadow: 0 0 15px rgba(201, 169, 110, 0.4);
  cursor: grab;
  pointer-events: auto;
  transition: transform 0.2s ease, background 0.2s ease;
}

.showroom__slider-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent);
  color: #000;
}

.showroom__slider-button:active {
  cursor: grabbing;
}

/* Info Column */
.showroom__info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.showroom__title {
  font-size: 2.8rem;
  font-family: var(--font-title);
  font-weight: 300;
  line-height: 1.15;
}

.showroom__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.showroom__controls {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.showroom__tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.showroom-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.showroom-tab.active,
.showroom-tab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 500;
}

/* Stats */
.showroom__stats {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.showroom__stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.showroom__stat-label {
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.showroom__stat-value {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.showroom__stat-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.showroom__stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Details Box */
.showroom__details {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.showroom__details h4 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.showroom__details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Responsive Showroom */
@media (max-width: 900px) {
  .showroom {
    padding: 5rem 1.5rem;
  }
  /* Keep side-by-side on tablet */
  .showroom__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .showroom__title {
    font-size: 2rem;
  }
  .showroom__desc {
    font-size: 0.88rem;
  }
  .showroom__comparison-container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .showroom__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .showroom__title {
    font-size: 1.5rem;
  }
  .showroom__desc {
    font-size: 0.82rem;
    line-height: 1.7;
  }
  .showroom__tabs {
    gap: 0.3rem;
  }
  .showroom-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }
  .showroom__details {
    padding: 1rem;
  }
  .showroom__details h4 {
    font-size: 0.85rem;
  }
  .showroom__details p {
    font-size: 0.78rem;
  }
  .showroom__info-col {
    gap: 1rem;
  }
  .showroom__controls {
    gap: 1.2rem;
    margin-top: 0.5rem;
  }
}

/* Only stack on very small phones */
@media (max-width: 480px) {
  .showroom__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ═══════════════════════════════════════════════════
   UNIT TOGGLE — Metric / Imperial
   ═══════════════════════════════════════════════════ */
.unit-toggle-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 4px;
  width: fit-content;
}

.unit-toggle-btn {
  padding: 0.38rem 1.1rem;
  border-radius: 30px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: none;
  transition: background var(--trans-fast), color var(--trans-fast), box-shadow var(--trans-fast);
  white-space: nowrap;
}

.unit-toggle-btn.active {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 2px 12px rgba(201, 169, 110, 0.35);
}

.unit-toggle-btn:not(.active):hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════
   FLOATING ACTIONS BUBBLE
   ═══════════════════════════════════════════════════ */
.floating-actions {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .floating-actions {
  background: rgba(250, 249, 247, 0.4);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.floating-actions .theme-toggle {
  margin: 0;
}

@media (max-width: 600px) {
  .floating-actions {
    top: 1rem;
    right: 1rem;
    gap: 0.8rem;
    padding: 0.5rem 0.9rem;
  }
}

@media (max-width: 480px) {
  .floating-actions .hp-badge {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════
   FLOATING BRAND LOGO (WEST CORNER)
   ═══════════════════════════════════════════════════ */
.floating-brand {
  position: fixed;
  top: 1.5rem;
  left: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .floating-brand {
  background: rgba(250, 249, 247, 0.4);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.floating-brand__logo {
  height: 34px;
  width: auto;
  filter: var(--logo-filter);
  transition: opacity var(--trans);
}

.floating-brand:hover {
  transform: translateY(-2px);
}

.floating-brand:hover .floating-brand__logo {
  opacity: 0.75;
}

@media (max-width: 600px) {
  .floating-brand {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
  }
  .floating-brand__logo {
    height: 24px;
  }
}

/* ═══════════════════════════════════════════════════
   MODERN DYNAMIC TYPOGRAPHY EFFECTS
   ═══════════════════════════════════════════════════ */

/* 1. Metallic Shimmer Gradient */
.shimmer-text,
.hero__title--italic:not(.word-rotator-wrapper),
.word-rotator .word,
.section-title em,
.about__text-col h2 em,
.featured__title em {
  background: linear-gradient(135deg, #c9a96e 0%, #ffecbe 25%, #c9a96e 50%, #ffecbe 75%, #c9a96e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallicShimmer 6s linear infinite;
  display: inline-block;
  will-change: background-position;
}

@keyframes metallicShimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* 2. Word Rotator/Changer for Hero Title */
.word-rotator-wrapper {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.25em;
  line-height: 1.25em;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 0 0.1em;
}

.word-rotator {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
  height: 100%;
  width: 100%;
}

.word-rotator .word {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  filter: blur(4px);
  transform: translateY(15px) scale(0.95);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s step-end;
  white-space: nowrap;
}

.word-rotator .word.active {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
  transform: translateY(0) scale(1);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s step-start;
}

/* 3. Text Scramble Letter Styles */
.d-char {
  display: inline-block;
  font-family: monospace;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.85;
}

[data-scramble] {
  transition: color 0.3s ease;
}

/* ═══════════════════════════════════════════════════
   ADVANCED TYPOGRAPHY EFFECTS (PHASE 2)
   ═══════════════════════════════════════════════════ */

/* 1. Floating Text Sparkles on Hover */
.text-sparkle {
  position: absolute;
  pointer-events: none;
  color: #ffecbe;
  font-family: var(--font-sans);
  font-size: var(--size, 14px);
  z-index: 999;
  will-change: transform, opacity;
  animation: textSparkleAnim 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  text-shadow: 0 0 8px rgba(201, 169, 110, 0.6);
}

@keyframes textSparkleAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(45deg);
  }
  100% {
    transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -50px))) scale(0.3) rotate(var(--tr, 180deg));
    opacity: 0;
  }
}

/* 2. Multi-Line Mask Reveal */
.mask-line-wrapper {
  overflow: hidden;
  display: block;
  position: relative;
  margin-bottom: 0.15em;
}

.mask-line {
  display: block;
  transform: translateY(115%) skewY(1.2deg);
  opacity: 0;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.95s ease;
  will-change: transform, opacity;
}

.mask-line.visible {
  transform: translateY(0) skewY(0deg);
  opacity: 1;
}

/* Justified body paragraphs (desktop only — justified text creates
   uneven gaps in narrow mobile columns) */
@media (min-width: 769px) {
  .about__para,
  .featured__desc,
  .contact__desc,
  .showroom__desc,
  .product-modal__description {
    text-align: justify;
  }

  /* data-split-reveal rebuilds paragraphs into one block per line, so
     plain text-align: justify has no effect there. Stretch each line
     except the last to reproduce true justification. */
  .about__para .mask-line-wrapper:not(:last-child) .mask-line,
  .featured__desc .mask-line-wrapper:not(:last-child) .mask-line,
  .contact__desc .mask-line-wrapper:not(:last-child) .mask-line {
    text-align-last: justify;
  }
}

/* 3. Magnetic Element Transitions */
.magnetic-wrap {
  display: inline-block;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn, 
.floating-brand, 
.theme-toggle,
.navbar__cart {
  position: relative;
  will-change: transform;
}

/* 4. Kinetic Marquee Skew styling */
.marquee-strip {
  perspective: 1200px;
}

/* 5. Floating Actions Hamburger visibility override */
.floating-actions .navbar__hamburger {
  display: flex !important;
}

/* ═══════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE OVERHAUL
   Mobile-first fixes for all breakpoints
   ═══════════════════════════════════════════════════ */

/* ── LARGE DESKTOP (≤ 1200px) ── */
@media (max-width: 1200px) {
  .hero {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .about {
    gap: 4rem;
  }
}

/* ── TABLET (≤ 900px) — supplement existing rules ── */
@media (max-width: 900px) {
  /* Hero: tighter on tablet */
  .hero {
    padding-top: calc(80px + 2rem);
    gap: 2rem;
  }

  /* Featured: ensure content is readable */
  .featured {
    height: auto;
    min-height: 70vh;
    padding: 6rem 0;
  }

  /* Showroom: keep side by side but tighter */
  .showroom__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  /* Footer: 2 columns */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* ── MOBILE (≤ 768px) — supplement existing rules ── */
@media (max-width: 768px) {
  /* ── Root variables: tighter navbar ── */
  :root {
    --navbar-h: 60px;
  }

  /* ── Navbar ── */
  .navbar {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    height: 56px;
    border-radius: 28px;
  }

  .navbar.scrolled {
    top: 0.5rem;
  }

  .navbar__container {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .navbar__logo {
    height: 20px;
  }

  .navbar__actions {
    gap: 0.75rem;
  }

  /* Ensure HP badge hides on mobile (already done, belt+suspenders) */
  .hp-badge {
    display: none !important;
  }

  /* ── Mobile Menu ── */
  .mobile-menu {
    width: 100%;
    padding: 5rem 2rem 3rem;
  }

  .mobile-menu__link {
    font-size: 2rem;
  }

  /* ── Hero ── */
  .hero {
    min-height: 100vh; /* Fallback for browsers without svh support */
    min-height: 100svh; /* Small viewport height: doesn't include browser chrome */
    padding-top: calc(60px + 1.5rem);
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    padding-bottom: 2rem;
    gap: 1.5rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 8.5vw, 3.5rem);
  }

  .hero__subtitle {
    font-size: 0.92rem;
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    min-height: 48px; /* touch target */
  }

  .hero__image-frame {
    height: min(52vh, 460px);
    min-height: 280px;
    max-height: 460px;
  }

  /* ── Section Headers ── */
  .section-header {
    padding: 0 0.5rem 2.5rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .section-subtitle {
    font-size: 0.9rem;
    max-width: 100%;
  }

  /* ── Collection / Product Grid ── */
  .collection {
    padding: 4rem 1.2rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .product-card__name {
    font-size: 1rem;
  }

  .product-card__body {
    padding: 0.9rem 0.8rem 0.8rem;
  }

  /* ── Filter Tabs: scrollable row ── */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    gap: 0.4rem;
    margin-bottom: 2rem;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    min-height: 38px;
  }

  /* ── Featured Section ── */
  .featured {
    min-height: 60vh;
    height: auto;
    padding: 5rem 0;
  }

  .featured__content {
    margin-left: 0;
    padding: 0 1.5rem;
    max-width: 100%;
    text-align: center;
    align-items: center;
    gap: 1rem;
  }

  .featured__title {
    font-size: clamp(1.9rem, 7.5vw, 2.8rem);
  }

  .featured__desc {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .featured__overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.25) 0%,
      rgba(0,0,0,0.7) 60%,
      rgba(0,0,0,0.88) 100%
    );
  }

  /* ── Showroom: stack vertically on mobile ── */
  .showroom {
    padding: 4rem 1.2rem;
  }

  .showroom__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .showroom__comparison-container {
    max-width: 320px;
    margin: 0 auto;
  }

  .showroom__title {
    font-size: clamp(1.6rem, 6vw, 2rem);
    text-align: center;
  }

  .showroom__info-col {
    text-align: center;
  }

  .showroom__tabs {
    justify-content: center;
  }

  /* ── Lookbook ── */
  .lookbook {
    padding: 4rem 1.2rem;
  }

  .lookbook__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .lookbook__cell--wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }

  .lookbook__cell--tall {
    grid-row: span 1;
    aspect-ratio: 3/4;
  }

  /* ── Craftsmanship ── */
  .craftsmanship {
    padding: 4rem 1.2rem;
  }

  .craftsmanship__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .craftsmanship__visual {
    max-width: 340px;
    margin: 0 auto;
  }

  /* ── About ── */
  .about {
    grid-template-columns: 1fr;
    padding: 4rem 1.2rem;
    gap: 2.5rem;
  }

  .about__image-stack {
    height: 320px;
  }

  .about__img--back {
    width: 75%;
    height: 82%;
  }

  .about__img--front {
    width: 58%;
    height: 62%;
  }

  /* ── Contact ── */
  .contact {
    padding: 4rem 1.2rem;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact__logo {
    width: 130px;
  }

  /* ── Footer ── */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.2rem 2.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.2rem 1.2rem;
    font-size: 0.72rem;
  }

  /* ── Cart Sidebar: full width on mobile ── */
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  /* ── Toast: full-width on mobile ── */
  .toast {
    white-space: normal;
    text-align: center;
    width: calc(100% - 2rem);
    bottom: 1.5rem;
    border-radius: 12px;
  }

  /* ── Back to Top ── */
  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
  }

  /* ── Buttons: better touch targets ── */
  .btn {
    min-height: 46px;
    padding: 0.85rem 1.6rem;
    font-size: 0.72rem;
  }

  /* ── Size modal: bottom sheet ── */
  .size-modal__card {
    padding: 2.5rem 1.2rem 2rem;
  }

  /* ── Size Guide tabs ── */
  .unit-toggle-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .unit-toggle-btn {
    white-space: nowrap;
    min-height: 38px;
  }
}

/* ── SMALL MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  /* ── Navbar: micro ── */
  .navbar {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    height: 50px;
    border-radius: 25px;
  }

  .navbar.scrolled {
    top: 0.375rem;
  }

  .navbar__container {
    padding: 0 0.85rem;
  }

  .navbar__logo {
    height: 18px;
  }

  .navbar__actions {
    gap: 0.5rem;
  }

  /* Reduce theme toggle on tiny screens */
  .theme-toggle {
    width: 36px;
    height: 20px;
  }

  .theme-toggle::after {
    width: 14px;
    height: 14px;
  }

  /* ── Hero ── */
  .hero {
    padding-top: calc(56px + 1.25rem);
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 1.25rem;
  }

  .hero__title {
    font-size: clamp(1.9rem, 9.5vw, 2.8rem);
  }

  .hero__subtitle {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .hero__image-frame {
    height: min(46vh, 380px);
    min-height: 260px;
    max-height: 380px;
  }

  /* ── Section typography ── */
  .section-title {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .section-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.25em;
  }

  /* ── Product grid: 2-col still, smaller gap ── */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .product-card__name {
    font-size: 0.9rem;
  }

  .product-card__body {
    padding: 0.75rem 0.7rem 0.7rem;
  }

  .product-card__category {
    font-size: 0.6rem;
  }

  .product-card__price {
    font-size: 0.82rem;
  }

  /* ── Lookbook: 1-col on tiny screens ── */
  .lookbook__grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .lookbook__cell--wide,
  .lookbook__cell--tall {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  .lookbook__cell {
    aspect-ratio: 4/3;
  }

  /* ── Craftsmanship ── */
  .craftsmanship {
    padding: 3rem 1rem;
  }

  .craftsmanship__visual {
    max-width: 280px;
  }

  .craftsmanship-card {
    padding: 1rem;
  }

  .craftsmanship-card h3 {
    font-size: 0.88rem;
  }

  .craftsmanship-card p {
    font-size: 0.78rem;
  }

  /* ── Showroom ── */
  .showroom {
    padding: 3rem 1rem;
  }

  .showroom__comparison-container {
    max-width: 260px;
  }

  /* ── About ── */
  .about {
    padding: 3rem 1rem;
    gap: 2rem;
  }

  .about__image-stack {
    height: 260px;
  }

  /* ── Contact ── */
  .contact {
    padding: 3rem 1rem;
  }

  /* ── Featured ── */
  .featured {
    min-height: 55vh;
  }

  .featured__title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  /* ── Footer ── */
  .footer__top {
    padding: 2.5rem 1rem 2rem;
  }

  /* ── Buttons ── */
  .btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.7rem;
    min-height: 44px;
  }

  /* ── Modal actions: stacked ── */
  .product-modal__actions {
    flex-wrap: wrap;
  }

  .quantity-selector {
    width: 100%;
  }

  .btn--modal-add {
    flex: 1;
    min-width: 0;
  }

  .product-modal__wishlist-btn {
    width: 48px;
    flex-shrink: 0;
  }

  /* ── Size Modal ── */
  .size-modal__card {
    padding: 2rem 1rem 1.5rem;
  }

  .size-modal__title {
    font-size: 1.6rem;
  }

  /* ── Denier/Finder grids ── */
  .finder-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .denier-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* ── Mobile menu: tighter ── */
  .mobile-menu {
    padding: 4.5rem 1.5rem 2.5rem;
  }

  .mobile-menu__link {
    font-size: 1.75rem;
    padding: 0.4rem 0;
  }

  /* ── Cart & Wishlist Sidebars: tighter mobile spacing ── */
  .cart-sidebar__header {
    padding: 1rem 1.25rem;
  }

  .cart-sidebar__header h3 {
    font-size: 1.1rem;
  }

  .cart-sidebar__items {
    padding: 1rem;
  }

  .cart-item {
    grid-template-columns: 55px 1fr auto;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .cart-item__img {
    width: 55px;
    height: 70px;
  }

  .cart-item__name {
    font-size: 0.85rem;
  }

  .cart-item__price {
    font-size: 0.75rem;
  }

  .cart-item__info .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.6rem !important;
    min-height: auto !important;
  }

  .cart-sidebar__footer {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .cart-progress {
    padding: 0.75rem 1rem;
  }

  .cart-progress__text {
    font-size: 0.72rem;
  }

  .cart-progress__bar {
    height: 3px;
  }

  .cart-upsell-card {
    grid-template-columns: 40px 1fr auto;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
  }

  .cart-upsell-img {
    width: 40px;
    height: 48px;
  }

  .cart-upsell-title {
    font-size: 0.72rem;
  }

  .cart-upsell-price {
    font-size: 0.68rem;
  }

  #btnUpsellAdd {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
}

/* ── EXTRA SMALL (≤ 380px) ── */
@media (max-width: 380px) {
  /* ── Navbar: absolute minimal ── */
  .navbar {
    top: 0.375rem;
    left: 0.375rem;
    right: 0.375rem;
    height: 46px;
    border-radius: 23px;
  }

  .navbar__logo {
    height: 16px;
  }

  .navbar__actions {
    gap: 0.375rem;
  }

  /* Hide theme toggle on very tiny screens to prevent overflow */
  .theme-toggle {
    display: none;
  }

  /* ── Hero ── */
  .hero__title {
    font-size: clamp(1.7rem, 10vw, 2.4rem);
  }

  .hero__image-frame {
    height: min(42vh, 340px);
    min-height: 240px;
  }

  /* ── Product grid: still 2-col ── */
  .product-grid {
    gap: 0.5rem;
  }

  /* ── Mobile menu: compact ── */
  .mobile-menu__link {
    font-size: 1.5rem;
  }

  /* ── Extra-small mobile sidebars ── */
  .cart-sidebar__header {
    padding: 0.75rem 1rem;
  }

  .cart-sidebar__items {
    padding: 0.75rem;
  }

  .cart-item {
    grid-template-columns: 48px 1fr auto;
    gap: 0.5rem;
  }

  .cart-item__img {
    width: 48px;
    height: 60px;
  }

  .cart-item__name {
    font-size: 0.78rem;
  }

  .cart-sidebar__footer {
    padding: 0.75rem 1rem;
  }
}

/* ── TOUCH DEVICES: Override cursor:none for stability ── */
@media (pointer: coarse) {
  body {
    cursor: auto !important;
  }

  button,
  a,
  .product-card,
  .lookbook__cell,
  .filter-tab,
  .color-option,
  .size-option,
  .qty-btn,
  .zoom-btn,
  .showroom-tab,
  .size-tab,
  .unit-toggle-btn,
  .back-to-top,
  .mobile-menu__close,
  .cart-sidebar__close,
  .product-modal__close,
  .size-modal__close,
  .hotspot,
  .navbar__hamburger,
  .theme-toggle,
  .navbar__cart,
  .craftsmanship-card,
  input[type="range"]::-webkit-slider-thumb {
    cursor: pointer !important;
  }

  /* Remove hover-only overlays: show them directly on touch */
  .lookbook__cell .lookbook__hover {
    opacity: 0; /* still hidden unless tapped; JS can handle */
  }

  /* Ensure touch scrolling in sidebars/modals */
  .mobile-menu,
  .cart-sidebar,
  .cart-sidebar__items,
  .product-modal__card,
  .size-modal__card {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Prevent iOS auto-zoom on focus: inputs must be >= 16px */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

/* ── LANDSCAPE PHONE: Prevent hero from overflowing ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(50px + 1rem);
    padding-bottom: 1.5rem;
  }

  .hero__image-frame {
    height: min(80vh, 360px);
    min-height: 200px;
  }

  .navbar {
    height: 48px;
  }

  .featured {
    height: auto;
    min-height: 100vh;
  }
}

/* ── PRINT / FORCED COLORS ── */
@media print {
  .navbar,
  .cursor,
  .cursor-follower,
  .back-to-top,
  .health-bar,
  .preloader,
  #webgl-canvas,
  .mobile-menu,
  .cart-sidebar,
  .product-modal,
  .size-modal,
  .toast,
  .marquee-strip {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}
.line-waves-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-card); /* Replace the sidebar's bg with card background */
}

.line-waves-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .line-waves-container {
    height: 100%; /* Keep it full height in panels */
  }
}

/* ═══════════════════════════════════════════════════
   COMPLETE DEVICE RESPONSIVENESS OVERRIDES
   ═══════════════════════════════════════════════════ */

/* 1. Large Displays (>= 1400px) */
@media (min-width: 1400px) {
  .navbar__container,
  .hero,
  .craftsmanship__container,
  .collection,
  .showroom__container,
  .lookbook,
  .about,
  .contact__inner,
  .footer__top {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 2. Tablets & Laptops (900px - 1199px) */
@media (max-width: 1199px) and (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .craftsmanship__grid {
    gap: 2rem;
  }
}

/* 3. Medium Screens / Tablets (768px - 899px) */
@media (max-width: 899px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product-modal__grid {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
  }

  .product-modal__image-col {
    min-height: 320px;
    height: auto;
  }
}

/* 4. Small Mobile & Handhelds (<= 767px) */
@media (max-width: 767px) {
  :root {
    --navbar-h: 60px;
  }

  body {
    font-size: 15px;
  }

  /* Navigation Bar */
  .navbar {
    padding: 0 1rem;
  }

  .navbar__brand img {
    height: 24px;
  }

  .hp-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  /* Hero Section */
  .hero {
    padding-top: calc(var(--navbar-h) + 1.5rem);
    padding-bottom: 2.5rem;
    min-height: auto;
  }

  .hero__title {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .hero__subtitle {
    font-size: 0.92rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Craftsmanship */
  .craftsmanship__grid {
    grid-template-columns: 1fr;
  }

  .craftsmanship__visual {
    height: auto;
  }

  /* Denier Showroom Visualizer */
  .showroom__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showroom__slider-col {
    height: auto;
  }

  /* Lookbook */
  .lookbook__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .lookbook__cell--tall,
  .lookbook__cell--wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

/* 5. Extra Small Phones (<= 479px) */
@media (max-width: 479px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .product-card__body {
    padding: 0.75rem;
  }

  .product-card__name {
    font-size: 0.88rem;
  }

  .product-card__price {
    font-size: 0.95rem;
  }

  .filter-tabs {
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .cart-sidebar,
  .mobile-menu {
    width: 100vw;
  }



  .finder-grid {
    grid-template-columns: 1fr;
  }
}