/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f9fb;
  --bg-2:      #eaf1f6;
  --paper:     #ffffff;
  --ink:       #14212c;
  --ink-soft:  #33475a;
  --ink-mute:  #64748b;

  --blue:      #0072f0;
  --blue-dark: #0b3fcc;
  --blue-soft: #e3eeff;

  --green:     #12d48f;
  --green-dark:#0a7d52;
  --green-soft:#daf9ef;

  --line:      rgba(20, 33, 44, 0.12);
  --line-soft: rgba(20, 33, 44, 0.07);

  --danger:    #c1372a;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-card: 0 2px 10px rgba(20, 33, 44, 0.06), 0 1px 2px rgba(20, 33, 44, 0.05);
  --shadow-card-hover: 0 20px 40px -12px rgba(0, 114, 240, 0.25), 0 8px 18px -8px rgba(20, 33, 44, 0.12);
  --shadow-pop: 0 24px 60px -18px rgba(0, 114, 240, 0.32);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --nav-h: 76px;
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; line-height: 1.12; letter-spacing: -0.01em; font-weight: 800; }
ul { list-style: none; padding: 0; }
::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 960px) { .container { padding-inline: 2rem; } }

.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;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-dark);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: .5rem; }
.section-head p { color: var(--ink-mute); margin-top: .75rem; font-size: 1.05rem; }
.section-head.center { margin-inline: auto; text-align: center; }

[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.btn-accent { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); position: relative;
  transition: background .3s, transform .3s var(--ease-soft);
}
.btn-icon:hover { background: var(--blue-soft); transform: translateY(-2px); }
.btn-icon svg { width: 20px; height: 20px; stroke: var(--ink); }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: .68rem; font-weight: 800;
}
.badge[hidden] { display: none; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(246, 249, 251, 0.7);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(20,33,44,0.25);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  overflow: clip; box-shadow: var(--shadow-card);
  display: grid; place-items: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; color: var(--ink-mute); letter-spacing: .04em; }

.nav-links { display: none; align-items: center; gap: 1.75rem; margin-inline: auto; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-weight: 600; font-size: .93rem; padding: .3rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--blue-dark); }

.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.nav-search { display: none; position: relative; }
@media (min-width: 1080px) { .nav-search { display: block; } }
.nav-search input {
  width: 220px; padding: .6rem 2.2rem .6rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-size: .88rem;
  transition: width .3s var(--ease-out), border-color .3s;
}
.nav-search input:focus { width: 270px; border-color: var(--blue); }
.nav-search svg { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--ink-mute); pointer-events: none; }

.nav-burger { display: inline-flex; }
@media (min-width: 860px) { .nav-burger { display: none; } }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: var(--paper);
  padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-soft);
  overflow-y: auto;
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 1.5rem; }
.nav-mobile a { font-size: 1.3rem; font-weight: 700; }
.nav-mobile .nav-search { display: block; margin-top: 1rem; }
.nav-mobile .nav-search input { width: 100%; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; overflow: clip;
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 65%);
}
.hero-inner {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }

.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 16ch; }
.hero-title em { font-style: normal; color: var(--blue); background: linear-gradient(135deg, var(--blue), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 1.2rem; font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-stats { display: flex; gap: 2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--blue-dark); }
.hero-stat span { font-size: .82rem; color: var(--ink-mute); }

.hero-figure {
  position: relative; border-radius: var(--radius-l); overflow: clip;
  box-shadow: var(--shadow-pop);
  aspect-ratio: 16/11;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(0,114,240,0.14), rgba(18,212,143,0.16));
  mix-blend-mode: multiply;
}
.hero-badge {
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  border-radius: var(--radius-m); padding: .8rem 1.1rem;
  display: flex; align-items: center; gap: .7rem;
  box-shadow: var(--shadow-card);
}
.hero-badge svg { width: 26px; height: 26px; stroke: var(--green-dark); flex-shrink: 0; }
.hero-badge strong { display: block; font-size: .85rem; }
.hero-badge span { font-size: .74rem; color: var(--ink-mute); }

/* =============================================================
   7. Trust strip
   ============================================================= */
.trust-strip { padding-block: 2.5rem; border-block: 1px solid var(--line-soft); background: var(--paper); }
.trust-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; gap: .85rem; align-items: flex-start; }
.trust-item .icon-wrap {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-s);
  background: var(--blue-soft); display: grid; place-items: center;
}
.trust-item .icon-wrap svg { width: 22px; height: 22px; stroke: var(--blue-dark); }
.trust-item strong { font-size: .92rem; display: block; }
.trust-item p { font-size: .84rem; color: var(--ink-mute); margin-top: .2rem; }

/* =============================================================
   8. Category grid
   ============================================================= */
.category-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }

.category-card {
  position: relative; display: block; border-radius: var(--radius-m); overflow: clip;
  aspect-ratio: 4/3.4; box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.category-card:hover img { transform: scale(1.08); }
.category-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,20,28,0.82) 0%, rgba(11,20,28,0.15) 55%, transparent 75%);
}
.category-card-label { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; color: #fff; z-index: 2; }
.category-card-label strong { font-family: var(--font-display); font-size: 1rem; display: block; }
.category-card-label span { font-size: .74rem; opacity: .85; }

/* =============================================================
   9. Product cards & grid
   ============================================================= */
.product-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1160px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-card {
  background: var(--paper); border-radius: var(--radius-m); overflow: clip;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
  border: 1px solid var(--line-soft);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.product-media { position: relative; aspect-ratio: 1/1; background: var(--bg-2); overflow: clip; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-soft); }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-tag {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: var(--green-dark); color: #fff; font-size: .68rem; font-weight: 700;
  padding: .25rem .55rem; border-radius: 999px;
}
.product-tag.low { background: var(--danger); }
.product-brand { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-dark); }
.product-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-name { font-size: .96rem; font-weight: 700; line-height: 1.3; }
.product-model { font-size: .76rem; color: var(--ink-mute); }
.product-desc { font-size: .82rem; color: var(--ink-mute); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; gap: .5rem; }
.product-price { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.product-stock { font-size: .72rem; color: var(--green-dark); font-weight: 600; }
.product-stock.low { color: var(--danger); }
.add-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff;
  display: grid; place-items: center;
  transition: transform .35s var(--ease-soft), box-shadow .35s;
}
.add-btn:hover { transform: scale(1.08) rotate(90deg); box-shadow: var(--shadow-pop); }
.add-btn svg { width: 18px; height: 18px; stroke: #fff; }

.card-clickable { cursor: pointer; }

/* =============================================================
   10. Brands strip
   ============================================================= */
.brands-strip { background: var(--bg-2); padding-block: 2.2rem; }
.brands-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1rem;
}
.brand-pill {
  padding: .55rem 1.1rem; border-radius: 999px; background: var(--paper);
  font-weight: 700; font-size: .85rem; color: var(--ink-soft);
  border: 1px solid var(--line); transition: border-color .3s, color .3s, transform .3s var(--ease-soft);
}
.brand-pill:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }
.brand-pill.is-active { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; border-color: transparent; }

/* =============================================================
   11. Steps
   ============================================================= */
.steps-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: var(--paper); border-radius: var(--radius-m); padding: 1.6rem; box-shadow: var(--shadow-card); position: relative; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-family: var(--font-display);
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step-card p { font-size: .88rem; color: var(--ink-mute); }

/* =============================================================
   12. CTA WhatsApp band
   ============================================================= */
.cta-band {
  border-radius: var(--radius-l); padding: clamp(2rem, 5vw, 3.2rem);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue) 55%, var(--green-dark));
  color: #fff; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); max-width: 26ch; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: .5rem; max-width: 42ch; }
.cta-band .btn-accent { box-shadow: 0 20px 40px -14px rgba(0,0,0,0.4); }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,0.78); padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer ul { display: flex; flex-direction: column; gap: .55rem; }
.footer a { font-size: .88rem; transition: color .3s; }
.footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .78rem;
}

/* =============================================================
   14. Store layout (tienda.html)
   ============================================================= */
.store-header { padding-top: calc(var(--nav-h) + 1.8rem); padding-bottom: 1.5rem; background: var(--bg-2); }
.store-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.store-header p { color: var(--ink-mute); margin-top: .5rem; max-width: 60ch; }

.store-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); padding-block: 2.5rem 4rem; }
@media (min-width: 960px) { .store-layout { grid-template-columns: 260px minmax(0, 1fr); } }

.filters { align-self: start; position: sticky; top: calc(var(--nav-h) + 1rem); display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
@media (max-width: 959px) { .filters { position: static; } }
.filter-block { background: var(--paper); border-radius: var(--radius-m); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-card); }
.filter-block h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .9rem; color: var(--ink-soft); }
.filter-option { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .9rem; cursor: pointer; min-width: 0; }
.filter-option input { accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.filter-option .filter-label { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.filter-option .count { flex: none; margin-left: auto; color: var(--ink-mute); font-size: .78rem; }

.photo-search-block { background: linear-gradient(135deg, var(--green-soft), var(--blue-soft)); border-radius: var(--radius-m); padding: 1.3rem; text-align: center; }
.photo-search-block h3 { font-size: .95rem; margin-bottom: .35rem; }
.photo-search-block p { font-size: .8rem; color: var(--ink-mute); margin-bottom: .9rem; }
.photo-search-preview { margin-top: .8rem; border-radius: var(--radius-s); overflow: clip; }
.photo-search-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.store-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.store-toolbar .result-count { font-size: .88rem; color: var(--ink-mute); }
.store-search-mobile { display: block; position: relative; }
@media (min-width: 960px) { .store-search-mobile { display: none; } }
.store-search-mobile input { width: 100%; padding: .75rem 2.4rem .75rem 1rem; border-radius: 999px; border: 1px solid var(--line); }
.sort-select { padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .85rem; font-weight: 600; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ink-mute); }
.empty-state svg { width: 56px; height: 56px; stroke: var(--ink-mute); margin-inline: auto; margin-bottom: 1rem; }

/* =============================================================
   15. Product modal (dialog)
   ============================================================= */
dialog.product-modal {
  border: 0; border-radius: var(--radius-l); padding: 0; max-width: 780px; width: min(92vw, 780px);
  box-shadow: var(--shadow-pop); overflow: clip;
}
dialog.product-modal::backdrop { background: rgba(11,20,28,0.55); backdrop-filter: blur(3px); }
.modal-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 680px) { .modal-grid { grid-template-columns: 1fr 1.1fr; } }
.modal-media { background: var(--bg-2); aspect-ratio: 1; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 1.8rem; display: flex; flex-direction: column; gap: .7rem; position: relative; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-2); display: grid; place-items: center;
}
.modal-body h2 { font-size: 1.3rem; padding-right: 2.5rem; }
.modal-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--blue-dark); }
.modal-desc { font-size: .92rem; color: var(--ink-soft); line-height: 1.65; }
.modal-meta { display: flex; gap: 1.2rem; font-size: .82rem; color: var(--ink-mute); flex-wrap: wrap; }
.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: .3rem; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: clip; }
.qty-control button { width: 38px; height: 38px; font-size: 1.1rem; }
.qty-control button:hover { background: var(--bg-2); }
.qty-control span { width: 36px; text-align: center; font-weight: 700; }

/* =============================================================
   16. Cart drawer
   ============================================================= */
.cart-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(11,20,28,0.5);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out);
}
.cart-overlay[data-open="true"] { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 301;
  width: min(420px, 100vw); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .5s var(--ease-soft);
  box-shadow: -20px 0 50px rgba(11,20,28,0.2);
}
.cart-drawer[data-open="true"] { transform: translateX(0); }
.cart-head { padding: 1.4rem 1.4rem 1.1rem; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; }
.cart-head h2 { font-size: 1.15rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-item { display: flex; gap: .8rem; }
.cart-item img { width: 62px; height: 62px; border-radius: var(--radius-s); object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-body h4 { font-size: .87rem; font-weight: 700; line-height: 1.3; }
.cart-item-body .brand-tiny { font-size: .7rem; color: var(--ink-mute); text-transform: uppercase; }
.cart-item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; }
.cart-item-price { font-weight: 700; font-size: .88rem; }
.cart-item-remove { font-size: .76rem; color: var(--danger); font-weight: 600; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-mute); }
.cart-empty svg { width: 48px; height: 48px; stroke: var(--ink-mute); margin-inline: auto; margin-bottom: 1rem; }

.cart-foot { padding: 1.2rem 1.4rem 1.5rem; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: .9rem; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); }
.cart-total-row span:first-child { font-size: .9rem; color: var(--ink-mute); font-family: var(--font-body); }
.cart-total-row span:last-child { font-size: 1.4rem; font-weight: 800; }
.cart-note { font-size: .78rem; color: var(--ink-mute); }
.cart-note textarea, .cart-note input {
  width: 100%; margin-top: .4rem; padding: .6rem .8rem; border-radius: var(--radius-s);
  border: 1px solid var(--line); font: inherit; font-size: .85rem; resize: vertical;
}

/* =============================================================
   17. Contact page
   ============================================================= */
.contact-hero { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 2rem; background: var(--bg-2); }
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-block: 3rem; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--paper); border-radius: var(--radius-m); padding: 1.8rem; box-shadow: var(--shadow-card); }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; padding-block: .9rem; border-bottom: 1px solid var(--line-soft); }
.contact-info-item:last-child { border-bottom: 0; }
.contact-info-item .icon-wrap { width: 42px; height: 42px; border-radius: var(--radius-s); background: var(--blue-soft); display: grid; place-items: center; flex-shrink: 0; }
.contact-info-item .icon-wrap svg { width: 20px; height: 20px; stroke: var(--blue-dark); }
.contact-info-item strong { display: block; font-size: .9rem; }
.contact-info-item p, .contact-info-item a { font-size: .86rem; color: var(--ink-mute); }
.form-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.form-field label { font-size: .82rem; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select {
  padding: .75rem .9rem; border-radius: var(--radius-s); border: 1px solid var(--line); font: inherit; font-size: .92rem;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue); }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.is-visible { display: block; }
.form-success svg { width: 48px; height: 48px; stroke: var(--green-dark); margin-inline: auto; margin-bottom: 1rem; }

/* =============================================================
   18. Toast
   ============================================================= */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 400;
  transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; padding: .85rem 1.3rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: .6rem;
  box-shadow: var(--shadow-pop);
  transition: transform .5s var(--ease-soft);
}
.toast[data-open="true"] { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; stroke: var(--green); flex-shrink: 0; }

/* =============================================================
   18.5 Product detail page
   ============================================================= */
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
}
@media (min-width: 960px) {
  .product-detail-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
}
.product-gallery { display: flex; flex-direction: column; gap: .7rem; position: sticky; top: calc(var(--nav-h) + 1rem); min-width: 0; }
.product-gallery-main {
  aspect-ratio: 1/1;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  overflow: clip;
  box-shadow: var(--shadow-card);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery-thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 64px; height: 64px; border-radius: var(--radius-s);
  border: 1px solid var(--line); overflow: clip; background: var(--paper);
  padding: 0; cursor: pointer; transition: border-color .2s var(--ease-out);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-active, .gallery-thumb:hover { border-color: var(--blue); }
.product-info { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.product-info h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; margin: .2rem 0 .4rem; }
.compat-notice {
  margin: 1rem 0;
  padding: .9rem 1rem;
  background: var(--blue-soft);
  border: 1px solid rgba(0, 114, 240, 0.25);
  border-radius: var(--radius-m);
  font-size: .84rem;
  color: var(--ink-soft);
}

/* =============================================================
   19. Responsive helpers
   ============================================================= */
@media (max-width: 539px) {
  .hero-stats { gap: 1.3rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   20. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .toast, .cart-drawer, .nav-mobile { transition-duration: .01ms !important; }
}
