/* ==========================================================================
   AMAZING FASHION | KUWAIT — Production Luxury Storefront (v3)
   All Claude F01–F23 + ChatGPT UX/Accessibility/Logic/Performance Audits Applied
   ========================================================================== */
:root {
  --bg: #FAF9F6;
  --surface: #F2EEE9;
  --surface-deep: #E7E0D7;
  --card: #FFFFFF;
  --ink: #111111;
  --ink-soft: #524D47;
  --ink-muted: #675F55;   /* WCAG AA >= 5.9:1 on #FAF9F6 */
  --border: #E5DFD6;
  --gold: #C5A059;
  --gold-dark: #795B2B;   /* WCAG AA >= 6.2:1 on #FFFFFF */
  --gold-ink: #795B2B;
  --header-h: 72px;
  --offer-bg: #111111;
  --offer-fg: #F5DFAC;
  --danger: #B42318;
  --ok: #0E723C;          /* WCAG AA >= 6.0:1 with white text */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 12px 32px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 24px 60px rgba(17, 17, 17, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-ar: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Cairo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
section[id], main[id], #home, #categories, #collection, #how, #about { scroll-margin-top: calc(var(--header-h) + 16px); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }

/* Announcement */
.announcement {
  background: var(--ink);
  color: #F5F2EC;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
}
.announcement span { color: var(--gold); margin-inline: 6px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 72px;
}
.header-start { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-link { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-crest {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-ink);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.14);
  background: #000;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-en); font-weight: 800; font-size: 15px; letter-spacing: 0.14em; white-space: nowrap; }
.brand-sub { font-family: var(--font-en); font-size: 10px; letter-spacing: 0.22em; color: var(--gold-dark); font-weight: 700; margin-top: 3px; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--ink-soft); position: relative; padding-block: 4px; transition: color 0.2s var(--ease); }
.main-nav a:hover { color: var(--ink); }
.main-nav a::after { content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 1.5px; background: var(--ink); transition: width 0.25s var(--ease); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-btn:hover { background: var(--surface); border-color: var(--border); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.75; }
.badge-dot {
  position: absolute;
  top: 5px;
  left: 5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge-dot.gold { background: var(--gold); color: #111; }
.badge-dot[data-count="0"] { opacity: 0; transform: scale(0.6); pointer-events: none; }
.mobile-menu-btn { display: none; }

/* Search Bar */
.search-bar-wrap { border-top: 1px solid var(--border); background: var(--bg); padding: 12px 0; }
.search-form-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px 6px 8px;
  max-width: 680px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}
.search-form-inner input { flex: 1; border: 0; background: transparent; font-size: 16px; padding: 6px 0; color: var(--ink); }
.search-form-inner input:focus { outline: none; }
.search-clear-btn { border: 0; background: var(--surface); color: var(--ink-soft); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.btn-primary:hover { background: #23201D; border-color: var(--gold); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-soft { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-soft:hover { background: var(--surface-deep); }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #F5F1EB 0%, #ECE6DE 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
  padding-block: 42px 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--gold-ink); }
.hero-title { margin: 14px 0 14px; font-size: clamp(30px, 4.3vw, 52px); font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.hero-title span { display: block; }
.hero-desc { margin: 0 0 24px; font-size: 15.5px; color: var(--ink-soft); max-width: 470px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-visual { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; align-items: end; }
.hero-card { position: relative; border-radius: 220px 220px 18px 18px; overflow: hidden; background: #EAE2D9; box-shadow: var(--shadow-md); cursor: pointer; }
.hero-card.primary { aspect-ratio: 9 / 15.5; }
.hero-card.secondary { aspect-ratio: 9 / 15; border-radius: 18px; margin-bottom: 18px; }
.hero-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform 0.55s var(--ease); }
@media (hover: hover) { .hero-card:hover img { transform: scale(1.03); } }
.hero-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(197, 160, 89, 0.48);
}
.hero-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* Category Tiles */
.categories-section { padding-block: 36px 20px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3.5;
  background: var(--surface);
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  text-align: right;
  transition: transform 0.3s var(--ease), border-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
@media (hover: hover) { .category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } }
.category-tile.active { border-color: var(--ink); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.55s var(--ease); }
.category-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 12, 10, 0.82) 0%, rgba(14, 12, 10, 0.14) 55%, rgba(14, 12, 10, 0) 100%); }
.category-label { position: absolute; inset-inline: 16px; bottom: 14px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; color: #FFFFFF; }
.category-label strong { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.category-label small { font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.category-arrow { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }

/* Collection & Filters */
.collection-section { padding-block: 40px 64px; }
.section-header-center { text-align: center; max-width: 640px; margin: 0 auto 24px; }
.section-header-center .eyebrow { justify-content: center; }
.section-header-center .eyebrow::before { display: none; }
.section-header-center h2 { margin: 8px 0 8px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: 0; }
.section-header-center p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.filter-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filter-pills { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.pill-btn:hover { border-color: var(--ink); color: var(--ink); }
.pill-btn.active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.pill-btn.offer-pill { border-color: rgba(197, 160, 89, 0.65); color: var(--gold-dark); }
.pill-btn.offer-pill.active { background: var(--ink); color: var(--offer-fg); border-color: var(--gold); }

.size-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 14px;
}
.size-filter-bar::-webkit-scrollbar { display: none; }
.size-filter-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; margin-left: 4px; }
.size-chip-filter {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  min-width: 40px;
  height: 36px;
  padding: 0 11px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s var(--ease);
}
.size-chip-filter:hover { border-color: var(--ink); }
.size-chip-filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.results-meta { font-size: 13px; color: var(--ink-muted); font-weight: 600; white-space: nowrap; }

/* Product Grid & Cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 18px; }
.product-card { display: flex; flex-direction: column; }
.product-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ECE4DC;
  aspect-ratio: 3 / 5;
  border: 1px solid var(--border);
}
.media-btn { position: absolute; inset: 0; display: block; }
.media-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) { .product-card:hover .media-btn img { transform: scale(1.035); } }

.fav-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s var(--ease);
}
.fav-btn:hover { transform: scale(1.06); }
.fav-btn.active, #qv-fav-btn.active { color: var(--danger); }
.fav-btn svg, #qv-fav-btn svg { width: 18px; height: 18px; }
.fav-btn.active svg, #qv-fav-btn.active svg { fill: var(--danger); stroke: var(--danger); }

.top-badges { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; pointer-events: none; }
.badge-tag { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); }
.badge-tag.offer { background: var(--offer-bg); color: var(--offer-fg); border: 1px solid rgba(197, 160, 89, 0.55); }
.badge-tag.multi { background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.badge-tag.low-stock { background: rgba(180, 35, 24, 0.9); color: #fff; }
.card-media-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.quick-view-bar {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  z-index: 3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
@media (hover: hover) {
  .product-card:hover .quick-view-bar,
  .product-card:focus-within .quick-view-bar { opacity: 1; transform: translateY(0); }
}
.quick-view-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.product-info { padding-top: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.42;
  min-height: 2.84em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.title-link { color: inherit; text-decoration: none; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.price-val { font-family: var(--font-en); font-size: 15.5px; font-weight: 800; color: var(--ink); }
.price-val small { font-family: var(--font-ar); font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.product-code { font-family: var(--font-en); font-size: 12px; font-weight: 600; color: var(--ink-muted); }

/* Interactive Swatches on Card */
.swatch-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.swatches { display: inline-flex; align-items: center; gap: 4px; }
.swatch-btn {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  padding: 3px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.swatch-btn:hover:not(:disabled) { transform: scale(1.1); }
.swatch-btn.active { border-color: var(--ink); }
.swatch-btn.is-off { opacity: 0.35; cursor: not-allowed; }
.swatch-btn.is-off::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 46%, rgba(17,17,17,0.65) 47%, rgba(17,17,17,0.65) 53%, transparent 54%);
}
.swatch-fill { width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(17, 17, 17, 0.22); display: block; }
.color-label-inline { font-size: 12px; color: var(--ink-soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Card Sizes Preview */
.card-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.card-size-pill {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}
.card-size-pill.matched { background: #111111; color: #FFFFFF; border-color: #111111; }
.card-cta-mob {
  margin-top: auto;
  padding-top: 6px;
  display: none;
}
.card-cta-mob button {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.card-cta-mob button:active { background: var(--ink); color: #fff; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: var(--surface); border-radius: var(--radius-lg); }
.empty-state h3 { margin: 0 0 8px; font-size: 18px; }
.empty-state p { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }

/* Editorial Banner */
.editorial-banner { background: linear-gradient(120deg, #EFEBE4 0%, #E5DDD3 100%); border-block: 1px solid var(--border); overflow: hidden; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding-block: 48px; }
.editorial-copy h2 { margin: 12px 0 14px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.22; }
.editorial-copy p { margin: 0 0 24px; color: var(--ink-soft); font-size: 15px; max-width: 440px; }
.editorial-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.editorial-visual img { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; object-position: top center; border-radius: var(--radius-md); box-shadow: var(--shadow-md); cursor: pointer; }
.editorial-visual img:last-child { transform: translateY(16px); }

/* Trust Bar (Fixed .trust-icon flex specificity!) */
.trust-bar { background: var(--card); border-bottom: 1px solid var(--border); padding-block: 30px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 14px; padding-inline: 16px; }
.trust-item + .trust-item { border-right: 1px solid var(--border); }
.trust-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-icon svg { width: 22px; height: 22px; }
.trust-item > div strong { display: block; font-size: 14.5px; font-weight: 700; }
.trust-item > div span { display: block; font-size: 12.5px; color: var(--ink-soft); }

/* How It Works & Instagram Strip */
.how-section { padding-block: 56px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.step-num { font-family: var(--font-en); font-size: 12px; font-weight: 800; color: var(--gold-dark); letter-spacing: 0.14em; display: inline-block; margin-bottom: 8px; }
.step-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.step-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

.newsletter-wrap { padding-bottom: 56px; }
.ig-strip {
  background: linear-gradient(135deg, #151412 0%, #241F1B 100%);
  color: #FAF9F6;
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid rgba(197, 160, 89, 0.32);
  box-shadow: var(--shadow-md);
}
.ig-strip-left { display: flex; align-items: center; gap: 16px; max-width: 560px; }
.ig-icon-circle { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #C5A059 0%, #E7C985 100%); color: #111; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ig-icon-circle svg { width: 25px; height: 25px; }
.ig-strip h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; color: #FFFFFF; }
.ig-strip p { margin: 0; font-size: 13.5px; color: #D4CEC4; }
.ig-btn { background: #FFFFFF; color: #111111; border-color: #FFFFFF; padding: 13px 24px; }
.ig-btn:hover { background: var(--gold); border-color: var(--gold); color: #111111; }

/* Footer */
.site-footer { background: #0F0E0D; color: #E7E2DA; padding-block: 48px 34px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--gold); background: #000; }
.footer-brand strong { display: block; font-family: var(--font-en); letter-spacing: 0.14em; font-size: 16px; color: #fff; }
.footer-brand span { font-size: 12.5px; color: #B8B0A6; }
.footer-note { max-width: 440px; font-size: 13px; color: #B8B0A6; margin: 0; }
.license-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(197, 160, 89, 0.14); border: 1px solid rgba(197, 160, 89, 0.38); color: #F3DFB0; border-radius: 10px; padding: 8px 14px; font-size: 12.5px; font-weight: 700; margin-top: 10px; }
.footer-legal-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-block: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-legal-links button { border: 0; background: transparent; color: #D4CEC4; font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px 0; transition: color 0.2s var(--ease); }
.footer-legal-links button:hover { color: var(--gold); }
.footer-social-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-social-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gold); }
.footer-social-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; font-size: 12.5px; color: #A69F95; }

/* Drawers, Modals & Overscroll */
.overlay { position: fixed; inset: 0; background: rgba(14, 12, 10, 0.56); backdrop-filter: blur(4px); z-index: 90; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(430px, 100vw); background: var(--bg); z-index: 100; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overscroll-behavior: contain; }
.drawer.right-side { left: auto; right: 0; width: min(320px, 86vw); }

.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--card); gap: 10px; }
.panel-head h2 { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.close-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.close-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel-body { flex: 1; overflow-y: auto; padding: 18px 20px; overscroll-behavior: contain; }
.panel-foot { padding: 16px 20px 20px; border-top: 1px solid var(--border); background: var(--card); }

.mobile-nav-list { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-list button { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 700; color: var(--ink); background: transparent; border: 0; width: 100%; text-align: right; cursor: pointer; }
.mobile-nav-list button:hover { background: var(--surface); }

/* Quick View Modal & Media Gallery */
.modal-sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(880px, calc(100vw - 32px));
  max-height: min(92vh, 760px);
  background: var(--card);
  border-radius: var(--radius-lg);
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overscroll-behavior: contain;
}
.qv-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; overflow-y: auto; overscroll-behavior: contain; }
.qv-media { background: #ECE4DC; position: relative; min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; gap: 10px; }
.qv-stage { position: relative; flex: 1; min-height: 360px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 14px; background: #E6DDD3; }
.qv-stage img, .qv-stage video { width: 100%; height: 100%; max-height: 540px; object-fit: contain; object-position: center; border-radius: 12px; }
.qv-stage video { background: #0E0D0C; }

.qv-slide-badge { position: absolute; top: 10px; right: 10px; z-index: 4; background: rgba(17, 17, 17, 0.84); color: #F6E6C2; border: 1px solid rgba(197, 160, 89, 0.45); padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; backdrop-filter: blur(6px); }
.qv-slide-counter { position: absolute; bottom: 10px; left: 10px; z-index: 4; background: rgba(17, 17, 17, 0.76); color: #fff; padding: 3px 10px; border-radius: 999px; font-family: var(--font-en); font-size: 11px; font-weight: 700; }
.qv-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14); }
.qv-nav-btn.prev { right: 10px; }
.qv-nav-btn.next { left: 10px; }

.qv-thumbs { display: flex; align-items: center; justify-content: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.qv-thumbs::-webkit-scrollbar { display: none; }
.qv-thumb-btn { position: relative; width: 54px; height: 68px; border-radius: 10px; overflow: hidden; padding: 0; border: 2px solid transparent; background: var(--surface-deep); cursor: pointer; flex-shrink: 0; }
.qv-thumb-btn.active { border-color: var(--ink); }
.qv-thumb-btn img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.qv-thumb-tag { position: absolute; inset-inline: 0; bottom: 0; background: rgba(17, 17, 17, 0.8); color: #fff; font-size: 10px; font-weight: 700; text-align: center; padding: 2px 3px; }
.qv-thumb-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%); width: 22px; height: 22px; border-radius: 50%; background: rgba(17, 17, 17, 0.84); color: #F6E6C2; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(197, 160, 89, 0.65); }

.qv-details { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 13px; }
.qv-close-abs { position: absolute; top: 12px; left: 12px; z-index: 6; }
.qv-code { font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--gold-dark); letter-spacing: 0.1em; }
.qv-title { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.35; }
.qv-price-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qv-price { font-family: var(--font-en); font-size: 21px; font-weight: 800; color: var(--ink); }
.qv-stock-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #EEF6F1; color: #0E5C31; }
.qv-stock-pill.low { background: #FEF2F2; color: var(--danger); }

.qv-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-color-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); font-size: 13px; font-weight: 700; cursor: pointer; }
.qv-color-btn.active { border-color: var(--ink); background: var(--card); }
.qv-color-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(17,17,17,0.25); }

.size-group-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 54px;
  height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.size-btn small { font-family: var(--font-ar); font-size: 11px; font-weight: 600; color: var(--ink-muted); margin-top: 2px; }
.size-btn:hover:not(:disabled) { border-color: var(--ink); }
.size-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-btn.active small { color: var(--offer-fg); }
.size-btn:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.qv-note { background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--ink-soft); }
.qv-actions { margin-top: auto; display: flex; gap: 8px; padding-top: 8px; }

/* Cart & Wishlist */
.cart-item { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-thumb { width: 74px; height: 98px; border-radius: 10px; overflow: hidden; background: var(--surface); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cart-item-title { font-size: 14px; font-weight: 700; line-height: 1.38; }
.cart-item-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.cart-item-price { font-family: var(--font-en); font-size: 13.5px; font-weight: 800; color: var(--ink); margin-top: 4px; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); font-weight: 700; font-size: 16px; cursor: pointer; }
.qty-btn:disabled { opacity: 0.38; cursor: not-allowed; }
.remove-link { margin-right: auto; border: 0; background: transparent; color: var(--ink-muted); font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 6px 8px; }
.remove-link:hover { color: var(--danger); }
.subtotal-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 15px; }

/* Free Shipping Progress & Invoice */
.ship-progress { height: 6px; border-radius: 999px; background: var(--surface-deep); overflow: hidden; margin: 0 0 10px; }
.ship-progress > i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width 0.35s var(--ease); }
.free-ship-banner { background: #ECFDF3; border: 1px solid #A6E3C0; color: #0E5C31; border-radius: 12px; padding: 10px 13px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.invoice-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 13px 15px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.invoice-line { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); gap: 8px; }
.invoice-line strong { color: var(--ink); font-family: var(--font-en); }
.invoice-line.grand { padding-top: 8px; border-top: 1px dashed var(--border); font-size: 15.5px; font-weight: 800; color: var(--ink); }
.strike-fee { text-decoration: line-through; color: var(--ink-muted); font-family: var(--font-en); font-weight: 600; margin-left: 6px; }
.free-zero { color: var(--ok); font-family: var(--font-en); font-weight: 800; }

/* Checkout & WhatsApp Modals */
.modal-narrow { width: min(560px, calc(100vw - 28px)); max-height: 90vh; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; }
.form-field.span-2 { grid-column: 1 / -1; }
.form-field input, .form-field textarea, .form-field select { border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; font-size: 16px; background: var(--bg); color: var(--ink); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--ink); background: #fff; }
.field-error { color: var(--danger); font-size: 12px; font-weight: 700; min-height: 16px; }
.payment-box { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.payment-box legend { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.radio-card { display: flex; align-items: flex-start; gap: 10px; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--bg); }
.radio-card:has(input:checked) { border-color: var(--ink); background: #fff; }
.radio-card strong { display: block; font-size: 13.5px; }
.radio-card small { display: block; font-size: 12px; color: var(--ink-soft); }

.wa-summary-cards { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 13px; white-space: pre-wrap; max-height: 220px; overflow-y: auto; margin: 12px 0; line-height: 1.75; }
.wa-direct-btn { background: var(--ok); border-color: var(--ok); color: #FFFFFF; }
.wa-direct-btn:hover { background: #0A582E; border-color: #0A582E; }
.trust-inline-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.trust-inline-note button { border: 0; background: transparent; color: var(--gold-dark); font-weight: 700; font-size: 12px; cursor: pointer; text-decoration: underline; padding: 4px 0; }

.legal-content h3 { margin: 16px 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.75; }
.legal-content ul { margin: 0 0 12px; padding-right: 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }

/* Floating Mobile Cart Bar & Toast */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  inset-inline: 16px;
  z-index: 55;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(197, 160, 89, 0.5);
  border-radius: 14px;
  padding: 13px 18px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197, 160, 89, 0.45);
  max-width: calc(100vw - 32px);
  text-align: center;
}



/* V3 Design Notes: Burgundy Accent, Golden Stitch, Hero Toggle, Editorial Captions, Lightbox */
:root { --burgundy: #6B1D2B; }
.hero-price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.hero-price-val {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 800;
  color: var(--burgundy);
}
.hero-burgundy-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--burgundy);
}
.stitch-line {
  display: block;
  width: 110px;
  height: 14px;
  margin: 0 0 14px;
  overflow: visible;
}
.stitch-line path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: drawStitch 0.35s var(--ease) 0.1s forwards;
}
@keyframes drawStitch { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .stitch-line path { stroke-dashoffset: 0; animation: none; }
}

.hero-mob-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.hero-mob-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.hero-mob-count {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.ed-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}
.ed-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.ed-card:last-child { transform: translateY(16px); }
.ed-caption {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
}

.qv-zoom-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  border: 0;
  background: rgba(17, 17, 17, 0.8);
  color: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.qv-zoom-btn:hover { background: var(--ink); }

.size-ask-link {
  border: 0;
  background: transparent;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(10, 9, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox-close {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(17,17,17,0.85);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.media-btn img.is-fading { opacity: 0.35; transition: opacity 0.18s ease; }


/* Smooth Hero & Gallery Slide Transition Animations */
@keyframes slideRevealIn {
  from { opacity: 0; transform: scale(0.97) translateX(-10px); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}
.hero-card.is-entering, .qv-stage img.is-entering, .qv-stage video.is-entering {
  animation: slideRevealIn 0.36s var(--ease) both;
}
@media (prefers-reduced-motion: reduce) {
  .hero-card.is-entering, .qv-stage img.is-entering, .qv-stage video.is-entering { animation: none !important; }
}


/* Strikethrough Old Price & Savings Pill */
.price-wrap { display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price-old {
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: line-through;
}
.hero-price-old {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: line-through;
}
.qv-save-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #FAF0E1;
  color: var(--burgundy);
  border: 1px solid rgba(107, 29, 43, 0.22);
}
@media (max-width: 860px) {
  .price-old { font-size: 11.5px; }
}

/* Scroll Reveal Animations (Luxury Editorial Stagger) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   RESPONSIVE — MOBILE-FIRST (360px / 375px / 430px / Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 22px 14px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; width: 42px; flex: none; }
  .header-inner { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 6px; height: 64px; }
  .header-start { display: contents; }
  .brand-link { justify-self: center; min-width: 0; flex-shrink: 1; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 40px; height: 40px; }

  .hero-grid { grid-template-columns: 1fr; padding-block: 18px 28px; gap: 20px; }
  .hero-visual-wrap { order: -1; }
  .hero-visual { grid-template-columns: 1fr; gap: 0; }
  .hero-card.secondary { margin-bottom: 0; aspect-ratio: 9 / 15.5; border-radius: 130px 130px 14px 14px; }
  .hero-card[data-hero-hidden="true"] { display: none; }
  .hero-mob-controls { display: flex; }
  .hero-card.primary { border-radius: 130px 130px 14px 14px; }
  .hero-card.secondary { margin-bottom: 8px; }
  .hero-title { font-size: 29px; margin: 10px 0; line-height: 1.3; }
  .hero-desc { font-size: 14.5px; margin-bottom: 18px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { padding: 12px; font-size: 13.5px; width: 100%; }

  .categories-section { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-tile { aspect-ratio: 4 / 3.5; border-radius: 14px; }
  .category-label { inset-inline: 12px; bottom: 10px; }
  .category-label strong { font-size: 14px; }
  .category-arrow { width: 26px; height: 26px; font-size: 13px; }

  .collection-section { padding-block: 26px 44px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .product-media { border-radius: 14px; }
  .quick-view-bar { display: none; }
  .card-cta-mob { display: block; }
  .product-title { font-size: 13.5px; }
  .price-val { font-size: 14.5px; }

  .editorial-grid { grid-template-columns: 1fr; padding-block: 34px; gap: 24px; }
  .ed-card:last-child { transform: translateY(10px); }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; }
  .trust-item { justify-content: flex-start; padding-inline: 0; }
  .trust-item + .trust-item { border-right: 0; border-top: 1px solid var(--border); padding-top: 14px; }
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .ig-strip { padding: 24px 20px; }

  /* Mobile Bottom Sheet with Sticky CTA + dvh + Safe Area */
  .modal-sheet { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .qv-grid { grid-template-columns: 1fr; grid-auto-rows: max-content; align-content: start; }
  .qv-media { min-height: 0; padding: 10px; }
  .qv-stage { flex: none; height: auto; min-height: 0; aspect-ratio: 3 / 4; max-height: 45vh; max-height: 45dvh; }
  .qv-stage img, .qv-stage video { max-height: 100%; }
  .qv-thumb-btn { width: 48px; height: 60px; }
  .qv-details { padding: 16px 18px 0; gap: 11px; }
  .qv-title { font-size: 18px; }
  .qv-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--card);
    margin-inline: -18px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
  }

  .form-grid { grid-template-columns: 1fr; }
  .mobile-cart-bar { display: flex; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .panel-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 440px) {
  .brand-link { gap: 7px; }
  .brand-crest { width: 32px; height: 32px; }
  .brand-name { font-size: 12px; letter-spacing: 0.06em; }
  .brand-sub { display: none; }
}

@media (pointer: coarse), (max-width: 860px) {
  .swatch-btn { width: 32px; height: 32px; padding: 6px; }
  .fav-btn { width: 40px; height: 40px; }
  .qty-btn { width: 40px; height: 40px; }
  .close-btn, .qv-nav-btn { width: 44px; height: 44px; }
  .size-chip-filter { height: 40px; min-width: 44px; }
  .pill-btn { padding-block: 10px; }
  .footer-legal-links button { padding: 12px 0; }
  .remove-link { padding: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Luxury Size Guide Trigger & Modal
   ========================================================================== */
.size-guide-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease);
}
.size-guide-trigger:hover {
  border-color: var(--gold-ink);
  background: #F6F1E7;
}
.size-guide-trigger:active { transform: scale(0.99); }
.sgt-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sgt-left svg { color: var(--gold-dark); flex-shrink: 0; }
.sgt-left strong { color: var(--gold-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.sgt-arrow {
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.2s var(--ease);
}
.size-guide-trigger:hover .sgt-arrow { transform: translateX(-3px); }

.size-chip-guide {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--gold-ink);
  background: #FAF6EE;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-inline-start: 4px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.size-chip-guide:hover { background: #F2E8D4; border-style: solid; }

.sg-head h2 { margin: 2px 0 0; }
.sg-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 600;
}
.sg-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Quick Size Finder */
.sg-finder {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sg-finder-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.sg-finder-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.sg-unit-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.sg-unit-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.sg-unit-btn.active {
  background: var(--ink);
  color: #FFFFFF;
}
.sg-finder-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sg-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sg-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  transition: border-color 0.2s var(--ease);
}
.sg-input-wrap input:focus {
  outline: none;
  border-color: var(--gold-dark);
}
.sg-unit-suffix {
  position: absolute;
  left: 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-dark);
  pointer-events: none;
}
.sg-finder-result {
  padding: 9px 12px;
  border-radius: 10px;
  background: #F6EFE1;
  border: 1px solid rgba(197, 160, 89, 0.55);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.sg-finder-result strong { color: var(--gold-dark); font-weight: 800; }
.sg-pick-matched {
  border: 0;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.sg-pick-matched:hover { background: var(--gold-dark); }

.sg-context-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 12px;
}

/* Table */
.sg-table-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.sg-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.sg-table thead th {
  background: var(--ink);
  color: #F5DFAC;
  font-size: 12px;
  font-weight: 700;
  padding: 11px 10px;
  letter-spacing: 0.01em;
}
.sg-table tbody tr {
  border-top: 1px solid var(--border);
  transition: background 0.18s var(--ease);
}
.sg-table tbody tr:nth-child(even) { background: var(--bg); }
.sg-table tbody tr.sg-row-selectable { cursor: pointer; }
.sg-table tbody tr.sg-row-selectable:hover { background: #F5EFE2; }
.sg-table tbody tr.sg-row-matched {
  background: #F6ECD6 !important;
  box-shadow: inset 3px 0 0 var(--gold-dark);
}
.sg-table tbody tr.sg-row-selected {
  background: #EFE4CA !important;
  box-shadow: inset 3px 0 0 var(--ink);
}
.sg-table tbody tr.sg-row-out { opacity: 0.52; }
.sg-table tbody td {
  padding: 10px 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.sg-size-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 13px;
}
.sg-row-matched .sg-size-badge,
.sg-row-selected .sg-size-badge {
  background: var(--ink);
  color: #F5DFAC;
}
.sg-inch-val {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--ink);
}
.sg-cm-val {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 12.5px;
}
.sg-avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.sg-avail-pill.in {
  background: #E7F5ED;
  color: var(--ok);
}
.sg-avail-pill.out {
  background: var(--surface);
  color: var(--ink-muted);
}

/* Measurement Tip */
.sg-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.sg-tip-icon {
  color: var(--gold-dark);
  flex-shrink: 0;
  margin-top: 2px;
}
.sg-tip strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 3px;
}
.sg-tip p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.sg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sg-wa-btn {
  flex: 1;
  font-size: 12.5px;
  padding: 11px 12px;
}
@media (max-width: 520px) {
  .sg-table thead th { font-size: 11px; padding: 10px 6px; }
  .sg-table tbody td { font-size: 12.5px; padding: 9px 6px; }
  .sg-foot { flex-direction: column-reverse; align-items: stretch; }
  .sg-foot .btn { width: 100%; }
}

/* ==========================================================================
   V2 UI/UX, Luxury Image Switchers, Sorting & Card Hover Refinements
   ========================================================================== */
.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;
}

/* Unified Luxury Frosted-Glass Image Navigation Arrows */
.img-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.14);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.img-nav-btn:hover {
  background: var(--ink);
  color: #F5DFAC;
  border-color: rgba(197, 160, 89, 0.7);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.24);
  transform: translateY(-50%) scale(1.06);
}
.img-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.img-nav-btn.prev { right: 12px; }
.img-nav-btn.next { left: 12px; }

/* Hero mobile overlay arrows (hidden on desktop where both cards show side by side) */
.hero-visual { position: relative; }
.hero-img-nav { display: none; }

/* Hero Segmented Pill Switcher on Mobile */
.hero-seg-track {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}
.hero-seg-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.hero-seg-btn.active {
  background: var(--ink);
  color: #F5DFAC;
  box-shadow: 0 3px 10px rgba(17, 17, 17, 0.16);
}
.hero-seg-btn:not(.active):hover {
  color: var(--ink);
}

/* Quick View Dots & Refined Thumbnails */
.qv-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 8px;
}
.qv-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.2);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width 0.22s var(--ease), background 0.22s var(--ease);
}
.qv-dot.active {
  width: 20px;
  background: var(--gold-dark);
}
.qv-thumb-btn {
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
  opacity: 0.78;
}
.qv-thumb-btn:hover { opacity: 1; transform: translateY(-1px); }
.qv-thumb-btn.active {
  opacity: 1;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.28);
}

/* Filter Tools: Sort Select + Clear Filters Button */
.filter-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sort-wrap {
  display: inline-flex;
  align-items: center;
}
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23524D47' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 11px center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px 7px 30px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.sort-select:hover, .sort-select:focus {
  border-color: var(--gold-dark);
  outline: none;
}
.clear-filters-btn {
  border: 1px solid rgba(180, 35, 24, 0.28);
  background: #FFF6F5;
  color: var(--danger);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.clear-filters-btn:hover {
  background: #FEEBE9;
  border-color: var(--danger);
}

/* Product Card Consistency + Second-Image Hover Crossfade + Gallery Count */
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.media-btn {
  position: absolute;
  inset: 0;
  display: block;
}
.media-btn img.card-img-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.32s var(--ease);
  background: #ECE4DC;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .media-btn img.card-img-alt {
    opacity: 1;
  }
}
.card-gallery-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  color: #F5F2EC;
  font-size: 10.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero-img-nav { display: inline-flex; width: 42px; height: 42px; }
  .hero-mob-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
  }
  .filter-tools {
    width: 100%;
    justify-content: space-between;
  }
  .card-gallery-count {
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    padding: 2px 7px;
  }
}
@media (pointer: coarse), (max-width: 860px) {
  .img-nav-btn { width: 44px; height: 44px; }
}

/* V4 Fabric Detail Row in Quick View */
.qv-fabric-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  width: fit-content;
}
.qv-fabric-row strong {
  color: var(--gold-dark);
  font-weight: 800;
}

/* ==========================================================================
   V5: HD Full-Bleed Hero, Non-Overlapping Media Badges, Silky Luxury Animations
       & Animated Add-to-Cart Pop-up
   ========================================================================== */

/* 1. Crisp Full-Bleed Hero Photos (no side bars inside arch) */
.hero-card {
  background: #EAE2D8;
  overflow: hidden;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: top center !important;
}

/* 2. Fix overlap between "4 صور" (bottom-right) and "▶ فيديو" (bottom-left) */
.card-media-hint {
  left: 10px !important;
  right: auto !important;
  bottom: 10px;
  z-index: 3;
}
.card-gallery-count {
  right: 10px !important;
  left: auto !important;
  bottom: 10px;
  z-index: 3;
}
@media (max-width: 860px) {
  .card-media-hint { left: 8px !important; bottom: 8px; font-size: 10px; padding: 2px 7px; }
  .card-gallery-count { right: 8px !important; bottom: 8px; font-size: 10px; padding: 2px 7px; }
}

/* 3. Silky Luxury Animations for Overlay, Hamburger Drawer, Cart Drawer & Modals */
@keyframes afOverlayIn {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to   { opacity: 1; backdrop-filter: blur(5px); }
}
@keyframes afDrawerRightIn {
  from { opacity: 0.4; transform: translateX(100%); }
  to   { opacity: 1;   transform: translateX(0); }
}
@keyframes afDrawerLeftIn {
  from { opacity: 0.4; transform: translateX(-100%); }
  to   { opacity: 1;   transform: translateX(0); }
}
@keyframes afNavItemIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes afModalDesktopIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.94); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes afModalSheetUp {
  from { opacity: 0.6; transform: translateY(100%); }
  to   { opacity: 1;   transform: translateY(0); }
}
@keyframes afLightboxIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes afPopTap {
  0%   { transform: scale(0.94); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes afPopupSpring {
  0%   { opacity: 0; transform: translate(-50%, 28px) scale(0.92); }
  65%  { opacity: 1; transform: translate(-50%, -4px) scale(1.015); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes afCheckPop {
  0%   { transform: scale(0.4) rotate(-18deg); opacity: 0; }
  70%  { transform: scale(1.16) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.overlay:not([hidden]) {
  animation: afOverlayIn 0.28s var(--ease) both;
}
.drawer.right-side:not([hidden]) {
  animation: afDrawerRightIn 0.36s var(--ease) both;
  will-change: transform, opacity;
}
.drawer:not(.right-side):not([hidden]) {
  animation: afDrawerLeftIn 0.36s var(--ease) both;
  will-change: transform, opacity;
}
.drawer.right-side:not([hidden]) .mobile-nav-list button {
  animation: afNavItemIn 0.34s var(--ease) both;
}
.drawer.right-side:not([hidden]) .mobile-nav-list button:nth-child(1) { animation-delay: 0.05s; }
.drawer.right-side:not([hidden]) .mobile-nav-list button:nth-child(2) { animation-delay: 0.09s; }
.drawer.right-side:not([hidden]) .mobile-nav-list button:nth-child(3) { animation-delay: 0.13s; }
.drawer.right-side:not([hidden]) .mobile-nav-list button:nth-child(4) { animation-delay: 0.17s; }
.drawer.right-side:not([hidden]) .mobile-nav-list button:nth-child(5) { animation-delay: 0.21s; }
.drawer.right-side:not([hidden]) .mobile-nav-list button:nth-child(6) { animation-delay: 0.25s; }
.drawer.right-side:not([hidden]) .mobile-nav-list button:nth-child(7) { animation-delay: 0.29s; }

.modal-sheet:not([hidden]) {
  animation: afModalDesktopIn 0.34s var(--ease) both;
  will-change: transform, opacity;
}
@media (max-width: 860px) {
  .modal-sheet:not([hidden]) {
    animation: afModalSheetUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
.lightbox:not([hidden]) {
  animation: afOverlayIn 0.24s var(--ease) both;
}
.lightbox:not([hidden]) img {
  animation: afLightboxIn 0.32s var(--ease) both;
}
.size-btn.active {
  animation: afPopTap 0.26s var(--ease);
}
.mobile-menu-btn {
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.mobile-menu-btn:active {
  transform: scale(0.9);
}

/* 4. Luxury Animated Add-to-Cart Pop-up */
.cart-popup {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px));
  z-index: 120;
  pointer-events: auto;
}
.cart-popup:not([hidden]) {
  animation: afPopupSpring 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cart-popup-card {
  background: var(--card);
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.24), 0 0 0 1px rgba(17, 17, 17, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cart-popup-ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
}
.cart-popup-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ok);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: afCheckPop 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.cart-popup-x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-popup-x:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cart-popup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}
.cart-popup-item img {
  width: 54px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  background: var(--surface);
}
.cart-popup-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cart-popup-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-popup-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.cart-popup-price {
  font-family: var(--font-en);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gold-dark);
}
.cart-popup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-popup-actions .btn {
  padding: 10px 12px;
  font-size: 12.5px;
}


/* ==========================================================================
   V6: Comprehensive Audit Fixes (P0–P3 & AUDIT 1–40)
   ========================================================================== */

/* Skip Link (AUDIT #18) */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 8px;
  z-index: 220;
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  inset-inline-start: 16px;
}

/* Dismissible & Rotating Announcement Bar (AUDIT #39, P1-1, P3-1) */
.announcement {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 42px;
  min-height: 36px;
}
.announcement-text {
  display: inline-block;
  transition: opacity 0.25s var(--ease);
}
.announcement-text.is-swapping {
  opacity: 0;
}
.announcement-close {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #F5F2EC;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
}
.announcement-close:hover {
  background: rgba(255, 255, 255, 0.24);
}
@media (max-width: 860px) {
  .announcement {
    font-size: 12px;
    padding: 7px 36px 7px 36px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Header dynamic height variable (AUDIT #37) */
.header-inner { height: var(--header-h); }
@media (max-width: 860px) {
  :root { --header-h: 64px; }
}
body.search-open {
  --header-h: 136px;
}
@media (max-width: 860px) {
  body.search-open { --header-h: 128px; }
}

/* Hero SEO H1 styling (AUDIT #29) */
.hero-h1-kicker {
  display: block;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 6px;
  letter-spacing: 0;
}

/* Filter Pill Counts & Scroll Fade Mask (AUDIT #12, #26, P2-6) */
.pill-count {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0.78;
  margin-inline-start: 4px;
}
.pill-btn.active .pill-count {
  opacity: 0.92;
}
.filter-pills {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 100%);
  padding-inline-end: 20px;
}
.size-chip-filter.is-empty {
  opacity: 0.36;
  border-style: dashed;
}

/* Size Guide Button always visible at start of bar (P1-3) */
.size-chip-guide {
  order: -1;
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.06);
}

/* Sticky Filter Bar on Mobile (P2-6) */
@media (max-width: 860px) {
  .filter-stack {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: rgba(250, 249, 246, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-inline: -20px;
    padding: 10px 20px 10px;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s var(--ease), opacity 0.28s var(--ease);
    will-change: transform, opacity;
  }
  .filter-stack.is-scroll-hidden {
    opacity: 0;
    transform: translateY(-115%);
    pointer-events: none;
  }
}

/* P0-2: Quick View Grid & Thumbs Mobile Overflow Fix (AF-032 11 slides) */
.qv-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
.qv-media, .qv-stage, .qv-thumbs {
  min-width: 0;
  max-width: 100%;
}
.qv-thumbs {
  justify-content: safe center;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.qv-thumb-btn {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

/* Quick View Free Shipping Hint & Related Products (AUDIT #24, P3-3) */
.qv-ship-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FAF5EB;
  border: 1px solid rgba(121, 91, 43, 0.28);
  color: var(--gold-dark);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
}
.qv-ship-hint.is-free {
  background: #ECFDF3;
  border-color: #A6E3C0;
  color: #0E5C31;
}
.qv-related {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.qv-related-title {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}
.qv-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.qv-rel-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  padding: 0 0 6px;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.qv-rel-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.qv-rel-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: var(--surface);
}
.qv-rel-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  padding-inline: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qv-rel-price {
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-dark);
  padding-inline: 6px;
}
@media (max-width: 520px) {
  .qv-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Scarcity & Sold-Out Badges (AUDIT #25, P2-3, P2-4) */
.badge-tag.low-stock {
  background: rgba(180, 35, 24, 0.94);
  color: #FFFFFF;
}
.badge-tag.sold-out {
  background: rgba(17, 17, 17, 0.86);
  color: #F5F2EC;
}
.product-card.is-sold-out .product-media img {
  filter: grayscale(0.45);
  opacity: 0.82;
}
.card-size-pill.sold-out-pill {
  background: #FEF2F2;
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.25);
}

/* Pagination Load More & Back-to-Top (P2-5) */
.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}
.load-more-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 600;
}
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 52;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.back-to-top:hover {
  background: var(--ink);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Floating WhatsApp FAB (AUDIT #27, P3-2) */
.wa-fab {
  position: fixed;
  left: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 52;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0E723C;
  color: #FFFFFF;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(14, 114, 60, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), bottom 0.22s var(--ease);
}
.wa-fab:hover {
  background: #0A582E;
  transform: translateY(-2px);
}
.wa-fab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Toast with Undo Action (AUDIT #14) */
.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.toast-undo-btn {
  border: 1px solid rgba(245, 223, 172, 0.55);
  background: rgba(245, 223, 172, 0.16);
  color: #F5DFAC;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.toast-undo-btn:hover {
  background: #F5DFAC;
  color: #111111;
}

/* Order Confirmation Screen (AUDIT #13, P3-9) */
.order-confirm-box {
  background: #ECFDF3;
  border: 1px solid #A6E3C0;
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.order-confirm-check {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ok);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.order-confirm-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px dashed var(--gold-dark);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.order-confirm-steps {
  margin: 4px 0 0;
  padding-right: 18px;
  text-align: right;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* Lightbox Navigation Arrows, Counter & Pinch-Zoom (P1-11) */
.lightbox img {
  touch-action: pinch-zoom;
  user-select: none;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 132;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(17, 17, 17, 0.8);
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
}
.lightbox-nav:hover { background: var(--gold-dark); }
.lightbox-nav.prev { right: 16px; }
.lightbox-nav.next { left: 16px; }
.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 132;
  background: rgba(17, 17, 17, 0.82);
  color: #F5F2EC;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 700;
}

/* Form Checkboxes (Share Location + Save Details) */
.form-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.form-check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  flex-shrink: 0;
}

/* P2-11: Readable Arabic Micro-Typography & Touch Targets */
.badge-tag { font-size: 11.5px; }
.card-size-pill { font-size: 12px; padding: 3px 8px; }
.sort-select { min-height: 40px; }

/* Mobile Comprehensive Overrides (P1-1, P1-2, P1-7, P2-10, P2-11) */
@media (max-width: 860px) {
  /* P1-1: Above-the-fold Hero on Mobile */
  .hero-grid { padding-block: 12px 18px; gap: 12px; }
  .hero-visual {
    justify-items: center;
  }
  .hero-card.primary, .hero-card.secondary {
    width: 100%;
    height: min(46dvh, 420px);
    max-height: 46dvh;
    aspect-ratio: auto;
    margin-inline: auto;
    border-radius: 120px 120px 16px 16px;
  }
  .hero-title { font-size: 24px; margin: 6px 0 8px; line-height: 1.28; }
  .stitch-line { margin-bottom: 8px; }
  .hero-price-line { margin-bottom: 8px; gap: 8px; }
  .hero-price-val { font-size: 19px; }
  .hero-desc { font-size: 13.5px; margin-bottom: 12px; line-height: 1.6; }

  /* P1-2 & AUDIT #6: Show Categories as Horizontal Snap Carousel on Mobile */
  .categories-section {
    display: block !important;
    padding-block: 14px 4px;
  }
  .category-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-tile {
    flex: 0 0 42%;
    min-width: 146px;
    height: 124px;
    scroll-snap-align: start;
    aspect-ratio: 4 / 3.4;
  }

  /* P0-2 & P1-7: Quick View Mobile Sheet */
  .qv-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .qv-dots { display: none !important; }
  .qv-stage {
    aspect-ratio: 3 / 4;
    max-height: 36dvh;
  }
  .qv-details { gap: 10px; padding-top: 12px; }

  /* P2-10: Prevent Add-to-Cart Popup & FABs from overlapping Mobile Cart Bar */
  body.has-cart .cart-popup {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
  body.has-cart .wa-fab,
  body.has-cart .back-to-top {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .wa-fab span { display: none; }
  .wa-fab { padding: 12px; border-radius: 50%; width: 48px; height: 48px; justify-content: center; }

  /* P2-11: Larger mobile CTA & Swatches */
  .card-cta-mob button { min-height: 40px; padding: 9px 10px; font-size: 13px; }
  .swatch-btn { width: 34px; height: 34px; padding: 6px; }
}


/* ==========================================================================
   V6.4: Luxury 2x2 Tall Portrait Category Tiles (bynafnaf-style) +
         Full-Length Mobile Hero Dress Display
   ========================================================================== */
.categories-section {
  padding-block: 28px 16px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.category-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  aspect-ratio: auto !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  padding: 0;
  text-align: center;
  cursor: pointer;
}
.category-tile::after {
  display: none !important;
}
.cat-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  border-radius: 18px;
  overflow: hidden;
  background: #ECE4DC;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.25s var(--ease), box-shadow 0.35s var(--ease);
}
.category-tile.active .cat-img-wrap {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s var(--ease);
}
@media (hover: hover) {
  .category-tile:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .category-tile:hover .cat-img-wrap {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
  .category-tile:hover .cat-img-wrap img {
    transform: scale(1.04);
  }
}
.category-tile .category-label {
  position: static !important;
  inset: auto !important;
  z-index: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink) !important;
  padding-top: 2px;
}
.category-tile .category-label strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.category-tile .category-label small {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

@media (max-width: 860px) {
  /* Full-length mobile hero dress: shows 100% of dress from head to hem, centered */
  .hero-visual {
    justify-items: center;
  }
  .hero-card.primary, .hero-card.secondary {
    width: 100% !important;
    max-width: 370px;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1080 / 1609 !important;
    margin-inline: auto;
    border-radius: 130px 130px 16px 16px;
  }
  .hero-card img {
    object-fit: cover !important;
    object-position: center top !important;
  }

  /* 2x2 Large Portrait Category Grid on Mobile (just like reference) */
  .categories-section {
    display: block !important;
    padding-block: 20px 10px;
  }
  .category-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 12px !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
  }
  .category-tile {
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .cat-img-wrap {
    aspect-ratio: 3 / 4.1;
    border-radius: 16px;
  }
  .category-tile .category-label strong {
    font-size: 15px;
  }
  .category-tile .category-label small {
    font-size: 12px;
  }
}
