/* =====================================================================
   WARQA — styles
   Brand colours: ink black and cream paper (the logo «أول نقطة»), with antique gold #B8925A as the one accent
   (chosen 2026-11-19; it replaced the Syrian green).
   Dark theme is the default; html[data-theme="light"] switches to light.
   ("paper" = page background, "ink" = text — they swap between themes.)
   ===================================================================== */
:root {
  --paper:   #0E0D0C;   /* page background (ink black) */
  --paper-2: #1A1816;
  --card:    #1B1917;
  --ink:     #F0E6D2;   /* main text (paper cream) */
  --ink-2:   #A99E8C;   /* muted text */
  --line:    #322D27;
  --accent:  #B8925A;   /* antique gold (fills: buttons, dots, the logo's dot + line) */
  --accent-2:#A07C48;   /* hover */
  --accent-text: #D2B07A; /* the same gold, lighter, for words on the dark page */
  --on-accent: #121110;     /* text / icons ON an accent fill (buttons, chips, badges): ink on gold */
  --accent-on-sheet: #7A5A2A; /* the gold, deeper, for words on cream paper (cards, labels) */
  --accent-glow: rgba(184, 146, 90, .55); /* soft glow under accent buttons */
  --sheet:   #F0E6D0;   /* cream paper (the logo's sheet) */
  --sheet-ink:   #121110;
  --sheet-ink-2: #5C5347;
  --sage:    #7F8F72;
  --mustard: #E3A93F;
  --flag-sy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='none'%3E%3Crect width='30' height='6.67' fill='%23007A3D'/%3E%3Crect y='6.67' width='30' height='6.66' fill='%23FFFFFF'/%3E%3Crect y='13.33' width='30' height='6.67' fill='%23000000'/%3E%3Cpolygon points='7.50,7.80 8.09,9.59 9.97,9.60 8.45,10.71 9.03,12.50 7.50,11.40 5.97,12.50 6.55,10.71 5.03,9.60 6.91,9.59' fill='%23CE1126'/%3E%3Cpolygon points='15.00,7.80 15.59,9.59 17.47,9.60 15.95,10.71 16.53,12.50 15.00,11.40 13.47,12.50 14.05,10.71 12.53,9.60 14.41,9.59' fill='%23CE1126'/%3E%3Cpolygon points='22.50,7.80 23.09,9.59 24.97,9.60 23.45,10.71 24.03,12.50 22.50,11.40 20.97,12.50 21.55,10.71 20.03,9.60 21.91,9.59' fill='%23CE1126'/%3E%3C/svg%3E");
  --wa:      #1FAF54;   /* WhatsApp green */
  --wa-2:    #178F44;
  --rack-dim: rgba(10, 8, 6, .40);           /* dims the rail photo in dark mode */
  --room-filter: brightness(.78) saturate(.92);  /* dims the shelves + objects in dark mode */
  --grain-blend: screen; --grain-opacity: .10;
  color-scheme: dark;

  --radius: 18px;
  --shadow: 0 18px 40px -20px rgba(50, 35, 20, .45);
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);

  /* realistic room materials (all generated, no image files needed) */
  --tex-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .26 0 0 0 0 .18 0 0 0 .20 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --tex-blotch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .25 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0025 .2' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .13 0 0 0 0 .05 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --tex-planks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 100' preserveAspectRatio='none'%3E%3Cpath d='M0 3.5H10M0 9H10M0 15.5H10M0 23H10M0 32H10M0 42.5H10M0 54.5H10M0 68H10M0 83H10' stroke='%233a2210' stroke-opacity='.5' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
html[data-theme="light"] {
  --paper:   #F1E9DA;
  --paper-2: #E6DBC6;
  --card:    #FBF7EE;
  --ink:     #121110;
  --ink-2:   #5E574D;
  --line:    #D6CAB4;
  --accent-text: #7A5A2A;
  --sheet:   #FFFBF2;
  --rack-dim: transparent;
  --room-filter: none;
  --grain-blend: multiply; --grain-opacity: .28;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* subtle paper grain over the page */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend); background-image: var(--tex-fine);
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.25; margin: 0; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -.02em; line-height: 1.12; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .2s, background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 22px -12px rgba(0,0,0,.6); }
.btn-primary:hover { background: #000; }
.btn-ghost { border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-2); }
.btn-block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: transparent; transition: background .2s;
}
.icon-btn:hover { background: var(--paper-2); }
.round-btn {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; border: 0;
  background: var(--card); box-shadow: 0 10px 24px -12px rgba(40,25,10,.55), 0 0 0 1px rgba(0,0,0,.04);
  display: grid; place-items: center; transition: transform .2s, background .2s;
}
.round-btn:hover { transform: scale(1.08); background: #fff; }
html[dir="rtl"] .round-btn svg { transform: scaleX(-1); }
.link-btn { background: none; border: 0; color: var(--ink-2); text-decoration: underline; font-size: 14px; padding: 6px; }

.eyebrow {
  margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1; }
.main-nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s;
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  border: 1.5px solid var(--ink); background: transparent; border-radius: 999px;
  padding: 6px 14px; font-weight: 600; font-size: 14px; transition: background .2s, color .2s;
}
.lang-btn:hover { background: var(--ink); color: var(--paper); }
.bag-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
}
.bag-count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.bag-count.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px;
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(24px, 4vw, 48px);
  min-height: min(84vh, 760px);
}
.hero-title { font-size: clamp(34px, 4.6vw, 64px); font-weight: 800; line-height: 1.2; margin-bottom: 22px; }
.hero-title span { display: block; }
.hero-title .accent { color: var(--accent-text); }
/* "designed & printed in Syria" with the waving flag */
.hero-made {
  display: flex; width: fit-content; align-items: center; gap: 10px; margin: 0 0 16px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
[dir="rtl"] .hero-made { padding: 6px 10px 6px 14px; }
.syria-flag {
  flex: none; position: relative; display: flex; width: 27px; height: 18px; direction: ltr;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .45));
}
.syria-flag i {
  flex: 1 0 0; margin-right: -.6px; height: 100%; background: var(--flag-sy) calc(var(--k) * 100% / 13) 0 / 27px 18px no-repeat;
  animation: flagRipple 1.8s ease-in-out infinite; animation-delay: calc(var(--k) * -.11s);
}
.syria-flag i:first-child { border-radius: 2px 0 0 2px; } .syria-flag i:last-child { border-radius: 0 2px 2px 0; }
@keyframes flagRipple {
  0%, 100% { transform: translateY(-1px); filter: brightness(1.08); }
  50%      { transform: translateY(1px);  filter: brightness(.82); }
}
/* the hero text is PRINTED when the page opens: a thin print head moves down in small steps
   (like the passes of a printer) and everything above it has been printed */
@property --print { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
.hero-text { position: relative; }
.hero-text:not(.printed) {
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--print), transparent var(--print));
          mask-image: linear-gradient(to bottom, #000 var(--print), transparent var(--print));
  animation: heroPrint 2.4s steps(36, end) .25s backwards;
}
.hero-text:not(.printed)::after {
  content: ''; position: absolute; inset-inline: -10px; top: calc(var(--print) - 3px); height: 3px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 14px 2px var(--accent-glow); pointer-events: none;
  animation: heroPrint 2.4s steps(36, end) .25s backwards, heroHeadOff .25s ease 2.65s forwards;
}
@keyframes heroPrint { from { --print: 0%; } to { --print: 100%; } }
@keyframes heroHeadOff { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-text:not(.printed) { -webkit-mask-image: none; mask-image: none; animation: none; }
  .hero-text:not(.printed)::after { display: none; }
  .syria-flag i { animation: none; }
}
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; margin: 0 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; max-width: 600px; width: 100%; justify-self: center; display: flex; flex-direction: column; gap: 10px; }
/* one design, four pieces on a studio wall under a soft spotlight. Each piece: --x (from the reading side),
   --y, --w (% of the stage), --r (turn, mirrored in Arabic), --z (layer), --d (when it arrives).
   The design's name sits like a gallery label in the free corner under the hoodie (below everything on phones). */
.hp-stage { --dir: 1; position: relative; aspect-ratio: 100 / 82; }
[dir="rtl"] .hp-stage { --dir: -1; }
.hp-stage::before {
  content: ''; position: absolute; inset: -6% 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 46% at 50% 42%, color-mix(in srgb, var(--sheet) 11%, transparent), transparent 72%);
}
.hp-item {
  position: absolute; display: block; padding: 0; border: 0; background: none; cursor: pointer;
  inset-inline-start: var(--x); top: var(--y); width: var(--w); z-index: var(--z, 1);
  transform: rotate(calc(var(--r, 0deg) * var(--dir))); transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
  animation: hpIn .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) backwards;
  will-change: transform;          /* drawn straight, then turned as a whole: keeps thin lines smooth */
}
.hp-front  { --x: 2%;  --y: 10%; --w: 47%; --r: 0deg;  --z: 4; --d: .3s; }
.hp-back   { --x: 34%; --y: 0%;  --w: 35%; --r: 6deg;  --z: 2; --d: .2s; }
.hp-art    { --x: 71%; --y: 6%;  --w: 28%; --r: 5deg;  --z: 1; --d: 0s; }
.hp-poster { --x: 47%; --y: 44%; --w: 27%; --r: -4deg; --z: 5; --d: .1s; }
.hp-item:hover, .hp-item:focus-visible { z-index: 7; transform: translateY(-6px) rotate(0deg) scale(1.03); }
.hero-art.hp-out .hp-item, .hero-art.hp-out .hp-name { opacity: 0; transform: translateY(10px) rotate(calc(var(--r, 0deg) * var(--dir))); }
.hero-art.hp-still .hp-item { animation: none; }
.hp-name { transition: opacity .3s ease; }
@keyframes hpIn { from { opacity: 0; transform: translateY(22px) rotate(calc(var(--r, 0deg) * var(--dir) * 2.5)) scale(.95); } }
.hp-hanger { position: relative; display: block; transform-origin: 50% 2%; animation: idleSwing 5s ease-in-out infinite; }
.hp-back .hp-hanger { animation-delay: -2.2s; }
.hp-hanger .garment-photo { filter: drop-shadow(0 24px 20px rgba(0, 0, 0, .42)); }
.hp-pin {
  position: absolute; z-index: 3; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F3DDB0, var(--accent) 55%, #4A3518); box-shadow: 0 4px 5px rgba(0, 0, 0, .45);
}
.hp-back .hp-pin { width: 10px; height: 10px; margin-left: -5px; top: -5px; background: radial-gradient(circle at 35% 30%, #8a8580, #2a2724 60%, #0b0a09); }
.hp-art .frame, .hp-poster .frame { box-shadow: 0 26px 30px -14px rgba(0, 0, 0, .7), 0 2px 5px rgba(0, 0, 0, .35); }
.hp-caption {
  position: absolute; z-index: 6; bottom: 1%; inset-inline-start: 3%; width: 44%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; text-align: start;
}
.hp-caption .hp-name { order: -1; flex: 1 0 100%; }
@media (max-width: 860px) {                       /* phones and tablets: the label goes under the pieces */
  .hp-caption { position: static; width: auto; flex-wrap: nowrap; justify-content: center; gap: 14px; text-align: center; }
  .hp-caption .hp-name { order: 0; flex: 0 1 auto; }
}
.hp-name strong { display: block; font-family: var(--display); font-size: 18px; line-height: 1.3; }
.hp-name small { display: block; color: var(--ink-2); font-size: 13px; }
.hp-nav {
  flex: none; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s;
}
.hp-nav:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .hp-hanger, .hp-item { animation: none; } .hp-item { transition: none; } }
@keyframes idleSwing { 0%, 100% { rotate: 1.5deg; } 50% { rotate: -1.5deg; } }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 100px) var(--gutter); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head h2 { font-size: clamp(30px, 4vw, 52px); }
.section-sub { margin: 12px 0 0; color: var(--ink-2); max-width: 40em; }
.section-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-size: 14px; font-weight: 500; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.hint { text-align: center; color: var(--ink-2); font-size: 14px; margin: 14px 0 0; }

/* ---------- shared room materials ---------- */
.room-base {
  position: absolute; left: 0; right: 0;
  background: linear-gradient(#fbf8f2, #ebe4d7 70%, #d9d0c0);
  box-shadow: 0 -6px 10px -6px rgba(60, 40, 20, .35), inset 0 1px 0 #fff;
}
.room-floor {
  position: absolute; left: 0; right: 0; bottom: 0;
  background-color: #A87A4C;
  background-image:
    linear-gradient(180deg, rgba(255, 236, 210, .22), rgba(255, 236, 210, 0) 40%, rgba(40, 20, 5, .22)),
    var(--tex-planks), var(--tex-grain);
  background-size: 100% 100%, 100% 100%, 600px 100%;
}
.room-floor::before { /* contact shadow where floor meets the skirting */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px;
  background: linear-gradient(rgba(40, 20, 5, .35), transparent);
}

/* ---------- curved clothes rack ---------- */
.rack {
  --tilt: 0deg;
  position: relative; overflow: hidden;
  height: clamp(460px, 54vw, 640px);
  margin-inline: calc(var(--gutter) * -1);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  background: #E6DCCA;
}
.rack:focus-visible { outline-offset: -4px; }
.rack.dragging { cursor: grabbing; }
.rack-wall {
  position: absolute; left: 0; right: 0; top: 0; bottom: 18%;
  background-color: #E6DCCA;
  background-image:
    radial-gradient(ellipse 42% 62% at 50% 28%, rgba(255, 246, 228, .85), rgba(255, 246, 228, 0) 72%),
    radial-gradient(ellipse 18% 40% at 12% 0%, rgba(255, 244, 222, .5), transparent 70%),
    radial-gradient(ellipse 18% 40% at 88% 0%, rgba(255, 244, 222, .5), transparent 70%),
    linear-gradient(180deg, rgba(60, 40, 20, .16), rgba(60, 40, 20, 0) 22%, rgba(60, 40, 20, 0) 75%, rgba(60, 40, 20, .12)),
    var(--tex-fine), var(--tex-blotch);
}
.rack-base { bottom: 15.5%; height: 2.6%; }
.rack-floor { height: 15.6%; }
.rack-rail { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.rack-items { position: absolute; inset: 0; z-index: 2; }
.rack-item {
  position: absolute; left: 0; top: 0; padding: 0; border: 0; background: none;
  transform-origin: 50% 0; will-change: transform, opacity; visibility: hidden;
}
.rack-item:focus-visible { outline: none; }
.rack-item:focus-visible .garment { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 12px; }
.rack-item .hanger {
  display: block; position: relative;
  transform-origin: 50% 1%; transform: rotate(var(--tilt));
  filter: brightness(var(--shade, 1));
}
.swing { display: block; transform-origin: 50% 1%; }
.swing.go { animation: swing 1.7s cubic-bezier(.3,.6,.4,1); }
@keyframes swing {
  0%   { transform: rotate(0); }
  14%  { transform: rotate(calc(var(--push, 1) * 8deg)); }
  34%  { transform: rotate(calc(var(--push, 1) * -5deg)); }
  54%  { transform: rotate(calc(var(--push, 1) * 2.8deg)); }
  74%  { transform: rotate(calc(var(--push, 1) * -1.2deg)); }
  100% { transform: rotate(0); }
}
.garment { display: block; width: 100%; height: auto; overflow: visible;
  filter: drop-shadow(0 26px 22px rgba(60, 38, 15, .26)) drop-shadow(0 4px 4px rgba(60, 38, 15, .12)); }
.garment-photo { display: block; width: 100%; aspect-ratio: 200 / 248; object-fit: contain; object-position: top;
  filter: drop-shadow(0 26px 22px rgba(60, 38, 15, .26)); }
.badge {
  position: absolute; top: 30%; inset-inline-end: 6%;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; transform: rotate(8deg);
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.4);
}
.rack-plant {
  position: absolute; z-index: 3; pointer-events: none;
  bottom: -1%; inset-inline-end: 1.5%; height: 46%; aspect-ratio: 120 / 200;
}
.rack-plant svg { width: 100%; height: 100%; display: block; }

.rack-info {
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 28px);
  margin-top: -36px; position: relative; z-index: 4;
}
.rack-card {
  background: var(--card); border-radius: 22px; padding: 18px 26px 20px; text-align: center;
  box-shadow: 0 24px 40px -24px rgba(40, 25, 10, .55), 0 0 0 1px rgba(0,0,0,.03);
  min-width: min(340px, 64vw); animation: cardIn .35s ease;
}
.rack-card .eyebrow { margin-bottom: 4px; }
.rack-card h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 6px; }
.rack-meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.rack-meta strong { font-size: 18px; }
.rack-card .btn { padding: 10px 22px; font-size: 14px; }
@keyframes cardIn { from { opacity: .4; transform: translateY(6px); } }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); display: block; }
.rack-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.rack-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--line); transition: width .3s, background .3s; }
.rack-dots button[aria-current="true"] { width: 26px; background: var(--ink); }

/* ---------- gallery room (posters) ---------- */
.gallery { position: relative; margin-inline: calc(var(--gutter) * -1); }
.gallery-scroll {
  height: clamp(460px, 52vw, 640px);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  overscroll-behavior-x: contain; cursor: grab; user-select: none; -webkit-user-select: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll.dragging { cursor: grabbing; }
.gallery-scroll.dragging .g-piece { pointer-events: none; }
.gallery-room { position: relative; height: 100%; min-width: 100%; isolation: isolate; }
.g-ceiling {
  position: absolute; left: 0; right: 0; top: 0; height: 5%;
  background: linear-gradient(#ece6db, #dcd3c4);
  box-shadow: 0 2px 0 #f7f2ea, 0 8px 12px -6px rgba(60, 40, 20, .35);
}
.g-wall {
  position: absolute; left: 0; right: 0; top: 5%; height: 76%;
  background-color: #D9CDB8;
  background-image:
    linear-gradient(180deg, rgba(60, 40, 20, .24), rgba(60, 40, 20, 0) 20%, rgba(60, 40, 20, 0) 78%, rgba(60, 40, 20, .16)),
    var(--tex-fine), var(--tex-blotch);
}
.gallery .room-base { top: 81%; height: 3%; }
.gallery .room-floor { top: 84%; }
.g-track {
  position: absolute; left: 0; right: 0; height: 6px; border-radius: 1px;
  background: linear-gradient(#4a4743, #23211f); box-shadow: 0 3px 4px rgba(0,0,0,.3);
}
.g-lamp { position: absolute; width: 28px; height: 44px; }
.g-lamp svg { display: block; width: 100%; height: 100%; overflow: visible; }
.g-lamp .lens { filter: drop-shadow(0 0 4px rgba(255, 230, 170, .95)) drop-shadow(0 2px 10px rgba(255, 220, 160, .8)); }

.g-glow, .g-cone, .g-pool { position: absolute; pointer-events: none; mix-blend-mode: screen; transition: opacity .5s; }
.g-glow { border-radius: 50%; opacity: .85;
  background: radial-gradient(closest-side, rgba(255, 232, 192, .62), rgba(255, 232, 192, .26) 55%, rgba(255, 232, 192, 0)); }
.g-glow.lit { opacity: 1; }
.g-cone { opacity: .6; filter: blur(9px); }
.g-cone i { position: absolute; inset: 0; clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  background: linear-gradient(rgba(255, 238, 205, .6), rgba(255, 238, 205, .16) 65%, rgba(255, 238, 205, 0)); }
.g-pool { border-radius: 50%; opacity: .45;
  background: radial-gradient(closest-side, rgba(255, 226, 180, .45), rgba(255, 226, 180, 0)); }

.g-piece {
  position: absolute; padding: 0; border: 0; background: none; text-align: start;
}
.g-hang { display: block; position: relative; transform-origin: 50% 0; }
.g-hang.go { animation: swingSmall 1.8s cubic-bezier(.3,.6,.4,1); }
@keyframes swingSmall {
  0% { transform: rotate(0); } 18% { transform: rotate(calc(var(--push, 1) * 2.4deg)); }
  42% { transform: rotate(calc(var(--push, 1) * -1.5deg)); } 68% { transform: rotate(calc(var(--push, 1) * .6deg)); }
  100% { transform: rotate(0); }
}
.g-cables {
  position: absolute; bottom: 100%; left: 16%; right: 16%;
  border-inline: 1px solid rgba(70, 64, 56, .55);
}
.g-cables::before, .g-cables::after { /* little hooks on the frame */
  content: ""; position: absolute; bottom: -3px; width: 5px; height: 6px; border-radius: 2px; background: #6b655c;
}
.g-cables::before { left: -3px; } .g-cables::after { right: -3px; }
.g-piece .frame {
  box-shadow: 0 26px 30px -16px rgba(30, 18, 6, .62), 0 6px 8px -3px rgba(30, 18, 6, .3);
  transition: transform .35s, box-shadow .35s;
}
.g-piece .frame::after { /* light falling from the spotlight above */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(255, 244, 222, .14), rgba(255, 244, 222, 0) 40%, rgba(0, 0, 0, .08));
}
.g-piece:hover .frame, .g-piece:focus-visible .frame {
  transform: translateY(-4px);
  box-shadow: 0 38px 36px -18px rgba(30, 18, 6, .62), 0 8px 10px -4px rgba(30, 18, 6, .3);
}
.g-label {
  position: absolute; bottom: 0; inset-inline-start: calc(100% + 18px);
  display: block; background: #FCFBF8; padding: 9px 11px 10px;
  font-size: 11px; line-height: 1.4; color: var(--ink);
  box-shadow: 0 6px 10px -6px rgba(30, 18, 6, .45), 0 0 0 1px rgba(0,0,0,.04);
}
.g-label strong { display: block; font-size: 12.5px; font-family: var(--display); font-weight: 600; }
.g-label small { display: block; color: var(--ink-2); font-size: 10px; }
.g-label em { display: block; font-style: normal; font-weight: 600; margin-top: 5px; }
.g-decor { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.g-decor > span { position: absolute; display: block; }
.g-decor svg { display: block; width: 100%; height: 100%; overflow: visible; }

.g-prev, .g-next { position: absolute; top: 46%; z-index: 5; }
.g-prev { inset-inline-start: 14px; }
.g-next { inset-inline-end: 14px; }

/* night mode: room dims, spotlights take over */
.gallery .g-wall, .gallery .g-ceiling, .gallery .room-floor, .gallery .room-base, .gallery .g-decor, .gallery .g-track { transition: filter .6s; }
.gallery.night .g-wall, .gallery.night .g-ceiling, .gallery.night .room-floor, .gallery.night .room-base { filter: brightness(.36) saturate(.9); }
.gallery.night .g-decor, .gallery.night .g-label { filter: brightness(.55); }
.gallery.night .g-glow { opacity: 1; }
.gallery.night .g-cone { opacity: .9; }
.gallery.night .g-pool { opacity: .8; }

.light-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; font-size: 14px; font-weight: 500;
}
.light-toggle[aria-pressed="true"] { background: var(--ink); color: var(--mustard); }

/* ---------- frames (used on the wall, in the modal and in the bag) ---------- */
.frame {
  display: block; position: relative; z-index: 1;
  padding: var(--fw, 9px); background: var(--fbg, #1a1918);
  box-shadow: 0 14px 22px -10px rgba(40, 25, 10, .5), 0 2px 4px rgba(0,0,0,.18);
}
.frame[data-frame="black"] { --fbg: linear-gradient(145deg, #34312d, #121110); }
.frame[data-frame="white"] { --fbg: linear-gradient(145deg, #ffffff, #e3dfd7); }
.frame[data-frame="oak"]   { --fbg: repeating-linear-gradient(100deg, #b98a57 0 6px, #a87745 6px 9px, #c19462 9px 15px); }
.frame[data-frame="none"]  { padding: 0; background: transparent; }
.mat { display: block; padding: var(--mat, calc(var(--fw, 9px) * 1.1)); background: #FBFAF6; box-shadow: inset 0 1px 3px rgba(0,0,0,.18); }
.frame[data-frame="none"] .mat { padding: 0; box-shadow: none; }
.mat svg, .mat img { display: block; width: 100%; height: auto; aspect-ratio: 300 / 420; object-fit: cover; }

/* ---------- steps / about ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px; position: relative; box-shadow: 0 1px 0 var(--line); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 20px; margin-bottom: 16px;
}
.step-wa .step-num { background: var(--wa); }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); }

.about-card {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 48px);
  background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(28px, 5vw, 64px);
}
.about-card img { flex: 0 0 auto; background: var(--paper); border-radius: 22px; padding: 10px; }
.about-card h2 { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 10px; }
.about-card p { margin: 0; color: #CFC6B6; max-width: 46em; }
.about-card .eyebrow { color: var(--mustard); }

/* ---------- footer ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding: 36px var(--gutter) 28px; border-top: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-family: var(--display); font-size: 21px; }
.footer-brand p { margin: 0; color: var(--ink-2); font-size: 14px; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-copy { width: 100%; margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }

/* ---------- modal ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 80; }
.modal[hidden], .drawer[hidden] { display: none; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(28, 22, 14, .55); animation: fade .25s; }
.modal-card {
  position: relative; margin: 4vh auto; width: min(1040px, calc(100% - 24px)); max-height: 92vh; overflow: auto;
  background: var(--paper); border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  animation: pop .35s cubic-bezier(.2,.8,.3,1.1);
}
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: var(--card); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-visual {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 28px 28px; min-height: 480px;
  background: radial-gradient(circle at 50% 40%, #FBF6EC, var(--paper-2));
  border-start-start-radius: 26px; border-end-start-radius: 26px;
}
.pd-visual .stage-bar {
  width: 80%; height: 10px; border-radius: 5px;
  background: linear-gradient(#fbfaf7 0 18%, #d3cfc8 30%, #a8a39b 60%, #5d5953);
  box-shadow: 0 8px 10px -4px rgba(0,0,0,.25);
}
.pd-visual .hanger { display: block; width: min(340px, 80%); margin-top: -9px; transform-origin: 50% 1%; }
.pd-visual .poster-view { width: min(300px, 74%); }
.pd-info { padding: 44px clamp(22px, 3vw, 40px) 32px; display: flex; flex-direction: column; gap: 18px; }
.pd-info h3 { font-size: clamp(26px, 3vw, 36px); }
.pd-price { font-size: 24px; font-weight: 700; margin: 0; }
.pd-desc { margin: 0; color: var(--ink-2); }
.opt-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.opt-label b { font-weight: 400; color: var(--ink-2); }
.swatches, .options { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--line); transition: box-shadow .2s, transform .2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.opt-btn {
  min-width: 52px; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 500; font-size: 14px; transition: all .2s;
}
.opt-btn:hover { border-color: var(--ink); }
.opt-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt-btn small { display: block; font-size: 12px; opacity: .7; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; border-radius: 50%; }
.qty button:hover { background: var(--paper-2); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }
.pd-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }

.view-tabs { position: absolute; top: 16px; inset-inline-start: 16px; display: flex; gap: 4px; background: var(--card); padding: 4px; border-radius: 999px; box-shadow: 0 2px 8px -4px rgba(0,0,0,.3); }
.view-tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.view-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.room {
  position: relative; width: 100%; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden;
  background-color: #E4DAC8;
  background-image: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(255,246,228,.7), transparent 70%), var(--tex-fine), var(--tex-blotch);
}
.room .room-floor { height: 20%; }
.room .room-base { bottom: 20%; height: 3%; }
.room-sofa { position: absolute; left: 50%; bottom: 9%; width: 66.6%; transform: translateX(-50%); z-index: 2; }
.room-poster { --fw: 4px; position: absolute; left: 50%; bottom: 47%; transform: translateX(-50%); transition: width .45s cubic-bezier(.3,.7,.3,1); }
.room-note { font-size: 12px; color: var(--ink-2); margin: 10px 0 0; text-align: center; }

/* ---------- drawer ---------- */
.drawer-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  box-shadow: -20px 0 60px -30px rgba(0,0,0,.5); animation: slideIn .35s cubic-bezier(.2,.8,.3,1);
}
html[dir="rtl"] .drawer-panel { animation-name: slideInRtl; }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideInRtl { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.drawer-items { flex: 1; overflow: auto; padding: 8px 22px; }
.bag-empty { text-align: center; color: var(--ink-2); padding: 48px 12px; }
.bag-empty svg { opacity: .35; margin-bottom: 8px; }
.bag-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.bag-thumb { --fw: 4px; width: 72px; height: 80px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; padding: 4px; }
.bag-thumb > svg, .bag-thumb > img { width: 100%; height: 100%; object-fit: contain; }
.bag-thumb .frame { width: 48px; }
.bag-info strong { display: block; font-size: 15px; line-height: 1.3; }
.bag-info small { display: block; color: var(--ink-2); font-size: 13px; }
.bag-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bag-side .qty button { width: 30px; height: 30px; font-size: 16px; }
.bag-side .qty span { min-width: 22px; font-size: 14px; }
.bag-line-price { font-weight: 700; }
.drawer-foot { padding: 16px 22px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--card); }
.drawer-foot[hidden] { display: none; }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.bag-total strong { font-size: 24px; }
.field { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 90; transform: translate(-50%, 220%); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: 999px;
  font-weight: 500; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.3,1.2), opacity .25s;
  pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { max-width: 380px; order: -1; }
  .pd { grid-template-columns: 1fr; }
  .pd-visual { min-height: 360px; border-radius: 26px 26px 0 0; }
  .steps { grid-template-columns: 1fr; }
  .about-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .brand-word { font-size: 21px; }
  .rack { height: 440px; }
  .rack-plant { height: 34%; inset-inline-end: -4%; }
  .rack-info { gap: 8px; margin-top: -28px; }
  .rack-card { padding: 14px 16px 16px; min-width: 0; flex: 1; }
  .round-btn { width: 42px; height: 42px; }
  .gallery-scroll { height: 480px; }
  .g-prev, .g-next { display: none; }
  .modal-card { margin: 0; width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .pd-visual { border-radius: 0; padding-top: 64px; }
  .section-tools { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- real rail photo (settings.railPhoto) ---------- */
.rack.photo { background-color: #d9c9b2; }
.rack.photo .rack-wall,
.rack.photo .rack-base,
.rack.photo .rack-floor,
.rack.photo .rack-plant { display: none; }
.rack.photo .garment-photo { filter: drop-shadow(0 30px 26px rgba(70, 45, 20, .30)) drop-shadow(0 6px 6px rgba(70, 45, 20, .14)); }

/* ---------- back → front turn on the rail (items with imageBack) ---------- */
.flip {
  display: block; position: relative;
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateY(0deg);
  transition: transform .9s cubic-bezier(.35, .1, .25, 1);
}
.flip .face { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .face-front { position: absolute; inset: 0; transform: rotateY(180deg); }
@media (hover: hover) {
  .rack:not(.dragging) .rack-item:hover .flip { transform: perspective(1100px) rotateY(180deg); }
}
.rack-item:focus-visible .flip,
.rack-item.turned .flip { transform: perspective(1100px) rotateY(180deg); }
@media (prefers-reduced-motion: reduce) { .flip { transition-duration: .01s; } }

/* ---------- real gallery photos (settings.galleryPhoto) ---------- */
.g-wall.g-wall-photo {
  top: 0; height: 100%;
  background-color: #ddd5c9; background-repeat: repeat-x; background-size: auto 100%;
}
.g-lamp-photo img { display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 6px 6px rgba(40, 28, 15, .25)); }
.g-decor img { display: block; width: 100%; height: 100%; object-fit: contain; }


/* ---------- full gallery wall: posters flat on the wall + "coming soon" placeholders ---------- */
.g-piece .frame[data-frame="none"],
.soon-art {
  box-shadow: 0 12px 16px -9px rgba(30, 18, 6, .5), 0 2px 3px rgba(30, 18, 6, .22);
}
.g-piece:hover .frame[data-frame="none"], .g-piece:focus-visible .frame[data-frame="none"] {
  transform: translateY(-2px);
  box-shadow: 0 18px 20px -10px rgba(30, 18, 6, .55), 0 3px 4px rgba(30, 18, 6, .22);
}
.g-label.g-label-below {
  top: calc(100% + 12px); bottom: auto; left: 50%; right: auto; inset-inline-start: auto;
  transform: translateX(-50%); text-align: center;
}
.g-soon { position: absolute; display: block; pointer-events: none; }
.soon-art {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9em;
  width: 100%; aspect-ratio: 300 / 420; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 75% at 50% 35%, rgba(255, 255, 255, .07), rgba(0, 0, 0, .12)),
    var(--soon);
  color: var(--soon-ink); font-family: var(--display); letter-spacing: .22em; text-transform: uppercase;
}
.soon-art::before { /* a small seal */
  content: ""; width: 26%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid currentColor; opacity: .45;
}
.soon-art b { font-weight: 600; opacity: .85; letter-spacing: .12em; }
.soon-art small { font-size: .62em; opacity: .5; }
.gallery.night .g-soon { filter: brightness(.6); }


/* ---------- salon wall: fewer spotlights + hover (tilt, lift, shine, light, label) ---------- */
.g-glow.g-wash { opacity: .7; }
.g-glow.g-hl { opacity: 0; transition: opacity .35s; }
.g-glow.g-hl.lit { opacity: .95; }
.gallery.night .g-glow.g-hl:not(.lit) { opacity: 0; }
.g-soon { pointer-events: auto; cursor: default; }
.gallery-scroll.dragging .g-soon { pointer-events: none; }
.g-piece, .g-soon { --rx: 0deg; --ry: 0deg; }
.g-piece.hover, .g-soon.hover { z-index: 6; }
.g-piece .g-hang, .g-soon .g-hang {
  display: block; position: relative;
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.g-piece.hover .g-hang, .g-soon.hover .g-hang {
  transform: perspective(700px) translateZ(30px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .14s ease-out;
}
.g-piece:hover .frame, .g-piece:focus-visible .frame,
.g-piece:hover .frame[data-frame="none"], .g-piece:focus-visible .frame[data-frame="none"] { transform: none; }
.g-piece.hover .frame[data-frame="none"], .g-soon.hover .soon-art {
  box-shadow: 0 34px 30px -16px rgba(30, 18, 6, .6), 0 8px 10px rgba(30, 18, 6, .18);
}
.g-sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: screen;
}
.hover > .g-hang > .g-sheen { opacity: 1; }
.g-label.g-label-below {
  opacity: 0; pointer-events: none; z-index: 3;
  transform: translate(-50%, 8px); transition: opacity .3s, transform .3s;
}
.g-piece.hover .g-label-below, .g-piece:focus-visible .g-label-below { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .g-label.g-label-below { opacity: 1; transform: translate(-50%, 0); } }
/* bottom shelf: the card shows ABOVE the poster (below it there is no wall left, it would be cut off) */
.g-label.g-label-above {
  top: auto; bottom: calc(100% + 10px); left: 50%; right: auto; inset-inline-start: auto; text-align: center;
  opacity: 0; pointer-events: none; z-index: 3;
  transform: translate(-50%, -8px); transition: opacity .3s, transform .3s;
}
.g-piece.hover .g-label-above, .g-piece:focus-visible .g-label-above { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .g-label.g-label-above { display: none; } }
@media (prefers-reduced-motion: reduce) { .g-piece .g-hang, .g-soon .g-hang { transition: none; } }


/* ---------- real rooms for "On the wall" (settings.rooms) ---------- */
.room.room-photo {
  aspect-ratio: 1 / 1; background-color: #d8d0c4;
  background-size: cover; background-position: center;
}
.room-photo .room-poster {
  bottom: auto; transform: translate(-50%, -50%);
  transition: width .45s cubic-bezier(.3, .7, .3, 1), filter .3s;
}
.room-photo .room-poster .frame[data-frame="none"] {
  box-shadow: 0 6px 9px -5px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .25);
}
.room-next {
  position: absolute; bottom: 12px; inset-inline-end: 12px; width: 38px; height: 38px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(252, 250, 246, .92); color: var(--ink); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4);
  transition: transform .3s;
}
.room-next:hover { transform: rotate(-60deg); }
.room-next svg { width: 18px; height: 18px; }

/* ---------- poster popup: "Close-up" (the same room, zoomed in on the hanging poster) ---------- */
.close-view {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
  background: #cfc6b8; isolation: isolate;
}
.close-view::after { /* lens vignette */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 55%, rgba(0, 0, 0, .28));
}
.close-scene { position: absolute; animation: closeIn .7s cubic-bezier(.2, .7, .3, 1); }
.close-bg {
  position: absolute; inset: -1%; background-size: 100% 100%; background-color: #d8d0c4;
  filter: blur(2.2px) saturate(.95); /* the room behind the poster is out of focus */
}
.close-poster { position: absolute; z-index: 1; transform: translate(-50%, -50%) rotate(-.4deg); }
.close-poster .frame { --fw: 14px; }
.close-poster .frame[data-frame="none"] {
  box-shadow: 0 22px 30px -16px rgba(0, 0, 0, .6), 0 4px 8px -3px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .25);
}
.close-sheen { /* paper: soft light from the top-left, a little tooth */
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .14)), var(--tex-fine);
  mix-blend-mode: soft-light;
}
/* real close-up photos (settings.closeups): the poster is fitted over the blank sheet in the photo */
.cu-photo { background-size: 100% 100%; background-color: #d8d0c4; animation: fadeIn .4s ease; }
.cu-photo::after { display: none; }
.cu-poster { position: absolute; left: 0; top: 0; z-index: 1; width: 600px; transform-origin: 0 0; }
.cu-poster .frame, .cu-poster .frame[data-frame="none"] { box-shadow: none; }
.cu-shade { /* the photo's own light and shadow on the sheet, laid over the poster */
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-size: 100% 100%; mix-blend-mode: multiply; filter: grayscale(.35) brightness(1.06);
}
.cu-over { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.cu-photo .room-next { z-index: 4; }
@keyframes closeIn { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .close-scene { animation: none; } }

/* ---------- hoodie popup: "On the hanger" / "Worn" ---------- */
.pd-visual .model-view { display: none; }
.pd-visual[data-view="model"] .stage-bar,
.pd-visual[data-view="model"] .hanger { display: none; }
.pd-visual[data-view="model"] { padding: 0; }
.pd-visual[data-view="model"] .model-view {
  display: block; position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
}
.pd-visual .model-view img { width: 100%; height: 100%; object-fit: cover; display: block; animation: fadeIn .4s ease; }
.pd-visual .view-tabs { z-index: 3; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* =====================================================================
   Brand layer — the logo's look across the site (dark + light)
   ===================================================================== */
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 24px -14px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-2); }
.eyebrow { color: var(--accent-text); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(-6deg); }
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.round-btn { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.round-btn:hover { background: var(--paper-2); }
.badge { border-radius: 3px; transform: rotate(-6deg); font-family: var(--display); padding: 4px 9px; }
.dots i { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
::selection { background: var(--accent); color: var(--on-accent); }

/* header: logo + theme switch */
.brand-logo { width: 40px; height: auto; transform: rotate(-4deg); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35)); }
.footer-brand .brand-logo { width: 44px; }
/* the logo «أول نقطة» (inline SVG, drawn in the text colour so it follows dark / light mode) */
.brand-mark { display: block; height: 46px; width: auto; color: var(--ink); overflow: visible; }
.footer-brand .brand-mark { height: 54px; flex: none; }
.about-mark { flex: none; width: clamp(84px, 11vw, 128px); height: auto; color: var(--ink); }
/* the logo's green: the dot (the first mark of an idea) and the line between ورقة and WARQA */
.brand-mark .mark-dot, .about-mark .mark-dot { fill: var(--accent); }
.brand-mark .mark-line { stroke: var(--accent); }
@media (max-width: 620px) { .site-header .brand-mark { height: 40px; } }
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent;
  display: grid; place-items: center; transition: background .2s, color .2s, transform .3s;
}
.theme-btn:hover { background: var(--ink); color: var(--paper); transform: rotate(-20deg); }
.theme-btn .i-moon, html[data-theme="light"] .theme-btn .i-sun { display: none; }
html[data-theme="light"] .theme-btn .i-moon { display: block; }

/* clean paper sheets (the new logo: a plain sheet; the first dot of an idea sits top right) */
.sheet-card { position: relative; }
.sheet-card::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); pointer-events: none;
}
.sheet-shadow { filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .45)); }
.rack-card {
  background: var(--tex-fine), var(--sheet); color: var(--sheet-ink);
  border-radius: 2px; box-shadow: none; padding-bottom: 22px;
}
.rack-card .eyebrow { color: var(--accent-on-sheet); }
.rack-card .dots i { border-color: rgba(0, 0, 0, .25); }
.rack-soon-text { margin: 0 auto 14px; font-size: 14px; color: var(--sheet-ink-2); max-width: 24em; }
.steps { filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .4)); }
.step {
  background: var(--tex-fine), var(--sheet); color: var(--sheet-ink);
  border-radius: 2px; box-shadow: none; padding-bottom: 28px;
}
.step p { color: var(--sheet-ink-2); }
.step-num { border-radius: 4px; background: var(--accent); color: var(--on-accent); transform: rotate(-5deg); }
.step-wa .step-num { background: var(--accent); }
/* WhatsApp buttons: cream paper with the WhatsApp icon in its own green, so they never look like
   the brand's (Syrian green) buttons next to them */
.btn-wa { background: var(--sheet); color: var(--sheet-ink); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .6); }
.btn-wa:hover { background: #fff; }
.btn-wa svg { color: var(--wa); }
html[data-theme="light"] .btn-wa { background: var(--sheet-ink); color: var(--sheet); }
html[data-theme="light"] .btn-wa:hover { background: #000; }
.about-card { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.about-card p { color: var(--ink-2); }
.about-card .eyebrow { color: var(--accent-text); }
.about-card img.about-logo {
  width: clamp(120px, 17vw, 190px); height: auto; background: none; padding: 0; border-radius: 0;
  transform: rotate(-4deg); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45));
}
/* the brand slogan («فكرة بتتحول لورقة / بتنلبس و بتتعلق ع الحيط») */
.about-slogan {
  margin: 4px 0 18px; padding: 0; border: 0; position: relative;
  font-family: var(--display); font-weight: 700; line-height: 1.35; font-size: clamp(22px, 2.6vw, 34px);
  color: var(--ink); text-align: start;
}
.about-slogan span { display: block; }
.about-slogan .accent { color: var(--accent-text); }
html[dir="ltr"] .about-slogan { text-align: left; }
.about-card p.about-slogan-en { margin: -10px 0 16px; font-style: italic; font-size: 14px; }
.about-slogan-en:empty { display: none; }
/* «طباعة ع كيفك»: custom printing, on a paper note */
.about-custom {
  margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap;
  background: var(--sheet); color: var(--sheet-ink); padding: 16px 20px; border-radius: 4px;
  transform: rotate(-.6deg); box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .55);
}
.about-custom strong { display: block; font-family: var(--display); font-size: 20px; color: var(--accent-on-sheet); margin-bottom: 2px; }
.about-card .about-custom p { color: var(--sheet-ink-2); font-size: 14.5px; max-width: 34em; }
.about-custom .btn { flex: 0 0 auto; }
.about-custom .btn-wa { background: var(--sheet-ink); color: var(--sheet); }   /* ink on the cream note */
.about-custom .btn-wa:hover { background: #000; }

/* products sit on paper in the popup and the bag */
.pd-visual { background: var(--tex-fine), radial-gradient(circle at 50% 40%, #FBF4E6, var(--sheet) 72%); }
.view-tabs { background: rgba(18, 17, 16, .86); color: #F0E6D2; }
.view-tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.bag-thumb { background: var(--sheet); }
.room-next { color: #121110; }
.modal-backdrop, .drawer-backdrop { background: rgba(5, 4, 3, .7); }
.g-label { background: var(--sheet); color: var(--sheet-ink); }
.g-label small { color: var(--sheet-ink-2); }

/* clothes rail: dim the photo in dark mode (clothes stay bright) */
.rack.photo::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--rack-dim); transition: background .5s; }

/* "coming soon" clothes: a dark silhouette with a red seal */
.soon-cloth { position: relative; display: block; }
.rack .soon-cloth .garment-photo, .rack .soon-cloth .garment { filter: brightness(.05) drop-shadow(0 26px 22px rgba(0, 0, 0, .35)); }
.soon-tag {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-5deg);
  background: var(--accent); color: var(--on-accent); padding: .45em .8em .5em; border-radius: 4px;
  text-align: center; font-family: var(--display); line-height: 1.25; white-space: nowrap;
  font-size: clamp(12px, 1.25vw, 17px); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6);
}
.soon-tag b { display: block; font-weight: 700; }
.soon-tag small { display: block; font-size: .72em; opacity: .85; }

/* ---------- gallery: three wooden shelves ---------- */
.gallery-scroll { height: clamp(540px, 58vw, 760px); }
.g-wall, .g-decor, .g-shelf, .g-shelf-plant { filter: var(--room-filter); transition: filter .5s; }
.g-shelf {
  position: absolute; z-index: 1; border-radius: 2px;
  background: linear-gradient(180deg, #E4C294 0 24%, #C9975F 24% 32%, #B07D4A 32% 74%, #8A5D32 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 16px -8px rgba(25, 14, 4, .55), 0 3px 4px rgba(25, 14, 4, .3);
}
.g-shelf::before { /* wood grain */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--tex-grain); background-size: 600px 100%; opacity: .45; mix-blend-mode: multiply;
}
.g-shelf::after { /* soft shadow on the wall under the ledge */
  content: ""; position: absolute; left: 1%; right: 1%; top: 100%; height: 240%; pointer-events: none;
  background: linear-gradient(rgba(25, 14, 4, .3), rgba(25, 14, 4, 0)); filter: blur(3px);
}
/* real ledge photos (settings.galleryShelves): the photo's ends stay as they are, the middle stretches;
   the back board sits behind the posters and objects, the front lip in front of them */
.g-ledge {
  position: absolute; box-sizing: border-box; display: block; pointer-events: none;
  border-style: solid; border-color: transparent; border-image-repeat: stretch;
  filter: var(--room-filter); transition: filter .5s;
}
.g-ledge-back { z-index: 0; }
.g-ledge-front { z-index: 1; }
/* the Art shelf: black-stained wood, so the black posters read as one set */
.gallery-art .g-shelf { background: linear-gradient(180deg, #5A4C40 0 24%, #33291F 24% 32%, #251D16 32% 74%, #120D09 100%); }
.gallery-art .g-shelf::before { opacity: .35; mix-blend-mode: screen; }
.g-shelf-plant { position: absolute; z-index: 0; pointer-events: none; }
.g-shelf-plant img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.g-piece, .g-soon { transform: rotate(var(--lean, 0deg)); transform-origin: 50% 100%; }
@media (hover: none) { .g-label.g-label-below { display: none; } }
@media (max-width: 620px) { .gallery-scroll { height: 560px; } }

/* ---------- hoodie popup: front + back side by side on one bar ---------- */
.pd-visual .stage-bar { width: 92%; }
.pd-pair { display: flex; justify-content: center; gap: 3%; width: 92%; margin-top: -9px; }
.pd-side { flex: 1 1 0; max-width: 300px; margin: 0; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.pd-visual .pd-pair .hanger { width: 100%; margin-top: 0; }
.pd-side figcaption {
  margin-top: 12px; padding: 4px 14px; border-radius: 3px; transform: rotate(-2deg);
  background: var(--sheet-ink); color: var(--sheet); font-family: var(--display); font-size: 13px; font-weight: 600;
}
.pd-visual[data-view="model"] .pd-pair { display: none; }

/* ---------- shelf objects (books, vase, candles, hourglass…) ---------- */
.g-deco { position: absolute; z-index: 0; pointer-events: none; filter: var(--room-filter); transition: filter .5s; }
.g-deco svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 5px 5px rgba(25, 14, 4, .35)); }
.g-deco .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.4s ease-in-out infinite; }
.g-flame {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 214, 140, .75), rgba(255, 170, 70, .25) 45%, rgba(255, 150, 50, 0));
  animation: glow 2.4s ease-in-out infinite;
}
html[data-theme="light"] .g-flame { opacity: .45; }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  25% { transform: scale(.94, 1.06) rotate(-2deg); }
  50% { transform: scale(1.04, .95) rotate(1.5deg); }
  75% { transform: scale(.97, 1.03) rotate(-1deg); }
}
@keyframes glow { 0%, 100% { opacity: .85; transform: scale(1); } 40% { opacity: 1; transform: scale(1.08); } 70% { opacity: .75; transform: scale(.95); } }


/* ---------- gallery wall: real plaster texture + soft light from above (no floor) ---------- */
.gallery-scroll { height: clamp(520px, 54vw, 720px); }
.g-wall.g-wall-tex {
  top: 0; height: 100%; filter: none;
  background-color: #2c2b29; background-image: var(--wall-dark); background-repeat: repeat;
}
html[data-theme="light"] .g-wall.g-wall-tex { background-color: #e2dbcd; background-image: var(--wall-light); }
.g-light {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 78% at 50% -6%, rgba(255, 232, 198, .16), rgba(255, 232, 198, 0) 72%) 0 0 / var(--wash, 900px) 100% repeat-x,
    linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 14%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, .55));
}
html[data-theme="light"] .g-light {
  background:
    radial-gradient(ellipse 46% 78% at 50% -6%, rgba(255, 252, 244, .55), rgba(255, 252, 244, 0) 72%) 0 0 / var(--wash, 900px) 100% repeat-x,
    linear-gradient(180deg, rgba(70, 52, 30, .2), rgba(70, 52, 30, 0) 14%, rgba(70, 52, 30, 0) 80%, rgba(70, 52, 30, .18));
}
@media (max-width: 620px) { .gallery-scroll { height: 520px; } }


/* ---------- gallery: two shelves on a wall that nearly fills the screen ---------- */
.gallery-scroll { height: clamp(520px, min(calc(100svh - 120px), 85vw), 860px); }
/* phones: about two-thirds of the screen, so the page above/below stays visible and an
   up/down swipe on the wall still scrolls the page (only left/right moves along the wall) */
@media (max-width: 620px) { .gallery-scroll { height: clamp(440px, 68svh, 600px); touch-action: pan-x pan-y; } }


/* shelf objects that are real photos (settings.shelfObjects) */
.g-deco-photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }


/* =====================================================================
   Search panel
   ===================================================================== */
.search-btn:hover { transform: none; }
.search { position: fixed; inset: 0; z-index: 85; }
.search[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 3, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s; }
.search-panel {
  position: relative; margin: 9vh auto 0; width: min(680px, calc(100% - 24px)); max-height: 80vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); animation: pop .3s cubic-bezier(.2, .8, .3, 1.1);
}
.search-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--line); }
.search-bar > svg { flex: none; opacity: .65; }
.search-bar input {
  flex: 1; min-width: 0; padding: 10px 4px; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 18px; color: var(--ink);
}
.search-bar input::placeholder { color: var(--ink-2); opacity: .8; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-body { overflow: auto; padding: 6px 14px 18px; overscroll-behavior: contain; }
.sr-label { margin: 12px 4px 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.sr-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px; }
.sr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sr-item { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.sr-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px; border: 0; border-radius: 10px;
  background: none; text-align: start; transition: background .2s;
}
.sr-main:hover, .sr-main:focus-visible { background: var(--paper-2); }
.sr-thumb { flex: none; width: 54px; height: 64px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; padding: 3px; background: var(--sheet); }
.sr-thumb img, .sr-thumb svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.sr-thumb-poster { padding: 0; background: #111; }
.sr-thumb-poster img { object-fit: cover; }
.sr-text { flex: 1; min-width: 0; }
.sr-text strong { display: block; font-size: 15px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-text small { display: block; font-size: 13px; color: var(--ink-2); }
.sr-type { flex: none; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--ink-2); }
.sr-where {
  flex: none; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent;
  font-size: 13px; font-weight: 500; white-space: nowrap; transition: border-color .2s, color .2s;
}
.sr-where:hover, .sr-where:focus-visible { border-color: var(--accent); color: var(--accent-text); }
.sr-none { text-align: center; padding: 30px 10px 16px; }
.sr-none-title { margin: 0 0 6px; font-family: var(--display); font-size: 20px; }
.sr-none p { margin: 0 0 16px; color: var(--ink-2); }
@media (max-width: 620px) {
  .search-panel { margin: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .sr-type { display: none; }
  .sr-where { padding: 8px 10px; font-size: 12px; }
}

/* share link button in the product popup */
.share-btn { justify-self: center; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.share-btn:hover { color: var(--accent-text); }

/* "Where is it?" — the found piece glows for a moment */
.rack-item.found .garment-photo { animation: foundGlow 2.6s ease; }
@keyframes foundGlow {
  0%, 100% { filter: drop-shadow(0 26px 22px rgba(60, 38, 15, .26)); }
  25%, 65% { filter: drop-shadow(0 0 20px rgba(255, 214, 150, .95)) drop-shadow(0 0 6px rgba(255, 214, 150, .9)); }
}
.g-piece.found .frame { animation: foundFrame 2.6s ease; }
@keyframes foundFrame { 25%, 65% { box-shadow: 0 0 0 3px var(--accent), 0 0 44px 12px rgba(255, 220, 170, .55); } }

/* =====================================================================
   Private links page (links.html)
   ===================================================================== */
.lk-back { padding: 9px 18px; font-size: 14px; }
.lk-main { max-width: 1180px; margin: 0 auto; }
.lk-title { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 10px; }
.lk-warn {
  margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.7;
  background: color-mix(in srgb, var(--mustard) 16%, transparent); border: 1px solid color-mix(in srgb, var(--mustard) 45%, transparent);
}
.lk-warn code, .lk-url { font-family: ui-monospace, Consolas, monospace; }
.lk-sec { margin-top: 40px; }
.lk-sec h2 { font-size: 24px; margin-bottom: 14px; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lk-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.lk-top { display: flex; align-items: center; gap: 12px; }
.lk-thumb { flex: none; width: 54px; height: 64px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--sheet); padding: 3px; }
.lk-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lk-thumb-poster { padding: 0; background: #111; } .lk-thumb-poster img { object-fit: cover; }
.lk-thumb-icon { font-size: 22px; background: var(--paper-2); }
.lk-info strong { display: block; font-size: 16px; line-height: 1.35; }
.lk-info small { color: var(--ink-2); font-size: 13px; }
.lk-url { display: block; padding: 8px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; word-break: break-all; text-align: left; color: var(--ink-2); }
.lk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-actions .btn { padding: 9px 16px; font-size: 14px; }
.lk-qr { display: grid; justify-items: center; gap: 6px; }
.lk-qr[hidden] { display: none; }
.lk-qr-img { width: 180px; padding: 8px; background: #fff; border-radius: 10px; }
.lk-qr-img svg { display: block; width: 100%; height: auto; }


/* ---------- series row (second row of filters) + item counter on the rail ---------- */
/* the series row looks different from the category buttons: light text tabs on one line with a thin
   rule under them; the chosen series is green and underlined. It scrolls sideways (swipe, wheel, arrows);
   when there is more to see, that side fades out and an arrow shows. */
.series-wrap { position: relative; margin: calc(clamp(24px, 3vw, 40px) * -0.5) 0 clamp(18px, 2.4vw, 30px); --fl: 0px; --fr: 0px; }
.series-wrap[hidden] { display: none; }
.series-wrap.can-l { --fl: 72px; }
.series-wrap.can-r { --fr: 72px; }
.series-filters {
  margin: 0; flex-wrap: nowrap; justify-content: flex-start; gap: 2px; padding: 0 2px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.series-filters::-webkit-scrollbar { display: none; }
.chip-sm { padding: 6px 13px; font-size: 13px; }
.series-filters .chip-sm {
  flex: none; position: relative; padding: 10px 14px 12px; white-space: nowrap;
  border: 0; border-radius: 0; background: none; color: var(--ink-2); font-size: 13.5px; font-weight: 500;
}
.series-filters .chip-sm:hover { color: var(--ink); border: 0; }
.series-filters .chip-sm::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2.5px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s ease;
}
.series-filters .chip-sm[aria-selected="true"] { background: none; border: 0; color: var(--accent-text); font-weight: 700; }
.series-filters .chip-sm[aria-selected="true"]::after { transform: scaleX(1); }
.series-filters .chip-sm:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 6px; }
.series-arrow {
  position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; margin-top: -16px; padding: 0;
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: var(--card); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.series-arrow:hover { transform: scale(1.08); }
.series-arrow-l { left: 0; }
.series-arrow-r { right: 0; }
.series-wrap.can-l .series-arrow-l, .series-wrap.can-r .series-arrow-r { opacity: 1; pointer-events: auto; }
/* the first time a row can scroll, its arrow nudges twice towards the hidden series */
.series-wrap.hint.can-l .series-arrow-l { animation: nudgeL .7s ease-in-out 2; }
.series-wrap.hint.can-r .series-arrow-r { animation: nudgeR .7s ease-in-out 2; }
@keyframes nudgeL { 50% { transform: translateX(-4px); } }
@keyframes nudgeR { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .series-wrap.hint .series-arrow { animation: none !important; } }
.rack-dots.rack-count { gap: 6px; font-family: var(--display); font-size: 14px; color: var(--ink-2); }
.rack-count .rc-now { color: var(--ink); font-weight: 700; }
@media (max-width: 620px) {
  /* phones: the row runs edge to edge */
  .series-wrap { margin-inline: calc(var(--gutter) * -1); }
  .series-filters { padding: 0 var(--gutter); }
  .series-arrow { width: 28px; height: 28px; margin-top: -15px; }
  .series-arrow-l { left: 6px; }
  .series-arrow-r { right: 6px; }
}

/* ---------- poster popup: zoom (tap the poster or the magnifier) ---------- */
.pd-visual .poster-view { position: relative; }
.poster-view .frame { cursor: zoom-in; }
/* hoodie popup: tap the front, the back or the worn photo to zoom (the magnifier sits in the corner) */
.pd-visual .garment-photo, .pd-visual .model-view img { cursor: zoom-in; }
.pd-visual > .zoom-btn { bottom: 14px; inset-inline-start: 14px; }
.zoom-btn {
  position: absolute; bottom: 8px; inset-inline-start: 8px; z-index: 2; width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(18, 17, 16, .82); color: #F0E6D2; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6);
  transition: transform .2s;
}
.zoom-btn:hover { transform: scale(1.08); }
.zoomer { position: fixed; inset: 0; z-index: 200; background: rgba(8, 7, 6, .95); animation: fadeIn .2s ease; }
.zoomer-stage {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none;
}
.zoomer.zoomed .zoomer-stage { cursor: grab; }
.zoomer-stage img {
  display: block; max-width: 92vw; max-height: 86vh; width: auto; height: auto; transform-origin: center;
  -webkit-user-drag: none; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
}
.zoomer-tools { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; display: flex; gap: 8px; }
.zoomer-tools button {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(240, 230, 210, .25); background: rgba(18, 17, 16, .8); color: #F0E6D2;
  font-size: 24px; line-height: 1; font-family: var(--display);
}
.zoomer-tools button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.zoomer-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); margin: 0; padding: 7px 14px;
  border-radius: 999px; background: rgba(18, 17, 16, .78); color: #CFC6B6; font-size: 13px;
  white-space: nowrap; pointer-events: none; transition: opacity .3s;
}
.zoomer.zoomed .zoomer-hint { opacity: 0; }
/* several pictures of one piece (hoodie front / back / worn): switch at the bottom */
.zoomer-pick {
  position: absolute; bottom: 58px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 4px;
  padding: 4px; border-radius: 999px; background: rgba(18, 17, 16, .86); border: 1px solid rgba(240, 230, 210, .2);
}
.zoomer-pick button {
  padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: #CFC6B6;
  font-family: var(--display); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.zoomer-pick button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.zoomer:has(.zoomer-pick) .zoomer-stage img { max-height: 76vh; margin-bottom: 6vh; }
@media (max-width: 620px) { .zoomer-stage img { max-width: 100vw; max-height: 80vh; } .zoomer-hint { font-size: 12px; } }

/* =====================================================================
   One-of-one (1/1): every piece sells once — the 1/1 tag, «محجوز» (reserved), «انباعت» (sold)
   and the sold gallery (products.js → reserved / sold)
   ===================================================================== */
.one-tag {
  display: inline-block; padding: 1px 8px; border-radius: 3px; transform: rotate(-4deg);
  background: var(--accent); color: var(--on-accent); font-family: var(--display); font-size: 12px; font-weight: 700; line-height: 1.6;
}
.one-tag.is-reserved, .badge.badge-reserved { background: var(--sheet-ink); color: var(--sheet); }
/* the line under the price in a product popup */
.pd-state { margin: -8px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.pd-state b {
  display: inline-block; margin-inline-end: 8px; padding: 0 8px; border-radius: 3px; transform: rotate(-4deg);
  background: var(--accent); color: var(--on-accent); font-family: var(--display); font-size: 13px;
}
.pd-state.is-reserved b, .pd-state.is-sold b { background: var(--ink); color: var(--paper); }
.pd-cta { margin: 0; text-align: center; color: var(--ink-2); font-size: 14.5px; }
/* «محجوز» on a poster hanging on the wall */
.g-tag {
  position: absolute; top: 7%; inset-inline-start: -5%; z-index: 3; padding: 2px 9px; border-radius: 3px; transform: rotate(-8deg);
  background: var(--sheet); color: var(--sheet-ink); font-family: var(--display); font-size: 12px; font-weight: 700;
  box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .6); pointer-events: none;
}
/* the bag: one of each piece */
.bag-info small.bag-one { color: var(--accent-text); font-weight: 700; }
.bag-remove { padding: 2px; font-size: 13px; }
.bag-remove:hover { color: var(--accent-text); }

/* ---------- the sold gallery ---------- */
.sold-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.sold-card {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; border: 0; border-radius: 2px; text-align: start;
  background: var(--tex-fine), var(--sheet); color: var(--sheet-ink);
  box-shadow: 0 18px 26px -18px rgba(0, 0, 0, .6); transition: transform .2s;
}
.sold-card:hover { transform: translateY(-3px) rotate(-.4deg); }
.sold-card strong { font-family: var(--display); font-size: 15px; line-height: 1.35; margin-top: 8px; }
.sold-card small { font-size: 12.5px; color: var(--sheet-ink-2); }
/* the whole piece shows, in full colour: hoodies from the back (the full design), posters uncropped (A4 shape) */
.sold-img { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.414; overflow: hidden; border-radius: 2px; background: rgba(0, 0, 0, .05); }
.sold-img img, .sold-img svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.sold-img-poster { background: #111; }
/* a small stamp in the corner, so it never covers the art */
.sold-stamp {
  position: absolute; bottom: 8px; inset-inline-end: 8px; transform: rotate(-8deg);
  padding: 0 9px; border: 2px solid var(--accent-on-sheet); border-radius: 3px; color: var(--accent-on-sheet); background: var(--sheet);
  font-family: var(--display); font-weight: 800; font-size: 14px; line-height: 1.7; white-space: nowrap;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5);
}
.sold-card.found { animation: foundFrame 2.6s ease; }
