/* ==========================================================================
   enflowers.com — Shared base stylesheet
   Consolidated from the design CSS in ui/assets/ (home-d.css, products.css,
   product-detail-2.css, home-global.css), which copy-pasted the same design
   tokens and chrome into every file. No visual change.

   Contains: design tokens (Direction D v4 winter colorway), reset/body
   basics, shared bits, utility bar, site-header (nav, search, cart count),
   breadcrumb, hero + fact band, product-card component, assurance list,
   reviews, how-it-works steps, FAQ, order-summary panel, site-footer.

   Load order: base.css → page module (home.css / products.css /
   product-detail.css / home-global.css / cart.css / checkout.css /
   order-success.css) → optional theme (theme-summer.css).

   Palette: warm paper, deep ink-green, terracotta accent (winter colorway)
   Type: Fraunces (display serif) + Inter (body sans)
   ========================================================================== */

:root {
  /* Palette */
  --paper: #faf6ef;
  --paper-deep: #f3ecdf;
  --card: #fffdf8;
  --ink: #1c2b23;
  --ink-soft: #4b5c51;
  --accent: #b8552f;
  --accent-deep: #96431f;
  --accent-tint: #f7e3d8;
  /* Brand gold (logo & brand details, from ui/7.png brand board) */
  --gold: #b98a2f;
  --gold-deep: #97711f;
  --gold-light: #d8b45e;   /* gold that reads on dark ink */
  --gold-tint: #faf3e3;
  --line: #ddd2bf;
  --line-strong: #c9bb9f;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-xxl: 5.5rem;

  --max-width: 76rem;
  --radius: 4px;
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--accent);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* One-shot error flash (coupon rejection etc.), rendered by layout.php */
.flash-error {
  max-width: 720px;
  margin: var(--space-md, 16px) auto 0;
  padding: 10px 16px;
  border: 1px solid #f0c6c2;
  border-radius: 6px;
  background: #fdf1f0;
  color: #b03a2e;
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Shared bits ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-sm);
}

.section-head {
  max-width: var(--max-width);
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-md);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

.section-sub {
  max-width: 36rem;
  color: var(--ink-soft);
  margin-top: var(--space-sm);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-text:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- 1. Utility bar ---------- */

.utility-bar {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 0.55rem var(--space-md);
}

.utility-bar p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 2. Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Logo per the brand board (ui/7.png): italic gold "en" with a line-art
   rose sprig rising off the "n", roman ink "flowers", smaller gold ".com". */
.brand-en {
  position: relative;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.brand-sprig {
  position: absolute;
  left: 58%;
  bottom: 58%;
  width: 0.62em;
  height: auto;
  color: var(--gold);
}

.brand-name em {
  font-style: italic;
  font-weight: 400;
  font-size: 0.72em;
  color: var(--gold);
}

.search {
  flex: 1 1 14rem;
  min-width: 0;
}

.search input {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  transition: border-color 0.2s ease;
}

.search input::placeholder { color: var(--ink-soft); }
.search input:focus {
  outline: none;
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
  max-width: 100%;
}

.locale-btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.locale-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Static destination/currency indicator on country sites — looks like
   .locale-btn but is deliberately not interactive. */
.locale-pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: default;
}

/* Note: home-global.html has no cart link in its header; these rules are
   simply unused there. */
.cart-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-count {
  background: var(--accent);
  color: var(--paper);
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

/* Favorites (wishlist): the header link mirrors the cart link; its count is
   filled by favorites.js (SSR prints 0 so public pages stay session-free). */
.fav-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fav-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.fav-count {
  background: var(--accent);
  color: var(--paper);
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

/* Heart toggle: absolute over the card photo (top-right, mirrored against
   the badge on the left); the static variant with a text label is used in
   the PDP buy box ("Save for later"). */
.fav-toggle {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 1;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.fav-toggle svg {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.fav-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.06);
}

.fav-toggle.is-favorited svg {
  fill: var(--accent);
  stroke: var(--accent);
}

.fav-toggle-static {
  position: static;
  width: auto;
  height: auto;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

/* Header account entries: track order / sign in / my account */
.account-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.account-link:hover {
  color: var(--accent);
}

.main-nav {
  border-top: 1px solid var(--line);
  /* no overflow-x here — it would clip the dropdown menus */
}

.main-nav > ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--space-md);
  max-width: var(--max-width);
  display: flex;
  flex-wrap: wrap;       /* narrow screens fold the facet row instead of spilling sideways */
  gap: 0 var(--space-lg);
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Active nav state (from products.css / product-detail-2.css — identical).
   home-global uses aria-current="true" instead; see home-global.css. */
.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Facet dropdown menus (Flowers / Colors / Stem count / Occasions).
   CSS-only: hover and keyboard focus-within, no JS. */
.drop-toggle {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: default;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.drop-toggle::after {
  content: "▾";
  margin-left: 0.3em;
  font-size: 0.72em;
}

.has-drop:hover .drop-toggle,
.has-drop:focus-within .drop-toggle {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-drop {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 10.5rem;
  margin: 0;
  padding: var(--space-xs) 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(28, 43, 35, 0.12);
  display: none;
}

.has-drop:hover .nav-drop,
.has-drop:focus-within .nav-drop {
  display: block;
}

.nav-drop a {
  padding: 0.5rem 1rem;
  border-bottom: 0;
}

.nav-drop a:hover {
  color: var(--accent-deep);
}

/* ---------- Breadcrumb (products + product detail) ---------- */

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) 0;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.breadcrumb li + li::before {
  content: "→";
  margin-right: 0.4rem;
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 3. Hero (editorial headline × fact band) ----------
   Shared by home-04, home-05 (via theme-summer overrides) and home-global. */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-xxl);
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: var(--space-lg);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
}

/* Fact band — B's conversion facts, set as editorial figures.
   Numbers in Fraunces, labels in small caps, divided by hairlines. */
.hero-facts {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: var(--space-md) 0 0;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-lg);
}

.hero-facts li {
  border-left: 1px solid var(--line);
  padding-left: var(--space-md);
}

.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.hero-facts strong em {
  font-style: normal;
  color: var(--accent);
  font-size: 0.82em;
  margin-left: 0.1em;
}

.hero-facts span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-media {
  margin: 0;
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-media figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--accent);
  padding-left: var(--space-sm);
  margin-top: var(--space-sm);
}

@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Product grid + product card (shared component) ----------
   Used by home bestsellers, products catalog, related products. */

.product-grid {
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}

.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(28, 43, 35, 0.09);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

/* Hover-swap fade state, toggled by card-hover-image.js */
.product-card img.is-switching {
  opacity: 0;
}

.badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.product-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rating {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
}

.rating span {
  font-family: var(--font-body);
  color: var(--ink-soft);
  margin-left: 0.3rem;
  letter-spacing: 0;
}

.product-body h3 {
  font-size: 1.18rem;
  margin-bottom: 0.3rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
  flex: 1;
  /* Clamp card descriptions to 2 lines so grid rows stay even. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: var(--space-sm);
}

.price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

/* 打折促销: struck-through compare-at price + sale price */
.price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-compare {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 400;
}

.price-sale {
  color: var(--accent);
}

.sale-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.btn-add {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-add:hover {
  background: var(--accent);
  color: var(--paper);
}

/* ---------- Catalog toolbar: price chips + sort (shared component) ----------
   Used by the products listing, category, search, and occasion pages.
   Rendered by src/templates/partials/catalog-toolbar.php. */

.catalog-toolbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.toolbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem var(--space-md);
}

.price-chips {
  display: flex;
  gap: 0.5rem;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}

.price-chips::-webkit-scrollbar { display: none; }

.price-chip {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.price-chip:hover { border-color: var(--accent); }

.price-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.toolbar-right {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem var(--space-md);
}

.toolbar-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.toolbar-count strong { color: var(--ink); }

/* Selects — custom editorial look, still plain <select> elements */

.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-wrap select {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 2.2rem 0.5rem 1rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.select-wrap select:hover { border-color: var(--accent); }

.select-wrap select:focus {
  outline: none;
  border-color: var(--accent);
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}

.toolbar-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-apply {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-apply:hover { background: var(--accent-deep); }

@media (max-width: 40rem) {
  .toolbar-right { margin-left: 0; }
}

/* ---------- Pagination (shared component) ----------
   Used by the products listing, category, search, and occasion pages.
   Renders nothing extra; include src/templates/partials/pagination.php. */

.pagination {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-xxl);
}

.pagination ol {
  list-style: none;
  margin: 0;
  padding: var(--space-md) 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.pagination-gap {
  color: var(--ink-soft);
  padding: 0 0.2rem;
}

.pagination a,
.pagination [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pagination a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.pagination [aria-current="page"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.pagination .pagination-next {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- Assurance list (shared ✓ checklist) ----------
   Used by the home assurance section and the product-detail buy card
   (.product-assurance). */

.assurance-list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
}

.assurance-list li {
  font-size: 0.92rem;
  padding: 0.65rem 0 0.65rem 1.6rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.assurance-list li::before {
  content: "✓";
  position: absolute;
  left: 0.2rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Reviews (shared component) ----------
   Used by the home reviews row and product-detail reviews. */

.reviews {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) 0;
  display: grid;
  gap: var(--space-lg);
  border-top: 1px solid var(--line);
}

.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.review blockquote {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.5;
  font-style: italic;
}

.reviewer {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

@media (min-width: 52rem) {
  .reviews { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- How it works ----------
   Shared by home pages and home-global. */

.how-it-works {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-xxl) 0;
}

.how-it-works .section-head h2 { color: var(--paper); }
.how-it-works .eyebrow { color: #d98f6e; }

.steps {
  list-style: none;
  counter-reset: step;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  gap: var(--space-xl);
}

.steps li {
  border-top: 1px solid rgba(250, 246, 239, 0.22);
  padding-top: var(--space-md);
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: #d98f6e;
  display: block;
  margin-bottom: var(--space-xs);
}

.steps h3 {
  font-size: 1.45rem;
  margin-bottom: var(--space-xs);
}

.steps p {
  font-size: 0.92rem;
  color: rgba(250, 246, 239, 0.78);
  max-width: 26rem;
  margin: 0;
}

@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
}

/* ---------- FAQ (shared by home pages and home-global) ---------- */

.faq {
  padding: var(--space-xxl) 0;
}

.faq-list {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.faq-item {
  border-top: 1px solid var(--line-strong);
  padding: var(--space-lg) 0;
}

.faq-item h3 {
  font-size: 1.45rem;
  margin-bottom: var(--space-sm);
}

.faq-lead {
  font-size: 1.02rem;
  color: var(--ink);
}

.faq-item p:not(.faq-lead) {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Order summary panel (shared by cart + checkout) ---------- */

.order-summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.order-summary h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.summary-rows {
  margin: 0 0 var(--space-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

/* display:flex above beats the UA stylesheet's [hidden] rule (author CSS
   wins over user-agent CSS), so togglable rows (surcharge/points) need
   this re-assertion or the hidden attribute stops hiding anything. */
.summary-row[hidden] { display: none; }

.summary-row dt { color: var(--ink-soft); }
.summary-row dd { margin: 0; font-weight: 500; }

.summary-row-total {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--space-sm);
  font-size: 1rem;
}

.summary-row-total dt {
  color: var(--ink);
  font-weight: 600;
}

.summary-row-total dd {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.summary-row-total .currency {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 0.25rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(250, 246, 239, 0.85);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  display: grid;
  gap: var(--space-xl);
}

.footer-brand .brand-name { color: var(--paper); }
.footer-brand .brand-en,
.footer-brand .brand-sprig,
.footer-brand .brand-name em { color: var(--gold-light); }

.footer-tag {
  font-size: 0.88rem;
  max-width: 20rem;
  margin-top: var(--space-sm);
  color: rgba(250, 246, 239, 0.65);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d98f6e;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: inline-block;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.25rem 0;
  color: rgba(250, 246, 239, 0.85);
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--paper); }

@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 239, 0.18);
}

.footer-bottom p {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
  font-size: 0.8rem;
  color: rgba(250, 246, 239, 0.55);
}
