/* Hallmark · v2.0.0 · genre: editorial · theme: brand · redesign: polish · surface: absolute · hero: Stage (/) · nav: inline-monogram · footer: three-column-mast · job: buy · signature: pure white elevated cards over faint blush paper with warm rose-brown depth, strict one-job color roles, and LEGO-inspired category rail */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · cut all gold outlines and gold text so rose owns actions, charcoal owns hierarchy, and warm shadows carry surface depth */

:root {
  /* Surfaces */
  --surface-page: #FFF9F7;
  --surface-card: #FFFFFF;
  --surface-chip: #FBECEF;
  --surface-chip-hover: #F6DDE2;
  --surface-ink: #2E2A2B;
  --surface-ink-text: #FFFFFF;
  --sticky-bg: rgba(255, 253, 252, 0.97);

  /* Strict One-Job Color Roles */
  --brand-pink: #EDA0A8;
  --brand-rose: #B4485E;       /* Actions only: Commander, active chip, links (>5.3:1 with white) */
  --brand-rose-hover: #96384B;
  --brand-rose-text: #8F2C42;  /* High-contrast rose text on tinted chips & hover states (>5.8:1) */
  --brand-rose-soft: #D98A9A;  /* Subtle rose border cue on hover */
  --brand-rose-ink: #FFFFFF;
  --brand-gold: #C9973F;       /* Thin accent lines only — NEVER used for text */

  /* Typography Ink */
  --text-main: #2E2A2B;        /* Main text & bold prices */
  --text-meta: #54494C;        /* High-contrast metadata (pieces, refs, item counts) */
  --text-muted: #6E6164;       /* Soft grey-brown for secondary info (>5.4:1 on white) */
  --text-icon: #6E6164;

  /* Best-Sellers Band Tokens */
  --bs-bg-start: #B4485E;
  --bs-bg-end: #8C3146;
  --bs-ink: #FFF9F7;
  --bs-ink-soft: rgba(255, 249, 247, 0.94);
  --bs-star: #F4D28A;
  --bs-glass: rgba(255, 255, 255, 0.14);
  --bs-glass-hover: rgba(255, 255, 255, 0.26);
  --bs-glass-border: rgba(255, 255, 255, 0.28);
  --bs-glass-border-hover: rgba(255, 255, 255, 0.52);
  --bs-dot-bg: rgba(255, 255, 255, 0.34);
  --bs-dot-track: rgba(255, 255, 255, 0.26);
  --bs-shadow: 0 14px 32px rgba(140, 49, 70, 0.24);
  --bs-stage-shadow: 0 6px 18px rgba(46, 16, 24, 0.16);

  /* Subtle Hairlines, Overlays & Warm Rose-Brown Elevation */
  --border-pale: #F1E5E7;
  --border-input: #DFCED2;
  --border-search: rgba(46, 42, 43, 0.11);
  --overlay-backdrop: rgba(46, 42, 43, 0.44);
  --tile-scrim-strong: rgba(46, 42, 43, 0.78);
  --tile-scrim-mid: rgba(46, 42, 43, 0.34);
  --tile-text-shadow: 0 1px 4px rgba(46, 42, 43, 0.38);
  --shelf-arrow-glow: drop-shadow(0 1px 2px rgba(255, 249, 247, 0.95));
  --focus-ring-soft: 0 0 0 3px rgba(180, 72, 94, 0.13);
  --shadow-card: 0 10px 30px rgba(96, 60, 68, 0.065), 0 2px 6px rgba(96, 60, 68, 0.03);
  --shadow-card-hover: 0 16px 38px rgba(96, 60, 68, 0.11), 0 4px 12px rgba(96, 60, 68, 0.05);
  --shadow-field: 0 4px 16px rgba(96, 60, 68, 0.055), 0 1px 3px rgba(96, 60, 68, 0.03);
  --shadow-search: 0 1px 3px rgba(46, 42, 43, 0.04);
  --shadow-header: 0 2px 14px rgba(96, 60, 68, 0.045);
  --shadow-footer: 0 -4px 24px rgba(96, 60, 68, 0.04);
  --shadow-drawer: 10px 0 36px rgba(46, 42, 43, 0.18);
  --shadow-drawer-rtl: -10px 0 36px rgba(46, 42, 43, 0.18);
  --shadow-badge: 0 2px 6px rgba(180, 72, 94, 0.35);
  --shadow-cta-hover: 0 8px 20px rgba(180, 72, 94, 0.22);
  --shadow-sticky: 0 -6px 24px rgba(46, 42, 43, 0.11);
  --shadow-mobile-bar: 0 -4px 20px rgba(96, 60, 68, 0.08);

  /* Neutral Stock & Semantic Pills */
  --stock-ok-bg: #EEF4F0;
  --stock-ok-text: #3B5A46;
  --stock-out-bg: #F2EFEF;
  --stock-out-text: #6E6164;
  --status-err-bg: #FEF2F2;
  --status-err-border: #F5B8B8;
  --status-err-text: #991B1B;

  /* Self-Hosted Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', system-ui, -apple-system, sans-serif;
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;

  /* Geometry & Motion Curves (Emil Kowalski) */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-pill: 999px;
  --container-max: 1320px;
  --z-nav: 60;
  --z-sticky: 40;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

.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;
}

html {
  font-size: 16px;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-color: var(--brand-pink) var(--surface-page);
}

body {
  font-family: var(--font-sans);
  background-color: var(--surface-page);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C75B70' stroke-opacity='0.065' stroke-width='1.1'%3E%3Ccircle cx='16' cy='16' r='6.5'/%3E%3Ccircle cx='48' cy='16' r='6.5'/%3E%3Ccircle cx='16' cy='48' r='6.5'/%3E%3Ccircle cx='48' cy='48' r='6.5'/%3E%3Crect x='2' y='2' width='60' height='28' rx='4' stroke-opacity='0.04'/%3E%3Crect x='2' y='34' width='60' height='28' rx='4' stroke-opacity='0.04'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  caret-color: var(--brand-rose);
}

::selection {
  background-color: var(--surface-chip);
  color: var(--brand-rose);
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-rose);
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

button, a, [role="button"] {
  touch-action: manipulation;
}

button, [role="button"], .cat-chip, .lang-opt {
  user-select: none;
  -webkit-user-select: none;
}

@media (pointer: coarse) {
  input, select, textarea {
    font-size: 16px;
  }
}

h1, h2, h3 {
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-rose);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 32px;
  }
}

/* Top Utility Bar */
.top-bar {
  background-color: var(--surface-ink);
  color: var(--surface-ink-text);
  font-size: 0.8125rem;
  text-align: center;
  padding: 8px 16px;
}

/* Sticky Pure White Header with Soft Shadow (no gold outline) */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background-color: var(--surface-card);
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  white-space: nowrap;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

html.js-ready .site-header.mono-on-scroll .brand-link {
  opacity: 0;
  transform: translateY(-4px) scale(0.92);
  pointer-events: none;
}

html.js-ready .site-header.mono-on-scroll.is-scrolled .brand-link {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.home-logo-banner {
  text-align: center;
  padding: 20px 16px 4px;
}

.home-logo-banner img {
  height: 76px;
  width: auto;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .home-logo-banner {
    padding: 26px 16px 6px;
  }
  .home-logo-banner img {
    height: 92px;
  }
}

.brand-monogram {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-wordmark {
  display: none;
  flex-direction: column;
  line-height: 1.1;
}

.brand-wordmark-main {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
}

.brand-wordmark-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .header-inner {
    height: 72px;
  }
  .brand-monogram {
    height: 44px;
  }
  .brand-wordmark {
    display: flex;
  }
}

.header-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-main);
  padding-block: 4px;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--brand-rose);
  border-bottom-color: var(--brand-gold);
}

@media (min-width: 860px) {
  .header-nav {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 859px) {
  .header-actions {
    display: contents;
  }
  .menu-btn {
    order: -1;
  }
  .brand-link {
    order: 0;
    margin-inline-end: auto;
  }
  .lang-group {
    order: 1;
  }
  .cart-btn {
    order: 2;
  }
}

/* Floating Bottom-Corner Cart Button & Live Badge */
.cart-fab {
  position: fixed;
  inset-inline-end: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--brand-rose-soft);
  border-radius: var(--radius-pill);
  background-color: var(--surface-card);
  color: var(--brand-rose-text);
  box-shadow: var(--shadow-card-hover);
  cursor: pointer;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cart-fab.has-items {
  border-color: var(--brand-rose);
}

.cart-fab:hover {
  background-color: var(--surface-chip);
  border-color: var(--brand-rose);
}

.cart-fab:active {
  transform: scale(0.94);
}

body.has-sticky-bar .cart-fab {
  transform: translateY(-76px);
}

body.has-sticky-bar .cart-fab:active {
  transform: translateY(-76px) scale(0.94);
}

body.drawer-open .cart-fab {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 859px) {
  body.is-ordering .cart-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.88);
  }
}

@media (min-width: 768px) {
  .cart-fab {
    inset-inline-end: 24px;
    bottom: 24px;
  }
  body.has-sticky-bar .cart-fab {
    transform: translateY(-74px);
  }
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  z-index: 130;
  background-color: var(--surface-ink);
  color: var(--surface-ink-text);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow-card-hover);
  transition: opacity 0.24s ease, transform 0.24s ease;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}

.cart-toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.has-sticky-bar .cart-toast.is-shown {
  transform: translate(-50%, -74px);
}

.cart-badge {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: var(--brand-rose);
  color: var(--brand-rose-ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-badge);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.cart-badge.is-empty {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

/* Slide-Over Cart Drawer (iOS drawer curve, faster exit than enter) */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: var(--overlay-backdrop);
  display: flex;
  justify-content: flex-end;
  touch-action: none;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), visibility 0s linear 220ms;
}

.cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 260ms var(--ease-out), visibility 0s linear 0s;
}

.cart-panel {
  width: min(390px, 92vw);
  height: 100%;
  background: var(--surface-page);
  border-start-start-radius: 24px;
  border-end-start-radius: 24px;
  box-shadow: var(--shadow-drawer-rtl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate3d(100%, 0, 0);
  transition: transform 240ms var(--ease-drawer);
  will-change: transform;
}

html[dir="rtl"] .cart-panel {
  box-shadow: var(--shadow-drawer);
  transform: translate3d(-100%, 0, 0);
}

.cart-backdrop.is-open .cart-panel,
html[dir="rtl"] .cart-backdrop.is-open .cart-panel {
  transform: translate3d(0, 0, 0);
  transition: transform 340ms var(--ease-drawer);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--brand-gold);
  flex-shrink: 0;
}

.cart-head-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--text-main);
}

html[lang="ar"] .cart-head-title {
  font-family: var(--font-ar);
  font-size: 1.12rem;
  font-weight: 700;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: var(--surface-card);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-field);
}

.cart-item-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--surface-card);
}

.cart-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
}

.cart-item-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-rose);
  font-variant-numeric: tabular-nums;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-chip);
  border-radius: 999px;
  padding: 2px;
}

.cart-qty button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms var(--ease-out), background-color 140ms ease;
}

.cart-qty button:active {
  transform: scale(0.9);
}

.cart-qty span {
  min-width: 18px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
}

.cart-rm {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 6px;
}

.cart-rm:hover {
  color: var(--brand-rose-text);
}

.cart-empty {
  margin: auto;
  text-align: center;
  color: var(--text-muted);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cart-foot {
  background: var(--surface-card);
  border-top: 1px solid var(--border-pale);
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.cart-sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cart-sum-row.is-total {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-sum-row.is-total strong {
  color: var(--brand-rose);
  direction: ltr;
  unicode-bidi: isolate;
}

.cart-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-deliv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cart-deliv-opt {
  border: 1.5px solid var(--border-pale);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-card);
  cursor: pointer;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.cart-deliv-opt:active:not(:disabled) {
  transform: scale(0.97);
}

.cart-deliv-opt.is-active {
  border-color: var(--brand-rose);
  background: var(--surface-chip);
}

.cart-deliv-opt strong {
  font-size: 0.84rem;
  color: var(--text-main);
}

.cart-deliv-opt span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-rose);
  direction: ltr;
  unicode-bidi: isolate;
  align-self: flex-start;
}

.cart-thanks {
  background: var(--surface-card);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: auto 0;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}

@starting-style {
  .cart-thanks {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

.cart-thanks-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--stock-ok-bg);
  color: var(--stock-ok-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-thanks-ico svg polyline {
  stroke-dasharray: 28;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 320ms var(--ease-out) 110ms;
}

@starting-style {
  .cart-thanks-ico svg polyline {
    stroke-dashoffset: 28;
  }
}

.cart-thanks h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
}

html[lang="ar"] .cart-thanks h3 {
  font-family: var(--font-ar);
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-thanks-ref {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface-chip);
  color: var(--brand-rose);
  font-size: 0.85rem;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}

.cart-err {
  font-size: 0.82rem;
  color: var(--status-err-text);
  background: var(--status-err-bg);
  border: 1px solid var(--status-err-border);
  border-radius: 10px;
  padding: 8px 12px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

@starting-style {
  .cart-err {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

.header-text-link {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 12px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

@media (min-width: 768px) {
  .header-text-link {
    display: inline-flex;
    align-items: center;
  }
}

.hero-actions .header-text-link {
  display: inline-flex;
  align-items: center;
}

.header-text-link:hover {
  color: var(--brand-rose);
}

/* Simple Soft White Pill Language Button (no gold outline) */
.lang-switch {
  background-color: var(--surface-card);
  border: 1px solid var(--border-pale);
  box-shadow: var(--shadow-field);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.lang-switch:hover {
  background-color: var(--surface-chip);
  color: var(--brand-rose);
}

/* Primary Rose Action Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--brand-rose);
  color: var(--brand-rose-ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.btn-primary:hover {
  background-color: var(--brand-rose-hover);
  box-shadow: var(--shadow-cta-hover);
}

.btn-primary:active {
  transform: scale(0.975);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-input);
  box-shadow: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.16s ease;
}

.btn-outline:hover {
  background-color: var(--surface-chip);
  border-color: var(--brand-rose-soft);
  color: var(--brand-rose-text);
}

.btn-outline:active {
  transform: scale(0.975);
}

/* Section Heading with Thin Gold Accent Line Under Heading */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--brand-gold);
}

.section-meta-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

/* Compact Trilingual Language Switcher (FR / EN / عربي) with GPU Sliding Pill */
.lang-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  direction: ltr;
  background-color: var(--surface-card);
  border: 1px solid var(--border-pale);
  box-shadow: var(--shadow-field);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-pill {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 44px;
  height: 34px;
  border-radius: var(--radius-pill);
  background-color: var(--brand-rose);
  pointer-events: none;
  z-index: 0;
  transform: translateX(0);
  transition: transform 240ms var(--ease-out);
  will-change: transform;
}

html[lang="en"] .lang-pill {
  transform: translateX(46px);
}

html[lang="ar"] .lang-pill {
  transform: translateX(92px);
}

.lang-opt {
  position: relative;
  z-index: 1;
  min-height: 34px;
  width: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms var(--ease-out), transform 140ms var(--ease-out);
}

.lang-opt:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .lang-opt:hover:not(.active) {
    color: var(--brand-rose-text);
  }
}

.lang-opt.active {
  color: var(--brand-rose-ink);
}

/* Mobile Hamburger Button & Slide-Over Drawer (Storefront) */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-pale);
  border-radius: var(--radius-pill);
  background-color: var(--surface-card);
  color: var(--text-main);
  box-shadow: var(--shadow-field);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-btn:hover {
  background-color: var(--surface-chip);
  color: var(--brand-rose);
}

.menu-btn:active {
  transform: scale(0.92);
}

.menu-btn svg line {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.menu-btn svg line:nth-child(1) { transform-origin: 12px 6px; }
.menu-btn svg line:nth-child(2) { transform-origin: 12px 12px; }
.menu-btn svg line:nth-child(3) { transform-origin: 12px 18px; }

.menu-btn[aria-expanded="true"] {
  background-color: var(--surface-chip);
  color: var(--brand-rose);
}

.menu-btn[aria-expanded="true"] svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] svg line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn[aria-expanded="true"] svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 860px) {
  .menu-btn {
    display: none;
  }
}

body.drawer-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--overlay-backdrop);
  display: flex;
  justify-content: flex-start; /* Left edge in LTR, Right edge in RTL */
  touch-action: none;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), visibility 0s linear 220ms;
}

.nav-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 260ms var(--ease-out), visibility 0s linear 0s;
}

.nav-drawer {
  width: min(312px, 84vw);
  height: 100%;
  background: var(--surface-page);
  border-start-end-radius: 24px;
  border-end-end-radius: 24px;
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  transform: translate3d(-100%, 0, 0);
  transition: transform 240ms var(--ease-drawer);
  will-change: transform;
}

html[dir="rtl"] .nav-drawer {
  box-shadow: var(--shadow-drawer-rtl);
  transform: translate3d(100%, 0, 0);
}

.nav-drawer-backdrop.is-open .nav-drawer,
html[dir="rtl"] .nav-drawer-backdrop.is-open .nav-drawer {
  transform: translate3d(0, 0, 0);
  transition: transform 340ms var(--ease-drawer);
}

@keyframes anfFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes anfFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes anfSlideInLeft {
  from { transform: translateX(-100%); opacity: 0.7; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes anfSlideInRight {
  from { transform: translateX(100%); opacity: 0.7; }
  to { transform: translateX(0); opacity: 1; }
}

/* Smooth Scroll Reveal System (visible by default when scripting is off) */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1), transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--brand-gold);
  flex-shrink: 0;
}

.nav-drawer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-drawer-brand img {
  height: 36px;
  width: auto;
}

.nav-drawer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
}

html[lang="ar"] .nav-drawer-brand-name {
  font-family: var(--font-ar);
  font-size: 1.05rem;
}

.nav-drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--surface-chip);
  color: var(--brand-rose-text);
  font-size: 1.35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.nav-drawer-close:active {
  transform: scale(0.92);
}

.nav-drawer-body {
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.nav-drawer-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 6px;
  margin-bottom: -6px;
}

html[lang="ar"] .nav-drawer-label {
  font-size: 0.84rem;
}

.nav-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: var(--shadow-field);
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 500;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.nav-drawer-links a:active {
  transform: scale(0.98);
}

.nav-drawer-links a:hover,
.nav-drawer-links a.active {
  background: var(--surface-chip);
  color: var(--brand-rose);
}

.nav-drawer-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-drawer-sep {
  display: none;
}

.nav-drawer-socials {
  margin-top: auto;
  padding: 14px 16px 0;
  border-top: 1px solid var(--border-pale);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nav-drawer-socials .social-pill {
  justify-content: center;
  min-height: 42px;
  background: var(--surface-card);
  box-shadow: var(--shadow-field);
  color: var(--brand-rose);
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
}

html[lang="ar"] .section-title {
  font-family: var(--font-ar);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
}

.section-meta-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Article count in soft grey-brown (NEVER gold) */
.section-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--surface-card);
  box-shadow: var(--shadow-footer);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 8px;
}

.footer-availability {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--brand-rose);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--surface-chip);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.social-pill:hover {
  background-color: var(--surface-chip-hover);
  color: var(--brand-rose-text);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border-pale);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Form Controls (pure white, pale hairline only where needed) */
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--text-main);
  background-color: var(--surface-card);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: var(--status-err-text);
  background-color: var(--status-err-bg);
}

.field-error {
  font-size: 0.8125rem;
  color: var(--status-err-text);
  display: none;
}

.field.has-error .field-error {
  display: block;
}

.alert-error {
  background-color: var(--status-err-bg);
  border: 1px solid var(--status-err-border);
  color: var(--status-err-text);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Custom Origin-Aware Animated Boutique Dropdown (Sort & 69-Wilaya Picker) */
.anf-dd {
  position: relative;
  display: inline-block;
}

.anf-dd.is-field {
  display: block;
  width: 100%;
}

.anf-dd-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-search);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.anf-dd-trigger:active {
  transform: scale(0.97);
}

.anf-dd.is-open .anf-dd-trigger {
  border-color: var(--brand-rose);
  box-shadow: var(--focus-ring-soft);
}

.anf-dd.is-field .anf-dd-trigger {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 400;
  box-shadow: none;
  text-align: start;
}

.anf-dd-trigger-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anf-dd-trigger-val.is-placeholder {
  color: var(--text-muted);
}

.anf-dd-chev {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 180ms var(--ease-out), color 160ms var(--ease-out);
}

.anf-dd.is-open .anf-dd-chev {
  transform: rotate(180deg);
  color: var(--brand-rose-text);
}

.anf-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 80;
  min-width: 196px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-pale);
  border-radius: 14px;
  box-shadow: var(--shadow-card-hover);
  padding: 6px;
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px) scale(0.96);
  transition: opacity 130ms var(--ease-out), transform 130ms var(--ease-out), visibility 0s linear 130ms;
}

html[dir="rtl"] .anf-dd-menu {
  transform-origin: top left;
}

.anf-dd.is-field .anf-dd-menu {
  inset-inline: 0;
  min-width: 0;
  width: 100%;
  transform-origin: top center;
}

.anf-dd.is-open .anf-dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 0s;
}

.anf-dd-search-wrap {
  position: relative;
  padding: 2px 2px 6px;
  border-bottom: 1px solid var(--border-pale);
  margin-bottom: 4px;
}

.anf-dd-search-wrap svg {
  position: absolute;
  inset-inline-start: 12px;
  top: calc(50% - 2px);
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.anf-dd-search {
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  padding-inline-start: 34px;
  font-size: 1rem;
  color: var(--text-main);
  background-color: var(--surface-page);
  border: 1px solid var(--border-pale);
  border-radius: 10px;
}

.anf-dd-search:focus {
  outline: none;
  border-color: var(--brand-rose);
}

.anf-dd-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 224px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.anf-dd-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: start;
  cursor: pointer;
  transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out), transform 120ms var(--ease-out);
}

.anf-dd-opt:active {
  transform: scale(0.98);
}

.anf-dd-opt.is-selected {
  background-color: var(--surface-chip);
  color: var(--brand-rose-text);
  font-weight: 600;
}

.anf-dd-opt svg {
  width: 15px;
  height: 15px;
  color: var(--brand-rose-text);
  flex-shrink: 0;
}

.anf-dd-opt:not(.is-selected) svg {
  visibility: hidden;
}

.anf-dd-empty {
  padding: 14px 12px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

@media (hover: hover) and (pointer: fine) {
  .anf-dd-trigger:hover {
    border-color: var(--brand-rose-soft);
  }
  .anf-dd-opt:hover:not(.is-selected) {
    background-color: var(--surface-page);
    color: var(--brand-rose-text);
  }
}

/* Respect reduced-motion for ambient entrance animations while keeping interactive drawers responsive */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Live Promo Pricing (from Admin global or per-item discounts) */
.store-price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  direction: ltr;
  unicode-bidi: isolate;
}
.store-price-old {
  font-size: 0.78em;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}
.store-price-new {
  color: var(--brand-rose);
  font-weight: 700;
}
.store-promo-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brand-rose-soft);
  color: var(--brand-rose);
}

/* Best Sellers dark-rose card: crisp white promo price contrast */
.hero-bestsellers .store-price-new {
  color: #FFFFFF;
}
.hero-bestsellers .store-price-old {
  color: rgba(255, 255, 255, 0.72);
}
.hero-bestsellers .store-promo-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.bs-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Stress-test hardening: icon bounds, 2-line clamps & expand buttons */
.cat-chip {
  flex-shrink: 0;
  white-space: nowrap;
}
.cat-chip img,
.cat-chip svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  object-fit: contain;
}
.col-tile-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.home-more-btn {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-card);
  color: var(--brand-rose);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.home-more-btn:active { transform: scale(0.97); }
