/* ============================================================
   Little Lane — core design system (light + dark themes)
   ============================================================ */
:root {
  --bg: #fffaf4;
  --surface: #ffffff;
  --surface-2: #fdf3e9;
  --ink: #33302e;
  --ink-soft: #55504c;
  --muted: #8b8480;
  --border: #f0e4d7;
  --border-strong: #e4d5c3;

  --primary: #ff6b6b;
  --primary-600: #ef5252;
  --primary-soft: #ffe9e3;
  --on-primary: #ffffff;
  --teal: #2fb5ab;
  --teal-soft: #d9f4f1;
  --sun: #ffd93d;
  --lav: #a78bfa;
  --lav-soft: #efe9ff;
  --green: #2fbf71;
  --danger: #e5484d;

  --star: #f5a623;
  --media-bg: #f6ecdf;

  --shadow-sm: 0 2px 10px rgba(51, 48, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(51, 48, 46, 0.1);
  --shadow-lg: 0 24px 60px rgba(51, 48, 46, 0.14);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --header-h: 76px;

  --font-head: "Baloo 2", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #131720;
  --surface: #1b222d;
  --surface-2: #222b38;
  --ink: #eceef2;
  --ink-soft: #c3c9d2;
  --muted: #8d97a5;
  --border: #2a3441;
  --border-strong: #36424f;

  --primary: #ff7a70;
  --primary-600: #ff6459;
  --primary-soft: #3a2725;
  --on-primary: #1b1110;
  --teal: #3ecfc4;
  --teal-soft: #173532;
  --sun: #ffd93d;
  --lav-soft: #2c2740;

  --star: #f7b733;
  --media-bg: #222b38;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  transition: background-color 0.35s ease, color 0.35s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-soft); }
::selection { background: var(--primary-soft); color: var(--primary-600); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.page { padding: 40px 0 90px; }

.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head .kicker { margin-bottom: 4px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
}
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--primary); }
.section-sub { max-width: 560px; }

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 800; font-size: 0.95rem; line-height: 1;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -8px var(--primary); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); }
.btn-outline { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--primary); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--ink-soft); transition: all 0.2s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--primary); transform: translateY(-1px); }
.icon-btn svg { width: 21px; height: 21px; }

.bubble {
  position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--primary); color: var(--on-primary);
  font-size: 0.66rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--bg);
}

/* ---------- badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-new { background: var(--teal-soft); color: var(--teal); }
.badge-best { background: var(--lav-soft); color: var(--lav); }
.badge-sale { background: var(--primary); color: var(--on-primary); }
.badge-soft { background: var(--surface-2); color: var(--ink-soft); }
.badge-success { background: rgba(47, 191, 113, 0.14); color: var(--green); }
.badge-warning { background: rgba(245, 166, 35, 0.16); color: var(--star); }
.badge-danger { background: rgba(229, 72, 77, 0.13); color: var(--danger); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--border);
  font-weight: 700; font-size: 0.88rem; color: var(--ink-soft);
  transition: all 0.2s ease; cursor: pointer;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* ---------- announcement ---------- */
.announce {
  background: var(--ink); color: var(--bg);
  font-size: 0.82rem; font-weight: 700; text-align: center;
  padding: 8px 16px; letter-spacing: 0.02em;
}
.announce .container {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.announce .an-sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: 0.45; flex: none;
}
.announce b { color: var(--sun); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); position: relative; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }
.logo svg { width: 38px; height: 38px; }
.logo em { font-style: normal; color: var(--primary); }

.menu-btn { display: none; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  font-weight: 800; font-size: 0.95rem; color: var(--ink-soft);
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--primary); background: var(--primary-soft); }
.nav-link .chev { width: 15px; height: 15px; transition: transform 0.25s ease; }

/* mega dropdown (two-level: category -> subcategories) */
/* The panel is wider than the trigger, so it is centred on the header bar:
   anchoring it to the narrow item pushed its left edge off-screen. The top
   offset keeps the hover box starting at the trigger's bottom, so the pointer
   can travel down into the panel without a dead gap. */
.has-mega { position: static; }
/* The hover box starts flush with the trigger (top: 100%) so the pointer can
   travel from the link into the panel without crossing a dead gap; the visual
   offset lives in the padding and in the inner surface, which is what slides. */
.mega {
  position: absolute; top: calc(100% - 16px); left: 50%;
  transform: translateX(-50%);
  width: 760px; max-width: calc(100vw - 40px);
  padding-top: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.mega-surface {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 24px;
  transform: translateY(8px);
  transition: transform 0.18s ease;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.has-mega:hover .mega .mega-surface,
.has-mega:focus-within .mega .mega-surface,
.has-mega.open .mega .mega-surface {
  transform: translateY(0);
}
.has-mega:hover .chev, .has-mega.open .chev { transform: rotate(180deg); }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 18px; }
.mega-grid[data-columns="1"] { grid-template-columns: 1fr; }
.mega-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.mega-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.mega-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.mega-col h4 { font-size: 0.95rem; margin-bottom: 8px; }
.mega-col h4 a { display: flex; align-items: center; gap: 8px; }
.mega-col h4 a:hover { color: var(--primary); }
.mega-col h4 .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mega-col a {
  display: block; padding: 5px 0; font-size: 0.9rem; color: var(--muted); font-weight: 600;
  transition: all 0.15s ease;
}
.mega-col a:hover { color: var(--primary); padding-left: 5px; }
.mega-col .all { color: var(--primary); font-weight: 800; margin-top: 6px; }
.mega-promo {
  grid-column: 1 / -1;
  border-radius: var(--r-md); overflow: hidden; position: relative;
  background: linear-gradient(150deg, var(--primary-soft), var(--lav-soft));
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px; margin-top: 12px;
}
.mega-promo img { width: 54px; transform: rotate(6deg); flex: none; }
.mega-promo .p-title { font-family: var(--font-head); font-weight: 800; font-size: 1rem; }
.mega-promo .p-sub { font-size: 0.8rem; color: var(--ink-soft); }
.mega-promo .btn { margin-left: auto; }
.mega-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border-strong);
  font-size: 0.85rem; color: var(--muted);
}
.mega-foot a { font-weight: 800; color: var(--primary); display: inline-flex; align-items: center; gap: 5px; }

.header-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 2px solid transparent;
  border-radius: 999px; padding: 4px 6px 4px 16px; width: 250px;
  transition: all 0.2s ease;
}
.header-search:focus-within { border-color: var(--primary); background: var(--surface); }
.header-search input { border: 0; background: none; outline: none; width: 100%; font-size: 0.9rem; color: var(--ink); }
.header-search button {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; flex: none;
}
.header-search button svg { width: 16px; height: 16px; }

.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.action-link { display: inline-flex; }
/* The heart keeps the bag's bubble shape but in the theme's second accent, so
   the two counters never read as the same number. */
.wishlist-badge { background: var(--teal); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(20, 16, 12, 0.45);
  opacity: 0; visibility: hidden; transition: all 0.25s ease; z-index: 95;
}
.drawer-backdrop.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88vw);
  background: var(--surface); z-index: 96;
  transform: translateX(-105%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-body { padding: 14px 20px 30px; overflow-y: auto; flex: 1; }
.drawer-body .header-search { width: 100%; margin-bottom: 14px; }
.d-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; font-weight: 800; border-bottom: 1px solid var(--border); }
.d-group { padding: 8px 4px 4px; }
.d-group > button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 12px 0; font-weight: 800; }
.d-group .chev { width: 16px; height: 16px; transition: transform 0.25s; }
.d-group.open .chev { transform: rotate(180deg); }
.d-sub { display: none; padding: 2px 0 10px 14px; }
.d-group.open .d-sub { display: block; }
.d-sub a { display: block; padding: 7px 0; color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.d-cat-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); padding: 8px 0 2px; display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding: 60px 0 40px; }
.footer-brand p { margin: 14px 0 18px; max-width: 300px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-soft); transition: all 0.2s ease;
}
.socials a:hover { background: var(--primary); color: var(--on-primary); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-col h4 { margin-bottom: 16px; font-size: 1.02rem; }
.footer-col a { display: block; padding: 6px 0; color: var(--muted); font-weight: 600; font-size: 0.93rem; }
.footer-col a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: var(--muted); font-size: 0.93rem; list-style: none; }
.footer-contact svg { width: 17px; height: 17px; color: var(--primary); flex: none; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted);
}
.pay-icons { display: flex; gap: 8px; }
.pay-icons span {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-strong); border-radius: 7px; padding: 4px 9px;
  font-size: 0.72rem; font-weight: 800; color: var(--ink-soft); background: var(--surface);
}

/* ---------- modal (quick view) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(22, 17, 12, 0.5);
  z-index: 100; opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
.modal-backdrop.show { opacity: 1; visibility: visible; }
.modal {
  position: fixed; z-index: 101; top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(880px, 94vw); max-height: min(720px, 92vh);
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  overflow: auto;
}
.modal.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; color: var(--ink-soft);
}
.modal-close:hover { color: var(--danger); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }

.quick-view { display: grid; grid-template-columns: 1fr 1.1fr; }
.qv-media { background: var(--media-bg); display: grid; place-items: center; padding: 34px; min-height: 100%; }
.qv-media img { width: 100%; max-width: 340px; }
.qv-body { padding: 34px 32px; }
.qv-name { margin: 6px 0 8px; }
.qv-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; gap: 10px; align-items: baseline; margin: 10px 0 12px; }
.qv-price s { font-size: 1rem; color: var(--muted); font-weight: 600; }
.qv-desc { font-size: 0.94rem; margin-bottom: 18px; }
.opt-label { display: block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.opt-label b { color: var(--ink); }
.qv-opt { margin-bottom: 16px; }
.swatches { display: flex; gap: 9px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border-strong); transition: all 0.15s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--primary); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 44px; padding: 8px 12px; border-radius: 10px; text-align: center;
  border: 2px solid var(--border-strong); font-weight: 800; font-size: 0.82rem;
  transition: all 0.15s ease; background: var(--surface);
}
.size-btn:hover { border-color: var(--primary); color: var(--primary); }
.size-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.qv-row { display: flex; gap: 12px; align-items: stretch; margin: 20px 0 14px; }
.qty {
  display: inline-flex; align-items: center; border: 2px solid var(--border-strong);
  border-radius: 999px; overflow: hidden; flex: none;
}
.qty button { width: 38px; height: 44px; display: grid; place-items: center; color: var(--ink-soft); font-weight: 800; }
.qty button:hover { background: var(--surface-2); color: var(--primary); }
.qty input { width: 40px; text-align: center; border: 0; background: none; font-weight: 800; outline: none; }
.qty svg { width: 15px; height: 15px; }
.qv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qv-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--teal); font-size: 0.9rem; padding: 10px 4px; }
.qv-link:hover { gap: 10px; }
.qv-link svg { width: 16px; height: 16px; }

/* ---------- mini cart drawer ---------- */
.mini-cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 94vw);
  background: var(--surface); z-index: 96; box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
}
.mini-cart.show { transform: translateX(0); }
.mc-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.mc-ship { padding: 14px 22px; background: var(--surface-2); font-size: 0.85rem; font-weight: 700; }
.mc-ship .bar { height: 8px; border-radius: 99px; background: var(--border); margin-top: 8px; overflow: hidden; }
.mc-ship .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--green)); transition: width 0.4s ease; }
.mc-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.mc-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.mc-item:last-child { border: 0; }
.mc-thumb { width: 64px; height: 64px; border-radius: 14px; flex: none; display: grid; place-items: center; }
.mc-thumb img { width: 80%; }
.mc-info { flex: 1; min-width: 0; }
.mc-info .n { font-weight: 800; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-info .v { font-size: 0.78rem; color: var(--muted); }
.mc-line { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.mc-line .qty { transform: scale(0.82); transform-origin: left center; border-color: var(--border); }
.mc-line .qty button { height: 34px; width: 30px; }
.mc-remove { color: var(--muted); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.mc-remove:hover { color: var(--danger); background: var(--surface-2); }
.mc-remove svg { width: 16px; height: 16px; }
.mc-foot { border-top: 1px solid var(--border); padding: 18px 22px 22px; }
.mc-sub { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 12px; }
.mc-foot .btn + .btn { margin-top: 9px; }
.mc-empty { text-align: center; padding: 50px 20px; }
.mc-empty svg { width: 54px; height: 54px; color: var(--border-strong); margin: 0 auto 14px; }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--bg);
  padding: 13px 18px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-weight: 700; font-size: 0.9rem; max-width: 340px;
  animation: toast-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.out { animation: toast-out 0.3s ease forwards; }
.toast .t-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.toast .t-ic svg { width: 14px; height: 14px; }
.toast-success .t-ic { background: var(--green); color: #fff; }
.toast-info .t-ic { background: var(--teal); color: #fff; }
.toast-error .t-ic { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.94); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(0.96); } }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; font-size: 0.88rem; margin-bottom: 7px; }
.field label span { color: var(--danger); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border-strong); border-radius: 12px;
  background: var(--surface); outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.field .err { font-size: 0.8rem; color: var(--danger); margin-top: 5px; display: none; font-weight: 700; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-line { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--primary); }

/* radio card (checkout delivery) */
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--border-strong); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: all 0.2s ease; background: var(--surface); }
.radio-card:hover { border-color: var(--primary); }
.radio-card input { margin-top: 4px; accent-color: var(--primary); }
.radio-card.is-active { border-color: var(--primary); background: var(--primary-soft); }
.radio-card .rc-t { font-weight: 800; font-size: 0.95rem; }
.radio-card .rc-d { font-size: 0.82rem; color: var(--muted); }
.radio-card .rc-p { margin-left: auto; font-weight: 800; color: var(--primary); }

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.86rem; color: var(--muted); font-weight: 700; margin-bottom: 26px; }
.crumbs a:hover { color: var(--primary); }
.crumbs svg { width: 14px; height: 14px; }
.crumbs .sep { opacity: 0.5; }

/* ---------- generic empty state ---------- */
.empty {
  text-align: center; padding: 70px 24px;
  background: var(--surface); border: 2px dashed var(--border-strong); border-radius: var(--r-lg);
}
.empty .e-ic { width: 74px; height: 74px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 18px; }
.empty .e-ic svg { width: 34px; height: 34px; color: var(--muted); }
.empty h3 { margin-bottom: 8px; }
.empty p { max-width: 380px; margin: 0 auto 20px; }

/* ---------- utility ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; gap: 14px; align-items: center; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hide { display: none !important; }

/* stars */
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--star); }
.stars svg { width: 15px; height: 15px; }
.stars .off { color: var(--border-strong); }
.stars .count { color: var(--muted); font-size: 0.82rem; font-weight: 700; margin-left: 5px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- responsive core ---------- */
@media (max-width: 1180px) {
  .header-search { display: none; }
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .quick-view { grid-template-columns: 1fr; }
  .qv-media { padding: 24px; }
}
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 44px 0 30px; }
  .form-row { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .header-bar { gap: 10px; }
  .logo { font-size: 1.3rem; }
}

/* ---------- Paletas de color ---------- */
body[data-palette="laguna"] {
  --primary: #0b7a74;
  --primary-600: #09635f;
  --primary-soft: #d9f1ee;
  --on-primary: #ffffff;
}
body[data-palette="uva"] {
  --primary: #7c4dbd;
  --primary-600: #68409f;
  --primary-soft: #efe6fb;
  --on-primary: #ffffff;
}

/* ---------- Platform integration ----------
   Small additions the server-rendered storefront needs on top of the
   design: an overlay link inside .card-media (a product card cannot nest
   the add-to-cart form in an anchor), empty-image placeholders, form
   alerts and the sticky header scroll state. */
.card-media-link { position: absolute; inset: 0; z-index: 1; }
.card-media img,
.card-media .product-ph { pointer-events: none; }
.card-media .badge { z-index: 2; pointer-events: none; }
.card-media .card-actions { z-index: 3; border: 0; }
.product-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.product-ph svg { width: 38px; height: 38px; opacity: 0.5; }
.form-alert {
  border-radius: 14px; padding: 14px 18px; font-weight: 700;
  font-size: 0.9rem; margin-bottom: 18px;
}
.form-alert.success { background: rgba(47, 191, 113, 0.14); color: var(--green); }
.form-alert.error { background: rgba(229, 72, 77, 0.13); color: var(--danger); }
.mc-line strong { margin-left: auto; }
.star-input { display: flex; align-items: center; gap: 4px; }
.star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-input label { cursor: pointer; color: var(--border-strong); font-size: 1.45rem; line-height: 1; }
.star-input label:hover { color: var(--star); }
.review-form { margin-top: 24px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.review-form h3 { margin-bottom: 16px; }
.contact-success { text-align: center; padding: 24px 0; }
.contact-success .c-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin: 0 auto 16px; }
.contact-success .c-ic svg { width: 28px; height: 28px; }
.post-ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--surface-2); color: var(--muted); }
.post-ph svg { width: 40px; height: 40px; opacity: 0.6; }
.sr-only { position: absolute; 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: -9999px; top: 0; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 0 0 12px 0; }
.skip-link:focus { left: 0; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
