/* 00-base.css */
/* ==========================================================================
   Bloom Buy — store design system (tokens, reset, typography, components)
   Page-specific styles live in their own numbered files in this folder.
   ========================================================================== */

:root {
  /* Brand: royal blue (decision 0020). Buttons, links, focus, active states, tints, hero… all use --brand-*. */
  --brand-950: #172554;
  --brand-900: #1e3a8a;
  --brand-800: #1e40af;
  --brand-700: #1d4ed8;
  --brand-600: #2563eb; /* primary: white text on it passes AA */
  --brand-500: #3b82f6;
  --brand-400: #60a5fa;
  --brand-300: #93c5fd;
  --brand-200: #bfdbfe;
  --brand-100: #dbeafe;
  --brand-50: #eff6ff;

  /* Success greens: ONLY for success/OK meanings (success alerts and toasts, paid/delivered/applied badges,
     completed tracker steps, confirmed payments, savings). Never for brand elements. */
  --green-950: #06291c;
  --green-900: #0a3b28;
  --green-800: #0d4f35;
  --green-700: #0f6440;
  --green-600: #12794d;
  --green-500: #1a8f5c;
  --green-400: #3bae78;
  --green-300: #7acda2;
  --green-200: #b5e4ca;
  --green-100: #ddf3e7;
  --green-50: #f1faf5;

  --primary: var(--brand-600);
  --primary-hover: var(--brand-700);
  --primary-ink: #ffffff;
  --accent: var(--brand-400);

  /* Neutrals (slate blue) */
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #56667a; /* ≥ 4.5:1 on white, --bg-soft, --gray-bg (badge-gray), --brand-50/100 and --green-50/100 */
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --surface: #ffffff;
  --photo-bg: #ffffff; /* behind product photos shown whole (object-fit: contain): supplier photos have white backgrounds */

  /* Feedback */
  --red: #b42318;
  --red-bg: #fef3f2;
  --heart: #e11d48; /* a saved favorite (decision 0027; the owner chose red) — 4.7:1 on white */
  --amber: #b54708;
  --amber-bg: #fffaeb;
  --blue: #175cd3;
  --blue-bg: #eff8ff;
  --violet: #6941c6;
  --violet-bg: #f4f3ff;
  --gray-bg: #f1f4f8;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .14);

  /* Type */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;

  --container: 1200px;
  --header-h: 68px;
  --focus: 0 0 0 3px rgba(59, 130, 246, .35);   /* ring for text fields (drawn with their border) */
  --focus-ring: var(--brand-600);               /* keyboard focus outline (≥ 3:1 on white and light blue tints); dark blue sections switch it to white */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
svg.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
/* Keyboard focus is an outline: component box-shadows (primary buttons, WhatsApp button, gallery arrows…) can't hide it.
   Inside containers that clip (overflow hidden/auto), components use a negative outline-offset instead. */
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-200); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  color: var(--ink);
}
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
small, .text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.section { padding: 40px 0; }
@media (min-width: 768px) { .section { padding: 64px 0; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row.center { justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-full { width: 100%; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-ink: var(--ink);
  --btn-line: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-ink); border-color: var(--brand-300); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { --btn-bg: var(--primary); --btn-ink: #fff; --btn-line: var(--primary); box-shadow: 0 6px 18px rgba(37, 99, 235, .22); }
.btn-primary:hover { --btn-bg: var(--primary-hover); --btn-line: var(--primary-hover); color: #fff; }
.btn-outline { --btn-bg: transparent; --btn-ink: var(--primary); --btn-line: var(--brand-300); }
.btn-outline:hover { --btn-bg: var(--brand-50); color: var(--primary-hover); }
.btn-ghost { --btn-bg: transparent; --btn-line: transparent; --btn-ink: var(--ink-2); }
.btn-ghost:hover { --btn-bg: var(--brand-50); }
.btn-light { --btn-bg: #fff; --btn-ink: var(--brand-800); --btn-line: #fff; }
.btn-light:hover { --btn-bg: var(--brand-50); color: var(--brand-900); }
.btn-danger { --btn-bg: #fff; --btn-ink: var(--red); --btn-line: #f4c7c3; }
.btn-danger:hover { --btn-bg: var(--red-bg); color: var(--red); border-color: var(--red); }
.btn-sm { min-height: 44px; padding: 6px 14px; font-size: .875rem; } /* 44px tap target on phones… */
@media (min-width: 768px) { .btn-sm { min-height: 36px; } }            /* …compact from tablets up */
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.05rem; }
/* Full-width buttons wrap instead of widening the page (e.g. "Escríbenos a <long email>" on a phone). */
.btn-block { display: flex; width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 500; cursor: pointer; }
.link-btn:hover { color: var(--primary-hover); text-decoration: underline; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 10px;
  border-radius: var(--radius-pill); border: 0; background: transparent; color: var(--ink);
  position: relative;
}
.icon-btn:hover { background: var(--brand-50); color: var(--brand-800); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field .help, .help { font-size: .82rem; color: var(--muted); }
.field-error, .field .error { font-size: .82rem; color: var(--red); font-weight: 500; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  font-size: 16px; /* prevents iOS zoom */
}
textarea { min-height: 96px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2356667a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
input[type="file"] { max-width: 100%; }
/* Text fields show focus with their border + ring; checkboxes and radios keep the global outline. */
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--focus); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"], .is-invalid { border-color: var(--red) !important; }
input::placeholder, textarea::placeholder { color: #94a3b8; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
/* minmax(0, 1fr): a wide child (e.g. a native file input) must not stretch the column past the card on phones. */
.form-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: span 2; } }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* Choice cards (radio as card) */
.choice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--brand-300); }
.choice input { margin-top: 3px; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--brand-50); box-shadow: 0 0 0 1px var(--primary) inset; }
.choice.is-disabled { opacity: .55; cursor: not-allowed; background: var(--bg-soft); }
.choice-body { flex: 1; min-width: 0; }
.choice-title { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }

/* ---------- Cards, panels ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .card { padding: 28px; } }
.card-title { font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel { background: var(--bg-soft); border-radius: var(--radius); padding: 16px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: var(--gray-bg); color: var(--ink-2);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-green { background: var(--green-100); color: var(--green-800); } /* success/OK only (paid, delivered, applied…) */
.badge-brand { background: var(--brand-100); color: var(--brand-800); } /* neutral brand labels (Default, Pago Móvil…) */
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-violet { background: var(--violet-bg); color: var(--violet); }
.badge-gray { background: var(--gray-bg); color: var(--muted); }
.badge-plain::before { display: none; }
.tag-sale {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--brand-700); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Alerts ---------- */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: 14px; border: 1px solid transparent;
  font-size: .95rem; margin-bottom: 12px;
}
.alert .icon { margin-top: 2px; }
/* Success feedback stays green (decision 0020); everything else uses the brand blues. */
.alert-success { background: var(--green-50); border-color: var(--green-200); color: var(--green-900); }
.alert-error { background: var(--red-bg); border-color: #fecdca; color: var(--red); }
.alert-warning { background: var(--amber-bg); border-color: #fedf89; color: var(--amber); }
.alert-info { background: var(--blue-bg); border-color: #b2ddff; color: var(--blue); }
.flash-stack { padding-top: 16px; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Money ---------- */
.price { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .9em; margin-left: 6px; }
.price-bs { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; }

/* ---------- Qty stepper ---------- */
.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; background: #fff;
}
.qty button { width: 40px; height: 42px; border: 0; background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--brand-50); color: var(--brand-800); }
.qty button:focus-visible { outline-offset: -4px; border-radius: var(--radius-pill); } /* .qty clips its children */
.qty:has(input:focus) { border-color: var(--brand-500); box-shadow: var(--focus); }
.qty input[type="number"] {
  width: 48px !important; min-height: 42px !important; border: 0 !important; text-align: center; padding: 0 !important;
  box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; border-radius: 0 !important;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Empty states ---------- */
.page-empty { padding: 56px 16px 80px; }
.empty-state { max-width: 520px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-mark { margin-bottom: 12px; opacity: .95; }

/* ---------- Progress ---------- */
.progress { height: 10px; border-radius: var(--radius-pill); background: var(--brand-100); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--brand-400)); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 28px 0 8px; }
.page-link { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.page-link:hover { border-color: var(--brand-300); color: var(--brand-800); }
.page-link.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (min-width: 768px) { .page-link { min-width: 40px; height: 40px; } }
.page-gap { align-self: center; color: var(--muted); padding: 0 4px; }

/* ---------- Toasts (confirmations such as "added to cart" stay success green; errors red) ---------- */
.toast-region { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  background: var(--green-950); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: toast-in .22s ease-out;
}
.toast a { color: var(--green-200); font-weight: 600; margin-left: auto; white-space: nowrap; }
.toast a:focus-visible { outline-color: #fff; }
.toast.is-error { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 10-layout.css */
/* ==========================================================================
   Store chrome: announcement bar, header, mobile nav, footer, WhatsApp button
   ========================================================================== */

.announcement {
  background: var(--brand-800);
  color: var(--brand-50);
  font-size: .85rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line-2);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it the containing block
   of the fixed-position mobile drawer and trap it inside the header. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
/* The logo is the only part of the header that may shrink, so the icons never push the page wider than the screen. */
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo { height: 38px; width: auto; min-width: 0; max-width: 100%; object-fit: contain; object-position: left center; }
.menu-toggle { margin-left: -8px; }

.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.header-search { display: none; position: relative; align-items: center; margin-right: 6px; }
.header-search .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.header-search input { width: 230px; min-height: 42px !important; padding-left: 40px !important; border-radius: var(--radius-pill) !important; background: var(--bg-soft) !important; border-color: transparent !important; }
.header-search input:focus { background: #fff !important; border-color: var(--brand-400) !important; }
/* 44×44 tap target; the visible pill (::before) stays small. */
.lang-switch {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-2);
}
.lang-switch::before {
  content: ''; position: absolute; inset: 5px 2px;
  border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  transition: border-color .15s;
}
.lang-switch:hover { color: var(--brand-800); }
.lang-switch:hover::before { border-color: var(--brand-300); }
.header-actions .icon-btn { flex-shrink: 0; }
.account-name { display: none; font-weight: 600; font-size: .9rem; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-badge {
  position: absolute; top: 3px; right: 1px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  border: 2px solid #fff;
}
.cart-badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* Mobile drawer nav */
.site-nav {
  position: fixed; inset: 0 auto 0 0; z-index: 70;
  width: min(86vw, 340px);
  background: #fff;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px;
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
  overflow-y: auto;
}
.site-nav.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform .25s ease; }
.site-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.site-nav-head .brand-logo { height: 32px; }
.nav-search { margin-bottom: 10px; }
.site-nav > a, .site-nav-foot a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px; border-radius: 12px;
  color: var(--ink); font-weight: 600;
}
.site-nav > a:hover, .site-nav > a.is-active { background: var(--brand-50); color: var(--brand-800); }
.site-nav > a.nav-cat { font-weight: 500; color: var(--ink-2); padding-left: 24px; }
.site-nav-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(23, 37, 84, .45); z-index: 60; }

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static; transform: none; visibility: visible; width: auto; box-shadow: none; padding: 0; background: transparent;
    flex-direction: row; align-items: center; gap: 2px; margin-left: 20px; overflow: visible;
  }
  .site-nav-head, .nav-search, .site-nav-foot, .site-nav > a.nav-cat { display: none; }
  .site-nav > a { padding: 8px 14px; border-radius: var(--radius-pill); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
  .header-search { width: clamp(180px, 20vw, 250px); } /* leaves room for the menu on small laptops */
  .nav-backdrop { display: none !important; }
  .header-search { display: flex; }
  .account-name { display: inline; }
  .account-link { padding: 0 12px; }
}
@media (max-width: 380px) {
  .brand-logo { height: 32px; }
}
@media (max-width: 360px) {
  /* Small phones (320–360px): tighter spacing; the menu and cart icons may overlap the container padding
     (their icons stay 18px from the screen edge) so all four 44px targets fit next to the logo. */
  .header-inner { gap: 4px; }
  .menu-toggle { margin-left: -10px; }
  .header-actions { gap: 0; }
  .cart-link { margin-right: -10px; }
  .brand-logo { height: 28px; }
}

.site-main { min-height: 60vh; }

/* ---------- Footer ---------- */
.site-footer { --focus-ring: #fff; margin-top: 64px; background: var(--brand-950); color: rgba(239, 246, 255, .8); }
.footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; }
.footer-rate { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .07); padding: 8px 12px; border-radius: 12px; font-size: .88rem; }
.footer-rate strong { color: #fff; }
.footer-title { font-family: var(--font-display); color: #fff; font-size: 1rem; margin-bottom: 14px; }
/* Phones/tablets: every footer link is a full 44px tap target; desktop keeps the compact list. */
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.footer-links a, .footer-address { color: rgba(239, 246, 255, .8); display: inline-flex; align-items: center; gap: 8px; }
.footer-links a { min-height: 44px; }
.footer-links a:hover { color: #fff; }
@media (min-width: 960px) {
  .footer-links { gap: 10px; }
  .footer-links a { min-height: 0; }
}
.footer-links + .footer-title { margin-top: 24px; }
.pay-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .08); color: #fff; font-size: .8rem; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 22px; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
  transition: transform .15s;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
body.has-sticky-bar .wa-float { bottom: 92px; }

/* ---------- Page heading used across store pages ---------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { margin-bottom: 6px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { position: relative; color: var(--muted); }
.breadcrumbs a::after { content: ''; position: absolute; inset: -12px -4px; } /* ~44px tap target, same layout */
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span[aria-hidden] { opacity: .6; }

/* 20-storefront.css */
/* ==========================================================================
   Storefront: home, shop, product page, product cards, help page
   (mobile-first; uses the tokens from 00-base.css)
   ========================================================================== */

/* ---------- Shared section helpers ---------- */
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 4px; }
.section-head-center { justify-content: center; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.eyebrow-light { color: var(--brand-50); } /* ≥ 4.5:1 on the blue cod band */

/* ---------- Hero ---------- */
.hero {
  --focus-ring: #fff; /* keyboard focus on dark blue */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(900px 420px at 105% -10%, rgba(147, 197, 253, .45), transparent 60%),
    radial-gradient(640px 380px at -10% 115%, rgba(96, 165, 250, .35), transparent 60%),
    linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-600) 100%); /* ends on 600: white text stays ≥ 4.5:1 */
}
.hero-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-petal {
  position: absolute; width: 220px; height: 220px;
  border-radius: 70% 0 70% 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
}
.hero-petal-1 { right: -70px; top: -60px; transform: rotate(20deg); }
.hero-petal-2 { right: 16%; bottom: -140px; width: 260px; height: 260px; transform: rotate(-35deg); opacity: .7; }
.hero-petal-3 { left: -90px; top: 45%; width: 180px; height: 180px; transform: rotate(60deg); opacity: .55; }
.hero-inner { display: grid; gap: 24px; align-items: center; padding-top: 36px; padding-bottom: 52px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
}
.hero-eyebrow .icon { color: var(--brand-200); }
.hero-title {
  color: #fff;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.7rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.05;
  margin: 16px 0 14px; max-width: 15ch;
}
.hero-lead { color: rgba(239, 246, 255, .9); font-size: 1.05rem; max-width: 46ch; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-btn-ghost { --btn-bg: transparent; --btn-ink: #fff; --btn-line: rgba(255, 255, 255, .45); }
.hero-btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .9rem; color: #fff; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--brand-200); }
.hero-art { position: relative; display: none; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hero-art-ring {
  position: absolute; inset: 7%; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .24), rgba(255, 255, 255, .04) 70%);
  border: 1px solid rgba(255, 255, 255, .2);
}
/* The illustration is decorative: as a background it simply doesn't show if the file is missing. */
.hero-art-img { position: absolute; inset: 0; background: url('/img/hero.svg') center / contain no-repeat; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 40px; padding-top: 72px; padding-bottom: 88px; }
  .hero-art { display: block; }
}

/* ---------- Offer banners ---------- */
.home-offers { position: relative; z-index: 2; margin-top: -28px; }
.offer-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 2px 2px 8px; scrollbar-width: none;
}
.offer-grid::-webkit-scrollbar { display: none; }
.offer-grid.is-single { grid-auto-columns: 100%; }
@media (min-width: 768px) {
  .offer-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); overflow: visible; }
}
.offer-card {
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.offer-card:not(.has-image) { background: linear-gradient(135deg, var(--brand-50), #fff 65%); }
.offer-card:hover { box-shadow: var(--shadow-lg); }
.offer-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: var(--brand-50); }
.offer-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
@media (min-width: 768px) {
  /* Image banners sit beside their text so cards in the same row keep a similar height. */
  .offer-card.has-image { flex-direction: row; }
  .offer-card.has-image .offer-img { flex: 0 0 40%; width: 40%; height: auto; min-height: 180px; max-height: 260px; aspect-ratio: auto; object-fit: cover; }
  .offer-body { justify-content: center; padding: 22px 24px; }
  .offer-link { margin-top: 6px; }
}
.offer-chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--radius-pill);
  background: var(--brand-600); color: #fff; font-size: .78rem; font-weight: 700;
}
.offer-title { font-size: 1.2rem; margin: 2px 0 0; }
.offer-desc { margin: 0; color: var(--ink-2); font-size: .93rem; white-space: pre-line; }
.offer-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: .8rem; color: var(--muted); }
.offer-meta span + span::before { content: '·'; margin-right: 12px; color: var(--brand-300); }
.offer-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.offer-link::after { content: ''; position: absolute; inset: 0; } /* whole card is clickable */

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .product-grid { gap: 18px; } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

.product-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (hover: hover) {
  .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
}
.pc-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--brand-50); }
/* Product photos are shown WHOLE (contain, never cropped): the imported supplier photos are landscape (1212×961). */
.pc-media .pc-img, .pc-media .pc-img2 {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--photo-bg);
  transition: opacity .35s ease, transform .5s ease;
}
.pc-media .pc-img2 { opacity: 0; }
@media (hover: hover) {
  .product-card:hover .pc-img2 { opacity: 1; }
  .product-card:hover .pc-img { transform: scale(1.04); }
}
.pc-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .45; }
.pc-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.pc-badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.pc-badge-soldout { background: rgba(15, 23, 42, .82); color: #fff; }
.product-card.is-sold-out .pc-img { filter: grayscale(.45); opacity: .75; }
.pc-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; }
@media (min-width: 640px) { .pc-body { padding: 14px 16px 16px; } }
.pc-name {
  margin: 0; font-family: var(--font-body); font-size: .93rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.pc-name a { color: var(--ink); }
.pc-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* whole card links to the product */
.pc-name a:focus-visible { outline: none; }
.product-card:has(.pc-name a:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.pc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-top: 2px; }
.pc-price .price { font-size: 1.08rem; }
.pc-price .price-old { margin-left: 0; font-size: .82rem; }
.pc-from { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pc-bs { font-size: .78rem; color: var(--muted); }
.pc-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; }
.pc-colors-more { font-size: .72rem; font-weight: 600; line-height: 1; color: var(--muted); }
.pc-models { margin-top: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); } /* "3 modelos" (decision 0023) */
.pc-actions { position: relative; z-index: 2; margin-top: auto; padding-top: 10px; }
.pc-actions .btn { min-height: 44px; }
@media (min-width: 768px) { .pc-actions .btn { min-height: 40px; } }
@media (max-width: 380px) { .pc-actions .btn { padding: 6px 10px; font-size: .84rem; } }

/* Loading state for add-to-cart buttons */
.pc-add-btn.is-loading, .buy-btn.is-loading, .sticky-buy-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.pc-add-btn.is-loading > *, .buy-btn.is-loading > *, .sticky-buy-btn.is-loading > * { visibility: hidden; }
.pc-add-btn.is-loading::after, .buy-btn.is-loading::after, .sticky-buy-btn.is-loading::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: bb-spin .7s linear infinite;
}
@keyframes bb-spin { to { transform: rotate(360deg); } }

/* ---------- Home: empty catalog ---------- */
.home-empty { padding: 32px 0; }

/* ---------- Home: category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1080px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-tile {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 10px 12px 10px 10px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-tile:hover { color: var(--ink); border-color: var(--brand-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-media {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-100); color: var(--brand-600);
}
.cat-media img { width: 100%; height: 100%; object-fit: contain; background: var(--photo-bg); }
.cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cat-name { font-family: var(--font-display); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.cat-count { font-size: .8rem; color: var(--muted); }
svg.cat-arrow { display: none; color: var(--brand-400); }
@media (max-width: 639px) {
  /* Phones: stack image and text so category names never break mid-word */
  .cat-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 10px 10px 12px; }
  .cat-media { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .cat-body { padding: 0 4px; }
  .cat-name { overflow-wrap: normal; word-break: normal; hyphens: auto; }
}
@media (min-width: 640px) {
  .cat-media { width: 72px; height: 72px; }
  svg.cat-arrow { display: inline-block; }
}

/* ---------- Home: how to buy ---------- */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 768px) { .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.how-step { position: relative; padding: 22px 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.how-step-icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600);
}
.how-step-num { position: absolute; top: 16px; right: 20px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--brand-100); }
.how-step h3 { margin-bottom: 6px; }
.how-step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Home: pay-on-delivery band ---------- */
.home-cod { padding-top: 8px; padding-bottom: 8px; }
.cod-band {
  --focus-ring: #fff;
  position: relative; overflow: hidden;
  display: grid; gap: 26px; padding: 28px 20px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(147, 197, 253, .35), transparent 60%),
    linear-gradient(135deg, var(--brand-800), var(--brand-600));
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .cod-band { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; padding: 48px; } }
.cod-band h2 { color: #fff; }
.cod-copy p { color: rgba(239, 246, 255, .92); }
.cod-me { margin: 4px 0 18px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.cod-me p { color: #fff; }
.cod-me-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 700; }
.progress-light { margin-bottom: 8px; background: rgba(255, 255, 255, .2); }
.progress-light > span { background: linear-gradient(90deg, #fff, var(--brand-200)); }
.cod-ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cod-ladder li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .97); color: var(--ink);
  box-shadow: 0 8px 24px rgba(23, 37, 84, .18);
}
@media (min-width: 900px) {
  .cod-ladder li:nth-child(2) { margin-left: 20px; }
  .cod-ladder li:nth-child(3) { margin-left: 40px; }
}
.cod-ladder-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-100); color: var(--brand-700);
}
.cod-ladder strong { display: block; font-family: var(--font-display); line-height: 1.25; }
.cod-ladder small { display: block; margin-top: 2px; font-size: .85rem; color: var(--muted); }

/* ---------- Home: trust badges & rate ---------- */
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 960px) { .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.trust-item { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line-2); }
@media (min-width: 640px) { .trust-item { flex-direction: row; align-items: flex-start; } }
.trust-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm);
}
.trust-icon-wa { color: #1da851; }
.trust-item strong { display: block; font-size: .95rem; line-height: 1.3; }
.trust-item small { display: block; margin-top: 3px; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.rate-note {
  margin-top: 20px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px; border-radius: 16px; text-align: center;
  background: var(--brand-50); border: 1px dashed var(--brand-200); color: var(--ink-2); font-size: .9rem;
}
.rate-note .icon { color: var(--brand-600); }
.rate-note strong { color: var(--brand-800); }

/* ---------- Shop ---------- */
.shop-head { padding-bottom: 4px; }
.shop-count { margin: 0; }
.shop-toolbar { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 12px; }
@media (min-width: 768px) { .shop-toolbar { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; } }
.shop-search { flex: 1; display: flex; gap: 8px; max-width: 560px; }
.shop-search-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.shop-search-field .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.shop-search-field input { padding-left: 42px !important; border-radius: var(--radius-pill) !important; }
.shop-search-btn { flex-shrink: 0; }
.shop-sort { display: flex; align-items: center; gap: 8px; }
.shop-sort label { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.shop-sort select { flex: 1; min-width: 0; border-radius: var(--radius-pill); }
@media (min-width: 768px) { .shop-sort select { flex: 0 0 auto; width: auto; min-width: 210px; } }
.chip-row {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 -16px 8px; padding: 4px 16px 10px;
}
.chip-row::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chip-row { flex-wrap: wrap; overflow: visible; margin: 0 0 8px; padding: 4px 0 10px; } }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: .9rem; font-weight: 600; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
@media (min-width: 768px) { .chip { min-height: 38px; } }
.chip:hover { border-color: var(--brand-300); color: var(--brand-800); }
.chip-row .chip:focus-visible, .help-toc a:focus-visible, .gallery-thumb:focus-visible { outline-offset: -3px; } /* scrollers clip */
.chip.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.chip-count { padding: 1px 7px; border-radius: var(--radius-pill); background: var(--brand-50); color: var(--brand-700); font-size: .74rem; font-weight: 700; }
.chip.is-active .chip-count { background: rgba(255, 255, 255, .2); color: #fff; }
.shop-filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--ink-2); }
.chip-clear { min-height: 36px; padding: 4px 12px; font-size: .82rem; }
.shop-empty { padding: 40px 0 24px; }
.shop-empty-icon {
  width: 76px; height: 76px; border-radius: 50%; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600);
}

/* ---------- Product page ---------- */
.product-page { padding-top: 16px; }
.product-crumbs { margin-bottom: 14px; }
.product-crumbs span[aria-current] { max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.product-layout { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .product-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 16px); }
}
.gallery { min-width: 0; }
.gallery-main {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 24px; background: var(--brand-50); border: 1px solid var(--line-2);
}
@media (max-width: 599px) { .gallery-main { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; } }
.gallery-img { width: 100%; height: 100%; object-fit: contain; background: var(--photo-bg); } /* the whole photo, never cut */
.gallery-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .45; }
.gallery-badge { position: absolute; top: 14px; left: 14px; z-index: 1; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow);
}
.gallery-nav:hover { background: #fff; color: var(--brand-700); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter {
  position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(23, 37, 84, .72); color: #fff; font-size: .78rem; font-weight: 600;
}
@media (min-width: 900px) { .gallery-counter { display: none; } }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumb {
  flex: 0 0 auto; width: 72px; height: 72px; overflow: hidden;
  border-radius: 14px; border: 2px solid transparent; background: var(--brand-50); opacity: .72;
  transition: opacity .15s, border-color .15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--photo-bg); }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { border-color: var(--primary); opacity: 1; }
/* Photos per color / model (decision 0023): while scripts run only the chosen option's photos + the shared ones are in the
   strip (the others get .is-other; a strip with one photo gets .is-single); without scripts every photo is listed with the
   name of its color / model, and the counter (which counts the chosen option's photos) hides itself. A product sold out in
   every option lists all its photos with their names (.is-captioned). */
.gallery-thumb { position: relative; }
.gallery-thumb.is-other, .gallery-thumbs.is-single { display: none; }
.gallery-thumb-cap {
  display: none; position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px;
  background: rgba(23, 37, 84, .72); color: #fff; font-size: .66rem; font-weight: 600; line-height: 1.3;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery-thumbs.is-captioned .gallery-thumb-cap { display: block; }
@media (scripting: none) {
  .gallery-thumb.is-other { display: block; }
  .gallery-thumbs.is-single { display: flex; }
  .gallery-thumb-cap { display: block; }
  .gallery-by-option .gallery-counter { display: none; }
}
.gallery-placeholder[data-gallery-empty] { flex-direction: column; gap: 12px; padding: 16px; opacity: 1; text-align: center; }
.gallery-placeholder[data-gallery-empty] img { opacity: .45; }
.gallery-placeholder-text { font-weight: 600; color: var(--ink-2); }

.product-info { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.product-cat { margin-bottom: -8px; }
.product-title { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); overflow-wrap: anywhere; }
.product-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price-xl { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.1rem); color: var(--brand-800); }
.product-price .price-old { margin-left: 0; font-size: 1.05rem; }
/* "-30%" next to the price: the chosen size / color / model costs less than the product's reference price (decision 0026). */
.product-price .price-off { align-self: center; }
.product-bs { margin: 4px 0 0; font-size: .95rem; font-weight: 500; color: var(--ink-2); }

.buy-form { display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line-2); }
.variant-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.variant-picker legend { padding: 0; margin-bottom: 10px; }
.variant-current { color: var(--brand-700); font-weight: 700; }
.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill { position: relative; cursor: pointer; }
.variant-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.variant-pill-body {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 54px; min-height: 46px; padding: 8px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: .92rem; font-weight: 600; line-height: 1.2;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.variant-pill:hover .variant-pill-body { border-color: var(--brand-300); }
.variant-pill input:checked + .variant-pill-body { border-color: var(--primary); background: var(--brand-50); color: var(--brand-800); box-shadow: 0 0 0 1px var(--primary) inset; }
.variant-pill input:focus-visible + .variant-pill-body { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.variant-pill.is-disabled { cursor: not-allowed; }
.variant-pill.is-disabled .variant-pill-body { color: var(--muted); background: var(--gray-bg); border-style: dashed; }
.variant-pill.is-disabled .variant-pill-name { text-decoration: line-through; }
.variant-pill-note { font-size: .66rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
/* Price per option in the plain list when options cost different amounts (decision 0026; the list is what shows without JS). */
.variant-pill-price { font-size: .8rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.variant-pill-off { color: var(--brand-700); font-weight: 700; }
.variant-pill.is-disabled .variant-pill-price, .variant-pill.is-disabled .variant-pill-off { color: var(--muted); }
/* A color / model sold out in every size while the product has stock (owner 2026-09-29): it can be tapped to look at it
   (photos), so it keeps the pointer and no line-through — only the "Agotado" mark and a quieter look. Chosen, the checked
   style still draws its border. */
.variant-pill.is-soldout .variant-pill-body { color: var(--muted); background: var(--gray-bg); border-style: dashed; }
.variant-pill.is-soldout input:checked + .variant-pill-body { color: var(--brand-800); background: var(--brand-50); border-style: solid; }
/* Color + size choosers (products with colors). The plain list of combinations (.opt-fallback) is what the form posts;
   while scripts run it is driven by the choosers and hidden, without scripts it is shown instead of them. Before the store
   script has run (slow connection, blocked) the choosers are shown and the server reads them (routes/cart.js). */
.opt-fallback { display: none; }
.opt-chooser { display: flex; flex-direction: column; gap: 16px; }
@media (scripting: none) {
  .opt-fallback { display: block; }
  .opt-chooser { display: none; }
}
.opt-chooser .variant-pill-name, .opt-fallback .variant-pill-name { display: inline-flex; align-items: center; gap: 8px; }
.color-pill .variant-pill-body { padding-left: 12px; }
/* Model pills (decision 0023): the model's own photo instead of a dot, then its short name ("2", "Flores"). */
.model-pill .variant-pill-body { min-height: 48px; padding: 4px 14px 4px 4px; }
.model-pill .variant-pill-name { gap: 10px; }
.model-pill .variant-pill-name > span:only-child { padding-left: 10px; }
.opt-thumb { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: var(--photo-bg); }
.variant-pill.is-disabled .opt-thumb, .variant-pill.is-soldout .opt-thumb { opacity: .45; }
.variant-pill.is-soldout input:checked + .variant-pill-body .opt-thumb { opacity: .8; }
.color-dot {
  display: inline-block; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, .3); background: var(--gray-bg);
}
.color-dot.is-none { background: repeating-linear-gradient(135deg, #fff 0 3px, var(--line) 3px 6px); }
.color-dot-sm { width: 14px; height: 14px; }
.variant-pill.is-disabled .color-dot, .variant-pill.is-soldout .color-dot { opacity: .45; }
.stock-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; font-weight: 600; color: var(--amber); }
.stock-note.is-out { color: var(--red); }
.stock-note-icon { display: inline-flex; flex-shrink: 0; }
.buy-row { display: flex; align-items: stretch; gap: 12px; }
.buy-row .qty { flex-shrink: 0; }
.buy-row .qty button { width: 42px; height: 52px; }
.buy-row .qty input[type="number"] { min-height: 52px !important; width: 44px !important; }
.buy-btn { flex: 1; min-width: 0; }
@media (max-width: 420px) {
  /* The -/+ buttons keep a 44px tap target; the add-to-cart button takes the remaining width (its text may wrap). */
  .buy-form { padding: 16px 14px; }
  .buy-row { gap: 10px; }
  .buy-row .qty button { width: 44px; }
  .buy-row .qty input[type="number"] { width: 38px !important; }
  .buy-btn { padding-left: 12px; padding-right: 12px; white-space: normal; }
  .buy-btn .icon { display: none; }
}
.buy-hint { display: flex; align-items: center; gap: 6px; margin: -6px 0 0; }
.product-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.product-perks li { display: flex; align-items: flex-start; gap: 12px; font-size: .93rem; color: var(--ink-2); }
.product-perks li > span:last-child { padding-top: 6px; }
.product-perk-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600);
}
.wa-ask { --btn-ink: #0d7a3e; --btn-line: #b7ebcb; } /* WhatsApp green (not the brand), 5.4:1 on white */
.wa-ask:hover { --btn-bg: #effbf3; color: #0a5c2f; border-color: #7acda2; }
.product-desc-wrap { padding-top: 18px; border-top: 1px solid var(--line); }
.product-desc-title { font-size: 1.1rem; }
.product-desc { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.7; color: var(--ink-2); }
.related { padding-bottom: 8px; }

/* Sticky "add to cart" bar (phones / tablets) */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .25s ease;
}
.sticky-buy.is-hidden { transform: translateY(110%); }
.sticky-buy-inner { display: flex; align-items: center; gap: 12px; }
.sticky-buy-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-buy-name { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-info .price { font-size: 1.15rem; }
.sticky-buy-btn { flex-shrink: 0; }
body.page-product.has-sticky-bar { padding-bottom: 76px; }
body.page-product.has-sticky-bar .toast-region { bottom: 92px; }
@media (min-width: 900px) {
  .sticky-buy { display: none; }
  body.page-product.has-sticky-bar { padding-bottom: 0; }
  body.page-product.has-sticky-bar .toast-region { bottom: 20px; }
  body.page-product.has-sticky-bar .wa-float { bottom: 18px; }
}

/* ---------- Help page ---------- */
.help-head .lead { max-width: 62ch; font-size: 1.05rem; }
.help-layout { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 960px) { .help-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; } }
.help-toc {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 -16px; padding: 4px 16px 8px;
}
.help-toc::-webkit-scrollbar { display: none; }
.help-toc a {
  flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: #fff;
  color: var(--ink-2); font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.help-toc a:hover { border-color: var(--brand-300); color: var(--brand-800); }
@media (min-width: 768px) { .help-toc { margin: 0; padding: 4px 0 8px; flex-wrap: wrap; overflow: visible; } }
@media (min-width: 960px) {
  .help-toc {
    position: sticky; top: calc(var(--header-h) + 24px);
    flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 12px;
    border: 1px solid var(--line); border-radius: 20px; background: var(--bg-soft);
  }
  .help-toc a { min-height: 40px; border: 0; border-radius: 12px; background: transparent; white-space: normal; }
  .help-toc a:hover { background: #fff; }
}
.help-content { min-width: 0; }
.help-section { scroll-margin-top: calc(var(--header-h) + 16px); padding: 28px 0; border-bottom: 1px solid var(--line-2); }
.help-section:first-child { padding-top: 8px; }
.help-section:last-child { border-bottom: 0; }
.help-section h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
.help-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-100); color: var(--brand-700);
}
.help-section > p { color: var(--ink-2); }
.help-steps { list-style: none; counter-reset: help-step; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.help-steps li { counter-increment: help-step; position: relative; min-height: 34px; padding-left: 48px; }
.help-steps li::before {
  content: counter(help-step);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 700;
}
.help-steps li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 38px; bottom: -12px; width: 2px; background: var(--brand-100); }
.help-steps strong { display: block; padding-top: 5px; font-family: var(--font-display); font-size: 1.02rem; }
.help-steps p { margin: 2px 0 0; color: var(--ink-2); }
.help-steps-compact li p { margin: 0; padding-top: 5px; }
.help-callout {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-900); font-size: .93rem;
}
.help-callout .icon { margin-top: 2px; color: var(--brand-600); }
.rate-card {
  --focus-ring: #fff;
  display: grid; gap: 16px; margin-bottom: 12px; padding: 20px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); /* darker than the cod band: its light example box needs ≥ 4.5:1 */
}
@media (min-width: 640px) { .rate-card { grid-template-columns: 1fr 1fr; align-items: center; } }
.rate-card > div { display: flex; flex-direction: column; gap: 2px; }
.rate-card-label { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-50); }
.rate-card-value { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; }
.rate-card-date { font-size: .82rem; color: rgba(239, 246, 255, .8); }
.rate-card-example { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
.cod-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
@media (max-width: 767px) { .cod-fact:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 768px) { .cod-facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.cod-fact { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 18px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.cod-fact-label { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-800); }
.cod-fact-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1.15; color: var(--brand-700); overflow-wrap: anywhere; }
.cod-fact-sub { font-size: .82rem; color: var(--muted); }
.help-example { margin: 16px 0; padding: 14px 16px; border-left: 4px solid var(--brand-400); border-radius: 0 14px 14px 0; background: var(--bg-soft); }
.help-example-label {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px;
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700);
}
.cod-table { max-width: 520px; margin: 16px 0; }
.help-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; padding-left: 20px; color: var(--ink-2); }
.help-list li::marker { color: var(--brand-500); }
.cod-status-card { padding: 18px; border-radius: 18px; border: 1.5px solid var(--brand-200); background: #fff; box-shadow: var(--shadow-sm); }
.cod-status-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--font-display); font-weight: 700; color: var(--brand-800); }
.split-visual { display: flex; height: 44px; margin: 16px 0 4px; border-radius: 14px; overflow: hidden; font-size: .82rem; font-weight: 700; }
.split-visual span { min-width: 0; display: flex; align-items: center; justify-content: center; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split-now { background: var(--brand-100); color: var(--brand-800); }
.split-later { background: var(--brand-600); color: #fff; }
.ship-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .ship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .ship-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ship-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.ship-card-head { display: flex; align-items: center; gap: 10px; }
.ship-card h3 { margin: 0; font-size: 1.02rem; }
.ship-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600);
}
.ship-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.ship-price strong { font-family: var(--font-display); color: var(--brand-800); }
.ship-free { font-size: .82rem; font-weight: 600; color: var(--brand-700); }
.ship-desc { margin: 0; font-size: .9rem; color: var(--ink-2); white-space: pre-line; }
.ship-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.faq-item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 14px 18px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-700); font-size: 1.2rem; font-weight: 600;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { border-radius: 16px; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); }
.contact-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card {
  display: flex; align-items: center; gap: 14px; min-width: 0;
  padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
a.contact-card:hover { color: var(--ink); border-color: var(--brand-300); box-shadow: var(--shadow); }
.contact-card .icon { color: var(--brand-600); }
.contact-wa .icon { color: #1da851; }
.contact-card > span { min-width: 0; }
.contact-card strong { display: block; }
.contact-card small { display: block; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Store policies (/terms, /privacy, /returns) + checkout acceptance line ---------- */
.policy-layout { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 960px) { .policy-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; } }
.policy-nav {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 -16px; padding: 4px 16px 8px;
}
.policy-nav::-webkit-scrollbar { display: none; }
.policy-nav a {
  flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: #fff;
  color: var(--ink-2); font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.policy-nav a:hover { border-color: var(--brand-300); color: var(--brand-800); }
.policy-nav a.is-active { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); }
@media (min-width: 768px) { .policy-nav { margin: 0; padding: 4px 0 8px; flex-wrap: wrap; overflow: visible; } }
@media (min-width: 960px) {
  .policy-nav {
    position: sticky; top: calc(var(--header-h) + 24px);
    flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 12px;
    border: 1px solid var(--line); border-radius: 20px; background: var(--bg-soft);
  }
  .policy-nav a { min-height: 40px; border: 0; border-radius: 12px; background: transparent; white-space: normal; }
  .policy-nav a:hover, .policy-nav a.is-active { background: #fff; }
}
.policy-content { min-width: 0; max-width: 72ch; color: var(--ink-2); overflow-wrap: anywhere; }
.policy-content h2 { margin: 28px 0 10px; font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); color: var(--ink); }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { margin: 0 0 14px; white-space: pre-line; }
.policy-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding-left: 20px; }
.policy-list li::marker { color: var(--brand-500); }
.policy-content .policy-questions {
  display: flex; align-items: flex-start; gap: 10px; margin: 28px 0 0; padding: 14px 16px; border-radius: 16px;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-900); white-space: normal;
}
.policy-questions .icon { flex-shrink: 0; margin-top: 2px; color: var(--brand-600); }
.policy-questions a { font-weight: 600; }
.policy-accept { margin: 12px 0 10px; font-size: .8rem; line-height: 1.45; color: var(--muted); text-align: center; }
.policy-accept a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* 22-menu-sections.css */
/* ==========================================================================
   Store menu sections (decision 0029, partials/store-header.ejs):
   - phones / tablets: in the menu drawer a section (<details class="nav-sec">) opens to "Todo en <sección>" + its categories;
   - computers (960 px and up): a bar under the header (.msec-bar), each section a drop-down (<details class="msec-dd">).
   The bar is NOT part of the sticky header (the sticky offsets keep using --header-h).
   ========================================================================== */

/* ---------- Phone / tablet menu drawer ---------- */
.nav-sec { flex-shrink: 0; }
.nav-sec-sum {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 12px 12px 12px 24px; border-radius: 12px;
  font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none;
}
.nav-sec-sum::-webkit-details-marker { display: none; }
.nav-sec-sum::marker { content: ''; }
.nav-sec-sum:hover, .nav-sec-sum.is-active { background: var(--brand-50); color: var(--brand-800); }
.nav-sec-chev { color: var(--muted); transition: transform .2s ease; }
.nav-sec[open] > .nav-sec-sum .nav-sec-chev { transform: rotate(180deg); }
.nav-sec-list { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px; }
.nav-sub {
  display: flex; align-items: center; min-height: 44px; padding: 10px 12px 10px 40px; border-radius: 12px;
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
}
.nav-sub:hover, .nav-sub.is-active { background: var(--brand-50); color: var(--brand-800); }
.nav-sub-all { font-weight: 600; color: var(--ink); }

/* ---------- Computer bar under the header ---------- */
.msec-bar { display: none; }
@media (min-width: 960px) {
  .site-nav > .nav-sec { display: none; }
  .msec-bar { display: block; position: relative; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line-2); }
  .msec-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding-top: 2px; padding-bottom: 2px; }
  .msec-dd { position: relative; }
  .msec-link {
    list-style: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 14px;
    border-radius: var(--radius-pill); font-weight: 500; font-size: .95rem; color: var(--ink-2); white-space: nowrap;
    cursor: pointer; user-select: none;
  }
  .msec-link::-webkit-details-marker { display: none; }
  .msec-link::marker { content: ''; }
  .msec-link:hover, .msec-link.is-active, .msec-dd[open] > .msec-link { background: var(--brand-50); color: var(--brand-800); }
  .msec-chev { color: var(--muted); transition: transform .2s ease; }
  .msec-dd[open] .msec-chev { transform: rotate(180deg); }
  .msec-panel {
    position: absolute; left: 0; top: calc(100% + 6px);
    min-width: 240px; max-width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow-y: auto;
    display: flex; flex-direction: column; gap: 2px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  }
  .msec-panel.is-flip { left: auto; right: 0; } /* 22-menu-sections.js: a drop-down near the right edge opens to the left */
  .msec-sub {
    display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--ink-2); font-weight: 500;
  }
  .msec-sub:hover, .msec-sub[aria-current="page"] { background: var(--brand-50); color: var(--brand-800); }
  .msec-sub:focus-visible { outline-offset: -3px; } /* the panel scrolls (clips outside outlines) */
  .msec-sub-all { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-bottom: 4px; }
}

/* 25-favorites.css */
/* Bloom Buy — favorites (the heart, decision 0027): card / product-page heart, header link + badge, "Mis favoritos" page. */

.fav-form { margin: 0; }
.fav-btn {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--brand-700); cursor: pointer;
}
.fav-btn .icon { position: relative; z-index: 1; transition: transform .15s ease; }
.fav-btn:hover { color: var(--brand-800); }
.fav-btn:hover .icon { transform: scale(1.1); }
.fav-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.fav-btn.is-saved, .fav-btn.is-saved:hover { color: var(--heart); } /* the owner chose red (2026-09-30) */
.fav-btn.is-saved svg { fill: currentColor; }
.fav-btn.is-loading { opacity: .6; pointer-events: none; }

/* On a card: over the photo, top right (badges are top left). The white circle is drawn by ::before, the tap target stays 44px. */
.fav-on-card { position: absolute; top: 4px; right: 4px; z-index: 2; }
.fav-on-card .fav-btn::before {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); box-shadow: 0 1px 4px rgba(15, 23, 42, .18);
}
.product-card { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Product page: next to the title. */
.fav-title-row { display: flex; align-items: flex-start; gap: 8px; }
.fav-title-row .product-title { flex: 1; min-width: 0; }
.fav-on-page .fav-btn { border: 1.5px solid var(--line); margin-top: 2px; }
.fav-on-page .fav-btn:hover { border-color: var(--brand-300); background: var(--brand-50); }

/* Header link + count (the badge reuses .cart-badge). */
.fav-badge { background: var(--brand-600); }
.fav-count-pill {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-100); color: var(--brand-800); font-size: .75rem; font-weight: 700;
}
.fav-count-pill[hidden], .fav-badge[hidden] { display: none; }
/* Small phones: menu, logo, account, heart and cart need the room; the language link stays in the menu drawer. */
@media (max-width: 399px) {
  .header-actions .lang-switch { display: none; }
}

/* "Mis favoritos" page */
.fav-guest-note a { font-weight: 600; }
.fav-unavailable {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin: 0 0 16px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--radius);
}
.fav-grid { margin-top: 8px; }

/* Favorites alerts (decision 0030): note on "Mis favoritos", the switch in the profile, the "stop these emails" page. */
.fav-alerts-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
.fav-alerts-note .icon { flex-shrink: 0; margin-top: 2px; color: var(--brand-700); }
/* "Cambiar" / "Activarlos": a 44px tap target that keeps the line compact (the negative margin, like .cc-summary-head a). */
.fav-alerts-note a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; padding: 0 4px; font-weight: 600; vertical-align: middle; }
.fav-alerts-check { min-height: 44px; align-items: flex-start; padding: 10px 0; }
.fav-alerts-check input { flex-shrink: 0; margin-top: 2px; }
.fav-alerts-card { scroll-margin-top: calc(var(--header-h) + 12px); }
.fav-alerts-off .form-stack { margin-top: 8px; }

/* 26-share.css */
/* Bloom Buy — Share button on the product page (decision 0028, partials/share-button.ejs): a <details> menu next to the
   heart. Phones show the icon only (its name stays for screen readers); wide screens show "Compartir" too. */

.share { position: relative; flex-shrink: 0; }
.share-btn {
  list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 44px; margin-top: 2px; padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--brand-700); font-weight: 600; font-size: .95rem; cursor: pointer; user-select: none;
}
.share-btn::-webkit-details-marker { display: none; }
.share-btn::marker { content: ''; }
.share-btn:hover, .share[open] > .share-btn { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-800); }
.share-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.share-btn .icon { flex-shrink: 0; }
.share-btn-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (min-width: 1080px) {
  .share-btn { width: auto; padding: 0 16px 0 13px; }
  .share-btn-text { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
}

/* The menu opens under the button, lined up with the right edge of the title row (the button is its last item). */
.share-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  width: min(300px, calc(100vw - 32px)); padding: 8px; display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.share-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink);
  font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
}
.share-item:hover { background: var(--brand-50); color: var(--ink); }
.share-item:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.share-item .icon { flex-shrink: 0; color: var(--brand-700); }
.share-item-wa .icon { color: #0d7a3e; } /* WhatsApp green (not the brand), like "Pregúntanos por WhatsApp" */
.share-url-label { margin: 8px 4px 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
/* .share-url: the store's normal text box (00-base.css; 16px so phones don't zoom in when it is tapped). */

/* 30-cart-checkout.css */
/* ==========================================================================
   Cart & checkout (all classes prefixed cc-)
   ========================================================================== */

.cc-page { padding-bottom: 32px; }
.cc-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.cc-title-count { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.cc-subtitle { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0; font-size: .95rem; }
.cc-subtitle .icon { color: var(--primary); }
.cc-notices { margin-top: 8px; }

/* Elements only needed without JavaScript (JS marks the page root with data-enhanced). */
[data-enhanced] .js-hide { display: none !important; }

/* ---------- Two-column layout: content + sticky summary ---------- */
.cc-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 12px; }
.cc-main { min-width: 0; }
@media (min-width: 960px) {
  .cc-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
  .cc-aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- Cart lines ---------- */
.cc-lines {
  list-style: none; margin: 0; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.cc-line {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  grid-template-areas: "media info total" "media controls controls";
  gap: 10px 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line-2);
  transition: opacity .2s;
}
.cc-line:last-child { border-bottom: 0; }
.cc-line.is-busy { opacity: .55; }
.cc-line-media { grid-area: media; align-self: start; }
.cc-line-media img {
  width: 80px; height: 80px; object-fit: contain;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--photo-bg);
}
.cc-line-media img.cc-img-placeholder { object-fit: contain; padding: 14px; background: var(--brand-50); }
.cc-line-info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-line-name { font-weight: 600; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.cc-line-name:hover { color: var(--primary); }
.cc-line-variant { font-size: .85rem; color: var(--muted); }
.cc-line-unit { font-size: .85rem; color: var(--ink-2); }
.cc-line-stock { font-size: .78rem; font-weight: 600; color: var(--amber); }
.cc-line-controls { grid-area: controls; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-qty-form { display: flex; align-items: center; gap: 8px; }
.cc-line .qty button { width: 44px; height: 44px; }
.cc-line .qty input[type="number"] { min-height: 44px !important; width: 46px !important; font-weight: 600; }
.cc-remove { color: var(--muted); }
.cc-remove:hover { color: var(--red); background: var(--red-bg); }
.cc-line-total { grid-area: total; text-align: right; font-size: 1.02rem; white-space: nowrap; }
@media (min-width: 640px) {
  .cc-line {
    grid-template-columns: 96px minmax(0, 1fr) auto 104px;
    grid-template-areas: "media info controls total";
    align-items: center;
    padding: 18px 20px;
  }
  .cc-line-media { align-self: center; }
  .cc-line-media img { width: 96px; height: 96px; }
}
.cc-continue { margin-top: 12px; }

/* ---------- Summary card (cart + checkout) ---------- */
.cc-summary .card-title { margin-bottom: 12px; }
.cc-sum { margin: 14px 0 0; }
.cc-sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: .95rem; }
.cc-sum-row dt { color: var(--ink-2); min-width: 0; }
.cc-sum-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-sum-row.is-discount dd { color: var(--green-700); }
.cc-sum-note {
  display: inline-block; max-width: 100%; margin-left: 4px; padding: 1px 8px; border-radius: var(--radius-pill);
  background: var(--brand-100); color: var(--brand-800); font-size: .76rem; font-weight: 600; vertical-align: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cc-sum-note:empty { display: none; }
.cc-cart .cc-sum-row dd[data-sum="shipping"] { color: var(--muted); font-weight: 500; font-size: .88rem; white-space: normal; text-align: right; }
.cc-sum-total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; }
.cc-sum-total dt { color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.cc-sum-total dd { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.cc-sum-bs { text-align: right; font-size: .85rem; color: var(--muted); margin: 2px 0 16px; }
.cc-checkout-btn .icon, .cc-place-order .icon { opacity: .9; }

/* Nudge ("add $X more…") */
.cc-nudge { background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.cc-nudge-text { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: .9rem; color: var(--brand-900); }
.cc-nudge-text .icon { color: var(--primary); margin-top: 2px; }
.cc-nudge-title { display: block; font-size: .8rem; font-weight: 600; color: var(--brand-700); }
.cc-nudge-title:empty { display: none; }
.cc-nudge .progress { height: 8px; background: #fff; }
.cc-nudge .progress > span { transition: width .3s ease; }

/* Coupon */
.cc-coupon { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 12px 0; }
.cc-coupon-details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  min-height: 44px; font-weight: 600; color: var(--primary);
}
.cc-coupon-details > summary::-webkit-details-marker { display: none; }
.cc-coupon-details > summary:hover { color: var(--primary-hover); }
.cc-coupon-form { display: flex; gap: 8px; margin-top: 8px; }
.cc-coupon-form input { min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.cc-coupon-form input::placeholder { text-transform: none; letter-spacing: 0; }
.cc-coupon-form .btn { flex-shrink: 0; }
.cc-coupon-chip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-coupon-chip > .icon { color: var(--primary); }
.cc-coupon-chip.is-invalid > .icon { color: var(--amber); }
.cc-coupon-code { font-weight: 700; letter-spacing: .05em; }
.cc-coupon-remove { margin-left: auto; }
.cc-coupon-remove .link-btn { min-height: 44px; padding: 0 4px; }
.cc-coupon-error { margin: 8px 0 0; }
.cc-coupon-ok { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--green-700); font-weight: 600; }

/* Guest note + trust list */
.cc-guest-note { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-soft); }
.cc-guest-note p { margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.cc-guest-note .icon { margin-top: 2px; color: var(--primary); }
.cc-guest-links { margin-top: 2px !important; padding-left: 24px; font-weight: 600; align-items: center !important; }
.cc-guest-links a { display: inline-flex; align-items: center; min-height: 44px; }
.cc-trust { list-style: none; padding: 0 4px; margin: 16px 0 0; display: grid; gap: 10px; font-size: .85rem; color: var(--ink-2); }
.cc-trust li { display: flex; gap: 10px; align-items: flex-start; }
.cc-trust .icon { color: var(--primary); margin-top: 1px; }
.cc-trust a { font-weight: 600; white-space: nowrap; }

/* Empty cart */
.cc-empty { padding: 32px 0 56px; }
.cc-empty-icon {
  width: 88px; height: 88px; border-radius: 50%; margin-bottom: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--primary); box-shadow: inset 0 0 0 1px var(--brand-100);
}
.cc-empty .btn { margin-top: 8px; }

/* Sticky checkout bar on phones */
.cc-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
}
.cc-sticky-total { display: flex; flex-direction: column; line-height: 1.2; }
.cc-sticky-total strong { font-family: var(--font-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
@media (max-width: 959px) {
  body.page-cart.has-sticky-bar .site-footer { padding-bottom: 76px; }
}
@media (min-width: 960px) {
  .cc-sticky-bar { display: none; }
  body.page-cart.has-sticky-bar .wa-float { bottom: 18px; }
}

/* ---------- Checkout ---------- */
.cc-form-error { margin-top: 8px; }
.cc-form-error:focus { outline: none; box-shadow: var(--focus); }
.cc-checkout .cc-main { display: flex; flex-direction: column; gap: 16px; }
.cc-section { padding: 18px; }
@media (min-width: 768px) { .cc-section { padding: 24px 28px; } }
.cc-section-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 1.12rem; margin-bottom: 14px; }
.cc-step {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-family: var(--font-body); font-size: .85rem; font-weight: 700;
}
.cc-optional { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); }
.cc-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cc-legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.cc-choices { display: grid; gap: 10px; }
.cc-choice { min-height: 56px; }
.cc-choice > input[type="radio"] { flex-shrink: 0; }
.cc-choice .choice-title { align-items: center; flex-wrap: wrap; cursor: pointer; }
.cc-choice-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cc-choice-name .icon { color: var(--primary); }
.cc-choice-desc { display: block; margin: 2px 0 0; font-size: .88rem; color: var(--ink-2); overflow-wrap: anywhere; }
.cc-choice-hint { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .8rem; font-weight: 600; color: var(--brand-700); }
.cc-choice-note { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); }
.cc-ship-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-ship-price.is-free { color: var(--green-700); }
.cc-recalc { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.cc-pickup-note {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px;
  background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: var(--radius); color: var(--brand-900); font-size: .92rem;
}
.cc-pickup-note p { margin: 0; }
.cc-pickup-note .icon { color: var(--primary); margin-top: 2px; }
.cc-address-list .badge { font-size: .72rem; }
.cc-new-address { margin-top: 16px; }
.cc-new-address:first-child, .cc-pickup-note + .cc-new-address { margin-top: 0; }
.cc-req { color: var(--red); }
.cc-save-address { font-size: .92rem; min-height: 44px; }

/* Payment cards */
.cc-pay-amount { font-family: var(--font-display); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-pay-reason { display: block; margin-top: 6px; font-size: .84rem; font-weight: 500; color: var(--amber); }
.cc-pay.is-disabled { opacity: 1; }
.cc-pay.is-disabled > input,
.cc-pay.is-disabled .choice-title,
.cc-pay.is-disabled .cc-choice-desc { opacity: .55; }
.cc-pay.is-disabled .choice-title { cursor: not-allowed; }
.cc-cod-status { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); font-size: .86rem; color: var(--ink-2); }
.cc-cod-status p { margin: 0 0 6px; }
.cc-cod-status .progress { margin: 8px 0; }
.cc-cod-status .progress > span { min-width: 6px; }
.cc-cod-status a { font-weight: 600; }
.cc-cod-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.cc-cod-status.is-unlocked { background: var(--green-50); border-color: var(--green-200); }
.cc-cod-status.is-unlocked .cc-cod-title { color: var(--green-800); }

/* Checkout summary */
.cc-summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cc-summary-head .card-title { margin-bottom: 14px; }
.cc-summary-head a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.cc-sum-lines { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 14px; max-height: 340px; overflow-y: auto; }
.cc-sum-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.cc-thumb { position: relative; width: 56px; height: 56px; }
.cc-thumb img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line-2); background: var(--photo-bg); }
.cc-thumb-qty {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-800); color: #fff; border: 2px solid #fff; font-size: .72rem; font-weight: 700;
}
.cc-sum-line-info { display: flex; flex-direction: column; min-width: 0; }
.cc-sum-line-name {
  font-weight: 600; font-size: .9rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cc-sum-line-variant { font-size: .8rem; color: var(--muted); }
.cc-sum-line-total { font-weight: 600; font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-place-order { margin-top: 4px; }
.cc-place-hint { margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.cc-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: .8rem; font-weight: 600; color: var(--brand-700); }

/* Collapsible summary at the top (phones) */
.cc-mobile-summary { padding: 0; margin: 8px 0 16px; overflow: hidden; }
.cc-mobile-summary > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 54px; padding: 12px 16px; background: var(--brand-50);
}
.cc-mobile-summary > summary::-webkit-details-marker { display: none; }
.cc-mobile-summary > summary:focus-visible { outline-offset: -3px; border-radius: 20px; } /* the card clips its content */
.cc-ms-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-800); }
.cc-ms-chevron { transition: transform .2s; }
.cc-mobile-summary[open] .cc-ms-chevron { transform: rotate(180deg); }
.cc-ms-total { font-family: var(--font-display); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.cc-ms-body { padding: 16px; border-top: 1px solid var(--line-2); }
.cc-ms-body .cc-sum-bs { margin-bottom: 0; }
@media (max-width: 959px) {
  /* The collapsible block at the top already lists the items. */
  .cc-aside .cc-sum-lines { display: none; }
  .cc-aside .cc-sum { margin-top: 0; }
}
@media (min-width: 960px) {
  .cc-mobile-summary { display: none; }
}

/* Live update feedback */
.cc-checkout [data-sum], .cc-checkout .cc-pay { transition: opacity .15s; }
.cc-checkout.is-loading [data-sum], .cc-checkout.is-loading .cc-pay { opacity: .5; }

/* 40-account.css */
/* ==========================================================================
   Auth (login / register / forgot password) + customer account pages
   ========================================================================== */

/* ---------- Shared bits ---------- */
.label-optional { font-weight: 400; color: var(--muted); font-size: .85em; }
.pre-line { white-space: pre-line; }
.field-error { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.field-error .icon { margin-top: 2px; }
.field .help { margin: 0; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 54px !important; }
.pw-toggle {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.pw-toggle:hover { color: var(--brand-800); background: var(--brand-50); }
.pw-toggle[aria-pressed="true"] { color: var(--brand-700); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand-800);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}
input[readonly] { background: var(--bg-soft) !important; color: var(--ink-2); }

/* ---------- Auth pages ---------- */
.auth-page { padding-top: 24px; padding-bottom: 8px; }
@media (min-width: 768px) { .auth-page { padding-top: 48px; } }
.auth-shell { display: grid; gap: 20px; max-width: 1000px; margin: 0 auto; }
.auth-shell.is-narrow { max-width: 560px; }
@media (min-width: 960px) {
  .auth-shell:not(.is-narrow) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: stretch; }
}
.auth-card { padding: 24px 18px; }
@media (min-width: 640px) { .auth-card { padding: 36px 40px; } }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: 6px; }
.auth-head p { margin: 0 auto; max-width: 420px; }
.auth-mark { margin: 0 auto 14px; width: 56px; height: 56px; }
.auth-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 14px;
  border-radius: 20px; background: var(--brand-100); color: var(--brand-700);
}
.auth-hint { font-weight: 500; }
.auth-row { display: flex; justify-content: flex-end; margin-top: -6px; font-size: .9rem; }
.auth-row a { padding: 6px 0; }
.auth-alt {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line-2);
  text-align: center; color: var(--muted); font-size: .95rem;
}
.auth-alt a:not(.btn) { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.auth-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; width: 100%; }
.auth-privacy .icon { margin-top: 2px; color: var(--brand-600); }
.auth-subtitle { font-size: 1rem; margin-bottom: 12px; }
.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step-list li { display: flex; gap: 12px; align-items: flex-start; }
.step-list li > span:last-child { padding-top: 3px; }
.login-contact { margin-bottom: 18px; }
.contact-address { display: flex; gap: 6px; align-items: flex-start; justify-content: center; margin: 4px 0 0; text-align: center; }
.contact-address .icon { margin-top: 2px; flex-shrink: 0; color: var(--brand-600); }

.auth-perks {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 110% -10%, rgba(147, 197, 253, .35), transparent 45%),
    radial-gradient(circle at -20% 120%, rgba(96, 165, 250, .35), transparent 50%),
    linear-gradient(160deg, var(--brand-700), var(--brand-900) 70%);
  color: rgba(239, 246, 255, .92);
  padding: 26px 22px;
}
@media (min-width: 640px) { .auth-perks { padding: 36px; } }
.auth-perks::after {
  content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .06); pointer-events: none;
}
.auth-perks-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; height: 100%; justify-content: center; }
.auth-perks-logo { height: 34px; width: auto; opacity: .95; }
.auth-perks h2 { color: #fff; font-size: 1.3rem; margin: 0; }
.perk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.perk-list li { display: flex; gap: 12px; align-items: flex-start; }
.perk-list li > span:last-child { padding-top: 7px; }
.perk-list a { color: var(--brand-200); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.perk-list a:hover { color: #fff; }
.perk-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); color: var(--brand-200);
}
@media (max-width: 959px) {
  .auth-perks-logo { display: none; }
}

/* ---------- Account shell ---------- */
.account-page { padding-bottom: 8px; }
.account-head { padding-bottom: 4px; }
.account-head h1 { margin-bottom: 4px; }
.acct-back {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; min-height: 44px; /* tap target */
  font-size: .9rem; font-weight: 600; color: var(--muted);
}
.acct-back:hover { color: var(--primary); }

.account-nav { position: relative; margin: 14px 0 22px; }
.account-nav-scroll {
  display: flex; gap: 8px; align-items: center;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 -16px; padding: 4px 16px 6px;
  scroll-snap-type: x proximity;
}
.account-nav-scroll::-webkit-scrollbar { display: none; }
.account-nav::after {
  content: ''; position: absolute; top: 0; right: -16px; bottom: 0; width: 32px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 80%);
}
.account-pill {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  min-height: 44px; padding: 8px 16px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: #fff;
  color: var(--ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap;
  scroll-snap-align: start; transition: background .15s, border-color .15s, color .15s;
}
.account-pill:hover { border-color: var(--brand-300); color: var(--brand-800); background: var(--brand-50); }
.account-pill.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.account-pill.is-active:hover { color: #fff; }
.account-nav-logout { margin: 0; flex-shrink: 0; }
.account-pill.is-logout { color: var(--muted); cursor: pointer; font: inherit; font-weight: 600; font-size: .92rem; }
@media (min-width: 768px) {
  .account-nav-scroll { margin: 0; padding: 4px 0; flex-wrap: wrap; overflow: visible; }
  .account-nav::after { display: none; }
  .account-nav-logout { margin-left: auto; }
}

/* minmax(0, 1fr): without an explicit column the implicit track grew to the widest nowrap text (quick links) and the
   page scrolled sideways on 360px phones. */
.account-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .account-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.account-empty { padding: 40px 20px; }
.empty-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 8px;
  border-radius: 22px; background: var(--brand-50); color: var(--brand-600);
}
.mini-empty { text-align: center; padding: 8px 0; }
.card-title-row { margin-bottom: 14px; }
.to-pay-alert a { margin-left: 4px; }
.form-card { max-width: 820px; }

/* ---------- Pay-on-delivery loyalty card ---------- */
.cod-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 768px) { .cod-card { padding: 28px; } }
.cod-card.is-unlocked {
  --focus-ring: #fff; /* keyboard focus on dark blue */
  color: #fff; /* the stat labels are faded with opacity: full white keeps them ≥ 4.5:1 */
  background:
    radial-gradient(circle at 100% 0%, rgba(147, 197, 253, .25), transparent 45%),
    linear-gradient(135deg, var(--brand-700), var(--brand-900));
  box-shadow: 0 14px 34px rgba(29, 78, 216, .25);
}
.cod-card.is-unlocked::after {
  content: '$'; position: absolute; right: 18px; top: -18px;
  font-family: var(--font-display); font-weight: 800; font-size: 9rem; line-height: 1; color: rgba(255, 255, 255, .07);
  pointer-events: none;
}
.cod-card.is-locked { background: linear-gradient(160deg, var(--brand-50), #fff 70%); border: 1px solid var(--brand-200); }
.cod-card.is-muted { background: var(--bg-soft); border: 1px solid var(--line); }
.cod-card-head { display: flex; align-items: center; gap: 12px; }
.cod-badge {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-100); color: var(--brand-700);
}
.cod-card.is-unlocked .cod-badge { background: rgba(255, 255, 255, .15); color: #fff; }
.cod-eyebrow { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); }
.cod-card.is-unlocked .cod-eyebrow { color: var(--brand-100); }
.cod-title { font-size: 1.2rem; margin: 0; }
.cod-card.is-unlocked .cod-title { color: #fff; }
.cod-available { display: flex; flex-direction: column; gap: 2px; }
.cod-available-label { font-size: .88rem; opacity: .9; }
.cod-amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.6rem + 2vw, 2.7rem); color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cod-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cod-stat { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cod-stat strong { color: #fff; font-variant-numeric: tabular-nums; font-size: 1rem; overflow-wrap: anywhere; }
.cod-stat-label { font-size: .74rem; opacity: .85; line-height: 1.3; }
@media (max-width: 400px) { .cod-stats { grid-template-columns: 1fr 1fr; } .cod-stat:last-child { grid-column: span 2; } }
.cod-text { margin: 0; font-size: .92rem; }
.cod-card.is-locked .cod-text { color: var(--ink-2); }
.cod-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; align-self: flex-start; min-height: 44px; }
.cod-card.is-unlocked .cod-link { color: #fff; }
.cod-card.is-unlocked .cod-link:hover { color: var(--brand-100); }
.cod-progress { display: flex; flex-direction: column; gap: 8px; }
.cod-progress .progress { height: 12px; }
.cod-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.cod-reqs li { display: flex; gap: 8px; align-items: flex-start; }
.cod-reqs .icon { margin-top: 3px; color: var(--brand-600); }

/* ---------- Recent orders / quick links ---------- */
.recent-orders { list-style: none; margin: 0; padding: 0; }
.recent-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.recent-order:first-child { border-top: 0; padding-top: 0; }
.recent-order-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.order-number { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.02rem; }
a.order-number:hover { color: var(--primary); }
.order-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.quick-links a {
  display: flex; align-items: center; gap: 12px; padding: 10px 6px; min-height: 56px;
  color: var(--ink); font-weight: 600; border-radius: 12px;
}
.quick-links a:hover { background: var(--brand-50); color: var(--brand-800); }
.quick-links small { display: block; font-weight: 400; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.quick-links a > span:nth-child(2) { flex: 1; min-width: 0; }
.ql-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-700);
}
.ql-chevron { color: var(--muted); }

/* ---------- Order list ---------- */
.order-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.order-card {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
}
.order-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.order-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-card-actions .btn { flex: 1; min-height: 44px; }
.orders-table-wrap { display: none; }
.orders-table td { vertical-align: middle; }
@media (min-width: 768px) {
  .order-cards { display: none; }
  .orders-table-wrap { display: block; background: #fff; }
}

/* ---------- Order detail ---------- */
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.order-head h1 { margin-bottom: 4px; }
.placed-banner {
  --focus-ring: #fff; /* keyboard focus on dark green */
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; margin-bottom: 18px; border-radius: var(--radius-lg);
  color: #fff; background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: 0 12px 30px rgba(15, 100, 64, .22);
  animation: placed-in .4s ease-out;
}
.placed-banner h2 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.placed-banner p { color: rgba(241, 250, 245, .92); }
.placed-icon {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16);
}
@keyframes placed-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.order-cancelled { margin-bottom: 18px; }
.order-cancelled p { color: var(--ink-2); }

.tracker-card { margin-bottom: 20px; padding: 18px 12px; }
@media (min-width: 768px) { .tracker-card { padding: 24px 28px; } }
.tracker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tracker-step {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; font-size: .74rem; font-weight: 600; color: var(--muted); line-height: 1.25; padding: 0 2px;
}
@media (min-width: 640px) { .tracker-step { font-size: .85rem; } }
/* Phones: 5 columns of ~60px can't fit single Spanish words ("Confirmado", "Preparando") at .74rem, so the labels ran
   into each other. Smaller text + no side padding makes them fit down to ~360px; below that the labels break at the
   soft hyphens in the locale strings instead of overlapping. */
@media (max-width: 420px) {
  .tracker-card { padding-left: 8px; padding-right: 8px; }
  .tracker-step { font-size: .66rem; padding: 0; }
}
.tracker-step::before {
  content: ''; position: absolute; top: 15px; height: 3px; border-radius: 2px;
  left: calc(-50% + 20px); right: calc(50% + 20px); background: var(--line);
}
.tracker-step:first-child::before { display: none; }
.tracker-step.is-done::before, .tracker-step.is-current::before { background: var(--green-500); }
.tracker-dot {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--line); color: var(--muted); font-size: .82rem; font-weight: 700;
}
.tracker-step.is-done .tracker-dot { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.tracker-step.is-current .tracker-dot { border-color: var(--brand-600); color: var(--brand-700); box-shadow: 0 0 0 5px var(--brand-100); }
.tracker-step.is-current .tracker-label, .tracker-step.is-done .tracker-label { color: var(--ink); }
.tracker-hint {
  display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; padding: 10px 14px;
  border-radius: 12px; background: var(--bg-soft); font-size: .9rem; color: var(--ink-2);
}
.tracker-hint .icon { margin-top: 3px; color: var(--brand-600); }

.order-layout { display: grid; gap: 20px; }
@media (min-width: 960px) { .order-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.order-main, .order-side { min-width: 0; }

/* Payment */
.pay-deadline {
  display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; font-weight: 500;
  color: var(--amber); background: var(--amber-bg); border-radius: 12px; padding: 10px 14px;
}
.pay-deadline .icon { margin-top: 3px; }
.rejection-note { margin: 6px 0; color: var(--ink-2); }
.pay-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.pay-step-title { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin-bottom: 12px; }
.pm-box { border: 1.5px dashed var(--brand-300); background: var(--brand-50); border-radius: var(--radius); padding: 4px 14px; }
@media (min-width: 640px) { .pm-box { padding: 6px 18px; } }
.pm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--brand-100); }
.pm-row:last-child { border-bottom: 0; }
.pm-cell { display: flex; flex-direction: column; min-width: 0; }
.pm-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.pm-value { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pm-sub { font-size: .8rem; color: var(--ink-2); margin-top: 2px; }
.pm-amount .pm-value { font-family: var(--font-display); font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.8rem); font-weight: 800; color: var(--brand-800); line-height: 1.2; }
.copy-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand-200); background: #fff; color: var(--brand-800);
  font-weight: 600; font-size: .84rem; transition: background .15s, border-color .15s, color .15s;
}
.copy-btn:hover { border-color: var(--brand-400); background: var(--brand-50); }
.copy-btn.is-copied { background: var(--green-600); border-color: var(--green-600); color: #fff; }
@media (max-width: 380px) { .copy-btn span { display: none; } .copy-btn { padding: 6px 10px; } }
.pm-instructions { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-size: .92rem; color: var(--ink-2); }
.pay-card .help .icon { vertical-align: -2px; }
.pay-form { margin-top: 4px; }
.file-drop {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--bg-soft);
  transition: border-color .15s, background .15s;
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--brand-400); background: var(--brand-50); }
.file-drop.is-invalid { border-color: var(--red); }
.file-drop-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--brand-700);
}
.file-drop input[type="file"] { flex: 1; min-width: 0; font-size: .88rem; color: var(--ink-2); }
.file-drop input[type="file"]::file-selector-button {
  margin-right: 10px; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand-300); background: #fff; color: var(--brand-800); font-weight: 600; cursor: pointer;
}
.proof-preview { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--bg-soft); }
.proof-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #fff; }
.proof-preview span { overflow-wrap: anywhere; }
/* Photo shrinking note (public/js/shared/image-resize.js) */
.acct-resize-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .85rem; color: var(--muted); }
.acct-resize-note[data-state="working"]::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--brand-200); border-top-color: var(--brand-600); animation: acct-resize-spin .8s linear infinite;
}
.acct-resize-note[data-state="done"] { color: var(--green-700); font-weight: 600; }
@keyframes acct-resize-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .acct-resize-note[data-state="working"]::before { animation: none; } }

.pay-status {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius); background: var(--bg-soft); margin-top: 12px;
}
.card-title + .pay-status { margin-top: 0; }
.pay-status p { font-size: .92rem; color: var(--ink-2); }
.pay-status-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--muted);
}
.pay-status.is-review { background: var(--amber-bg); }
.pay-status.is-review .pay-status-icon { color: var(--amber); }
.pay-status.is-ok { background: var(--green-50); }
.pay-status.is-ok .pay-status-icon { color: var(--green-600); }
.pay-status.is-cod { background: var(--violet-bg); }
.pay-status.is-cod .pay-status-icon { color: var(--violet); }
.pay-steps + .pay-status { margin-top: 20px; }

.pay-history-title { font-size: .95rem; margin: 22px 0 8px; }
.pay-history { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.pay-history-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-2); }
.pay-history-item:first-child { border-top: 0; }
.pay-history-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-history-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.proof-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; min-height: 32px; }

/* Items + totals */
.order-items { list-style: none; margin: 0 0 12px; padding: 0; }
.order-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
@media (min-width: 640px) { .order-item { grid-template-columns: 64px minmax(0, 1fr) auto; } }
.order-item:first-child { padding-top: 0; }
.order-item-img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: var(--photo-bg); }
.order-item-img.is-placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg-soft); }
.order-item-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.order-item-body .strong { overflow-wrap: anywhere; }
.summary-rows { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-row dt { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.summary-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-row.is-discount dd { color: var(--green-700); }
.summary-row.is-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; font-size: 1.12rem; }
.summary-row.is-total dt { color: var(--ink); font-weight: 700; }
.summary-row.is-total dd { font-family: var(--font-display); font-weight: 800; }
.summary-split { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 8px; }
.summary-split .icon { color: var(--brand-600); }

.delivery-info { font-style: normal; display: flex; flex-direction: column; gap: 2px; color: var(--ink-2); overflow-wrap: anywhere; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { position: relative; padding: 0 0 18px 26px; display: flex; flex-direction: column; gap: 2px; }
.timeline-item::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 2px; background: var(--line); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::before { display: none; }
.timeline-item::after {
  content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-500); box-shadow: 0 0 0 3px var(--green-100);
}
.timeline-item.is-payment_rejected::after, .timeline-item.is-cancelled::after { background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.timeline-item.is-payment_submitted::after { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
.timeline-label { font-weight: 600; }
.timeline-time { font-size: .8rem; color: var(--muted); }
.cancel-card { border-color: #f4dcd9; }

/* ---------- Addresses ---------- */
.address-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .address-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .address-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.address-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm);
}
.address-card.is-default { border-color: var(--brand-300); box-shadow: 0 0 0 1px var(--brand-300) inset, var(--shadow-sm); }
.address-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.address-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.address-label .icon { color: var(--brand-600); }
.address-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.address-actions form { margin: 0; }
.address-actions .btn { min-height: 40px; }

/* ---------- Profile ---------- */
.profile-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .profile-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; } }
