/* ==========================================================
   LUMIVELLE BOUTIQUE — DESIGN SYSTEM
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Jost:wght@300;400;500;600&family=Aref+Ruqaa:wght@400;700&family=Cairo:wght@300;400;500;600;700&display=swap');

/* ==========================================================
   COLOUR - single source of truth
   ----------------------------------------------------------
   This block is the ONLY place a raw colour value appears.
   Every rule below, and every inline style in the HTML, refers
   to these tokens. A literal hex or rgba() anywhere else is a
   bug: change a token instead.

   Brand palette and the role each colour plays:
     Navy       hero areas, primary accents
     Sand       buttons, section and footer backgrounds
     Black      header, ticker and footer bars
     Off-white  cards, inputs, product backgrounds
     Charcoal   text on sand and off-white
     White      text on navy and black

   Measured contrast (WCAG AA needs 4.5:1 for body text,
   3:1 for large text and UI borders):
     white         on navy        10.2:1
     white         on black       19.0:1
     charcoal      on sand         8.5:1
     charcoal      on off-white   15.1:1
     muted         on sand         5.4:1
     muted         on off-white    9.7:1
     muted-on-dark on navy         6.9:1
   ========================================================== */
:root {
  /* ---- Brand palette ---- */
  --navy: #3a3f5f;
  --sand: #c8b69a;
  --black: #111111;
  --off-white: #f4f3f0;
  --charcoal: #1d1d23;
  --white: #ffffff;

  /* ---- Derived tones: hovers, gradients, depth ---- */
  --navy-deep: #2b2f47;
  --navy-soft: #515778;
  --sand-deep: #b39f82;
  --sand-soft: #ded2bf;

  /* ---- Semantic roles: what the UI actually asks for ---- */
  --page-bg: var(--white);
  --bar-bg: var(--black);           /* header, ticker, footer bottom bar */
  --hero-bg: var(--navy);
  --section-bg: var(--sand);
  --card-bg: var(--off-white);
  --input-bg: var(--off-white);

  --text: var(--charcoal);
  /* Deliberately darker than it first appears to need: secondary text sits
     on SAND as well as off-white, and must clear AA on both (5.4:1 / 9.7:1). */
  --text-muted: #3d3d46;
  --text-on-dark: var(--white);
  --text-muted-on-dark: rgba(255, 255, 255, 0.78);

  --accent: var(--navy);
  --accent-on-dark: var(--sand);

  --line: rgba(29, 29, 35, 0.14);
  --line-on-dark: rgba(255, 255, 255, 0.18);
  --line-on-dark-strong: rgba(255, 255, 255, 0.4);  /* interactive borders */
  --surface-on-dark: rgba(255, 255, 255, 0.1);      /* hover wash on navy/black */
  --shadow: 0 20px 50px -20px rgba(29, 29, 35, 0.35);
  --shadow-soft: 0 10px 24px -8px rgba(29, 29, 35, 0.18);

  /* Type */
  --f-display-en: 'Cormorant Garamond', serif;
  --f-display-ar: 'Aref Ruqaa', serif;
  --f-body-en: 'Jost', sans-serif;
  --f-body-ar: 'Cairo', sans-serif;

  --f-display: var(--f-display-en);
  --f-body: var(--f-body-en);

  --container: 1180px;
}

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

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

/* The `hidden` attribute has to actually hide things.
   The browser's own stylesheet says [hidden] { display: none }, but ANY author
   rule that sets `display` beats the browser's, whatever its specificity - so
   every element here that both carries [hidden] and has its own `display` rule
   was never really hidden:
     - #checkoutGrid (display: grid) was painted before the cart had loaded;
     - .cart-drawer (display: flex) stayed in the layout once "closed", kept
       off-screen only by its transform, so it still took keyboard focus.
   This is the root-cause rule. The older `.testimonials[hidden]` patch below
   was the same bug fixed one element at a time; it is now redundant but
   harmless, and left in place.
   !important is deliberate: it keeps this holding no matter what `display` a
   later rule sets on an element that also carries [hidden]. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
}

/* ---------- Beaded divider — the signature motif ---------- */
.beaded-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 auto;
  width: fit-content;
}
.beaded-divider span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sand-soft), var(--accent) 70%);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.15);
}
.beaded-divider span:nth-child(3n) { background: radial-gradient(circle at 30% 30%, var(--white), var(--navy-soft) 75%); }
.beaded-divider.on-dark span:nth-child(3n) { background: radial-gradient(circle at 30% 30%, var(--white), var(--accent) 75%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--f-body);
  font-size: 14px;
  letter-spacing: 0.05em;
  font-weight: 500;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sand);
  color: var(--charcoal);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--sand-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(29, 29, 35, 0.28);
}
/* The WhatsApp glyph inherits the label colour instead of carrying its own
   brand green, so every button stays on-palette. */
.btn-primary svg { fill: currentColor; }

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: var(--off-white); border-color: var(--navy); }

.btn-ghost-light {
  border: 1px solid var(--text-muted-on-dark);
  color: var(--text-on-dark);
}
.btn-ghost-light:hover { background: var(--line-on-dark); }

.btn-sm { padding: 10px 18px; font-size: 12.5px; }
.btn-block { width: 100%; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bar-bg);
  border-bottom: 1px solid var(--line-on-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 12px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--off-white);
  letter-spacing: 0.02em;
}
.nav-logo .mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--sand-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--sand-soft);
  flex-shrink: 0;
}
.nav-logo .dot { color: var(--accent-on-dark); }
.nav-links {
  display: none;
  gap: 30px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
}
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--sand-soft);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-on-dark);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { border-color: var(--sand-soft); color: var(--sand-soft); }
.nav-wa {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
}
.nav-wa svg { width: 18px; height: 18px; fill: var(--white); }

@media (min-width: 860px) {
  .nav { padding: 18px 40px; }
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 29, 35, 0.15) 0%, rgba(29, 29, 35, 0.25) 40%, rgba(17, 17, 17, 0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--off-white);
  padding: 0 24px 64px;
  max-width: 720px;
}
.hero-eyebrow {
  color: var(--sand-soft);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(42px, 9vw, 84px);
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero p {
  font-size: 17px;
  color: var(--text-muted-on-dark);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (min-width: 860px) {
  .hero-content { padding: 0 60px 90px; }
}

/* ---------- Trust / icon strip ---------- */
.icon-strip {
  background: var(--hero-bg);
  padding: 30px 0;
}
.icon-strip.light {
  background: var(--sand);
  border-top: 1px solid var(--line);
}
.icon-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
@media (min-width: 720px) { .icon-strip .container { grid-template-columns: repeat(4, 1fr); } }
.icon-item { color: var(--text-on-dark); }
.icon-strip.light .icon-item { color: var(--text); }
.icon-item svg { width: 26px; height: 26px; stroke: var(--sand-soft); fill: none; stroke-width: 1.4; margin-bottom: 10px; }
.icon-strip.light .icon-item svg { stroke: var(--navy); }
.icon-item h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; color: var(--white); }
.icon-strip.light .icon-item h4 { color: var(--text); }
.icon-item p { font-size: 11.5px; color: var(--text-muted-on-dark); }
.icon-strip.light .icon-item p { color: var(--text-muted); }

/* ---------- Featured collection strip ---------- */
.featured { padding: 70px 0 20px; }
.featured-head { text-align: center; margin-bottom: 40px; }
.featured-head .eyebrow { display: block; margin-bottom: 14px; }
.featured-head h2 { font-size: clamp(28px, 4.5vw, 40px); }
.product-grid.compact { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .product-grid.compact { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Instagram photo strip ---------- */
.insta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  max-width: 900px;
  margin: 36px auto 0;
}
@media (min-width: 640px) { .insta-strip { grid-template-columns: repeat(6, 1fr); } }
.insta-strip a { display: block; aspect-ratio: 1; overflow: hidden; }
.insta-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.insta-strip a:hover img { transform: scale(1.08); }

/* ---------- Split craft section ---------- */
.craft-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 860px) { .craft-split { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.craft-split-text {
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--sand);
}
@media (min-width: 860px) { .craft-split-text { padding: 60px 64px; } }
.craft-split-text .eyebrow { display: block; margin-bottom: 14px; }
.craft-split-text h2 { font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 18px; }
.craft-split-text p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 26px; max-width: 440px; }
.craft-split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: 320px;
}
.craft-split-media img { width: 100%; height: 100%; object-fit: cover; }
.craft-split-media .tall { grid-row: span 2; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 80px 0; text-align: center; }
.testimonials .eyebrow { display: block; margin-bottom: 14px; }
.testimonials h2 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 40px; }
.testi-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 780px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card {
  background: var(--sand);
  border-radius: 4px;
  padding: 26px 24px;
  text-align: start;
}
.testi-stars { color: var(--accent); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-card p { font-size: 14.5px; color: var(--text); margin-bottom: 18px; line-height: 1.65; }
.testi-name { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.testi-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 14px;
}

/* ---------- Shop filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-chip {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--off-white);
  transition: all 0.2s ease;
}
.filter-chip.active,
.filter-chip:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-count { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 26px; }

/* ---------- Craft strip ---------- */
.craft {
  padding: 80px 0 64px;
  text-align: center;
}
.craft .eyebrow { display: block; margin-bottom: 14px; }
.craft h2 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 22px; }
.craft .beaded-divider { margin-bottom: 26px; }
.craft-lead {
  max-width: 620px;
  margin: 0 auto 52px;
  color: var(--text-muted);
  font-size: 16.5px;
}
.craft-points {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.craft-point .num {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.craft-point h3 { font-size: 19px; margin-bottom: 8px; color: var(--text); font-weight: 600; }
.craft-point p { font-size: 14.5px; color: var(--text-muted); }

@media (min-width: 720px) {
  .craft-points { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Shop grid ---------- */
.shop {
  padding: 40px 0 90px;
  background: var(--sand);
}
.shop-head {
  text-align: center;
  padding-top: 70px;
  margin-bottom: 50px;
}
.shop-head .eyebrow { display: block; margin-bottom: 14px; }
.shop-head h2 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 20px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 640px) { .product-grid { gap: 26px; } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.product-card {
  background: var(--off-white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 12px 28px -18px rgba(29, 29, 35, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
}
.product-info { padding: 16px 16px 20px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 {
  font-size: 21px;
  margin-bottom: 4px;
}
.product-material {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  min-height: 2.6em;
}
.product-price {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 14px;
}
.product-info .btn { margin-top: auto; }
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Social / follow strip ---------- */
.follow {
  padding: 80px 0;
  text-align: center;
  background: var(--navy);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.follow h2 { color: var(--white); font-size: clamp(28px, 5vw, 42px); margin-bottom: 16px; }
.follow p { color: var(--text-muted-on-dark); max-width: 500px; margin: 0 auto 30px; }
.follow .beaded-divider { margin-bottom: 24px; }
.social-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-on-dark-strong);
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-btn:hover { background: var(--surface-on-dark); border-color: var(--sand-soft); }
.social-btn svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bar-bg);
  color: var(--text-muted-on-dark);
  padding: 56px 0 26px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr; } }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-on-dark-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark);
}
.footer-social a:hover { border-color: var(--sand-soft); color: var(--sand-soft); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-brand .nav-logo { color: var(--sand-soft); margin-bottom: 12px; display: block; }
.footer-brand p { max-width: 320px; line-height: 1.7; }
.footer-col h4 {
  color: var(--off-white);
  font-family: var(--f-body);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--sand-soft); }
.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted-on-dark);
}

/* ---------- Sticky mobile WhatsApp bar ---------- */
.sticky-wa {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--off-white);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  box-shadow: 0 -8px 24px rgba(17, 17, 17, 0.08);
}
.sticky-wa .btn { width: 100%; }
@media (min-width: 860px) { .sticky-wa { display: none; } }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.breadcrumb {
  padding: 20px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.breadcrumb a:hover { color: var(--navy); }

.product-detail {
  padding: 10px 0 70px;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .product-detail { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: flex-start; }
}

.gallery-main {
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; }
.gallery-thumbs button {
  width: 68px; height: 68px;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gallery-thumbs button.active,
.gallery-thumbs button:hover { opacity: 1; border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-eyebrow { display: block; margin-bottom: 10px; }
.pd-title { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.pd-price {
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 22px;
}
.pd-desc { color: var(--text-muted); font-size: 15.5px; margin-bottom: 28px; max-width: 480px; }

.pd-field { margin-bottom: 22px; }
.pd-field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-chip {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.color-chip.active { border-color: var(--navy); background: var(--navy); color: var(--white); }

.pd-meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text); margin-bottom: 30px; }
.pd-meta span.label { color: var(--text-muted); }

.pd-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.pd-note { font-size: 12.5px; color: var(--text-muted); }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  width: fit-content;
}
.qty-stepper button {
  width: 38px; height: 38px;
  font-size: 18px;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.qty-stepper button:hover { color: var(--accent); }
.qty-stepper span { min-width: 28px; text-align: center; font-size: 15px; font-weight: 600; }

@media (min-width: 640px) {
  .gallery { display: flex; gap: 14px; }
  .gallery-thumbs { flex-direction: column; order: -1; width: 64px; flex-shrink: 0; }
  .gallery-thumbs button { width: 64px; height: 64px; flex-shrink: 0; }
  .gallery-main { flex: 1; margin-bottom: 0; }
}

.related { padding: 60px 0 90px; background: var(--sand); }
.related h2 { text-align: center; font-size: clamp(26px, 4vw, 36px); margin-bottom: 40px; }

/* ---------- utility ---------- */
.only-ar { display: none; }
html[lang="ar"] .only-ar { display: inline; }
html[lang="ar"] .only-en { display: none; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================
   BACKEND-ERA ADDITIONS
   Everything above is the original design, untouched. These
   rules cover states that did not exist when the catalogue was
   a hardcoded file: sold-out products, the checkout form, the
   policy pages, and loading/empty states.
   They reuse the existing tokens, so nothing here introduces a
   new colour, font or spacing scale.
   ========================================================== */

/* ---------- Disabled / sold-out actions ---------- */
.btn.is-disabled {
  background: var(--line);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.product-card .btn.is-disabled { background: rgba(29, 29, 35, 0.08); }

.stock-note {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 8px;
}
.stock-note.low { color: var(--navy-soft); }
.stock-note.out { color: var(--text-muted); }

/* ---------- Loading & empty states ---------- */
.state-msg {
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.state-msg.error { color: var(--navy); }

/* The testimonials section removes itself when nothing is approved, rather
   than showing an empty heading. */
.testimonials[hidden] { display: none; }

/* ---------- Policy pages (shipping / returns / faq) ---------- */
.policy {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 0 90px;
}
.policy h1 {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 46px);
  color: var(--navy);
  margin-bottom: 10px;
}
.policy .lede {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 38px;
  font-size: 15.5px;
}
.policy h2 {
  font-family: var(--f-display);
  font-size: 25px;
  color: var(--navy);
  margin: 40px 0 14px;
}
.policy p, .policy li { line-height: 1.9; color: var(--text); font-size: 14.8px; }
.policy ul { padding-inline-start: 22px; margin-bottom: 16px; }
.policy li { margin-bottom: 8px; }

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
}
.policy-table th,
.policy-table td {
  text-align: start;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.policy-table th {
  background: var(--sand);
  font-family: var(--f-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.policy-callout {
  background: var(--sand);
  border-inline-start: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 26px 0;
  line-height: 1.85;
  font-size: 14.5px;
}

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  padding: 22px 0;
  font-family: var(--f-body);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 22px;
  line-height: 1.9;
  color: var(--text-muted);
  font-size: 14.5px;
}
.faq-item.open .faq-a { display: block; }

/* ---------- Checkout ---------- */
.checkout {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 0 90px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 46px;
  align-items: start;
}
@media (max-width: 820px) {
  .checkout-grid { grid-template-columns: 1fr; gap: 34px; }
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--input-bg);
  font-family: var(--f-body);
  font-size: 14.5px;
  color: var(--text);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { min-height: 92px; resize: vertical; }
.field .err {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--navy);
}

.summary-card {
  background: var(--sand);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.summary-card h3 {
  font-family: var(--f-display);
  font-size: 23px;
  color: var(--navy);
  margin-bottom: 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.summary-row:last-of-type { border-bottom: 0; }
.summary-row.total {
  font-weight: 600;
  color: var(--navy);
  font-size: 16px;
  padding-top: 16px;
}
.summary-note {
  margin-top: 14px;
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* Payment method chooser */
.pay-methods { display: grid; gap: 12px; margin: 8px 0 26px; }
.pay-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  background: var(--card-bg);
  transition: border-color 0.2s ease;
}
.pay-option:hover { border-color: var(--sand-soft); }
.pay-option.selected { border-color: var(--accent); background: var(--white); }
.pay-option input { margin-top: 3px; accent-color: var(--navy); }
.pay-option strong { display: block; font-size: 14.5px; margin-bottom: 4px; color: var(--navy); }
.pay-option span { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* Paymob Pixel mounts its embedded card form here. */
#paymobFrame { margin-top: 20px; min-height: 0; }
#paymobFrame:not(:empty) { min-height: 420px; }

.form-alert {
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.form-alert.error { background: rgba(58, 63, 95, 0.07); color: var(--navy); }
.form-alert.info { background: var(--sand); color: var(--text); }
.form-alert.success { background: rgba(29, 29, 35, 0.1); color: var(--navy); }

/* ---------- Order confirmation ---------- */
.confirm {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 0 100px;
  text-align: center;
}
.confirm h1 {
  font-family: var(--f-display);
  font-size: clamp(30px, 5vw, 42px);
  color: var(--navy);
  margin-bottom: 14px;
}
.confirm .order-no {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 26px;
}
.confirm-detail {
  background: var(--sand);
  padding: 26px;
  text-align: start;
  margin: 28px 0;
}

/* ==========================================================
   HOMEPAGE BANNER CAROUSEL  (stage 2)
   ----------------------------------------------------------
   Full-bleed, three slides. Colour comes entirely from the
   tokens at the top of this file - nothing new is introduced.
   ========================================================== */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--navy);     /* shows while the first image decodes */
}

.carousel-viewport { overflow: hidden; }

.carousel-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.55s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
}

/* Each slide is exactly one viewport wide, so the track translates in
   clean 100% steps and never needs measuring. */
.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-slide picture,
.carousel-noscript picture { display: block; }

.carousel-slide img,
.carousel-noscript img {
  width: 100%;
  /* height:auto is load-bearing. The <img> carries width/height attributes
     (which prevent layout shift while loading), and without this the
     attribute height wins and aspect-ratio below is ignored - making the
     slide far taller than intended and pushing the caption off-screen. */
  height: auto;
  /* A fixed aspect per breakpoint keeps the height stable while images load,
     so the carousel cannot shift the page as it settles. */
  aspect-ratio: 9 / 12;
  object-fit: cover;
}

/* Legibility scrim. The caption sits on photography, which cannot be relied
   on for contrast, so the text always has a known-dark ground beneath it. */
.carousel-slide::after,
.carousel-noscript::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.15) 0%,
    rgba(17, 17, 17, 0.35) 45%,
    rgba(17, 17, 17, 0.82) 100%
  );
}

.carousel-caption {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 24px 64px;
}
.carousel-caption-inner {
  max-width: 620px;
  margin: 0 auto;
}

.carousel-caption h2 {
  font-family: var(--f-display);
  color: var(--text-on-dark);
  font-size: clamp(32px, 8vw, 60px);
  line-height: 1.05;
  margin-bottom: 14px;
}
.carousel-caption p {
  color: var(--text-muted-on-dark);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 26px;
  max-width: 460px;
}

/* ---------- arrows ---------- */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none;                      /* touch devices swipe instead */
  align-items: center;
  justify-content: center;
  background: var(--surface-on-dark);
  border: 1px solid var(--line-on-dark-strong);
  color: var(--text-on-dark);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel-arrow:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--charcoal);
}
.carousel-arrow svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.carousel-arrow.prev { inset-inline-start: 18px; }
.carousel-arrow.next { inset-inline-end: 18px; }
/* The glyphs are drawn pointing left/right; in RTL "previous" visually points
   the other way, so the icon is mirrored rather than swapped for another. */
html[dir="rtl"] .carousel-arrow svg { transform: scaleX(-1); }

@media (min-width: 721px) {
  .carousel-arrow { display: flex; }
}

/* ---------- dots ---------- */
.carousel-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.carousel-dot {
  position: relative;
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: var(--line-on-dark-strong);
  border: 1px solid transparent;
  transition: background 0.2s ease, width 0.2s ease;
}
.carousel-dot[aria-selected="true"] {
  background: var(--sand);
  width: 26px;
  border-radius: 6px;
}
/* The hit area is padded out to ~40px without changing the visible dot, so
   the control is comfortably tappable on a phone. */
.carousel-dot::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
}

/* ---------- desktop proportions ---------- */
@media (min-width: 721px) {
  .carousel-slide img,
  .carousel-noscript img { aspect-ratio: 16 / 7.5; }

  .carousel-caption { padding: 0 60px 96px; }
  .carousel-caption-inner { max-width: 560px; }
  .carousel-caption p { font-size: 17.5px; }
  .carousel-dots { bottom: 26px; }
}

@media (min-width: 1100px) {
  .carousel-slide img,
  .carousel-noscript img { aspect-ratio: 16 / 6.5; }
}

/* ---------- no-JS fallback ---------- */
.carousel-noscript { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* ==========================================================
   SHOP PAGE  (stage 3)
   ========================================================== */

.shop-head h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-top: 6px;
}

/* ---------- hover image swap ---------- */
.product-thumb { position: relative; display: block; overflow: hidden; }

.product-img-swap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Only swap where a genuine second photo exists, and only for input that can
   actually hover - on a touchscreen :hover sticks after a tap, which would
   leave the wrong image showing. */
@media (hover: hover) and (pointer: fine) {
  .product-thumb.has-swap:hover .product-img-swap,
  .product-thumb.has-swap:focus-visible .product-img-swap { opacity: 1; }
  .product-thumb.has-swap:hover .product-img-main { opacity: 0; }
}
.product-img-main { transition: opacity 0.45s ease, transform 0.6s ease; }

/* ---------- sold out ---------- */
.product-badge-soldout {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  background: var(--charcoal);
  color: var(--text-on-dark);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
}

/* Desaturated rather than faded: the bag still has to be recognisable, it is
   just not buyable right now. */
.product-card.is-sold-out .product-thumb img { filter: grayscale(0.55); }
.product-card.is-sold-out:hover .product-thumb img { filter: grayscale(0.3); }

/* ---------- filters ---------- */
.filter-chip-count {
  display: inline-block;
  margin-inline-start: 6px;
  font-size: 11px;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}

.shop .breadcrumb { padding-top: 26px; }

/* ==========================================================
   ORDERING UI  (stage 4)
   ========================================================== */

/* ---------- header cart button ---------- */
.cart-button {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-on-dark-strong);
  color: var(--text-on-dark);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cart-button:hover { background: var(--sand); border-color: var(--sand); color: var(--charcoal); }
.cart-button svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.cart-count {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--sand);
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- cart drawer ---------- */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(17, 17, 17, 0.5);
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  z-index: 310;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  box-shadow: var(--shadow);
  /* translate rather than offsetting inset, so the slide is composited */
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
html[dir="rtl"] .cart-drawer { transform: translateX(-100%); }

/* Both selectors are needed. `html[dir="rtl"] .cart-drawer` scores (0,2,1),
   which would outrank a bare `.cart-drawer.is-open` at (0,2,0) - so on the
   Arabic site the drawer would stay parked off-screen no matter what. */
.cart-drawer.is-open,
html[dir="rtl"] .cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--navy);
}
.cart-close {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text);
}
.cart-close:hover { background: var(--card-bg); }
.cart-close svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
}

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-drawer-foot {
  border-top: 1px solid var(--line);
  padding: 18px 22px calc(18px + env(safe-area-inset-bottom));
  background: var(--card-bg);
}

.cart-lines { display: grid; gap: 4px; }
.cart-line {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line.is-unavailable { opacity: 0.6; }
.cart-line-thumb img {
  width: 76px; height: 92px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--card-bg);
}
.cart-line-name { font-size: 15px; color: var(--navy); font-weight: 500; }
.cart-line-variant { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.cart-line-warning { font-size: 12px; color: var(--navy); font-weight: 600; margin-top: 3px; }
.cart-line-price { font-size: 14px; margin-top: 6px; }
.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.cart-line-remove {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-line-remove:hover { color: var(--navy); }

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 15px;
}
.cart-subtotal strong { font-size: 18px; color: var(--navy); }
.cart-note { font-size: 12.3px; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }

.cart-empty { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.cart-empty svg {
  width: 44px; height: 44px; margin: 0 auto 16px;
  fill: none; stroke: var(--sand-deep); stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.cart-empty p { margin-bottom: 20px; }

/* ---------- quantity stepper, compact ---------- */
.qty-stepper.sm { transform: scale(0.88); transform-origin: left center; }
html[dir="rtl"] .qty-stepper.sm { transform-origin: right center; }

/* ---------- product gallery ---------- */
.gallery-main { position: relative; cursor: zoom-in; }
.gallery-main.is-zoomed { cursor: zoom-out; }
.gallery-main img { transition: transform 0.35s ease; }
.gallery-main.is-zoomed img { transform: scale(2.1); }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  background: var(--surface-on-dark);
  border: 1px solid var(--line-on-dark-strong);
  color: var(--text-on-dark);
  backdrop-filter: blur(4px);
}
.gallery-nav svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.gallery-nav.prev { inset-inline-start: 12px; }
.gallery-nav.next { inset-inline-end: 12px; }
html[dir="rtl"] .gallery-nav svg { transform: scaleX(-1); }

/* Arrows are a pointer affordance; touch devices swipe instead. */
@media (hover: hover) and (pointer: fine) {
  .gallery-main:hover .gallery-nav { display: flex; }
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--surface-on-dark);
  color: var(--text-on-dark);
  font-size: 11px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.gallery-main.is-zoomed .gallery-zoom-hint { opacity: 0; }

/* ---------- colour swatches ---------- */
.color-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  display: inline-block;
  margin-inline-end: 7px;
  vertical-align: -2px;
  border: 1px solid var(--line);
}

/* ---------- accordions ---------- */
.accordions { margin-top: 30px; border-top: 1px solid var(--line); }
.accordion { border-bottom: 1px solid var(--line); }
.accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  text-align: start;
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
}
.accordion-head::after {
  content: "+";
  font-size: 20px;
  color: var(--sand-deep);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.accordion.open .accordion-head::after { transform: rotate(45deg); }
.accordion-panel { display: none; padding-bottom: 20px; }
.accordion.open .accordion-panel { display: block; }
.accordion-panel p { font-size: 14px; line-height: 1.85; color: var(--text-muted); margin-bottom: 10px; }
.accordion-panel a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.spec-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.spec-list dt { color: var(--text-muted); }
.spec-list dd { color: var(--text); }

/* ---------- sticky mobile buy bar ---------- */
.sticky-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.sticky-buy-price { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sticky-buy-name {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-buy-price strong { font-size: 16px; color: var(--navy); }
.sticky-buy .btn { flex-shrink: 0; }

/* ---------- checkout summary lines ---------- */
.summary-lines { display: grid; gap: 14px; margin-bottom: 18px; }
.summary-line {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13.5px;
}
.summary-line img { width: 54px; height: 66px; object-fit: cover; border-radius: 2px; }
.summary-line strong { display: block; color: var(--navy); font-size: 14px; }
.summary-line span { color: var(--text-muted); font-size: 12.5px; }
.summary-line-total { white-space: nowrap; font-size: 13.5px; }

/* ---------- form states ---------- */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--navy); }

.btn.is-loading { opacity: 0.75; pointer-events: none; }
.btn.is-loading::before {
  content: "";
  width: 14px; height: 14px;
  margin-inline-end: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .cart-drawer { transition: none; }
  .btn.is-loading::before { animation: none; }
}
