/* =============================================================
   TIỆM NHÀ MẦM — Apothecary thảo mộc
   Canonical tokens from docs/design/DESIGN-TOKENS.md
   Visual source: docs/design/home-mam.html
   Sole stylesheet for the mam theme.
   ============================================================= */

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

:root {
  --paper:   #F4EEE0;
  --paper-2: #EFE7D4;
  --cream:   #FBF6EA;
  /* Page wash — xanh lá nhạt (khớp hero sage, không cream vàng) */
  --sage-page: #E8EDE0;
  --forest:  #22331F;
  --forest-2:#33472B;
  --moss:    #6E7F4E;
  --sage:    #9CA97C;
  --clay:    #BC5F3A;
  --clay-2:  #D98E5A;
  --gold:    #C69A45;
  --ink:     #24281C;
  --muted:   #736B57;
  --line:    rgba(34, 51, 31, 0.16);

  /* Lang Mai–inspired type — see docs/design/DESIGN-TOKENS.md */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Nunito Sans", "Helvetica Neue", sans-serif;
  --fs-base: 19px;

  /* Flux-inspired softness (docs/design/FUEL-THEME-NOTES.md) — keep apothecary palette */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --radius-header: 999px; /* capsule pill — mam-mock-refs/target-hero.jpg */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-reveal: 0.7s;
  --dur-hover: 0.35s;
  --shadow-soft: 0 18px 40px -22px rgba(34, 51, 31, 0.45);
  --shadow-card: 0 28px 48px -28px rgba(0, 0, 0, 0.55);

  /* Header clearance (fix: pill overlapped page H1s). Pill total height
     = 10px .mam-header top padding + 72px .mam-nav. Non-hero content gets
     +24px air below the rounded pill. Update BOTH numbers if the header
     height changes — .mam-header margin-bottom and .mam-hero margin-top
     reference these. */
  --mam-header-h: 82px;
  --mam-header-clear: calc(var(--mam-header-h) + 24px);

  /* bootstrap overrides — neutralize basic theme */
  --bs-body-bg: var(--sage-page);
  --bs-body-color: var(--ink);
  --bs-body-font-family: var(--font-sans);
  --bs-link-color: var(--forest);
  --bs-link-hover-color: var(--clay);
  --bs-border-color: var(--line);
}

/* base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body,
body.mam-theme {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sage-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
}

/* paper grain overlay (fixed, multiplies) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='s'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}

.mam-sans {
  font-family: var(--font-sans);
}

h1, h2, h3, .mam-brand, .mam-card .mam-price, .mam-stat b, .mam-band .mam-mk, .mam-band blockquote, .mam-sig {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
.mam-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.mam-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
}

/* ============== ANNOUNCE BAR ============== */
.mam-announce {
  background: var(--forest);
  color: #E9E2CE;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 11px 16px;
  position: relative;
  z-index: 3;
}
.mam-announce b { color: var(--gold); }

/* ============== HEADER ==============
   Pill floats ON the hero sage wash (target-hero.jpg).
   Negative margin pulls following content up; .mam-main clears non-hero pages;
   .mam-hero cancels that clearance so the gradient sits under the pill.
   Never fill the viewport with solid forest under the nav. */
.mam-announce {
  position: relative;
  z-index: 5;
}
.mam-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 16px 0;
  margin-bottom: calc(var(--mam-header-h) * -1);
  background: transparent;
  border-bottom: none;
  transition: padding var(--dur-hover) var(--ease-out);
}
.mam-header .mam-nav {
  background: rgba(251, 246, 234, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: var(--radius-header);
  box-shadow: 0 6px 22px -16px rgba(34, 51, 31, 0.3);
  padding: 0 26px;
  height: 72px;
  transition: background var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.mam-header.is-scrolled .mam-nav {
  background: rgba(251, 246, 234, 0.96);
  border-color: rgba(34, 51, 31, 0.22);
  box-shadow: var(--shadow-soft);
}
.mam-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.mam-main {
  position: relative;
  z-index: 2;
  /* Clear sticky header on non-hero pages (checkout, PDP, cart, category,
     about, contact) — pill bottom + 24px air via --mam-header-clear. */
  padding-top: var(--mam-header-clear);
}
.mam-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 26px;
  color: var(--forest);
  letter-spacing: 0.02em;
  font-weight: 500;
  white-space: nowrap;
}
.mam-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--moss);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--moss); /* leaf + circle — xanh lá (not near-black --forest) */
}
.mam-brand-mark svg { width: 20px; height: 20px; display: block; }
.mam-brand > svg { width: 34px; height: 34px; flex: none; }
.mam-brand-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.mam-menu {
  display: flex;
  gap: 34px;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--forest-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.mam-menu a { position: relative; padding: 6px 0; display: inline-block; }
.mam-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--clay);
  transition: width .3s;
}
.mam-menu a:hover::after { width: 100%; }

.mam-nav-icons {
  display: flex;
  gap: 20px;
  color: var(--forest);
  align-items: center;
}
.mam-nav-icons a, .mam-nav-icons button {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.mam-nav-icons svg { width: 20px; height: 20px; cursor: pointer; transition: transform .2s, color .2s; }
.mam-nav-icons a:hover svg, .mam-nav-icons button:hover svg { transform: scale(1.14); color: var(--clay); }
.mam-cbadge { position: relative; }
.mam-cbadge b {
  position: absolute;
  top: -8px;
  right: -9px;
  background: var(--clay);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}
.mam-burger { display: none; }

/* Mobile nav drawer (off-canvas, right) — apothecary paper/forest */
.mam-menu--drawer {
  display: none;
}
.mam-drawer-scrim {
  display: none;
}

@media (max-width: 960px) {
  .mam-menu--drawer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: min(82vw, 320px);
    padding: 88px 28px 32px;
    background: linear-gradient(160deg, var(--cream), var(--paper-2));
    border-left: 1px solid var(--line);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: -30px 0 60px -30px rgba(34, 51, 31, 0.5);
    transform: translateX(102%);
    transition: transform var(--dur-hover) var(--ease-out);
    will-change: transform;
  }
  .mam-menu--drawer.is-open { transform: translateX(0); }
  .mam-menu--drawer a {
    display: block;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--forest-2);
    border-radius: var(--radius-sm);
    transition: background var(--dur-hover), color var(--dur-hover);
  }
  .mam-menu--drawer a:hover {
    background: rgba(110, 127, 78, 0.14);
    color: var(--clay);
  }
  .mam-menu--drawer a::after { display: none; }
  .mam-drawer-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(34, 51, 31, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-hover) var(--ease-out);
  }
  .mam-drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
  body.mam-drawer-open { overflow: hidden; }
}

/* ============== HERO ============== */
.mam-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Cancel .mam-main clearance so sage wash runs under the floating pill
     (must mirror --mam-header-clear, not just the header height) */
  margin-top: calc(var(--mam-header-clear) * -1);
  /* Flux-inspired full-bleed moss/sage plane (mapped from sage/teal
     solid wash — NO lavender) — single dominant color, soft falloff. */
  background:
    radial-gradient(120% 90% at 80% 12%, rgba(156, 169, 124, 0.55) 0%, transparent 60%),
    linear-gradient(160deg, var(--paper) 0%, #E4EAD4 38%, #C9D4B4 100%);
  padding: 110px 0 72px;
}
.mam-hero .mam-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 60px;
}
.mam-hero-copy { position: relative; z-index: 5; }
.mam-hero h1 {
  font-size: clamp(42px, 6.8vw, 96px);
  line-height: 0.95;
  font-weight: 500;
  color: var(--forest);
  margin: 20px 0 26px;
}
.mam-hero h1 em { font-style: italic; color: var(--clay); }
.mam-hero .mam-lead {
  font-size: 19px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 34px;
}
.mam-hero .mam-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.mam-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--dur-hover) var(--ease-out), background var(--dur-hover), color var(--dur-hover), box-shadow var(--dur-hover);
  text-decoration: none;
}
.mam-btn-primary { background: var(--forest); color: #F1EAD6; }
.mam-btn-primary:hover {
  background: var(--clay);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  color: #F1EAD6;
}
.mam-btn-ghost {
  background: rgba(251, 246, 234, 0.55);
  color: var(--forest);
  border: 1px solid var(--forest);
  backdrop-filter: blur(6px);
}
.mam-btn-ghost:hover { background: var(--forest); color: var(--paper); }

/* hero art */
.mam-hero-art {
  position: relative;
  height: 600px;
  display: grid;
  place-items: center;
}
.mam-hero-art--photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.mam-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
.mam-hero-art .halo {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,246,234,0.9), rgba(251,246,234,0) 70%);
  z-index: 0;
}
.mam-hero-art .ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.mam-hero-art .ring.a { width: 430px; height: 430px; }
.mam-hero-art .ring.b {
  width: 540px;
  height: 540px;
  border-style: dashed;
  border-color: rgba(198, 154, 69, 0.4);
}
.mam-hero-bottle {
  position: relative;
  z-index: 3;
  width: 300px;
  filter: drop-shadow(0 30px 40px rgba(34,51,31,0.28));
}
.mam-leaf-float { position: absolute; z-index: 4; width: 76px; color: var(--moss); }
.mam-leaf-float.f1 { top: 60px; left: 20px; color: var(--clay); }
.mam-leaf-float.f2 { bottom: 80px; right: 10px; }
.mam-leaf-float.f3 { top: 120px; right: 40px; width: 54px; color: var(--gold); }
.mam-leaf-float.f4 { bottom: 140px; left: 0; width: 60px; }

/* ============== MARQUEE STRIP ============== */
.mam-strip {
  background: var(--forest);
  color: #E9E2CE;
  overflow: hidden;
  padding: 16px 0;
  position: relative;
  z-index: 3;
}
.mam-strip-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: mam-marq 26s linear infinite;
}
.mam-strip-track > span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.mam-strip-track > span::after {
  content: "✦";
  color: var(--gold);
  margin-left: 56px;
}
@keyframes mam-marq {
  to { transform: translateX(-50%); }
}

/* ============== SECTIONS ============== */
.mam-block { padding: 120px 0; position: relative; }
.mam-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.mam-kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--clay);
}
.mam-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--forest);
  line-height: 1.08;
  max-width: 16ch;
  font-weight: 500;
}
.mam-head.center { text-align: center; }
.mam-head.center .mam-kicker { justify-content: center; }
.mam-head.center h2 { margin: 0 auto; }
.mam-head p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
  max-width: 520px;
  margin-top: 16px;
  font-weight: 300;
}
.mam-head.center p { margin: 16px auto 0; }

/* ============== CATEGORIES EDITORIAL ============== */
.mam-cats { margin-top: 60px; border-top: 1px solid var(--line); }
.mam-cat-row {
  display: grid;
  grid-template-columns: 70px 1.4fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--dur-hover), padding var(--dur-hover) var(--ease-out), border-radius var(--dur-hover);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
}
.mam-cat-row:hover {
  background: var(--cream);
  padding-left: 24px;
  border-radius: var(--radius-sm);
}
.mam-cat-row .mam-cat-num {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--sage);
  letter-spacing: 0.1em;
}
.mam-cat-row .mam-cat-name {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--forest);
  transition: color .3s;
  font-weight: 500;
}
.mam-cat-row:hover .mam-cat-name { color: var(--clay); }
.mam-cat-row .mam-cat-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}
.mam-cat-row .mam-cat-ico {
  width: 44px;
  height: 44px;
  color: var(--moss);
  justify-self: end;
  transition: transform .4s, color .3s;
}
.mam-cat-row:hover .mam-cat-ico { transform: rotate(-8deg) scale(1.1); color: var(--clay); }

/* ============== PRODUCTS SHELF ==============
   Paper/cream shelf (not solid forest) — headings use forest ink. */
.mam-prods {
  background: var(--paper);
  color: var(--ink);
  position: relative;
}
.mam-prods .mam-head h2 { color: var(--forest); }
.mam-prods .mam-kicker::before { background: var(--clay); }
.mam-prods .mam-eyebrow { color: var(--clay); }
.mam-prods .mam-head p { color: var(--muted); }
.mam-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.mam-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover);
  text-decoration: none;
  color: inherit;
  position: relative;
}
.mam-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}
.mam-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.mam-card .mam-shelf {
  height: 240px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.mam-card .mam-shelf-bg { position: absolute; inset: 0; opacity: 0.9; }
.mam-card .mam-prod-svg {
  position: relative;
  z-index: 2;
  width: 110px;
  transition: transform 0.5s var(--ease-out);
}
.mam-card .mam-prod-photo {
  position: relative;
  z-index: 2;
  width: 78%;
  max-width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  transition: transform 0.5s var(--ease-out);
}
.mam-card:hover .mam-prod-svg { transform: translateY(-6px) rotate(-3deg) scale(1.06); }
.mam-card:hover .mam-prod-photo { transform: translateY(-6px) scale(1.05); }
.mam-card .mam-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 3;
  background: var(--clay);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.mam-card .mam-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  background: var(--cream);
}
/* Flux quick-add circle → warm “peek” affordance (not lavender) */
.mam-card .mam-buy {
  position: relative;
}
/* The decorative `+` overlay on .mam-shelf::after is intentionally removed —
   the real `.mam-card-quick` button (rendered by home.twig / thumb.twig)
   sits in the same bottom-right slot and is the functional ATC. Keeping
   the decorative `+` would double-render two overlapping affordances
   (real button + visual-only `+`). */
.mam-card .mam-clbl {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
}
.mam-card h3 {
  font-size: 20px;
  color: var(--forest);
  line-height: 1.25;
  min-height: 48px;
  font-weight: 500;
}
.mam-card .mam-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.mam-card .mam-price { font-size: 22px; color: var(--clay); font-weight: 600; }
.mam-card .mam-buy {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s, color .25s;
}
.mam-card:hover .mam-buy { gap: 11px; color: var(--clay); }
.mam-card .mam-buy svg { width: 15px; height: 15px; }

/* ============== INGREDIENT STORY ============== */
.mam-story .mam-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mam-story-art {
  position: relative;
  height: 520px;
  display: grid;
  place-items: center;
}
.mam-story-art--photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.mam-story-photo {
  width: 480px;
  height: 480px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 40px 60px -30px rgba(34, 51, 31, 0.55);
}
.mam-story-art .mam-disc {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--moss), var(--forest-2));
  box-shadow: 0 40px 60px -30px rgba(34, 51, 31, 0.6);
}
.mam-story-art .mam-disc-ring {
  position: absolute;
  width: 470px;
  height: 470px;
  border: 1px dashed rgba(198, 154, 69, 0.5);
  border-radius: 50%;
}
.mam-story-art .mam-bottle-lg {
  position: relative;
  z-index: 2;
  width: 230px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.35));
}
.mam-story-art .mam-badge {
  position: absolute;
  z-index: 3;
  bottom: 40px;
  right: 20px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  transform: rotate(-8deg);
}
.mam-story h2 {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--forest);
  margin: 16px 0 22px;
  line-height: 1.08;
  font-weight: 500;
}
.mam-story p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 300;
}
.mam-story .mam-sig {
  font-style: italic;
  font-size: 26px;
  color: var(--clay);
  margin-top: 10px;
  font-weight: 400;
}
.mam-ingr {
  display: flex;
  gap: 28px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.mam-ingr > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--forest-2);
  font-weight: 500;
}
.mam-ingr svg { width: 26px; height: 26px; color: var(--moss); }

/* ============== STATS BAND ============== */
.mam-stats {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mam-stats .mam-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 64px 32px;
}
.mam-stat { text-align: center; }
.mam-stat b {
  display: block;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--clay);
  line-height: 1;
  font-weight: 500;
}
.mam-stat span {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  display: block;
}

/* ============== QUOTE ============== */
.mam-band {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 120px 0;
}
.mam-band .mam-mk {
  font-size: 120px;
  color: var(--gold);
  line-height: 0.4;
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-serif);
}
.mam-band blockquote {
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.32;
  max-width: 900px;
  margin: 0 auto;
  font-style: italic;
}
.mam-band cite {
  display: block;
  margin-top: 28px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============== NEWSLETTER ============== */
.mam-news .mam-wrap {
  background: linear-gradient(150deg, var(--cream), var(--paper-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mam-news .mam-leaf-deco {
  position: absolute;
  width: 150px;
  color: var(--sage);
  opacity: 0.5;
}
.mam-news .mam-leaf-deco.tl { top: -30px; left: -20px; transform: rotate(20deg); }
.mam-news .mam-leaf-deco.br { bottom: -40px; right: -20px; transform: rotate(200deg); }
.mam-news h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  color: var(--forest);
  margin: 12px 0 14px;
}
.mam-news p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 19px;
  line-height: 1.8;
  font-weight: 300;
}
.mam-news form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.mam-news input {
  flex: 1;
  min-width: 230px;
  padding: 16px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
}
.mam-news input:focus {
  outline: none;
  border-color: var(--moss);
}

/* ============== FOOTER ============== */
.mam-footer {
  background: #1B2718;
  color: #B7BFA4;
  padding: 76px 0 96px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}
.mam-fgrid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 44px;
}
.mam-footer .mam-brand { color: #F1EAD6; margin-bottom: 16px; }
.mam-footer p { color: #8F9880; line-height: 1.7; max-width: 290px; }
.mam-footer h4 {
  color: #F1EAD6;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.mam-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.mam-footer ul a:hover { color: var(--gold); }
.mam-footer .mam-fcontact li {
  display: flex;
  gap: 11px;
  margin-bottom: 13px;
  color: #8F9880;
  line-height: 1.5;
}
.mam-footer .mam-fcontact svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
  flex: none;
  margin-top: 3px;
}
/* WO-35 (#35): real contact links in the footer. Keep them visually
   quiet (no underline at rest) but unmistakable on hover, matching the
   existing footer-link treatment. The phone number becomes a tel:
   link and the social row becomes three real https:// links — never
   plain text. */
.mam-footer .mam-fcontact a {
  color: #C3CBB0;
  text-decoration: none;
  transition: color 0.18s ease;
}
.mam-footer .mam-fcontact a:hover,
.mam-footer .mam-fcontact a:focus { color: var(--gold); text-decoration: underline; }
.mam-footer .mam-fcontact .mam-fphone { font-weight: 600; }
.mam-footer .mam-fcontact-meta { color: #6F7862; font-size: 12px; letter-spacing: 0.04em; }
.mam-footer .mam-fsocial { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mam-footer .mam-fsocial a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(241, 234, 214, 0.18);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mam-footer .mam-fsocial a svg { display: block; }
.mam-footer .mam-fsocial a:hover,
.mam-footer .mam-fsocial a:focus { color: var(--gold); border-color: rgba(195, 203, 176, 0.55); background: rgba(195, 203, 176, 0.08); }
.mam-footer .mam-fsep { color: #6F7862; }
.mam-fbottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #6F7862;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ============== REVEAL ANIMATION (Flux-inspired: 0.7s + stagger via JS)
   Progressive enhancement: content is ALWAYS visible by default.
   Animation only runs when JS sets `html.mam-js` AND has already marked
   in-view nodes with `.mam-in` (see home.twig). Never hide content solely
   because IntersectionObserver has not fired — that blanked every
   .mam-block for Diễm (Cursor preview / no-JS / IO miss). ============== */
.mam-reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  html.mam-js .mam-reveal:not(.mam-in) {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
    will-change: opacity, transform;
  }
  html.mam-js .mam-reveal.mam-in {
    opacity: 1;
    transform: none;
    transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
  .mam-hero .mam-wrap,
  .mam-story .mam-wrap { grid-template-columns: 1fr; }
  .mam-brand-tag { display: none; }
  .mam-hero-art { height: 420px; order: -1; aspect-ratio: 4 / 5; }
  .mam-hero-photo { width: 100%; height: 100%; max-width: none; }
  .mam-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .mam-stats .mam-wrap { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .mam-fgrid { grid-template-columns: 1fr 1fr; }
  .mam-menu { display: none; }
  .mam-menu--drawer { display: flex; }
  .mam-cat-row { grid-template-columns: 44px 1fr auto; gap: 16px; }
  .mam-cat-row .mam-cat-desc { display: none; }
  .mam-burger { display: inline-flex; }
  .mam-hero { min-height: 70vh; }
  .mam-burger {
    background: transparent;
    border: none;
    padding: 6px;
    color: var(--forest);
    cursor: pointer;
  }
  .mam-burger svg { width: 24px; height: 24px; }
}

@media (max-width: 520px) {
  .mam-header .mam-nav { padding: 0 14px; }
  .mam-nav { gap: 12px; }
  .mam-brand { min-width: 0; }
  .mam-brand > span { overflow: hidden; }
  .mam-brand-mark { width: 30px; height: 30px; }
  .mam-brand-mark svg { width: 16px; height: 16px; }
  .mam-nav-icons { gap: 14px; }
  .mam-nav-icons svg { width: 18px; height: 18px; }
  .mam-hero h1 { font-size: clamp(34px, 10vw, 56px); line-height: 1.04; }
  .mam-hero h1 > span { display: block; overflow-wrap: anywhere; }
  .mam-hero .mam-lead { max-width: 100%; }
  .mam-hero .mam-btns { flex-direction: column; align-items: stretch; }
  .mam-hero .mam-btn { width: 100%; justify-content: center; }
  .mam-hero { min-height: 0; }
  .mam-prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mam-fgrid { grid-template-columns: 1fr; }
  .mam-cat-row .mam-cat-name { font-size: 22px; }
  .mam-cat-row { padding: 18px 0; }
  .mam-announce { font-size: 10px; letter-spacing: 0.18em; }
  .mam-hero { padding: 96px 0 40px; }
  .mam-hero-art { height: 320px; }
  .mam-hero-bottle { width: 220px; }
  .mam-story-photo { width: 300px; height: 300px; max-width: calc(100vw - 32px); }
  .mam-block { padding: 70px 0; }
  .mam-usp-card { padding: 24px 18px; }
  .mam-strip { font-size: 10px; }
  .mam-form-actions .mam-btn { width: 100%; justify-content: center; }
  .mam-contact-facts { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mam-strip-track { animation: none; }
  .mam-reveal,
  html.mam-js .mam-reveal,
  html.mam-js .mam-reveal:not(.mam-in) {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mam-leaf-float { animation: none; }
}

@media print {
  .mam-announce,
  .mam-header,
  .mam-strip,
  .mam-leaf-float { display: none; }
  body::before { display: none; }
  .mam-block { padding: 30px 0; }
}

/* ============== basic-theme neutralization ============== */
/* basic OC theme still injects bootstrap grid scaffolding. Hide its
   container/main wrappers inside mam-themed pages so the apothecary
   layout owns the canvas. */
body.mam-theme #container > #alert { display: none; }
body.mam-theme #container { padding: 0; max-width: none; }
body.mam-theme main { padding: 0; }

/* utility */
.mam-hide-mobile { display: initial; }
@media (max-width: 768px) { .mam-hide-mobile { display: none; } }

/* =============================================================
   FUEL Phase-2 (2026-09-22) — see docs/design/FUEL-THEME-NOTES.md §7
   No new photography; soft geometry + line icons + moss/clay only.
   ============================================================= */

/* ============== HERO SOFT UNDERLINE on the italic word ============== */
.mam-hero h1 em {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.mam-hero h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.06em;
  height: 0.18em;
  background:
    radial-gradient(closest-side, var(--clay) 0%, var(--clay-2) 70%, transparent 100%);
  opacity: 0.85;
  pointer-events: none;
  filter: blur(0.2px);
  z-index: -1;
}

/* ============== USP TRUST STRIP (4 cards) ============== */
.mam-usp {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mam-usp .mam-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}
.mam-usp-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  transition: background var(--dur-hover) var(--ease-out);
}
.mam-usp-card:last-child { border-right: none; }
.mam-usp-card:hover { background: var(--cream); }
.mam-usp-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  color: var(--forest);
  display: grid;
  place-items: center;
  transition: background var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}
.mam-usp-card:hover .mam-usp-ico {
  background: var(--moss);
  color: var(--paper);
  transform: rotate(-6deg);
}
.mam-usp-ico svg { width: 22px; height: 22px; }
.mam-usp-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.mam-usp-text b {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.2;
}
.mam-usp-text span {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 960px) {
  .mam-usp .mam-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .mam-usp-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .mam-usp-card:nth-child(2n) { border-right: none; }
  .mam-usp-card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 520px) {
  .mam-usp .mam-wrap { grid-template-columns: 1fr; }
  .mam-usp-card { border-bottom: 1px solid var(--line); }
  .mam-usp-card:last-child { border-bottom: none; }
}

/* ============== BACK TO TOP ============== */
.mam-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--moss);
  color: var(--paper);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 45;
  opacity: 0;
  transform: translateY(12px) scale(.85);
  pointer-events: none;
  box-shadow: 0 14px 28px -14px rgba(34, 51, 31, 0.55);
  transition: opacity var(--dur-hover) var(--ease-out),
              transform var(--dur-hover) var(--ease-out),
              background var(--dur-hover) var(--ease-out),
              color var(--dur-hover) var(--ease-out);
}
.mam-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.mam-back-to-top:hover {
  background: var(--clay);
  color: var(--paper);
}
.mam-back-to-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.mam-back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 520px) {
  .mam-back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .mam-back-to-top {
    transition: opacity var(--dur-hover) ease, background var(--dur-hover) ease, color var(--dur-hover) ease;
    transform: none;
  }
  .mam-back-to-top.is-visible { transform: none; }
}

/* ============== PRODUCT CARD: quick-add circle (moss) ==============
   Anchor to `.mam-shelf` (the image area) so the button does NOT collide
   with the `.mam-row` (price + "Xem") below. Was `position: absolute`
   on `.mam-card` directly which put it 14px from the card corner — and
   because the card was static the absolute position resolved to the body,
   making the bag land ~160px below the shelf, covering "Xem". */
.mam-shelf { position: relative; } /* re-state for cascade safety */
.mam-card-quick {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: rgba(34, 51, 31, 0.55);
  color: var(--paper);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 4;
  opacity: 0;
  transform: translateY(8px) scale(.85);
  transition: opacity var(--dur-hover) var(--ease-out),
              transform var(--dur-hover) var(--ease-out),
              background var(--dur-hover) var(--ease-out),
              color var(--dur-hover) var(--ease-out);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.mam-card:hover .mam-card-quick {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mam-card-quick:hover {
  background: var(--clay);
  color: var(--paper);
}
.mam-card-quick svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  /* Always-visible on touch devices (no hover) */
  .mam-card-quick { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mam-card-quick { transition: none; }
  .mam-card-quick,
  .mam-card:hover .mam-card-quick { transform: none; }
}

/* ============== PRODUCT CARD: soft NEW/% badges ============== */
.mam-card .mam-tag {
  background: var(--clay);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  letter-spacing: 0.12em;
}
.mam-card .mam-tag--pct {
  background: var(--moss);
  color: var(--paper);
}
.mam-card .mam-tag--new {
  background: var(--gold);
  color: var(--forest);
}

/* ============== FOOTER — promo card + clearer columns ============== */
.mam-fgrid {
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.3fr;
  gap: 38px;
  align-items: start;
}
.mam-fgrid .mam-fpromo {
  background: linear-gradient(150deg, rgba(110, 127, 78, 0.28) 0%, rgba(156, 169, 124, 0.18) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #F1EAD6;
}
.mam-fgrid .mam-fpromo h4 {
  margin-bottom: 4px;
  color: var(--gold);
}
.mam-fgrid .mam-fpromo p {
  color: #C3CBB0;
  font-size: 14px;
  line-height: 1.55;
  max-width: 100%;
  margin: 0;
}
.mam-fgrid .mam-fpromo a.mam-fpromo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 18px;
  border: 1px solid #F1EAD6;
  border-radius: var(--radius-pill);
  color: #F1EAD6;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
  transition: background var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}
.mam-fgrid .mam-fpromo a.mam-fpromo-cta:hover {
  background: #F1EAD6;
  color: var(--forest);
  transform: translateY(-1px);
}
@media (max-width: 1100px) {
  .mam-fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .mam-fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .mam-fgrid { grid-template-columns: 1fr; }
}

/* ============== INNER PAGES — breadcrumb + info/contact ============== */
.mam-page {
  position: relative;
  z-index: 2;
  padding: 28px 0 72px;
}
.mam-page .mam-wrap { padding-bottom: 8px; }
.mam-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mam-breadcrumb a {
  color: var(--forest-2);
  text-decoration: none;
  transition: color var(--dur-hover) var(--ease-out);
}
.mam-breadcrumb a:hover { color: var(--clay); }
.mam-breadcrumb-sep {
  color: var(--sage);
  font-weight: 400;
  opacity: 0.85;
}
.mam-breadcrumb-current { color: var(--clay); font-weight: 700; }

/* Hide default OC breadcrumb bullets if a template still emits .breadcrumb */
body.mam-theme .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
body.mam-theme .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  float: none;
  padding-right: 10px;
  color: var(--sage);
}
body.mam-theme .breadcrumb .breadcrumb-item a { color: var(--forest-2); }
body.mam-theme .breadcrumb .breadcrumb-item:last-child a,
body.mam-theme .breadcrumb .breadcrumb-item:last-child { color: var(--clay); font-weight: 700; }

.mam-page-head {
  margin: 0 0 34px;
  max-width: 640px;
}
.mam-page-head h1 {
  margin: 8px 0 0;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.12;
  color: var(--forest);
}
.mam-page-lead {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
}

.mam-info-panel {
  background: rgba(251, 246, 234, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px 40px;
}

/* About / information prose — keep Diễm story; soft-block sections */
.mam-info-prose {
  max-width: 820px;
}
.mam-info-prose > h2:first-child {
  margin-top: 0;
  font-size: clamp(28px, 3.4vw, 36px);
  color: var(--forest);
  line-height: 1.2;
}
.mam-info-prose h2,
.mam-info-prose h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--forest);
}
.mam-info-prose h3 {
  margin: 40px 0 18px;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.mam-info-prose p {
  margin: 0 0 1.15em;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 300;
  color: var(--ink);
}
.mam-info-prose p strong { font-weight: 600; color: var(--forest); }
.mam-info-prose p em { color: var(--clay); font-style: italic; }

/* “Vì sao chọn…” → soft icon cards */
.mam-info-prose ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.mam-info-prose ul li {
  position: relative;
  margin: 0;
  padding: 18px 20px 18px 58px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--ink);
  box-shadow: 0 10px 24px -20px rgba(34, 51, 31, 0.35);
}
.mam-info-prose ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(110, 127, 78, 0.18);
  box-shadow: inset 0 0 0 1px rgba(34, 51, 31, 0.12);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
.mam-info-prose ul li:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E7F4E' stroke-width='2'%3E%3Cpath d='M12 3c-4 5-7 8-7 12a7 7 0 0 0 14 0c0-4-3-7-7-12Z'/%3E%3C/svg%3E");
  background-color: rgba(110, 127, 78, 0.18);
}
.mam-info-prose ul li:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BC5F3A' stroke-width='2'%3E%3Cpath d='M4 17l5-10 4 7 3-5 4 8'/%3E%3C/svg%3E");
  background-color: rgba(188, 95, 58, 0.14);
}
.mam-info-prose ul li:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C69A45' stroke-width='2'%3E%3Cpath d='M12 21c4-3.5 7-7 7-11a7 7 0 1 0-14 0c0 4 3 7.5 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3C/svg%3E");
  background-color: rgba(198, 154, 69, 0.18);
}
.mam-info-prose ul li strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--forest);
}

/* “Đến Tiệm” block — soft card under last h3 */
.mam-info-prose h3 + p {
  margin: 0;
  padding: 22px 24px;
  background: linear-gradient(145deg, rgba(110, 127, 78, 0.12), rgba(251, 246, 234, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--clay);
  font-size: 16px;
  line-height: 1.85;
}
.mam-info-prose h3 + p strong { color: var(--forest); }

/* About — 2-column fill: story (main) + sidebar stack (desktop) */
.mam-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.mam-info-main { max-width: none; }
.mam-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Compact “Đến Tiệm” CTA (no duplicate of the in-prose address block) */
.mam-side-cta {
  display: block;
  position: relative;
  padding: 24px 26px;
  background: linear-gradient(145deg, rgba(110, 127, 78, 0.14), rgba(251, 246, 234, 0.9));
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.mam-side-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.mam-side-cta-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 8px;
}
.mam-side-cta-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.3;
  color: var(--forest);
}
.mam-side-cta-hot {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.mam-side-cta-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 22px;
  color: var(--clay);
}

/* Optional single real photo — soft radius */
.mam-side-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.mam-side-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* “Cẩm nang” teaser stack */
.mam-side-guide {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mam-side-guide .mam-eyebrow {
  margin-bottom: 2px;
}
.mam-side-teaser {
  display: block;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px -20px rgba(34, 51, 31, 0.35);
  transition: transform var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.mam-side-teaser:hover {
  transform: translateY(-2px);
  border-color: var(--moss);
}
.mam-side-teaser-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 4px;
}
.mam-side-teaser-desc {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}
.mam-side-teaser-link .mam-side-teaser-title {
  color: var(--clay);
}

@media (max-width: 992px) {
  .mam-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mam-info-panel { padding: 26px 20px; }
  .mam-info-prose ul li { padding-left: 54px; }
}

/* Contact — two-column soft cards + mam form */
.mam-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}
.mam-contact-section-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--forest);
}
.mam-contact-form-lead,
.mam-contact-sub {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}
.mam-contact-sub {
  margin: 28px 0 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--forest);
  font-weight: 500;
}
.mam-contact-store {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--forest);
}
.mam-contact-loc-img {
  display: block;
  width: 100%;
  max-width: 220px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.mam-contact-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.mam-contact-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.mam-contact-fact-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(110, 127, 78, 0.16);
  color: var(--forest);
}
.mam-contact-fact strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
}
.mam-contact-fact address,
.mam-contact-fact p {
  margin: 0;
  font-style: normal;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink);
}
.mam-contact-fact a { color: var(--forest); font-weight: 500; }
.mam-contact-fact a:hover { color: var(--clay); }
.mam-contact-map {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay) !important;
}
.mam-muted { color: var(--muted); font-weight: 300; font-size: 0.92em; }

.mam-form { display: grid; gap: 18px; }
.mam-field { display: grid; gap: 8px; }
.mam-field label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-2);
}
.mam-field.required label::after {
  content: " *";
  color: var(--clay);
}
.mam-input {
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  outline: none;
  transition: border-color var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out), background var(--dur-hover) var(--ease-out);
}
.mam-input:focus {
  border-color: var(--moss);
  background: #fffdf7;
  box-shadow: 0 0 0 3px rgba(110, 127, 78, 0.18);
}
.mam-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.mam-select:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(110, 127, 78, 0.18);
}
.mam-textarea { min-height: 160px; resize: vertical; }
.mam-form-actions { margin-top: 6px; }
.mam-form-actions .mam-btn { border: none; }
.mam-form .invalid-feedback {
  display: none;
  color: var(--clay);
  font-size: 13px;
}
.mam-form .is-invalid ~ .invalid-feedback,
.mam-form .invalid-feedback.d-block { display: block; }

@media (max-width: 900px) {
  .mam-contact-grid { grid-template-columns: 1fr; }
}

/* ============== PRODUCT PAGE (PDP) — apothecary body ============== */
.mam-pdp-content {
  max-width: none;
}
.mam-pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 48px;
}

/* gallery */
.mam-pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mam-pdp-main {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.mam-pdp-main a { display: block; }
.mam-pdp-main img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.mam-pdp-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mam-pdp-thumb {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--cream);
  transition: border-color var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}
.mam-pdp-thumb:hover {
  border-color: var(--moss);
  transform: translateY(-2px);
}
.mam-pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* buy box */
.mam-pdp-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--forest);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.mam-pdp-brand {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 400;
}
.mam-pdp-brand a { color: var(--clay); }
.mam-pdp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.mam-pdp-model {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.mam-pdp-model b { color: var(--forest-2); font-weight: 600; }
.mam-pdp-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(110, 127, 78, 0.14);
  color: #4c5c3a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.mam-pdp-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5c6b3e;
}
.mam-pdp-stock--out {
  background: rgba(188, 95, 58, 0.14);
  color: var(--clay);
}
.mam-pdp-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.mam-pdp-price-new {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  color: var(--clay);
}
.mam-pdp-price-old {
  font-size: 18px;
  color: var(--muted);
  text-decoration: line-through;
}
.mam-pdp-tax { font-size: 13px; color: var(--muted); margin: 0 0 18px; }

/* short description (SoT §IV.4 formula prose) */
.mam-pdp-short {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 24px;
}
.mam-pdp-short p { margin: 0 0 0.8em; }
.mam-pdp-short ul { padding-left: 20px; margin: 0 0 1em; }
.mam-pdp-short li { margin-bottom: 4px; }

.mam-pdp-options {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}
.mam-pdp-options-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--forest);
  margin: 0;
}
.mam-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.mam-pdp-atc {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}
.mam-pdp-atc .mam-btn {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 48px;
}
.mam-pdp-minimum {
  font-size: 13px;
  color: var(--clay);
  margin: 12px 0 0;
}
.mam-pdp-alt {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.mam-pdp-alt .mam-pdp-bar-btn { padding: 11px 20px; }

/* tabs (no bootstrap) */
.mam-pdp-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.mam-pdp-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 18px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.mam-pdp-tab:hover { color: var(--forest); }
.mam-pdp-tab.is-active {
  color: var(--forest);
  border-bottom-color: var(--clay);
}
.mam-pdp-tabpane { display: none; }
.mam-pdp-tabpane.is-active { display: block; }
.mam-pdp-tags {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.mam-pdp-tags a { color: var(--clay); }

/* spec table */
.mam-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.mam-spec-table th {
  text-align: left;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--forest);
  padding: 8px 0 12px;
}
.mam-spec-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.mam-spec-table td:first-child {
  color: var(--muted);
  width: 38%;
  font-weight: 500;
}

/* review panel (wraps OC review form) */
.mam-pdp-review {
  max-width: 720px;
}
.mam-pdp-review label.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 6px;
}
.mam-pdp-review .form-control,
.mam-pdp-review .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.mam-pdp-review .form-control:focus,
.mam-pdp-review .form-select:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(110, 127, 78, 0.18);
}
.mam-pdp-review .form-check-input {
  accent-color: var(--clay);
  width: 16px;
  height: 16px;
}
.mam-pdp-review .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: #F1EAD6;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}
.mam-pdp-review .btn.btn-primary:hover {
  background: var(--clay);
  transform: translateY(-1px);
}
.mam-pdp-review .text-danger {
  color: var(--clay);
}
.mam-pdp-review .fa-solid,
.mam-pdp-review .fa-regular {
  font-style: normal;
}
.mam-pdp-related {
  margin-top: 40px;
}

@media (max-width: 960px) {
  .mam-pdp-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 520px) {
  .mam-pdp-atc { flex-direction: column; }
  .mam-pdp-atc .mam-btn { width: 100%; }
  .mam-pdp-alt .mam-pdp-bar-btn { flex: 1 1 auto; justify-content: center; }
  .mam-pdp-tabs { gap: 2px; }
  .mam-pdp-tab { padding: 9px 12px 11px; font-size: 12px; }
}

/* ============== PRODUCT PAGE — sticky bottom ATC ============== */
.mam-pdp {
  position: relative;
  padding-bottom: 132px; /* room for sticky bar */
}
.mam-pdp .mam-pdp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(251, 246, 234, 0.96);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  z-index: 38;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 -10px 28px -18px rgba(34, 51, 31, 0.35);
}
.mam-pdp-bar-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}
.mam-pdp-bar-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--paper-2);
  flex: none;
}
.mam-pdp-bar-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mam-pdp-bar-price {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--clay);
  margin-top: 2px;
}
.mam-pdp-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mam-pdp-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--paper);
}
.mam-pdp-qty button {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--forest);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}
.mam-pdp-qty button:hover { background: var(--paper-2); color: var(--clay); }
.mam-pdp-qty input {
  width: 44px;
  height: 36px;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.mam-pdp-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--forest);
  transition: background var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}
.mam-pdp-bar-btn--ghost {
  background: transparent;
  color: var(--forest);
}
.mam-pdp-bar-btn--ghost:hover {
  background: var(--forest);
  color: var(--paper);
}
.mam-pdp-bar-btn--solid {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}
.mam-pdp-bar-btn--solid:hover {
  background: var(--clay);
  border-color: var(--clay);
  transform: translateY(-1px);
}
.mam-pdp-bar-btn svg { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .mam-pdp-bar-thumb { display: none; }
  .mam-pdp-bar { padding: 10px 14px; gap: 10px; }
  .mam-pdp { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .mam-pdp-bar-btn { transition: none; }
  .mam-pdp-bar-btn--solid:hover { transform: none; }
  .mam-pdp-qty button { transition: none; }
}
/* ============== CHECKOUT (cart + checkout + confirm + modals) ============== */
.mam-cart-content,
.mam-checkout-content {
  max-width: none;
}
.mam-cart-title,
.mam-checkout-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.2;
  margin: 18px 0 24px;
  letter-spacing: -0.01em;
}

/* alerts */
.mam-alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
}
.mam-alert--danger {
  background: rgba(188, 95, 58, 0.1);
  border-color: rgba(188, 95, 58, 0.4);
  color: var(--clay);
}
.mam-alert--success {
  background: rgba(110, 127, 78, 0.12);
  border-color: rgba(110, 127, 78, 0.4);
  color: #4c5c3a;
}
.mam-alert--info {
  background: rgba(156, 169, 124, 0.14);
}

/* cart grid (items | summary) */
.mam-cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.mam-cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mam-cart-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.mam-cart-item-thumb {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}
.mam-cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mam-cart-item-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.3;
}
.mam-cart-out { color: var(--clay); }
.mam-cart-item-meta {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.mam-cart-item-row {
  margin-top: 12px;
}
.mam-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mam-cart-qty-input {
  width: 56px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  text-align: center;
  font-size: 15px;
  color: var(--ink);
}
.mam-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--forest);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}
.mam-cart-btn:hover { background: var(--forest); color: var(--paper); }
.mam-cart-btn--remove {
  border-color: var(--clay);
  color: var(--clay);
}
.mam-cart-btn--remove:hover { background: var(--clay); color: #fff; }
.mam-cart-minimum {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--clay);
}
.mam-cart-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.mam-cart-price { font-size: 14px; color: var(--muted); }
.mam-cart-total { font-size: 16px; font-weight: 600; color: var(--forest); }

/* summary */
.mam-cart-summary {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.mam-cart-summary-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--forest);
  margin: 0 0 16px;
}
.mam-cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.mam-cart-summary-row span:last-child { color: var(--forest); font-weight: 500; }
.mam-cart-summary-row--grand {
  font-size: 20px;
  color: var(--forest);
  font-weight: 500;
  font-family: var(--font-serif);
  margin-top: 6px;
}
.mam-cart-summary-row--grand span:last-child { font-size: 22px; font-weight: 500; }
.mam-btn--block { width: 100%; justify-content: center; margin-top: 16px; }
.mam-cart-support {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.mam-cart-hotline { color: var(--clay); font-weight: 600; }
.mam-cart-cod {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(110, 127, 78, 0.14);
  color: #4c5c3a;
  font-size: 12px;
  font-weight: 600;
}
.mam-cart-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.mam-cart-empty p { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.mam-cart-actions { margin-top: 20px; }
.mam-cart-modules { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

/* checkout grid */
.mam-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}
.mam-checkout-main,
.mam-checkout-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mam-checkout-support {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mam-checkout-support a { color: var(--clay); font-weight: 600; }
.mam-checkout-cod {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(110, 127, 78, 0.14);
  color: #4c5c3a;
  font-size: 12px;
  font-weight: 600;
}

/* ---- Flux checkout (2-col: form | sticky summary) ---- */
.mam-checkout-flux {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}
.mam-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.mam-checkout-summary {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 26px;
  min-width: 0;
}
.mam-flux-sec {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  padding: 26px 28px;
  margin: 0;
}
.mam-flux-sec-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--forest);
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.mam-flux-sec-title em {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clay);
}
.mam-flux-sec-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}
.mam-flux-loading {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.mam-flux-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mam-flux-row .mam-flux-col-wide { grid-column: 1 / -1; }
.mam-radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  margin-top: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mam-radio-card:hover { border-color: var(--forest); }
.mam-radio-card.is-selected {
  border: 2px solid var(--forest);
  background: var(--sage-page);
  padding: 15px 17px; /* keep total box size stable with 2px border */
}
.mam-radio-card input { accent-color: var(--forest); width: 18px; height: 18px; flex: none; }
.mam-radio-card-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(110, 127, 78, 0.14);
  color: var(--forest);
}
.mam-radio-card-icon svg { width: 22px; height: 22px; }
.mam-radio-card-name { font-size: 15px; font-weight: 600; color: var(--forest); }
.mam-radio-card-price {
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
}
.mam-radio-card-note {
  margin: 10px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(110, 127, 78, 0.12);
  font-size: 14px;
  color: #4c5c3a;
  line-height: 1.6;
}
.mam-summary-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--forest);
  margin: 0 0 16px;
}
.mam-summary-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.mam-summary-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
}
.mam-summary-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mam-summary-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mam-summary-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.3;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mam-summary-name:hover { color: var(--clay); }
.mam-summary-model { font-size: 11px; color: var(--muted); }
.mam-summary-qty { font-size: 13px; color: var(--muted); }
.mam-summary-line { font-size: 15px; font-weight: 600; color: var(--forest); white-space: nowrap; }
.mam-summary-totals { margin-top: 14px; }
.mam-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.mam-summary-row span:last-child { color: var(--forest); font-weight: 500; }
.mam-summary-row--grand {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--forest);
  font-weight: 600;
  margin-top: 6px;
}
.mam-summary-row--grand span:last-child { font-size: 24px; font-weight: 600; }
.mam-summary-cta { margin-top: 18px; }
.mam-summary-cta .mam-btn,
.mam-summary-cta .btn.btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 15px;
}
.mam-checkout-summary .mam-checkout-support { margin-top: 14px; }

@media (max-width: 991px) {
  .mam-checkout-flux { grid-template-columns: 1fr; }
  .mam-checkout-summary { position: static; }
}
@media (max-width: 520px) {
  .mam-flux-row { grid-template-columns: 1fr; }
  .mam-flux-sec { padding: 18px 16px; }
}

/* ---- Flux visual pass v2 (Diễm: airy, plain headings, soft fields) ---- */
.mam-checkout-flux { gap: 48px; }
.mam-checkout-form { gap: 44px; }

/* Left sections: no boxed cards — plain headings + whitespace */
.mam-checkout-form .mam-flux-sec {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.mam-checkout-form .mam-flux-sec + .mam-flux-sec { padding-top: 36px; border-top: 1px solid var(--line); }
.mam-flux-sec-title {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 20px;
  display: block;
}
.mam-flux-sec-title em { display: none; }

/* Core register/shipping-address fieldsets on the left get the same airy reset */
.mam-checkout-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.mam-checkout-form fieldset legend {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--forest);
  padding: 0;
  margin: 0 0 20px;
  line-height: 1.25;
}

/* Quiet guest/register toggle — soft segmented pills, no radio dots */
.mam-checkout-form fieldset legend + .row .form-check-inline,
.mam-checkout-form .form-check-inline {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin: 0 8px 12px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.mam-checkout-form .form-check-inline:has(input:checked) {
  border-color: var(--forest);
  background: var(--sage-page);
  color: var(--forest);
  font-weight: 600;
}
.mam-checkout-form .form-check-inline input { appearance: none; width: 0; height: 0; margin: 0; }

/* Hide Phase-1 noise: “Nhóm khách hàng / Default” selector */
.mam-checkout-form .col:has(> #input-customer-group) { display: none; }

/* Soft rounded full-width fields, placeholder-forward */
.mam-checkout .form-label,
.mam-checkout .mam-field-label {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}
.mam-checkout .form-control,
.mam-checkout .form-select,
.mam-checkout .mam-input,
.mam-checkout .mam-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.mam-checkout .form-control::placeholder,
.mam-checkout .mam-input::placeholder,
.mam-checkout .mam-textarea::placeholder { color: rgba(115, 107, 87, 0.55); }
.mam-checkout .form-control:focus,
.mam-checkout .form-select:focus,
.mam-checkout .mam-input:focus,
.mam-checkout .mam-textarea:focus {
  border-color: var(--forest);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(34, 51, 31, 0.1);
}
.mam-checkout .row { row-gap: 4px; }

/* Radio cards — softer */
.mam-radio-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 12px;
}
.mam-radio-card.is-selected {
  border: 2px solid var(--forest);
  background: var(--sage-page);
  box-shadow: 0 0 0 3px rgba(34, 51, 31, 0.08);
  padding: 17px 19px;
}
/* Shipping placeholder card until address is ready */
.mam-method-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(251, 246, 234, 0.6);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.mam-method-placeholder small { color: rgba(115, 107, 87, 0.7); }

/* Summary panel — light cream, edge-to-edge of its column */
.mam-checkout-summary {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.mam-summary-title { font-size: 24px; margin-bottom: 20px; }
.mam-summary-item { padding: 14px 0; gap: 16px; }
.mam-summary-thumb { position: relative; width: 60px; height: 60px; }
.mam-summary-qty-badge {
  position: absolute;
  right: -7px;
  bottom: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: #F1EAD6;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--cream);
  box-sizing: content-box;
}
.mam-summary-name { font-size: 17px; }
.mam-summary-totals { margin-top: 18px; }
.mam-summary-row { padding: 10px 0; font-size: 15px; }
.mam-summary-cta { margin-top: 22px; }
.mam-summary-cta .mam-btn,
.mam-summary-cta .btn.btn-primary {
  padding: 17px 24px;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.mam-checkout-summary .mam-checkout-support { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* fieldset / method picker / form */
.mam-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  padding: 22px 24px;
  margin: 0;
}
.mam-fieldset legend {
  padding: 0 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--forest);
}
.mam-method-picker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mam-method-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(110, 127, 78, 0.14);
  color: var(--forest);
}
.mam-method-icon svg { width: 22px; height: 22px; }
.mam-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.mam-field-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mam-error {
  color: var(--clay);
  font-size: 13px;
  margin-top: 6px;
}
.mam-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.mam-checkbox input { accent-color: var(--clay); width: 16px; height: 16px; margin-top: 2px; }
.mam-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  margin-top: 8px;
}
.mam-radio input { accent-color: var(--forest); width: 16px; height: 16px; }

/* confirm table */
.mam-confirm-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--forest);
  margin: 0 0 12px;
}
.mam-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  overflow: hidden;
}
.mam-table-head,
.mam-table-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.mam-table-head {
  background: var(--paper-2);
  font-weight: 600;
  color: var(--forest);
}
.mam-table-row:last-child { border-bottom: none; }
.mam-table-row small { color: var(--muted); }
.mam-table-end { text-align: right; color: var(--forest); font-weight: 500; white-space: nowrap; }
.mam-table-row--total { color: var(--muted); }
.mam-table-row--grand { font-family: var(--font-serif); font-size: 18px; color: var(--forest); }
.mam-confirm-actions { margin-top: 16px; text-align: right; }

/* modal (Bootstrap-free) */
.mam-modal {
  display: none;
  position: fixed;
  z-index: 105;
  inset: 0;
  padding: 20px;
  overflow-y: auto;
}
.mam-modal.is-open { display: flex; align-items: center; justify-content: center; }
.mam-modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mam-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.mam-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--forest);
  margin: 0;
}
.mam-modal-title svg { width: 20px; height: 20px; }
.mam-modal-close {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}
.mam-modal-body { padding: 22px; }
.mam-modal-body p { color: var(--muted); margin: 0 0 12px; }
.mam-modal-group { margin-top: 16px; }
.mam-modal-actions { margin-top: 20px; text-align: right; }
.mama-modal-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
  z-index: 104;
}

@media (max-width: 900px) {
  .mam-cart-grid,
  .mam-checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .mam-cart-item { grid-template-columns: 64px minmax(0, 1fr); }
  .mam-cart-item-thumb { width: 64px; height: 64px; }
  .mam-cart-item-price { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .mam-fieldset { padding: 16px; }
  .mam-method-picker { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .mam-cart-btn,
  .mam-btn,
  .mam-modal-card { transition: none; }
}

/* Style core checkout register / address sub-forms (Bootstrap-named classes,
   Bootstrap CSS not loaded) — scope to .mam-checkout only.
   Field/label styling now lives in the "Flux visual pass v2" block above. */
.mam-checkout .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
  margin: 8px 0;
}
/* Guest/register choice renders as quiet pill toggles — see
   .mam-checkout-form .form-check-inline in the v2 block. */
.mam-checkout .form-check-input { accent-color: var(--forest); width: 16px; height: 16px; }
.mam-checkout .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: #F1EAD6;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}
.mam-checkout .btn.btn-primary:hover {
  background: var(--clay);
  transform: translateY(-1px);
}
.mam-checkout-summary .btn.btn-primary {
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: #F1EAD6;
  border: none;
}
.mam-checkout .text-danger { color: var(--clay); }
.mam-checkout .invalid-feedback { color: var(--clay); font-size: 13px; display: none; }
.mam-checkout .invalid-feedback.d-block { display: block; }
.mam-checkout .col { width: 100%; }

/* ============== SUCCESS / order confirmation ============== */
.mam-success-content { max-width: none; }
.mam-success-card {
  max-width: 640px;
  margin: 24px auto 40px;
  padding: 48px 36px;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.mam-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--forest);
}
.mam-success-icon svg { width: 40px; height: 40px; }
.mam-success-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  color: var(--forest);
  margin: 0 0 16px;
}
.mam-success-body {
  font-size: 19px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--ink);
}
.mam-success-hotline {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.mam-success-hotline a { color: var(--clay); font-weight: 600; }
.mam-success-actions { margin-top: 28px; }
@media (prefers-reduced-motion: reduce) {
  .mam-success-card { transition: none; }
}

/* ============== CATEGORY page (product/category override) ============== */
.mam-cat-page {
  position: relative;
}
.mam-cat-page .mam-wrap { padding-bottom: 8px; }

/* ===== Category HERO band (stronger visual anchor) ===== */
.mam-cat-band {
  position: relative;
  overflow: hidden;
  background: var(--sage-page);
  margin-top: calc(var(--mam-header-clear) * -1);
}
.mam-cat-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 80% 12%, rgba(156, 169, 124, 0.28) 0%, transparent 60%),
    linear-gradient(160deg, var(--paper) 0%, #E4EAD4 38%, #C9D4B4 100%);
  opacity: 1;
}
.mam-cat-band .mam-wrap {
  position: relative;
  z-index: 1;
  padding-top: 32px;
  padding-bottom: 48px;
}

.mam-cat-hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
}
@media (max-width: 960px) {
  .mam-cat-hero { padding: 40px 0 28px; }
}
.mam-cat-hero__halo {
  position: absolute;
  top: -40px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, var(--sage-page) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.mam-cat-hero__inner {
  position: relative;
  z-index: 1;
  animation: mam-cat-hero-in 0.7s var(--ease) both;
}
@keyframes mam-cat-hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mam-cat-hero__eyebrow {
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
}
.mam-cat-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.05;
  max-width: 18ch;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.mam-cat-hero__title em {
  font-style: italic;
  background: linear-gradient(180deg, transparent 62%, rgba(198,154,69,0.4) 62%);
  padding: 0 0.1em;
}
.mam-cat-hero__blurb {
  max-width: 52ch;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 18px;
}
.mam-cat-hero__meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ===== Filter / sort bar (soft) ===== */
.mam-filter {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: 14px 0;
  margin: 0 0 32px;
}
.mam-filter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mam-filter__sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mam-filter__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mam-filter__select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  padding: 0 36px 0 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2A24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mam-filter__select:focus {
  outline: 0;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(34,51,31,0.12);
}
.mam-filter__count {
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
}

/* ===== Sub-category refine chips ===== */
.mam-cat-children {
  margin: 0 0 28px;
  padding: 18px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.mam-cat-children h3 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.mam-cat-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mam-cat-chips a {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  border: 1px solid var(--forest);
  color: var(--forest);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease);
}
.mam-cat-chips a:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

/* ===== Category product grid (overrides .row row-cols-* on category) ===== */
.mam-cat-grid {
  margin-top: 8px;
}
@media (max-width: 1279px) {
  .mam-cat-grid { gap: 22px; }
}
@media (max-width: 960px) {
  .mam-cat-grid { gap: 20px; }
}
@media (max-width: 640px) {
  .mam-cat-grid { gap: 16px; }
}

/* ===== Category pagination row ===== */
.mam-cat-pagination-row {
  margin-top: 48px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mam-cat-pagination-l,
.mam-cat-pagination-r {
  font-size: 14px;
  color: var(--ink);
}
.mam-cat-pagination-r { color: var(--muted); }

/* Override OC4 .pagination when rendered inside .mam-cat-pagination-l */
.mam-cat-pagination-l ul.pagination,
.mam-cat-pagination-l .pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.mam-cat-pagination-l .pagination li { margin: 0; }
.mam-cat-pagination-l .pagination li.active span,
.mam-cat-pagination-l .pagination a,
.mam-cat-pagination-l .pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease);
  text-decoration: none;
}
.mam-cat-pagination-l .pagination a:hover { background: var(--sage-page); }
.mam-cat-pagination-l .pagination li.active span {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

/* ===== Empty state on category ===== */
.mam-cat-empty {
  margin: 48px auto;
  max-width: 560px;
}
@media (max-width: 520px) {
  .mam-cat-empty { padding: 36px 20px; }
}


/* ============== CART DRAWER (Phase-1, COD) ============== */
.mam-cart-trigger { cursor: pointer; }

/* Host for OC #cart.load — children are position:fixed, so no layout box needed */
.mam-cart-slot {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.mam-cart-slot .mam-cart-scrim,
.mam-cart-slot .mam-cart-drawer {
  pointer-events: auto;
}

/* Scrim */
.mam-cart-scrim {
  position: fixed;
  inset: 0;
  background: rgba(34,51,31,0.42);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0s linear 0.28s;
}
.mam-cart-scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s var(--ease), visibility 0s linear 0s;
}

/* Body scroll lock — distinct class so it doesn't conflict with .mam-drawer-open */
body.mam-cart-open { overflow: hidden; }
/* Hide competing fixed chrome while the cart drawer is open */
body.mam-cart-open .mam-pdp-bar,
body.mam-cart-open .mam-back-to-top { display: none !important; }

/* Drawer shell */
.mam-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px -16px rgba(34,51,31,0.28);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22,0.61,0.36,1);
}
.mam-cart-drawer.is-open { transform: translateX(0); }
@media (max-width: 520px) {
  .mam-cart-drawer { width: 100vw; border-left: none; }
}

/* Header */
.mam-cart-drawer__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 56px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.mam-cart-drawer__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: -0.01em;
  margin: 0;
  text-align: center;
}
.mam-cart-drawer__title small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.mam-cart-drawer__close {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.mam-cart-drawer__close:hover {
  background: var(--sage-page);
  color: var(--clay);
}
.mam-cart-drawer__close svg { width: 16px; height: 16px; }

/* Freeship progress bar */
.mam-freeship {
  padding: 16px 24px 12px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.mam-freeship__track {
  position: relative;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mam-freeship__fill {
  position: absolute;
  inset: 0;
  width: var(--mam-freeship, 0%);
  background: linear-gradient(90deg, var(--moss), var(--forest));
  transition: width 0.4s var(--ease);
}
.mam-freeship__pin {
  position: absolute;
  top: 50%;
  left: var(--mam-freeship, 0%);
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--forest);
  box-shadow: var(--shadow-soft);
  transition: left 0.4s var(--ease);
}
.mam-freeship__pin svg { width: 14px; height: 14px; }
.mam-freeship__label {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 400;
}
.mam-freeship__label strong {
  color: var(--clay);
  font-weight: 600;
}

/* Body (line list) */
.mam-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px 18px;
}
.mam-cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mam-cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "thumb info info"
    "thumb qty qty"
    "thumb total total";
  gap: 4px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mam-cart-line:last-child { border-bottom: none; }
.mam-cart-line__thumb {
  grid-area: thumb;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  display: block;
}
.mam-cart-line__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mam-cart-line__info { grid-area: info; min-width: 0; }
.mam-cart-line__name {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.35;
  text-decoration: none;
}
.mam-cart-line__name:hover { color: var(--clay); }
.mam-cart-line__meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.mam-cart-line__price {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
}

.mam-cart-line__qty {
  grid-area: qty;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.mam-cart-line__qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--forest);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.mam-cart-line__qty-btn:hover { background: var(--sage-page); color: var(--clay); }
.mam-cart-line__qty-btn svg { width: 14px; height: 14px; }
.mam-cart-line__qty-input {
  width: 56px;
  height: 30px;
  text-align: center;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  -moz-appearance: textfield;
}
.mam-cart-line__qty-input::-webkit-outer-spin-button,
.mam-cart-line__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mam-cart-line__remove {
  width: 30px;
  height: 30px;
  margin-left: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.mam-cart-line__remove:hover { background: var(--clay); color: #fff; border-color: var(--clay); }
.mam-cart-line__remove svg { width: 14px; height: 14px; }

.mam-cart-line__total {
  grid-area: total;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  margin-top: 4px;
}

/* Empty state */
.mam-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
  color: var(--muted);
}
.mam-cart-empty svg {
  width: 80px;
  height: 80px;
  color: var(--sage);
  opacity: 0.65;
}
.mam-cart-empty__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
  margin: 0;
}
.mam-cart-empty__lead {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.mam-cart-empty .mam-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.mam-cart-empty .mam-empty__cta:hover { background: var(--clay); }

/* Footer */
.mam-cart-drawer__foot {
  border-top: 1px solid var(--line);
  padding: 16px 22px 22px;
  background: var(--cream);
}
.mam-cart-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.mam-cart-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.mam-cart-totals__row--grand {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--forest);
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.mam-cart-payment {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mam-cart-payment svg { width: 14px; height: 14px; color: var(--moss); }
.mam-cart-payment strong { color: var(--clay); font-weight: 600; }
.mam-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mam-cart-drawer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.mam-cart-drawer__cta svg { width: 15px; height: 15px; }
.mam-cart-drawer__cta--secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--forest);
}
.mam-cart-drawer__cta--secondary:hover { background: var(--sage-page); }
.mam-cart-drawer__cta--primary {
  background: var(--forest);
  color: var(--cream);
  border: 1px solid var(--forest);
}
.mam-cart-drawer__cta--primary:hover { background: var(--clay); border-color: var(--clay); }
.mam-cart-drawer__continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-top: 1px dashed var(--line);
  margin-top: 12px;
  transition: color 0.2s var(--ease);
}
.mam-cart-drawer__continue:hover { color: var(--forest); }
.mam-cart-drawer__continue svg { width: 14px; height: 14px; }

@media (max-width: 520px) {
  .mam-cart-actions { flex-direction: column; }
  .mam-cart-line { grid-template-columns: 56px 1fr auto; }
  .mam-cart-line__thumb { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .mam-cart-drawer,
  .mam-cart-scrim,
  .mam-freeship__fill,
  .mam-freeship__pin { transition-duration: 0.001ms !important; }
}
