/* ==========================================================================
   MakeMymini design system — "Modern Heirloom" (Phase 1, Sept 2026)
   Source of truth: MakeMymini-Website-Redesign-Brief.md §4.
   Loaded by private/includes/layout.php on every customer-facing page.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand palette (brief §4.1) */
  --ink: #241B16;
  --cream: #FFFFFF;          /* page background (name kept from the cream palette; now pure white) */
  --paper: #FFFFFF;          /* cards, product panels: separated by a hairline ring + soft shadow */
  --sand: #F6F0EF;           /* placeholders, chips, quiet tinted surfaces */
  --blush: #FBF3F4;          /* faint rose tint used at the start of gradients */
  --blush-deep: #F6E4E7;     /* stronger rose tint for gradient ends */
  --line: #EAE4E2;           /* borders */
  --muted: #665D5F;          /* secondary text (5.9:1 on white) */
  --maroon: #9E2B3D;         /* primary brand + the ONLY action colour */
  --maroon-deep: #6E1A28;    /* hover, dark sections, footer accent */
  --gold: #C97A1C;           /* stars and small decorative accents */
  --gold-ink: #9A5A0E;       /* gold used as TEXT (prices): 5.3:1 on white, AA */
  --night: #1B1411;          /* dark "gallery" sections, footer */
  --whatsapp: #1FA855;

  /* Gradients: used sparingly on brand surfaces and to soften section edges.
     Every "soft" gradient starts or ends on pure white so sections blend into the page. */
  --grad-brand: linear-gradient(135deg, #B23649 0%, #9E2B3D 48%, #7A1F2F 100%);
  --grad-brand-hover: linear-gradient(135deg, #9E2B3D 0%, #7A1F2F 55%, #5F1524 100%);
  --grad-soft: linear-gradient(180deg, #FFFFFF 0%, var(--blush) 100%);
  --grad-soft-up: linear-gradient(180deg, var(--blush) 0%, #FFFFFF 100%);
  --grad-tint: linear-gradient(180deg, #FFFFFF 0%, var(--blush-deep) 55%, var(--blush) 100%);
  --grad-night: linear-gradient(155deg, #2C1B20 0%, #1B1411 52%, #2A1119 100%);
  --grad-gold: linear-gradient(135deg, #E4A03A 0%, #C97A1C 100%);

  /* Typography */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape & depth (brief §4.3) */
  --radius-card: 24px;
  --radius-img: 20px;
  --radius-pill: 999px;
  --shadow-float: 0 12px 34px rgba(48, 22, 32, 0.14), 0 0 0 1px rgba(48, 22, 32, 0.04);
  /* The 1px ring is what separates a white card from the white page. */
  --shadow-soft: 0 0 0 1px rgba(48, 22, 32, 0.06), 0 4px 16px rgba(48, 22, 32, 0.06);

  /* Layout */
  --grid: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* ---- Legacy aliases ----------------------------------------------------
     Pages built before the redesign still reference these names in their own
     inline <style> blocks. Mapping them onto the new palette restyles those
     pages without touching them; each page is moved to the new names when its
     phase comes up. Do not use these in new code. */
  --kumkum: var(--maroon);
  --kumkum-deep: var(--maroon-deep);
  --marigold: var(--gold);
  --marigold-deep: var(--gold-ink);
  --paper-deep: var(--sand);
  --card: var(--paper);
  --shadow-sm: var(--shadow-soft);
  --shadow-md: var(--shadow-float);
  --radius: 20px;
  --radius-sm: 10px;
  --indigo: #2E3A5C;
  --sage: #5E6E51;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img, svg, video { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }

/* Bare headings stay moderate so pages that haven't been redesigned yet keep
   working. New templates use the .text-* scale below for the large sizes. */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5rem; font-optical-sizing: auto; }
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 2rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--maroon); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 0.75rem; }

main { max-width: 900px; margin: 0 auto; padding: 0 1.25rem 3.5rem; }
/* Redesigned pages opt in with render_header(..., ['wide' => true]) and lay
   out their own full-width sections inside a 1240px grid. */
.layout-wide main { max-width: none; padding: 0; }
.layout-wide .site-footer { margin-top: 0; }

/* ---------- 3. Layout helpers ------------------------------------------- */
.container { width: 100%; max-width: var(--grid); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tint { background: var(--grad-tint); }
.section--paper { background: var(--grad-soft-up); }
.section--night { background: var(--grad-night); color: #EFE6D6; }
.section--night h1, .section--night h2, .section--night h3 { color: #fff; }
.section--night .muted { color: #B9AD9A; }
/* Hero glow: two soft radial washes on white (rose top-left, gold bottom-right). The old paper-grain overlay
   is gone: on a white page it read as dirt. */
.grain { position: relative; background:
  radial-gradient(55% 60% at 0% 0%, rgba(158, 43, 61, 0.08), transparent 70%),
  radial-gradient(50% 55% at 100% 85%, rgba(201, 122, 28, 0.10), transparent 70%),
  #FFFFFF; }
.grain > * { position: relative; }

/* ---------- 4. Typography scale (brief §4.2) ---------------------------- */
.t-display, .text-h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.625rem, 7vw, 4.5rem); line-height: 1.03; letter-spacing: -0.03em; }
.text-h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; }
.text-h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.375rem, 2.6vw, 1.75rem); line-height: 1.2; letter-spacing: -0.015em; }
/* The emotional word: "Your people, <em class="em">made mini</em>." */
.em { font-style: italic; font-weight: 500; color: var(--maroon); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .em { background: linear-gradient(100deg, #B23649 0%, #9E2B3D 45%, #C0562F 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-right: 0.06em; }
  .section--night .em { background: linear-gradient(100deg, #F0B1BC, #E9A6B2 50%, #F0B968); -webkit-background-clip: text; background-clip: text; }
}
.section--night .em { color: #E9A6B2; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--maroon); margin-bottom: 0.9rem; }
.section--night .eyebrow { color: #E9A6B2; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.price-tag { font-family: var(--display); font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums lining-nums; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body-font); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.85rem 1.6rem; min-height: 44px;
  border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 16px rgba(158, 43, 61, 0.28); }
.btn-primary:hover { background: var(--grad-brand-hover); box-shadow: 0 10px 22px rgba(110, 26, 40, 0.34); transform: translateY(-1px); }
.btn-primary:disabled { background: #E7E2E1; color: #766D6F; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--maroon); color: var(--maroon); }
.btn-outline { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-dark { background: var(--grad-night); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--maroon-deep); }
.btn-light:hover { background: var(--blush); transform: translateY(-1px); }
.btn-lg { font-size: 1.08rem; padding: 1rem 2rem; min-height: 52px; }
.btn-sm { font-size: 0.88rem; padding: 0.5rem 1.05rem; min-height: 40px; }
.btn-block { display: flex; width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--maroon); text-decoration: none; }
.link-arrow::after { content: '→'; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 6. Cards, chips, form fields -------------------------------- */
.card { background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); }
.card--line { box-shadow: none; border: 1px solid var(--line); }
.card--night { background: var(--night); color: #EFE6D6; }
.card-lift { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.img-frame { border-radius: var(--radius-img); overflow: hidden; background: var(--sand); }

.chip { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--sand); color: var(--maroon-deep); font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: var(--radius-pill); }
.chip--gold { background: #FDEFD9; color: var(--gold-ink); }
.chip--dark { background: rgba(255,255,255,0.1); color: #F3EAEC; }

.field { display: block; font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea, .field select {
  display: block; width: 100%; margin-top: 0.4rem; padding: 0.8rem 1rem; min-height: 46px;
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(158, 43, 61, 0.14); }
.field-hint { display: block; margin-top: 0.3rem; font-size: 0.8rem; font-weight: 400; color: var(--muted); }

/* ---------- 6b. Before / after slider ------------------------------------ */
/* A native <input type="range"> sits invisibly over the images, so dragging,
   touch, keyboard and screen readers all work with no custom pointer code.
   JS only mirrors its value into --ba-pos. Without JS it stays at 50%. */
.ba { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--sand); --ba-pos: 50%; user-select: none; -webkit-user-select: none; }
.ba img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--ba-pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); pointer-events: none; }
.ba-handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239E2B3D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: var(--shadow-float); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:focus-within .ba-handle::after { outline: 3px solid var(--maroon); outline-offset: 2px; }
.ba-label { position: absolute; bottom: 0.85rem; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill); background: rgba(27, 20, 17, 0.72); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; pointer-events: none; }
.ba-label--before { left: 0.85rem; }
.ba-label--after { right: 0.85rem; }

/* Anchored sections must clear the sticky header. */
[id] { scroll-margin-top: 92px; }

/* ---------- 7. Announcement bar ----------------------------------------- */
.announce { position: relative; background: linear-gradient(90deg, #6E1A28 0%, #8A2336 50%, #6E1A28 100%); color: #F6E9DC; font-size: 0.85rem; font-weight: 500; }
.announce-inner { max-width: var(--grid); margin: 0 auto; min-height: 40px; padding: 0.55rem 3rem; display: flex; align-items: center; justify-content: center; text-align: center; }
.announce-msg { margin: 0; }
/* Without JS only the first message shows; with JS they cross-fade. */
.announce-msg:not(:first-child) { display: none; }
.js .announce-msg { display: block; position: absolute; left: 3rem; right: 3rem; opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); pointer-events: none; }
.js .announce-msg.is-active { opacity: 1; transform: none; pointer-events: auto; }
.js .announce-inner { position: relative; }
.announce a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.announce-close { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #F6E9DC; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.announce-close:hover { background: rgba(255,255,255,0.14); }
.offer-strip { background: var(--maroon); color: #fff; }
.offer-strip p { max-width: var(--grid); margin: 0 auto; padding: 0.5rem 1rem; text-align: center; font-size: 0.85rem; font-weight: 600; line-height: 1.35; }
.offer-strip s { opacity: 0.75; font-weight: 500; }

/* ---------- 8. Header (floating pill on scroll) ------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; padding: 0.5rem 0.75rem 0; pointer-events: none; }
.header-inner {
  pointer-events: auto; position: relative; max-width: var(--grid); margin: 0 auto;
  display: flex; align-items: center; gap: 1rem; padding: 0.7rem 1.25rem;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  transition: max-width 0.35s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled .header-inner {
  max-width: 1100px; background: rgba(255, 255, 255, 0.84); border-color: rgba(234, 228, 226, 0.95);
  box-shadow: var(--shadow-float); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
}
.logo { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--maroon); text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 26px; height: 26px; flex-shrink: 0; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.site-nav a { position: relative; padding: 0.5rem 0.85rem; font-size: 0.93rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: var(--radius-pill); transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.site-nav a:hover { background: rgba(158, 43, 61, 0.08); color: var(--maroon-deep); }
.site-nav a[aria-current="page"] { color: var(--maroon); }

.header-actions { display: flex; align-items: center; gap: 0.15rem; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; background: transparent; color: var(--ink); border-radius: 50%; cursor: pointer; text-decoration: none; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.icon-btn:hover { background: rgba(158, 43, 61, 0.09); color: var(--maroon); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--maroon); color: #fff; font-size: 0.68rem; font-weight: 700; border-radius: var(--radius-pill); border: 2px solid #fff; line-height: 1; }
.site-header.is-scrolled .cart-count { border-color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 0.5rem); margin: 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem; padding: 0.6rem;
    background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-float);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 0.85rem 1rem; font-size: 1rem; }
  .header-actions { margin-left: auto; }
}

/* Phones: logo + four icon buttons must fit 360px without horizontal scroll. */
@media (max-width: 480px) {
  .site-header { padding-inline: 0.5rem; }
  .header-inner { gap: 0.4rem; padding: 0.55rem 0.8rem; }
  .logo { font-size: 1.2rem; gap: 0.4rem; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .cart-count { top: 1px; right: -1px; }
}

/* ---------- 9. Footer ---------------------------------------------------- */
.site-footer { position: relative; background: var(--grad-night); color: #D9CFBD; padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; margin-top: 4rem; font-size: 0.93rem; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--maroon-deep), var(--maroon) 40%, var(--gold)); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2.5rem; } }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin: 0.9rem 0 1.1rem; color: #B9AD9A; max-width: 30ch; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #EFE6D6; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease); }
.footer-social a:hover { background: var(--maroon); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h2 { margin: 0 0 0.9rem; font-family: var(--body-font); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.footer-col a { display: block; padding: 0.22rem 0; color: #B9AD9A; text-decoration: none; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 2.75rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 0.9rem 1.5rem; align-items: center; justify-content: space-between; font-size: 0.8rem; color: #9D917E; }
.footer-bottom a { color: #C9BEAA; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pay-chips span { border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; padding: 0.2rem 0.55rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: #D9CFBD; }

/* ---------- 10. Floating WhatsApp --------------------------------------- */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
/* The container is as big as the (invisible) closed chat panel: without this it swallows every tap in the lower-right of a phone screen. */
.wa-float { pointer-events: none; }
.wa-toggle, .wa-float.is-open .wa-panel { pointer-events: auto; }
.wa-toggle { width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--whatsapp); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 22px rgba(31, 168, 85, 0.42); transition: transform 0.2s var(--ease); }
.wa-toggle:hover { transform: scale(1.06); }
.wa-toggle svg { width: 28px; height: 28px; }
.wa-panel { width: min(320px, calc(100vw - 2rem)); background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-float); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.98); transform-origin: bottom right; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s; }
.wa-float.is-open .wa-panel { opacity: 1; visibility: visible; transform: none; }
.wa-panel-head { background: var(--whatsapp); color: #fff; padding: 1rem 1.15rem; }
.wa-panel-head strong { display: block; font-size: 1rem; }
.wa-panel-head span { font-size: 0.82rem; opacity: 0.92; }
.wa-panel-body { padding: 0.9rem; display: grid; gap: 0.5rem; }
.wa-panel-body p { margin: 0 0 0.2rem; font-size: 0.88rem; color: var(--muted); }
.wa-panel-body a { display: block; padding: 0.7rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.wa-panel-body a:hover { border-color: var(--whatsapp); background: #F1FAF4; }
/* Pages with a fixed bottom buy bar (product page on mobile) lift the button. */
/* Sits above the product page's sticky buy bar, never on top of it. */
@media (max-width: 640px) { .has-sticky-cta .wa-float { bottom: 86px; } .has-sticky-cta .wa-toggle { width: 50px; height: 50px; } }


/* ---------- 12. Catalogue components (homepage + product page) ---------- */
/* Product cards + grid */
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.4rem; }
/* Phones: a swipeable row (next card peeking) instead of five tall stacked cards. */
@media (max-width: 640px) {
  .hm-grid { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0.25rem var(--gutter) 1.1rem; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hm-grid::-webkit-scrollbar { display: none; }
  .hm-grid > * { flex: 0 0 78%; scroll-snap-align: start; }
  .hm-grid .hm-card { height: 100%; }
  /* Cards outside the viewport never trigger the reveal observer, so don't gate them on it. */
  .js .hm-grid > [data-reveal] { opacity: 1; transform: none; }
}
@media (min-width: 1100px) { .hm-grid--5 { grid-template-columns: repeat(5, 1fr); gap: 1.1rem; } }
.hm-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-soft); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.hm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.hm-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--sand); overflow: hidden; }
.hm-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s var(--ease), transform 0.9s var(--ease); }
.hm-card-media img + img { opacity: 0; }
.hm-card:hover .hm-card-media img + img { opacity: 1; }
.hm-card:hover .hm-card-media img:first-child { transform: scale(1.04); }
.hm-card-tag { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2; }
.hm-card-make { position: absolute; z-index: 2; left: 50%; bottom: 1rem; transform: translate(-50%, 14px); opacity: 0; white-space: nowrap; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); pointer-events: none; }
.hm-card:hover .hm-card-make, .hm-card:focus-visible .hm-card-make { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .hm-card-make { opacity: 1; transform: translate(-50%, 0); } }
.hm-card-body { padding: 1.15rem 1.35rem 1.45rem; }
.hm-card-body h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.hm-card-sub { margin: 0 0 0.7rem; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.hm-card-price { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--gold-ink); font-variant-numeric: lining-nums; }
.hm-mrp { color: #766D70; text-decoration: line-through; font-weight: 500; font-size: 0.85em; margin-right: 0.4rem; }
.hm-off { font-family: var(--body-font); font-size: 0.72rem; font-weight: 700; color: var(--sage); margin-left: 0.35rem; }
.hm-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; color: #9a8f92; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.55) 14px 28px), linear-gradient(160deg, #F8F3F2, #F1E8E8); }
.hm-ph svg { width: 40px; height: 40px; }
.hm-ph span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; }

/* Review cards */
.hm-rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.5rem; font-weight: 600; color: var(--muted); }
.hm-rating-line .stars { font-size: 1.15rem; }
.hm-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.1rem; }
.hm-review { background: var(--paper); border-radius: 22px; padding: 1.35rem 1.4rem; box-shadow: var(--shadow-soft); font-size: 0.95rem; }
.hm-review .stars { display: block; margin-bottom: 0.5rem; }
.hm-review p { margin: 0 0 0.7rem; }
.hm-review-by { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.hm-review-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin: 0.2rem 0 0.8rem; display: block; }
.hm-verified { display: inline-flex; align-items: center; gap: 0.25rem; background: rgba(94, 110, 81, 0.15); color: var(--sage); font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: var(--radius-pill); }

/* ---------- 13. Cart lines + slide-out drawer (shared with /cart.php) ---------- */
.cl { display: flex; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cl:last-child { border-bottom: 0; }
.cl-img { position: relative; flex: 0 0 84px; width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: var(--sand); display: flex; align-items: center; justify-content: center; color: #9a8f92; }
.cl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-img--photo { box-shadow: 0 0 0 2px var(--gold); }
.cl-img svg { width: 30px; height: 30px; }
.cl-body { flex: 1; min-width: 0; }
.cl-name { margin: 0 0 0.15rem; font-size: 1.05rem; }
.cl-name a { text-decoration: none; }
.cl-name a:hover { color: var(--maroon); }
.cl-meta, .cl-note { margin: 0 0 0.25rem; font-size: 0.82rem; color: var(--muted); }
.cl-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.35rem; }
.cl-price { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--gold-ink); font-variant-numeric: lining-nums; }
.cl-remove { padding: 0.25rem 0; border: 0; background: none; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--maroon-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cl-remove-form { margin: 0; }
.cl-upsell { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.9rem; padding: 0.8rem; border: 1.5px dashed rgba(158, 43, 61, 0.35); border-radius: 18px; background: linear-gradient(135deg, #FDF3F4, #FBEAEC); }
.cl-upsell-img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; }
.cl-upsell-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-upsell-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.85rem; line-height: 1.35; }
.cl-upsell-text strong { font-size: 0.92rem; }
.cl-upsell-text span { color: var(--muted); }

.cart-drawer { width: min(430px, 100vw); max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.cart-drawer::backdrop { background: rgba(27, 20, 17, 0.5); opacity: 0; transition: opacity 0.3s var(--ease); }
.cart-drawer.is-open::backdrop { opacity: 1; }
.cd-panel { height: 100%; display: flex; flex-direction: column; background: var(--paper); box-shadow: -12px 0 40px rgba(0, 0, 0, 0.22); transform: translateX(100%); transition: transform 0.3s var(--ease); }
.cart-drawer.is-open .cd-panel { transform: none; }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.cd-head h2 { margin: 0; font-size: 1.35rem; }
.cd-count { font-family: var(--body-font); font-weight: 500; font-size: 1rem; color: var(--muted); }
.cd-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sand); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cd-close:hover { background: var(--maroon); color: #fff; }
.cd-body { flex: 1; overflow-y: auto; padding: 0.25rem 1.25rem 1rem; }
.cd-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; color: var(--muted); }
.cd-foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); background: #fff; }
.cd-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.25rem; }
.cd-total span { font-weight: 600; color: var(--muted); }
.cd-total strong { font-family: var(--display); font-size: 1.6rem; color: var(--gold-ink); }
.cd-note { margin: 0 0 0.85rem; font-size: 0.8rem; color: var(--muted); }
.cd-link { display: block; margin-top: 0.75rem; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--maroon); }
.cd-loading { padding: 2rem 1.25rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .cd-panel, .cart-drawer::backdrop { transition: none; } }

/* ---------- 11. Scroll reveal + motion safety ---------------------------- */
/* Content is visible by default. Only when JS is running (html.js, set in
   <head>) do reveal targets start hidden and animate in. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
