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

:root {
  --cream:       #FAF7F2;
  --cream-deep:  #F5EDD6;
  --card-border: #EDE0C4;
  --gold:        #C9A566;
  --gold-dark:   #9B7B3D;
  --gold-light:  #E8C98A;
  --ink:         #1A1208;
  --body-text:   #8B7355;
  --footer-bg:   #0E1F20;
  --bar-h:       44px;
  --ease-expo:   cubic-bezier(0.16,1,0.3,1);
}

html { font-size: 16px; scroll-behavior: auto; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  cursor: none;
  overflow-x: hidden;
  transition: background 0.8s var(--ease-expo);
}
body.lenis-smooth { overflow: hidden; }

/* Hide native cursor everywhere */
*, *::before, *::after { cursor: none !important; }

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
button { background: none; border: none; font: inherit; cursor: none; }

/* ══════════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════════ */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.3s var(--ease-expo),
              height 0.3s var(--ease-expo),
              background 0.3s,
              opacity 0.3s;
  mix-blend-mode: normal;
}
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%,-50%);
}
#cursor-label {
  position: fixed;
  top: 0; left: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--cream);
  pointer-events: none;
  z-index: 10001;
  transform: translate(14px, -50%);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
}
body.cursor-expanded #cursor {
  width: 48px; height: 48px;
  background: rgba(201,165,102,0.15);
}
body.cursor-shoe #cursor {
  width: 56px; height: 56px;
  background: rgba(201,165,102,0.2);
}
body.cursor-shoe #cursor-label { opacity: 1; }

@media (hover:none),(pointer:coarse) {
  #cursor, #cursor-dot, #cursor-label { display: none; }
  body, * { cursor: auto !important; }
}

/* ══════════════════════════════════════════════
   GRID OVERLAY
══════════════════════════════════════════════ */
#grid-overlay {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ══════════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--cream-deep);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#preloader-logo {
  width: 260px;
  max-width: 60vw;
  margin-bottom: 48px;
  opacity: 0;
  transform: scale(0.92);
  display: block;
}
#preloader-bar-wrap {
  width: 200px;
  height: 1px;
  background: rgba(201,165,102,0.2);
  position: relative;
}
#preloader-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.05s linear;
}
#preloader-counter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--body-text);
  letter-spacing: 0.3em;
  position: absolute;
  bottom: 40px;
  right: 48px;
}
#preloader-wipe {
  position: absolute;
  inset: 0;
  background: var(--cream-deep);
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   PERSISTENT BARS
══════════════════════════════════════════════ */
#top-bar, #bottom-bar {
  position: fixed;
  left: 0; right: 0;
  height: var(--bar-h);
  background: var(--cream);
  border-color: var(--card-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 500;
  opacity: 0;
  transition: background 0.6s;
}
#top-bar { top: 0; border-bottom: 0.5px solid var(--card-border); }
#bottom-bar { bottom: 0; border-top: 0.5px solid var(--card-border); justify-content: space-between; }

.bar-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--body-text);
  text-transform: uppercase;
  white-space: nowrap;
}
#top-bar .bar-left  { flex: 1; }
#top-bar .bar-center { flex: 0 0 auto; }
#top-bar .bar-right  { flex: 1; display: flex; justify-content: flex-end; }

.bar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  letter-spacing: 0.35em;
  color: var(--ink);
  text-transform: uppercase;
}

#menu-btn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--body-text);
  text-transform: uppercase;
  border: 0.5px solid var(--card-border);
  padding: 6px 16px;
  transition: all 0.3s;
}
#menu-btn:hover { background: var(--gold); color: var(--cream); border-color: var(--gold); }

/* ══════════════════════════════════════════════
   FULLSCREEN NAV OVERLAY
══════════════════════════════════════════════ */
#nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
#nav-overlay.open { opacity: 1; pointer-events: all; }
#nav-close {
  position: absolute;
  top: 24px; right: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.nav-links { list-style: none; text-align: center; }
.nav-links li { overflow: hidden; margin: 8px 0; }
.nav-links a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 72px);
  color: var(--cream-deep);
  letter-spacing: 0.05em;
  transition: color 0.3s;
  display: inline-block;
}
.nav-links a:hover { color: var(--gold); }
.nav-ar {
  font-family: 'Amiri', serif;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: block;
  direction: rtl;
}

/* ══════════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════════ */
main { padding-top: var(--bar-h); padding-bottom: var(--bar-h); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  background: var(--cream-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}
#satin-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;          /* above the CSS shimmer fallback (#hero::after z-index:0) */
  opacity: 0;
  transition: opacity 1.2s ease;
}
#satin-canvas.visible { opacity: 1; }

/* ── Satin shimmer — CSS fallback always in DOM.
   Visible when WebGL hasn't loaded yet or is disabled.
   The canvas (z-index:1) renders on top once active.    ── */
/* Shimmer uses transform (GPU-composited) instead of background-position */
#hero::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -120%;
  width: 300%;
  background: linear-gradient(
    120deg,
    rgba(245,237,214,0)    30%,
    rgba(232,201,138,0.14) 45%,
    rgba(255,243,200,0.22) 50%,
    rgba(232,201,138,0.14) 55%,
    rgba(245,237,214,0)    70%
  );
  animation: satinShimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes satinShimmer {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(13.33%); }
}
@media (prefers-reduced-motion: reduce) {
  #hero::after { animation: none; }
}
.hero-headline {
  text-align: center;
  overflow: visible;
  z-index: 2;
}
#hero-logo {
  width: clamp(220px, 38vw, 520px);
  max-width: 90vw;
  display: block;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
}
.hero-signature {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(15px, 2vw, 22px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--gold-dark);
  text-align: center;
  text-transform: lowercase;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(10px);
}
/* keep .hero-line/gold-word for statement section reuse */
.hero-line {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 10vw, 140px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 0.95;
  display: block;
  overflow: hidden;
}
.hero-line span { display: inline-block; }
.hero-line.italic-line { font-style: italic; font-weight: 400; }
.gold-word { color: var(--gold); font-style: italic; }

.hero-rule {
  width: 0px;
  height: 1px;
  background: var(--gold);
  margin: 32px auto;
}
.hero-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(22px, 3vw, 36px);
  color: var(--body-text);
  direction: rtl;
  text-align: center;
  opacity: 0;
  transform: translateX(30px);
  margin-bottom: 48px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
}
.btn-primary {
  background: var(--gold);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 14px 32px;
  transition: background 0.3s, transform 0.3s var(--ease-expo);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-expo);
  z-index: -1;
}
.btn-primary:hover::after { transform: scaleX(1); }
.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  border: 0.5px solid var(--gold);
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 14px 32px;
  transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(201,165,102,0.08); transform: translateY(-2px); }

/* Rotating badge */
#rotating-badge {
  position: absolute;
  bottom: 60px;
  right: 60px;
  width: 120px;
  height: 120px;
}
#badge-circle-text {
  animation: rotateBadge 12s linear infinite;
  transform-origin: 60px 60px;
}
@keyframes rotateBadge { to { transform: rotate(360deg); } }
#badge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ══════════════════════════════════════════════
   STATEMENT SECTION
══════════════════════════════════════════════ */
#statement {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
}
.statement-primary {
  text-align: center;
  position: absolute;
  padding: 0 40px;
}
.statement-primary .hero-line {
  font-size: clamp(48px, 8vw, 120px);
}
.statement-secondary {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4.5vw, 64px);
  font-weight: 400;
  color: var(--gold);
  text-align: center;
  line-height: 1.2;
  opacity: 0;
  position: absolute;
  padding: 0 40px;
}
.statement-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(18px, 2.5vw, 32px);
  color: var(--body-text);
  direction: rtl;
  text-align: center;
  opacity: 0;
  margin-top: 16px;
  position: absolute;
  top: calc(50% + 80px);
  padding: 0 40px;
}

/* ══════════════════════════════════════════════
   PINNED SHOE REVEAL
══════════════════════════════════════════════ */
#shoe-reveal-wrapper {
  position: relative;
}
#shoe-reveal {
  min-height: 100vh;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ── Luxury shoe box ── */
.shoe-box-scene {
  perspective: 900px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 184px; /* lid 34px + body 150px = exact fit */
}
.shoe-box {
  width: 300px;
  height: 184px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-10deg) rotateY(0deg);
}
.box-body {
  position: absolute;
  width: 300px;
  height: 150px;
  bottom: 0; /* sits flush under the lid */
  transform-style: preserve-3d;
}

/* Shared face base */
.box-face {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Exterior colour — deep champagne */
.box-face.front,
.box-face.back,
.box-face.left,
.box-face.right {
  background: #E8D9B5;
}
/* Subtle light-catch on each face */
.box-face.front::before,
.box-face.back::before,
.box-face.left::before,
.box-face.right::before {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(160deg,
    rgba(255,255,255,0.18) 0%,
    transparent 55%,
    rgba(0,0,0,0.06) 100%);
  pointer-events:none;
}

.box-face.front  { width:300px; height:150px; transform: translateZ(90px); }
.box-face.back   { width:300px; height:150px; transform: rotateY(180deg) translateZ(90px); }
/* left: 60px shifts the face so its center (90px from left of face) aligns with
   box center (150px), making rotateY pivot at x=0 (left wall) and x=300 (right wall) */
.box-face.left   { width:180px; height:150px; left: 60px; transform: rotateY(-90deg) translateZ(150px); }
.box-face.right  { width:180px; height:150px; left: 60px; transform: rotateY(90deg)  translateZ(150px); }
/* translateZ(60px): places the floor at y=150 (= box height). Formula:
   y_world = translateZ + face_center_y = T + 90 = 150 → T = 60 */
.box-face.bottom {
  width:300px; height:180px;
  transform: rotateX(-90deg) translateZ(60px);
  background: #CDB990;
}

/* ── Decorative inner frame on front/back ── */
.box-face-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  z-index: 1;
}
.face-frame {
  position: absolute;
  inset: 10px;
  border: 0.5px solid rgba(201,165,102,0.55);
  pointer-events: none;
}
.face-frame::before, .face-frame::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}
.face-frame::before {
  top: -1px; left: -1px;
  border-width: 1px 0 0 1px;
}
.face-frame::after {
  bottom: -1px; right: -1px;
  border-width: 0 1px 1px 0;
}

/* ── Logo image on box faces ── */
.box-logo {
  width: 110px;
  max-width: 60%;
  display: block;
  margin: 0 auto;
  /* gold tint — darkens the white logo to match gold palette */
  filter: brightness(0) saturate(100%)
          invert(62%) sepia(40%) saturate(500%)
          hue-rotate(5deg) brightness(88%);
  opacity: 0.82;
}
.box-logo--side   { width: 72px; }
.box-logo--bottom { width: 90px; opacity: 0.5; }
.box-logo--lid {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  opacity: 0.65;
}

/* ── Logo text fallback (kept for reference) ── */
.box-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #9B7B3D 0%, #E8C98A 38%, #C9A566 55%, #9B7B3D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.box-subbrand {
  font-family: 'Amiri', serif;
  font-size: 13px;
  color: var(--gold-dark);
  direction: rtl;
  letter-spacing: 0.1em;
  margin-top: 4px;
  opacity: 0.75;
}
.face-divider {
  width: 32px;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 6px 0;
}
.box-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 8px;
  letter-spacing: 0.35em;
  color: var(--gold-dark);
  text-transform: uppercase;
  opacity: 0.65;
}

/* ── Lid ── */
.box-lid {
  position: absolute;
  width: 300px;
  height: 34px;
  top: 0;
  transform-style: preserve-3d;
  transform-origin: top center;
  /* translateZ(90px) keeps lid front lip flush with box front face */
  transform: translateZ(90px) rotateX(0deg);
}
.lid-face.top-face {
  position: absolute;
  width: 300px; height: 180px;
  background: #EDE1C0;
  /* top:34px places the rotation pivot at the BOTTOM of the lid strip (y=34),
     which is exactly the top of the box body — so the lid sits flush on the box.
     rotateX(-90deg) extends the surface BACKWARD (z: 90→-90), covering the full top. */
  top: 34px;
  transform: rotateX(-90deg);
  transform-origin: top center;
  overflow: hidden;
}
/* Lid light sheen */
.lid-face.top-face::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.25) 0%,
    transparent 60%);
  pointer-events: none;
}
/* Lid side strip (visible under the lid edge) */
.lid-face.top-face::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 34px;
  background: #D6C49A;
}

/* ── Ribbon crossing the lid top ── */
.lid-ribbon-h, .lid-ribbon-v {
  position: absolute;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,165,102,0.7) 20%,
    rgba(232,201,138,0.95) 50%,
    rgba(201,165,102,0.7) 80%,
    transparent 100%);
  pointer-events: none;
}
.lid-ribbon-h {
  left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  height: 7px;
}
.lid-ribbon-v {
  top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 7px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(201,165,102,0.7) 15%,
    rgba(232,201,138,0.95) 50%,
    rgba(201,165,102,0.7) 85%,
    transparent 100%);
}
/* ── Bow at ribbon intersection ── */
.lid-bow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 28px;
  pointer-events: none;
}
.bow-loop {
  position: absolute;
  width: 17px; height: 13px;
  border: 1.5px solid #C9A566;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: rgba(232,201,138,0.35);
  top: 4px;
}
.bow-loop-l { left: 1px;  transform: rotate(-28deg); }
.bow-loop-r { right: 1px; transform: rotate( 28deg); }
.bow-knot {
  position: absolute;
  width: 9px; height: 9px;
  background: radial-gradient(circle at 40% 40%, #E8C98A, #9B7B3D);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.bow-tail {
  position: absolute;
  width: 5px; height: 11px;
  background: linear-gradient(180deg, rgba(201,165,102,0.9), rgba(155,123,61,0.5));
  border-radius: 0 0 3px 3px;
  bottom: 0;
}
.bow-tail-l { left: 13px; transform: rotate(-12deg); transform-origin: top center; }
.bow-tail-r { right:13px; transform: rotate( 12deg); transform-origin: top center; }

/* Shoe image over box */
.shoe-reveal-img {
  position: absolute;
  left: 50%;
  width: 320px;
  max-width: 70vw;
  opacity: 0;
  transform: translateX(-50%) translateY(60px);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
  z-index: 10;
}
.shoe-reveal-img.active {
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0px) rotate(0deg); }
  50% { transform: translateX(-50%) translateY(-14px) rotate(1deg); }
}

/* Particles canvas */
#particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* Reveal title */
.reveal-title-wrap {
  position: absolute;
  bottom: 80px;
  text-align: center;
  opacity: 0;
  z-index: 20;
}
.reveal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 56px);
  color: var(--gold-light);
  letter-spacing: 0.08em;
}
.reveal-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--gold);
  direction: rtl;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════
   CATEGORIES PANEL STACK
══════════════════════════════════════════════ */
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 64px);
  color: var(--ink);
  line-height: 1.1;
}
.section-title-ar {
  font-family: 'Amiri', serif;
  font-size: clamp(20px, 3vw, 36px);
  color: var(--body-text);
  direction: rtl;
  margin-top: 8px;
  display: block;
}
#categories-section {
  position: relative;
}
#cat-panels-wrap {
  position: relative;
}

/* Each full-screen panel */
.cat-panel {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.4s ease;
}

/* Index number */
.cat-panel-index {
  position: absolute;
  top: calc(var(--bar-h) + 24px);
  left: 48px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold);
  opacity: 0.7;
}

/* Category label above title */
.cat-panel-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
}

/* Main title */
.cat-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 700;
  text-align: center;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow: hidden;
  padding: 0 40px;
}

/* Arabic name */
.cat-panel-ar {
  font-family: 'Amiri', serif;
  font-size: clamp(22px, 3vw, 40px);
  color: var(--gold);
  direction: rtl;
  text-align: center;
  margin-top: 20px;
  opacity: 0;
}

/* Tech chips row */
.cat-chips {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 32px;
  opacity: 0;
}
.cat-chip {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 18px;
  border: 0.5px solid currentColor;
  opacity: 0.6;
}
.cat-chip-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.35;
  padding: 0 10px;
}

/* Rotating badge per panel */
.cat-panel-badge {
  position: absolute;
  bottom: calc(var(--bar-h) + 32px);
  right: 48px;
  width: 110px;
  height: 110px;
  pointer-events: none;
}
.cat-panel-badge svg {
  animation: rotateBadge 14s linear infinite;
}

/* Dark panel overrides */
.cat-panel.dark .cat-panel-title { color: var(--gold-light); }
.cat-panel.dark .cat-panel-ar    { color: var(--gold); }
.cat-panel.dark .cat-chip        { color: rgba(245,237,214,0.55); border-color: rgba(201,165,102,0.4); }
.cat-panel.dark .cat-chip-sep    { color: rgba(245,237,214,0.3); }
.cat-panel.dark .cat-panel-index { color: var(--gold); }
.cat-panel.dark .cat-panel-label { color: var(--gold); }

/* ── Panel top button (shop link) ── */
.panel-top-btn {
  position: absolute;
  top: calc(var(--bar-h) + 20px);
  right: 48px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 0.5px solid rgba(201,165,102,0.5);
  padding: 7px 18px;
  transition: all 0.3s;
  z-index: 5;
}
.panel-top-btn:hover { background: var(--gold); color: var(--cream); border-color: var(--gold); }
.panel-top-btn--light { color: var(--gold-light); border-color: rgba(232,201,138,0.4); }
.panel-top-btn--light:hover { background: var(--gold); color: var(--ink); }

/* ── Product panel layout ── */
.panel-product-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  padding: 0 60px;
  z-index: 2;
}
.panel-product-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.panel-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--body-text);
  letter-spacing: 0.03em;
  margin: 16px 0 20px;
  max-width: 400px;
  opacity: 0; /* animated in by GSAP */
}
.panel-desc--light { color: rgba(245,237,214,0.7); }
.panel-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  opacity: 0; /* animated in by GSAP */
}
.panel-stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.panel-rating-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--body-text);
}
.panel-cta  { margin-top: 4px; opacity: 0; } /* animated in by GSAP */
.panel-product-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-product-img {
  width: clamp(220px, 35vw, 460px);
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.18));
  animation: float 4s ease-in-out infinite;
  opacity: 0; /* animated in by GSAP */
}

/* ── Event panel layout ── */
.panel-event-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  padding: 0 60px;
  z-index: 2;
}
.panel-event-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}
.panel-event-img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  filter: brightness(0.9);
}
.panel-event-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Hero-fallback panel ── */
.panel-hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.panel-hero-logo {
  width: clamp(180px, 28vw, 380px);
  max-width: 75vw;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  /* gold tint */
  filter: brightness(0) saturate(100%) invert(85%) sepia(30%)
          saturate(400%) hue-rotate(5deg) brightness(95%);
}
.panel-hero-sig {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 1.8vw, 20px);
  font-style: italic;
  letter-spacing: 0.35em;
  color: var(--gold-light);
  margin-top: 16px;
  opacity: 0;
}
.panel-hero-rule {
  width: 0; height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto;
}
.panel-hero-cta { margin-top: 12px; opacity: 0; }

/* ── Mobile overrides for new panels ── */
@media (max-width: 768px) {
  .panel-product-body,
  .panel-event-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }
  .panel-product-img-wrap { order: -1; }
  .panel-product-img { width: min(240px, 70vw); }
  .panel-event-img   { max-height: 35vh; }
  .panel-top-btn { right: 20px; font-size: 10px; padding: 5px 12px; }
  .panel-product-text { align-items: center; text-align: center; }
  .panel-product-text .cat-panel-title,
  .panel-product-text .cat-panel-ar { text-align: center; }
  .panel-desc { text-align: center; }
  .panel-rating { justify-content: center; }
}

/* ══════════════════════════════════════════════
   FEATURED PRODUCTS
══════════════════════════════════════════════ */
#products-section {
  background: var(--cream);
  padding: 100px 40px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 60px auto 0;
}
.product-card {
  background: var(--cream-deep);
  border: 0.5px solid var(--card-border);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-expo), border-color 0.3s, box-shadow 0.5s;
  opacity: 0;
  transform: translateY(40px);
}
.product-card:hover {
  transform: translateY(-12px) !important;
  border-color: var(--gold);
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}
.product-img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--cream);
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05) rotate(1deg);
}
.product-body {
  padding: 24px;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}
.product-name-ar {
  font-family: 'Amiri', serif;
  font-size: 15px;
  color: var(--body-text);
  direction: rtl;
  margin-bottom: 12px;
  display: block;
}
.product-price-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.product-price-original {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--body-text);
  text-decoration: line-through;
  opacity: 0.6;
}
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--gold);
  color: var(--cream);
}
.stock-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 4px 10px;
}
.stock-ok   { background: rgba(201,165,102,0.15); color: var(--gold-dark); border: 0.5px solid var(--gold); }
.stock-low  { background: rgba(180,60,60,0.1);    color: #b43c3c;          border: 0.5px solid #b43c3c; }

/* Product shimmer */
.product-shimmer {
  background: var(--cream-deep);
  border: 0.5px solid var(--card-border);
  overflow: hidden;
  position: relative;
}
.product-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201,165,102,0.15) 50%, transparent 100%);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.shimmer-img  { padding-top:100%; background:var(--card-border); }
.shimmer-body { padding:24px; }
.shimmer-line { height:14px; background:var(--card-border); border-radius:2px; margin-bottom:10px; }
.shimmer-line.w60 { width:60%; }
.shimmer-line.w40 { width:40%; }

/* ══════════════════════════════════════════════
   PROMO CODE SECTION
══════════════════════════════════════════════ */
#promo-section {
  background: var(--cream-deep);
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.promo-section-inner { max-width: 700px; margin: 0 auto; }
.promo-code-display {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 40px 0;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.promo-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(-30px) rotate(-3deg);
}
.promo-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--body-text);
  text-transform: uppercase;
  margin-bottom: 40px;
}
.promo-conditions {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 40px 0;
}
.promo-cond {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}
.promo-cond-icon {
  width: 48px;
  height: 48px;
  border: 0.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
}
.promo-cond-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--body-text);
  text-transform: uppercase;
}
.countdown-wrap {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.countdown-unit { text-align: center; }
.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: var(--ink);
  line-height: 1;
  display: block;
}
.countdown-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--body-text);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════ */
#newsletter-section {
  background: var(--cream);
  padding: 100px 40px;
  text-align: center;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 40px;
  border: 0.5px solid var(--card-border);
}
.newsletter-input {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.newsletter-input::placeholder { color: var(--body-text); opacity: 0.6; }
.newsletter-btn {
  padding: 16px 28px;
  background: var(--gold);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s, transform 0.3s var(--ease-expo);
  position: relative;
}
.newsletter-btn:hover { background: var(--gold-dark); transform: scale(1.03); }
.newsletter-success {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
}
.newsletter-success.show { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#footer {
  background: var(--footer-bg);
  padding: 80px 40px 120px;
  position: relative;
}
#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 1px;
  background: rgba(201,165,102,0.2);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 64px;
  display: block;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
.footer-col-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(245,237,214,0.55);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 0.5px solid rgba(201,165,102,0.15);
  margin-top: 64px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(245,237,214,0.3);
}

/* ══════════════════════════════════════════════
   SECTION REVEAL UTILITY
══════════════════════════════════════════════ */
.reveal-wrap { overflow: hidden; }
.reveal-inner { display: inline-block; }

/* ══════════════════════════════════════════════
   SCROLL RIBBON
══════════════════════════════════════════════ */
#scroll-ribbon-wrap {
  position: fixed;
  right: 20px;
  top: 0;
  width: 40px;
  height: 100vh;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#scroll-ribbon-wrap.visible { opacity: 1; }
#scroll-ribbon-svg {
  width: 100%;
  height: 100%;
}
#srb-dot, #srb-halo {
  transition: opacity 0.3s;
}

/* ══════════════════════════════════════════════
   SCROLL VELOCITY TILT
══════════════════════════════════════════════ */
.tilt-img {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ══════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #preloader { display: none; }
  html.page-ready body { opacity: 1; }
  .hero-logo, .hero-arabic, .hero-ctas,
  .hero-line span { opacity: 1 !important; transform: none !important; }
}

/* ══════════════════════════════════════════════
   MOBILE & RESPONSIVE
══════════════════════════════════════════════ */

/* Prevent lenis from hiding overflow on mobile — native scroll stays intact */
@media (max-width: 768px) {
  body.lenis-smooth { overflow: auto; }
}

@media (max-width: 768px) {
  /* ── Bars ── */
  .bar-text.bar-left { display: none; }
  #top-bar .bar-center img { height: 20px; }
  #top-bar .bar-right { gap: 0; }
  #bottom-bar { padding: 0 16px; }
  #bottom-bar .bar-text { font-size: 9px; }
  /* #scroll-ribbon-wrap shown on all screen sizes */

  /* ── Hero ── */
  #hero { padding: 80px 24px 60px; min-height: 100svh; }
  #hero-logo { width: min(240px, 72vw); }
  .hero-signature { font-size: 14px; letter-spacing: 0.2em; }
  #hero-rule { margin: 20px auto; }
  .hero-arabic { font-size: clamp(16px, 4vw, 24px); margin-bottom: 28px; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 12px; }
  .btn-primary, .btn-secondary { width: min(280px, 80vw); text-align: center; }
  #satin-canvas { display: none; }

  /* ── Statement ── */
  #statement { min-height: 70vh; }
  .statement-primary .hero-line { font-size: clamp(38px, 9vw, 80px); }
  .statement-secondary { font-size: clamp(22px, 5vw, 48px); }

  /* ── Shoe reveal ── */
  .shoe-box-scene { transform: translate(-50%, -50%) scale(0.55); }
  .shoe-reveal-img { width: 240px; }
  .reveal-title { font-size: clamp(20px, 5vw, 40px); }

  /* ── Category panels ── */
  .cat-panel { min-height: 100svh; padding: 60px 24px; }
  .cat-panel-title { font-size: clamp(40px, 11vw, 80px); padding: 0 16px; }
  .cat-panel-ar { font-size: clamp(18px, 4vw, 28px); }
  .cat-chips { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .cat-chip { font-size: 10px; padding: 5px 12px; }
  .cat-panel-badge { width: 80px; height: 80px; right: 16px; bottom: calc(var(--bar-h) + 16px); }
  .cat-panel-badge svg { width: 80px; height: 80px; }

  /* ── Products ── */
  #products-section { padding: 70px 20px; }
  .products-grid { grid-template-columns: 1fr; gap: 20px; max-width: 480px; }

  /* ── Promo ── */
  #promo-section { padding: 70px 20px; }
  .promo-conditions { gap: 20px; }
  .countdown-wrap { gap: 16px; }
  .countdown-num { font-size: 28px; }

  /* ── Newsletter ── */
  #newsletter-section { padding: 70px 20px; }
  .newsletter-form { flex-direction: column; border: none; gap: 0; }
  .newsletter-input {
    border: 0.5px solid var(--card-border);
    margin-bottom: 8px;
  }
  .newsletter-btn { width: 100%; padding: 14px; text-align: center; }

  /* ── Footer ── */
  #footer { padding: 60px 20px 100px; }
  .footer-logo { font-size: 32px; margin-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  #hero { padding: 70px 16px 50px; }
  #hero-logo { width: min(200px, 68vw); }
  .shoe-box-scene { transform: translate(-50%, -50%) scale(0.42); }
  .cat-panel-title { font-size: clamp(34px, 12vw, 60px); }
  .cat-panel-badge { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo-code-display { font-size: clamp(34px, 10vw, 60px); }
  #products-section, #promo-section, #newsletter-section { padding: 60px 16px; }
}


/* ══════════════════════════════════════════════
   GLOBAL OVERFLOW GUARD
══════════════════════════════════════════════ */
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
body        { min-height: 100svh; }

/* ══════════════════════════════════════════════
   COMPREHENSIVE MOBILE OVERRIDES
   This block is LAST — it wins over everything.
══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Lenis must not lock scroll on touch */
  body.lenis-smooth { overflow: auto !important; }

  /* ── Bars ── */
  #top-bar  { padding: 0 16px; }
  #bottom-bar { padding: 0 16px; }
  .bar-text.bar-left { display: none; }
  #top-bar .bar-center img { height: 20px; }

  /* ── Hero ── */
  #hero { padding: 80px 20px 60px; min-height: 100svh; }
  #hero-logo { width: min(220px, 68vw); }
  .hero-signature { font-size: 13px; letter-spacing: 0.18em; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 10px; }
  .btn-primary, .btn-secondary { width: min(260px, 78vw); text-align: center; }
  /* On mobile the WebGL canvas is hidden; the global #hero::after shimmer shows instead */
  #satin-canvas { display: none !important; }

  /* ── Statement ── */
  #statement { min-height: 60svh; }
  .statement-primary .hero-line { font-size: clamp(34px, 9vw, 72px); }

  /* ── Shoe reveal ── */
  #shoe-reveal { min-height: 60svh; }
  .shoe-box-scene { transform: translate(-50%, -50%) scale(0.5); }
  .shoe-reveal-img { width: 200px; }

  /* ── Category / product panels ── */
  .cat-panel {
    height: auto;
    min-height: 100svh;
    padding: 80px 20px 60px;
  }
  .cat-panel-title { font-size: clamp(32px, 9vw, 64px) !important; padding: 0 !important; }
  .cat-panel-ar    { font-size: clamp(16px, 4vw, 26px); }
  .cat-panel-badge { display: none; }
  .cat-panel-index { top: 20px; left: 20px; }
  .panel-top-btn   { top: 16px; right: 16px; font-size: 10px; padding: 5px 10px; }

  /* Product panel: single column, image on top */
  .panel-product-body {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 !important;
    width: 100%;
  }
  .panel-product-img-wrap { order: -1; }
  .panel-product-img {
    width: min(240px, 70vw) !important;
    max-height: 40svh;
    margin: 0 auto;
  }
  .panel-product-text {
    align-items: center !important;
    text-align: center !important;
  }
  .panel-product-text .cat-panel-title,
  .panel-product-text .cat-panel-ar,
  .panel-desc,
  .panel-rating  { text-align: center; }
  .panel-rating  { justify-content: center; }
  .panel-desc    { font-size: 14px; margin: 10px 0 14px; }

  /* Event panel: single column */
  .panel-event-body {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 !important;
    width: 100%;
  }
  .panel-event-img { max-height: 30svh; width: 100%; }
  .panel-event-text { text-align: center; align-items: center; }

  /* Hero fallback panel */
  .panel-hero-logo { width: min(180px, 60vw); }
  .panel-hero-sig  { font-size: 13px; }

  /* ── Newsletter ── */
  #newsletter-section { padding: 60px 20px; }
  .newsletter-form {
    flex-direction: column !important;
    border: none !important;
    gap: 8px;
  }
  .newsletter-input {
    border: 0.5px solid var(--card-border) !important;
    padding: 14px 16px;
  }
  .newsletter-btn { width: 100%; padding: 14px; }

  /* ── Footer ── */
  #footer { padding: 50px 20px 80px; }
  .footer-logo { font-size: 28px; margin-bottom: 32px; letter-spacing: 0.15em; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  #footer::before { left: 20px; right: 20px; }
}

@media (max-width: 430px) {
  .cat-panel-title { font-size: clamp(28px, 10vw, 48px) !important; }
  .panel-product-img { width: min(200px, 80vw) !important; }
  .hero-ctas { gap: 8px; }
  .btn-primary, .btn-secondary { font-size: 11px; padding: 12px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { font-size: 24px; }
  #shoe-reveal { min-height: 50svh; }
  .shoe-box-scene { transform: translate(-50%, -50%) scale(0.4); }
}

main {
  width: 100%;
  overflow-x: clip;
}

section,
footer {
  width: 100%;
  max-width: 100vw;
}

#top-bar,
#bottom-bar {
  min-width: 0;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

#top-bar .bar-left,
#top-bar .bar-right {
  min-width: 0;
}

#top-bar .bar-left {
  overflow: hidden;
  text-overflow: ellipsis;
}

#menu-btn {
  white-space: nowrap;
}

.nav-links {
  width: min(92vw, 760px);
  max-height: calc(100svh - 120px);
  overflow-y: auto;
  padding: 24px 0;
}

#hero,
#statement,
#shoe-reveal,
.cat-panel {
  min-height: calc(100svh - (var(--bar-h) * 2));
}

.statement-primary,
.statement-secondary,
.statement-arabic,
.reveal-title-wrap {
  max-width: min(1100px, 92vw);
}

.hero-line,
.cat-panel-title,
.section-title,
.promo-code-display {
  overflow-wrap: anywhere;
}

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.product-card,
.product-shimmer {
  min-width: 0;
}

@media (min-width: 769px) and (max-width: 1180px) {
  :root { --bar-h: 46px; }
  #hero { padding: 88px 32px 72px; }
  #hero-logo { width: clamp(240px, 40vw, 420px); }
  .statement-primary .hero-line { font-size: clamp(48px, 9vw, 96px); }
  .shoe-box-scene { transform: translate(-50%, -50%) scale(0.82); }
  .shoe-reveal-img { width: min(320px, 42vw); }
  .cat-panel-title { font-size: clamp(54px, 10vw, 96px); }
  .cat-panel-index { left: 28px; }
  .cat-panel-badge { right: 28px; width: 90px; height: 90px; }
  #products-section,
  #promo-section,
  #newsletter-section { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 768px) {
  :root { --bar-h: 50px; }

  body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body.lenis-smooth {
    overflow: auto !important;
  }

  main {
    padding-top: var(--bar-h);
    padding-bottom: 0;
  }

  #top-bar {
    height: var(--bar-h);
    padding: 0 14px;
  }

  #bottom-bar {
    display: none;
  }

  #top-bar .bar-center img {
    height: 20px !important;
    max-width: 132px;
  }

  #menu-btn {
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  #nav-overlay {
    justify-content: flex-start;
    padding-top: calc(var(--bar-h) + 36px);
    overflow-y: auto;
  }

  #nav-close {
    top: 18px;
    right: 16px;
  }

  .nav-links {
    width: 100%;
    max-height: none;
    padding: 0 18px 40px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links a {
    font-size: clamp(32px, 11vw, 52px);
    line-height: 1.05;
  }

  .nav-ar {
    font-size: 13px;
  }

  #grid-overlay,
  #satin-canvas {
    display: none !important;
  }

  #hero {
    min-height: calc(100svh - var(--bar-h));
    padding: 52px 18px 42px;
  }

  #hero-logo {
    width: min(255px, 76vw);
  }

  .hero-signature {
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.35;
  }

  .hero-ctas {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: min(100%, 330px);
    padding: 13px 18px;
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  #statement {
    min-height: 58svh;
    padding: 54px 18px;
  }

  .statement-primary,
  .statement-secondary,
  .statement-arabic {
    position: static;
    padding: 0;
  }

  .statement-primary .hero-line {
    font-size: clamp(36px, 12vw, 72px);
    line-height: 1;
  }

  #shoe-reveal {
    min-height: 74svh;
    padding: 52px 18px;
  }

  .shoe-box-scene {
    transform: translate(-50%, -50%) scale(0.54);
    transform-origin: center center;
  }

  .shoe-reveal-img {
    width: min(245px, 76vw);
    max-width: 76vw;
  }

  .reveal-title-wrap {
    bottom: 42px;
    padding: 0 18px;
  }

  #categories-section,
  #cat-panels-wrap {
    overflow: visible;
  }

  .cat-panel {
    height: auto;
    min-height: 78svh;
    padding: 70px 18px 64px;
  }

  .cat-panel-index {
    top: 18px;
    left: 18px;
  }

  .cat-panel-label {
    margin-bottom: 16px;
  }

  .cat-panel-title {
    font-size: clamp(36px, 12vw, 68px);
    line-height: 0.98;
    padding: 0;
  }

  .cat-chips {
    margin-top: 24px;
    row-gap: 8px;
  }

  .cat-chip-sep {
    display: none;
  }

  .cat-panel-badge {
    display: none;
  }

  #products-section,
  #promo-section,
  #newsletter-section {
    padding: 64px 18px;
  }

  .section-title {
    font-size: clamp(30px, 9vw, 46px);
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 430px;
    gap: 18px;
    margin-top: 36px;
  }

  .product-body {
    padding: 18px;
  }

  .product-badge,
  .stock-badge {
    top: 12px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .product-badge { left: 12px; }
  .stock-badge { right: 12px; }

  .promo-code-display {
    margin: 28px 0;
    gap: 0.02em;
    font-size: clamp(34px, 12vw, 74px);
  }

  .promo-subtitle {
    font-size: 13px;
    line-height: 1.55;
    letter-spacing: 0.12em;
  }

  .promo-conditions,
  .countdown-wrap {
    gap: 14px;
  }

  .promo-cond {
    width: calc(50% - 10px);
  }

  .promo-cond-icon {
    width: 42px;
    height: 42px;
  }

  .countdown-unit {
    width: calc(50% - 12px);
  }

  .newsletter-form {
    width: 100%;
  }

  #footer {
    padding: 56px 18px 42px;
  }
}

@media (max-width: 420px) {
  :root { --bar-h: 48px; }

  #top-bar {
    padding: 0 10px;
  }

  #top-bar .bar-center img {
    height: 18px !important;
    max-width: 110px;
  }

  #menu-btn {
    padding: 5px 8px;
    font-size: 9px;
  }

  #hero-logo {
    width: min(210px, 72vw);
  }

  .hero-signature {
    font-size: 13px;
    letter-spacing: 0.16em;
  }

  .shoe-box-scene {
    transform: translate(-50%, -50%) scale(0.43);
  }

  .shoe-reveal-img {
    width: min(220px, 78vw);
  }

  .promo-cond,
  .countdown-unit {
    width: 100%;
  }

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

/* ══════════════════════════════════════════════
   TOUCH DEVICE — hide ribbon regardless of width/orientation
══════════════════════════════════════════════ */
@media (hover: none), (pointer: coarse) {
  body, * { cursor: auto !important; }
  #cursor, #cursor-dot, #cursor-label { display: none !important; }
}

/* ══════════════════════════════════════════════
   LANDSCAPE PHONE — phones rotated to landscape
   (tall phones in landscape: height ≤ 500px)
══════════════════════════════════════════════ */
@media (orientation: landscape) and (max-height: 500px) {
  #grid-overlay        { display: none !important; }
  #satin-canvas        { display: none !important; }
  #bottom-bar          { display: none; }

  :root { --bar-h: 44px; }

  #hero {
    min-height: 100svh;
    padding: 52px 24px 36px;
  }
  #hero-logo { width: min(180px, 36vw); }
  .hero-signature { font-size: 12px; letter-spacing: 0.16em; margin-top: 10px; }
  .hero-arabic  { font-size: clamp(14px, 3vw, 20px); margin-bottom: 16px; }
  .hero-ctas    { flex-direction: row; gap: 10px; }
  .btn-primary, .btn-secondary { width: auto; padding: 11px 22px; font-size: 11px; }

  #statement  { min-height: 100svh; padding: 52px 24px; }
  .statement-primary .hero-line { font-size: clamp(28px, 7vw, 56px); }

  #shoe-reveal { min-height: 100svh; }
  .shoe-box-scene { transform: translate(-50%, -50%) scale(0.48); }
  .shoe-reveal-img { width: min(200px, 38vw); }

  .cat-panel {
    height: auto;
    min-height: 100svh;
    padding: 60px 20px 40px;
  }
  .cat-panel-title { font-size: clamp(28px, 6vw, 52px) !important; padding: 0 !important; }
  .cat-panel-ar    { font-size: clamp(14px, 3vw, 22px); }
  .cat-panel-badge { display: none; }
  .cat-panel-index { top: 14px; left: 16px; }
  .panel-top-btn   { top: 10px; right: 14px; font-size: 9px; padding: 4px 8px; }

  .panel-product-body,
  .panel-event-body {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    padding: 0 !important;
  }
  .panel-product-img { width: min(180px, 32vw) !important; }
  .panel-event-img   { max-height: 42svh; }
  .panel-product-text { align-items: flex-start !important; text-align: left !important; }

  #products-section, #promo-section, #newsletter-section { padding: 52px 20px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .countdown-num { font-size: 28px; }
  .promo-cond    { width: calc(50% - 8px); }

  #footer { padding: 40px 20px 56px; }
  .footer-logo { font-size: 24px; margin-bottom: 24px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* Screen-reader only — hidden visually but readable by crawlers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
