
:root{
  --bg:#f7f5ef;
  --surface:#fffdf8;
  --surface-soft:#f0ede5;
  --surface-accent:#e8f0eb;
  --text:#172421;
  --heading:#10201d;
  --muted:#61706b;
  --subtle:#89938f;
  --line:#dedfd8;
  --line-strong:#c9cdc5;

  --primary:#28564f;
  --primary-hover:#214942;
  --primary-soft:#dfece7;
  --accent:#d96d52;
  --accent-soft:#f7dfd6;
  --gold:#d9b866;
  --gold-soft:#f7edcd;
  --blue-soft:#e3ebf3;

  --shadow-xs:0 1px 2px rgba(16,32,29,.04);
  --shadow-sm:0 6px 22px rgba(16,32,29,.06);
  --shadow-md:0 18px 46px rgba(16,32,29,.09);

  --radius-sm:10px;
  --radius:16px;
  --radius-lg:24px;

  --wrap:1160px;
  --article:790px;
  --ease:cubic-bezier(.2,.8,.2,1);
}

html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0f1715;
  --surface:#151f1c;
  --surface-soft:#1b2723;
  --surface-accent:#1c2c27;
  --text:#dfe9e4;
  --heading:#f3f8f5;
  --muted:#a8b6b0;
  --subtle:#7f8e88;
  --line:#293832;
  --line-strong:#364840;

  --primary:#9bc8ba;
  --primary-hover:#b2d9cd;
  --primary-soft:#203a33;
  --accent:#ef8a70;
  --accent-soft:#3c2823;
  --gold:#e7c876;
  --gold-soft:#372f1b;
  --blue-soft:#1d2c36;

  --shadow-xs:0 1px 2px rgba(0,0,0,.18);
  --shadow-sm:0 8px 26px rgba(0,0,0,.20);
  --shadow-md:0 20px 54px rgba(0,0,0,.28);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{
  margin:0;
  min-width:0;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  transition:background-color .2s ease,color .2s ease
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{color:inherit}
svg{display:block}
::selection{background:var(--gold-soft);color:var(--heading)}

.wrap{width:min(var(--wrap),calc(100% - 32px));margin-inline:auto}
.narrow{width:min(var(--article),100%)}
main,.wrap,.hero-grid>*,.product-layout>*,.content-grid>*,.admin-columns>*{min-width:0}

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--bg) 91%,transparent);
  backdrop-filter:blur(18px)
}
.header-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px
}
.brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:11px
}
.brand-mark{
  flex:0 0 42px;
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:14px;
  background:var(--primary);
  color:var(--gold-soft);
  box-shadow:var(--shadow-xs)
}
html[data-theme="dark"] .brand-mark{color:var(--gold)}
.brand-mark svg{width:28px;height:28px}
.brand-star{fill:var(--accent)}
.brand-copy{min-width:0}
.brand-copy strong{
  display:block;
  color:var(--heading);
  font-size:15px;
  line-height:1.1;
  letter-spacing:-.015em
}
.brand-copy small{
  display:block;
  margin-top:3px;
  max-width:245px;
  color:var(--muted);
  font-size:10.5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.header-tools{display:flex;align-items:center;gap:14px}
.desktop-nav{display:flex;align-items:center;gap:24px}
.desktop-nav a{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  transition:color .18s ease
}
.desktop-nav a:hover{color:var(--heading)}

.theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  box-shadow:var(--shadow-xs)
}
.theme-toggle button{
  width:31px;height:31px;
  display:grid;place-items:center;
  padding:0;border:0;border-radius:50%;
  background:transparent;
  color:var(--subtle);
  cursor:pointer;
  transition:background .16s ease,color .16s ease,transform .16s ease
}
.theme-toggle button:hover{color:var(--heading)}
.theme-toggle button.active{
  background:var(--primary);
  color:var(--bg)
}
html[data-theme="dark"] .theme-toggle button.active{color:#0f1715}
.theme-toggle svg{
  width:15px;height:15px;
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round
}
.theme-toggle [data-theme-choice="light"] circle{fill:currentColor;stroke:none}
.theme-toggle [data-theme-choice="dark"] path{fill:currentColor;stroke:none}

.menu-button{
  display:none;
  width:38px;height:38px;
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--heading);
  cursor:pointer
}
.menu-button svg{width:18px;height:18px;margin:auto}
.mobile-menu{display:none}

/* ---------- Typography ---------- */
h1,h2,h3,h4{
  margin:0;
  color:var(--heading);
  font-weight:790;
  text-wrap:balance
}
h1{font-size:clamp(38px,5vw,58px);line-height:1.02;letter-spacing:-.045em}
h2{font-size:clamp(27px,3.2vw,38px);line-height:1.1;letter-spacing:-.032em}
h3{font-size:19px;line-height:1.25;letter-spacing:-.018em}
p{margin:0 0 1em}
.lead{
  max-width:760px;
  margin-top:14px;
  color:var(--muted);
  font-size:18px;
  line-height:1.55
}
.muted{display:block;color:var(--muted);font-size:12px;margin-top:8px}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:8px;
  color:var(--primary);
  font-size:10px;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase
}
.eyebrow:before{
  content:"";
  width:5px;height:5px;
  border-radius:50%;
  background:var(--accent)
}
.section-kicker{
  max-width:620px;
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px
}

/* ---------- Buttons ---------- */
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  max-width:100%;
  padding:11px 17px;
  border:1px solid transparent;
  border-radius:12px;
  background:var(--primary);
  color:#fff;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  text-align:center;
  cursor:pointer;
  transition:transform .18s var(--ease),background .18s ease,box-shadow .18s ease
}
html[data-theme="dark"] .button{color:#0d1714}
.button:hover{transform:translateY(-1px);background:var(--primary-hover);box-shadow:var(--shadow-sm)}
.button:active{transform:translateY(0)}
.button-accent{background:var(--primary)}
.button-secondary{
  background:var(--surface);
  color:var(--heading);
  border-color:var(--line)
}
.button-secondary:hover{background:var(--surface-soft)}
.button.full{width:100%;margin-top:18px}
.text-link{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--heading);
  font-size:13px;
  font-weight:800
}
.text-link:after{content:"→";transition:transform .18s ease}
.text-link:hover:after{transform:translateX(3px)}

/* ---------- Home hero ---------- */
.hero{
  position:relative;
  overflow:hidden;
  padding:70px 0 58px;
  background:
    radial-gradient(circle at 86% 16%,color-mix(in srgb,var(--gold) 18%,transparent),transparent 28%),
    radial-gradient(circle at 13% 10%,color-mix(in srgb,var(--accent) 8%,transparent),transparent 24%),
    linear-gradient(180deg,var(--surface-accent),var(--bg))
}
.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(330px,.72fr);
  gap:52px;
  align-items:center
}
.hero h1{max-width:700px}
.hero h1 .highlight{color:var(--primary)}
.hero p{
  max-width:650px;
  margin-top:18px;
  color:var(--muted);
  font-size:17px;
  line-height:1.6
}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.trust-strip{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:28px
}
.trust-item{
  min-width:130px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:color-mix(in srgb,var(--surface) 76%,transparent)
}
.trust-item strong{display:block;color:var(--heading);font-size:12px}
.trust-item span{display:block;color:var(--muted);font-size:10px;margin-top:2px}

.hero-panel{
  padding:22px;
  border:1px solid var(--line);
  border-radius:22px;
  background:color-mix(in srgb,var(--surface) 92%,transparent);
  box-shadow:var(--shadow-sm)
}
.hero-panel-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px
}
.hero-panel-top strong{font-size:14px;color:var(--heading)}
.mini-pill{
  padding:5px 8px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:9px;
  font-weight:850
}
.quick-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px
}
.quick-grid a{
  min-width:0;
  padding:13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
  color:var(--heading);
  font-size:12px;
  font-weight:750;
  transition:transform .18s var(--ease),border-color .18s ease,background .18s ease
}
.quick-grid a:hover{transform:translateY(-2px);border-color:var(--line-strong);background:var(--surface-soft)}
.qicon{
  width:31px;height:31px;
  display:grid;place-items:center;
  margin-bottom:8px;
  border-radius:10px;
  background:var(--primary-soft);
  color:var(--primary)
}
.qicon svg{width:16px;height:16px}

/* ---------- Sections ---------- */
.section{padding:66px 0}
.section.alt{background:var(--surface-soft)}
.section.soft{background:var(--surface-accent)}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:26px
}
.spaced{margin-top:54px!important}

/* ---------- Categories ---------- */
.category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}
.category-card{
  position:relative;
  min-width:0;
  min-height:160px;
  overflow:hidden;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  box-shadow:var(--shadow-xs);
  transition:transform .2s var(--ease),box-shadow .2s ease,border-color .2s ease
}
.category-card:nth-child(4n+1){--cat:var(--primary-soft)}
.category-card:nth-child(4n+2){--cat:var(--accent-soft)}
.category-card:nth-child(4n+3){--cat:var(--gold-soft)}
.category-card:nth-child(4n+4){--cat:var(--blue-soft)}
.category-card:after{
  content:"";
  position:absolute;
  right:-28px;bottom:-34px;
  width:94px;height:94px;
  border-radius:50%;
  background:var(--cat)
}
.category-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm);border-color:var(--line-strong)}
.category-icon{
  position:relative;z-index:1;
  width:36px;height:36px;
  display:grid;place-items:center;
  margin-bottom:24px;
  border-radius:11px;
  background:var(--cat);
  color:var(--heading)
}
.category-icon svg{width:18px;height:18px}
.category-card h2,.category-card h3{
  position:relative;z-index:1;
  margin:0 0 6px;
  font-size:16px
}
.category-card p{
  position:relative;z-index:1;
  margin:0;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.45
}

/* ---------- Cards ---------- */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px
}
.cards-grid.articles{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--surface);
  box-shadow:var(--shadow-xs);
  transition:transform .2s var(--ease),box-shadow .2s ease,border-color .2s ease
}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm);border-color:var(--line-strong)}
.card-media{
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--surface-soft)
}
.card-media img{
  width:100%;height:100%;
  object-fit:contain;
  padding:12px;
  transition:transform .28s var(--ease)
}
.card:hover .card-media img{transform:scale(1.025)}
.card-body{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  padding:17px
}
.card h3{margin:8px 0 8px;font-size:16px}
.card h3 a{display:block}
.card p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5
}
.card-body .text-link{margin-top:auto;align-self:flex-start}
.badge{
  align-self:flex-start;
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:9px;
  font-weight:850;
  letter-spacing:.065em;
  text-transform:uppercase
}
.price{margin:6px 0;font-size:18px;font-weight:850;color:var(--heading)}
.price.large{font-size:30px}
.placeholder{
  width:100%;height:100%;
  display:grid;place-items:center;
  background:var(--surface-soft);
  color:var(--subtle)
}
.placeholder svg{width:48px;height:48px;opacity:.55}
.placeholder.big{min-height:360px;border-radius:18px}

/* ---------- Breadcrumbs / listings ---------- */
.breadcrumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  margin-bottom:30px;
  color:var(--subtle);
  font-size:11px
}
.breadcrumb a:hover{color:var(--heading)}
.empty{
  padding:24px;
  border:1px dashed var(--line-strong);
  border-radius:14px;
  background:var(--surface);
  color:var(--muted)
}

/* ---------- Product page ---------- */
.product-layout{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:54px;
  align-items:center;
  margin-top:18px
}
.product-image img{
  width:100%;
  max-height:540px;
  object-fit:contain;
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface)
}
.product-info h1{
  margin:10px 0 14px;
  font-size:clamp(34px,4vw,52px)
}
.content-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:54px;
  margin-top:66px
}
.sidebox{
  align-self:start;
  position:sticky;
  top:96px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  box-shadow:var(--shadow-xs)
}
.sidebox strong{display:block;color:var(--heading);margin-bottom:6px}
.sidebox p{color:var(--muted);font-size:13px}

/* ---------- Editorial ---------- */
.prose{
  color:var(--text)
}
.prose.article{max-width:var(--article)}
.prose h1{
  margin:0 0 14px;
  font-size:clamp(38px,5vw,56px)
}
.prose h2{
  margin:38px 0 10px;
  font-size:29px;
  line-height:1.18
}
.prose h3{
  margin:28px 0 8px;
  font-size:21px
}
.prose p,.prose li{
  color:var(--muted);
  font-size:16px;
  line-height:1.72
}
.prose strong{color:var(--text)}
.prose ul,.prose ol{padding-left:21px;margin:12px 0 22px}
.prose li+li{margin-top:7px}
.article-meta{
  margin:10px 0 22px;
  color:var(--subtle);
  font-size:11px
}
.article-image{
  margin:28px 0;
  border-radius:18px;
  border:1px solid var(--line)
}
.quick-answer{
  margin:24px 0 34px;
  padding:17px 18px;
  border:1px solid var(--line);
  border-left:3px solid var(--accent);
  border-radius:13px;
  background:var(--surface-soft)
}
.quick-answer span{
  display:block;
  margin-bottom:5px;
  color:var(--accent);
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase
}
.quick-answer p{margin:0;color:var(--text);font-size:14px;line-height:1.6}

/* related product cards */
.article-products{
  margin-top:52px;
  padding-top:42px;
  border-top:1px solid var(--line)
}
.article-products-head>p{max-width:640px;color:var(--muted);font-size:13px}
.article-product-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
  margin-top:20px
}
.article-product{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--surface)
}
.article-product-image{
  display:grid;place-items:center;
  aspect-ratio:16/10;
  padding:12px;
  background:var(--surface-soft)
}
.article-product-image img{width:100%;height:100%;object-fit:contain}
.article-product-body{padding:16px}
.article-product-body h3{margin:8px 0;font-size:17px}
.article-product-body p{font-size:12px;line-height:1.5;color:var(--muted)}
.article-product-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}
.article-product-actions .button{min-height:42px;padding:9px 13px;font-size:11.5px}
.article-product-actions .text-link{font-size:11.5px}
.affiliate-note{margin-top:10px!important;color:var(--subtle)!important;font-size:10px!important}

/* faq */
.article-faq{
  margin-top:52px;
  padding-top:42px;
  border-top:1px solid var(--line)
}
.article-faq details{border-bottom:1px solid var(--line)}
.article-faq summary{
  position:relative;
  padding:16px 32px 16px 0;
  list-style:none;
  color:var(--heading);
  font-size:13px;
  font-weight:750;
  cursor:pointer
}
.article-faq summary::-webkit-details-marker{display:none}
.article-faq summary:after{
  content:"+";
  position:absolute;right:2px;top:13px;
  color:var(--accent);
  font-size:20px
}
.article-faq details[open] summary:after{content:"–"}
.article-faq details p{margin:0 0 16px;color:var(--muted);font-size:13px}

/* ---------- Footer ---------- */
.site-footer{
  padding:42px 0 88px;
  border-top:1px solid var(--line);
  background:var(--surface-soft);
  color:var(--muted)
}
.site-footer .wrap{
  display:flex;
  justify-content:space-between;
  gap:30px
}
.site-footer strong{color:var(--heading);font-size:13px}
.site-footer p{max-width:650px;margin:8px 0 0;font-size:11px}
.footer-links{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start;font-size:11px}

/* ---------- Mobile dock ---------- */
.mobile-dock{display:none}

/* ---------- Admin ---------- */
.admin-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.admin-card{
  width:min(480px,100%);
  padding:26px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:var(--shadow-md)
}
.admin-card h1{font-size:30px}
.admin-card label,.admin-form label{display:block;margin:14px 0;color:var(--heading);font-size:13px;font-weight:700}
.admin-card input,.admin-form input,.admin-form textarea,.admin-form select{
  width:100%;
  min-width:0;
  max-width:100%;
  padding:11px 12px;
  border:1px solid var(--line-strong);
  border-radius:10px;
  background:var(--surface);
  color:var(--text)
}
.admin-form textarea{resize:vertical}
.error,.notice{padding:11px;border-radius:10px;margin:12px 0}
.error{background:var(--accent-soft);color:var(--heading)}
.notice{background:var(--primary-soft);color:var(--heading)}
.admin-top{
  min-height:60px;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:var(--heading);
  color:var(--bg)
}
.admin-top a{text-decoration:underline}
.admin-layout{display:grid;grid-template-columns:205px minmax(0,1fr);min-height:calc(100vh - 60px)}
.admin-nav{padding:20px;background:var(--surface-soft);border-right:1px solid var(--line)}
.admin-nav a{display:block;padding:10px 11px;border-radius:9px;margin-bottom:5px;font-size:13px}
.admin-nav a.active{background:var(--surface);font-weight:800}
.admin-content{min-width:0;width:100%;max-width:1400px;padding:30px}
.admin-content h1{font-size:34px}
.admin-content h2{font-size:22px;margin:20px 0 10px}
.admin-columns{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:34px}
.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.admin-form small{color:var(--muted);font-weight:400}
.check{display:flex!important;align-items:center;gap:8px}
.check input{width:auto!important}
.admin-list{display:grid;gap:9px}
.admin-item{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface)
}
.admin-item small{display:block;color:var(--muted)}
.admin-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;font-size:12px}
.admin-actions button{padding:0;border:0;background:none;color:var(--accent);text-decoration:underline;cursor:pointer}

/* ---------- Motion / focus ---------- */
.reveal{opacity:1;transform:none}
.js .reveal{opacity:0;transform:translateY(10px);transition:opacity .42s var(--ease),transform .42s var(--ease)}
.js .reveal.in{opacity:1;transform:none}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:3px solid color-mix(in srgb,var(--accent) 40%,transparent);
  outline-offset:3px
}

/* ---------- Tablet ---------- */
@media(max-width:980px){
  .desktop-nav{display:none}
  .menu-button{display:grid}
  .mobile-menu{
    display:grid;
    grid-template-rows:0fr;
    border-bottom:1px solid var(--line);
    background:var(--surface);
    transition:grid-template-rows .24s var(--ease)
  }
  .mobile-menu>div{overflow:hidden}
  .mobile-menu.open{grid-template-rows:1fr}
  .mobile-menu nav{display:grid;gap:3px;padding:6px 16px 15px}
  .mobile-menu a{padding:11px 12px;border-radius:9px;color:var(--heading);font-size:13px;font-weight:700}
  .mobile-menu a:hover{background:var(--surface-soft)}

  .hero-grid{grid-template-columns:1fr;gap:28px}
  .hero-panel{max-width:650px}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cards-grid.articles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-layout{grid-template-columns:1fr;gap:30px}
  .product-image{max-width:620px}
  .content-grid{grid-template-columns:1fr}
  .sidebox{position:static}
  .admin-columns{grid-template-columns:1fr}
}

/* ---------- Mobile ---------- */
@media(max-width:640px){
  body{font-size:15px;padding-bottom:64px}
  .wrap{width:min(100% - 28px,var(--wrap))}
  .header-inner{min-height:64px}
  .brand-mark{width:38px;height:38px;flex-basis:38px;border-radius:12px}
  .brand-mark svg{width:25px;height:25px}
  .brand-copy strong{font-size:14px}
  .brand-copy small{display:none}
  .header-tools{gap:7px}
  .theme-toggle{padding:2px}
  .theme-toggle button{width:29px;height:29px}
  .menu-button{width:35px;height:35px}

  h1{font-size:38px}
  h2{font-size:27px}
  h3{font-size:17px}
  .lead{font-size:16px}

  .hero{padding:46px 0 40px}
  .hero h1{font-size:42px;max-width:440px}
  .hero p{font-size:15px;margin-top:14px}
  .hero-actions{display:grid;grid-template-columns:1fr;margin-top:22px}
  .hero-actions .button{width:100%}
  .trust-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:20px}
  .trust-item{min-width:0;padding:9px}
  .trust-item strong{font-size:10.5px}
  .trust-item span{font-size:8.5px}
  .hero-panel{padding:16px;border-radius:17px}
  .hero-panel-top strong{font-size:13px}
  .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .quick-grid a{padding:11px;font-size:11px}
  .qicon{width:29px;height:29px}

  .section{padding:46px 0}
  .section-head{align-items:flex-start;margin-bottom:20px}
  .section-head>.text-link{margin-top:6px;white-space:nowrap}
  .section-kicker{font-size:12.5px}

  .category-grid{grid-template-columns:1fr;gap:9px}
  .category-card{
    min-height:0;
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    column-gap:12px;
    padding:14px
  }
  .category-icon{grid-row:1/3;margin:0;width:38px;height:38px}
  .category-card h2,.category-card h3{font-size:15px;margin:1px 0 3px}
  .category-card p{font-size:10.5px;line-height:1.4}
  .category-card:after{width:72px;height:72px}

  .cards-grid,.cards-grid.articles{
    display:flex;
    gap:11px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    margin-right:-14px;
    padding:1px 14px 12px 1px
  }
  .cards-grid::-webkit-scrollbar,.cards-grid.articles::-webkit-scrollbar{display:none}
  .card{
    flex:0 0 min(78vw,300px);
    scroll-snap-align:start
  }
  .cards-grid.articles .card{flex-basis:min(82vw,320px)}
  .card-body{padding:15px}
  .card h3{font-size:15px}
  .card p{font-size:11.5px}

  .breadcrumb{margin-bottom:22px;font-size:10px}
  .product-info h1,.prose h1{font-size:36px}
  .prose h2{font-size:25px;margin-top:32px}
  .prose h3{font-size:19px;margin-top:24px}
  .prose p,.prose li{font-size:15px;line-height:1.68}
  .quick-answer{margin:20px 0 28px;padding:15px}
  .quick-answer p{font-size:13px}

  .article-product-grid{grid-template-columns:1fr}
  .article-product-actions{display:grid;grid-template-columns:1fr}
  .article-product-actions .button{width:100%}

  .site-footer{padding:34px 0 30px}
  .site-footer .wrap{display:block}
  .footer-links{margin-top:18px}

  .mobile-dock{
    position:fixed;
    left:10px;right:10px;bottom:10px;
    z-index:60;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    min-height:52px;
    padding:4px;
    border:1px solid var(--line);
    border-radius:16px;
    background:color-mix(in srgb,var(--surface) 94%,transparent);
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    backdrop-filter:blur(16px)
  }
  .mobile-dock a{
    display:grid;place-items:center;
    align-content:center;
    gap:2px;
    color:var(--muted);
    font-size:9px;
    font-weight:750
  }
  .mobile-dock svg{width:17px;height:17px}

  .admin-layout{grid-template-columns:1fr}
  .admin-nav{
    display:flex;
    gap:5px;
    overflow:auto;
    padding:10px;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .admin-nav a{white-space:nowrap;margin:0}
  .admin-content{padding:20px 14px}
  .form-row{grid-template-columns:1fr}
  .admin-item{display:block}
  .admin-actions{margin-top:9px}
}

@media(max-width:390px){
  .brand-copy{display:none}
  .trust-strip{grid-template-columns:1fr}
  .theme-toggle button{width:27px;height:27px}
  .menu-button{width:33px;height:33px}
  .hero h1{font-size:36px}
}

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


/* =========================
   V6.1 — Contrast + fixed brand
   ========================= */

/* Logo siempre igual al favicon, sin depender del tema */
.brand-mark,
html[data-theme="dark"] .brand-mark{
  background:#183230;
  color:#f5d98d;
}
.brand-star,
html[data-theme="dark"] .brand-star{
  fill:#ef6a46;
}

/* El override oscuro anterior hacía ilegible el botón secundario */
html[data-theme="dark"] .button{
  color:#0d1714;
}
html[data-theme="dark"] .button.button-secondary{
  color:var(--heading);
  background:var(--surface);
  border-color:var(--line-strong);
}
html[data-theme="dark"] .button.button-secondary:hover{
  background:var(--surface-soft);
  color:var(--heading);
}

/* Contraste adicional en elementos secundarios */
html[data-theme="dark"] .trust-item{
  background:#151f1c;
  border-color:#33433d;
}
html[data-theme="dark"] .trust-item strong{
  color:#f3f8f5;
}
html[data-theme="dark"] .trust-item span{
  color:#b5c1bc;
}
html[data-theme="dark"] .quick-grid a{
  background:#17221f;
  border-color:#33433d;
  color:#f3f8f5;
}
html[data-theme="dark"] .quick-grid a:hover{
  background:#1d2b27;
  border-color:#466057;
}
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .article-product{
  border-color:#31413b;
}
html[data-theme="dark"] .badge{
  background:#29453d;
  color:#cfe8df;
}
html[data-theme="dark"] .eyebrow{
  color:#9bc8ba;
}
html[data-theme="dark"] .breadcrumb{
  color:#9caaa5;
}
html[data-theme="dark"] .text-link{
  color:#eef5f2;
}

/* El selector debe leerse como control, no decoración */
.theme-toggle{
  border-color:var(--line-strong);
}
html[data-theme="dark"] .theme-toggle{
  background:#131d1a;
  border-color:#35483f;
}
html[data-theme="dark"] .theme-toggle button{
  color:#aebcb7;
}
html[data-theme="dark"] .theme-toggle button.active{
  background:#9bc8ba;
  color:#10201d;
}

/* Reserva para publicidad futura.
   No se muestra mientras no haya sponsor real. */
.ad-slot[hidden]{
  display:none !important;
}


/* =========================
   V6.2 — rhythm + catalog consistency
   ========================= */

/* Más aire entre encabezados, bloques y listados */
.section > .wrap > h1,
.section > .wrap > .eyebrow + h1{
  margin-bottom:10px;
}

.section > .wrap > .lead{
  margin-bottom:28px;
}

.section > .wrap > h2{
  margin-top:34px;
  margin-bottom:18px;
}

.section > .wrap > .cards-grid + h2,
.section > .wrap > .category-grid + h2{
  margin-top:54px;
}

.prose.article > h2{
  margin-top:42px;
  margin-bottom:12px;
}

.prose.article > h3{
  margin-top:30px;
  margin-bottom:9px;
}

.prose.article > p + h2,
.prose.article > ul + h2,
.prose.article > ol + h2{
  margin-top:46px;
}

/* Catálogo: tarjetas más contenidas en desktop */
@media(min-width:981px){
  .cards-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:stretch;
  }

  .cards-grid.articles{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  /* Si hay sólo 1 o 2 productos, no se estiran a media pantalla */
  .cards-grid:not(.articles) > .card{
    max-width:340px;
  }
}

/* Imagen de catálogo siempre cuadrada */
.card-media{
  aspect-ratio:1/1;
  background:var(--surface-soft);
}

.card-media img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:16px;
}

/* Mismo criterio dentro de comparativas */
.article-product-image{
  aspect-ratio:1/1;
  background:var(--surface-soft);
}

.article-product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px;
}

/* Alturas visuales más parejas */
.card-body{
  min-height:190px;
}

.card h3{
  min-height:40px;
}

.card p{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Guías: mejor separación entre título y grilla */
.cards-grid.articles{
  margin-top:8px;
}

/* Más aire en artículos */
.prose.article .quick-answer{
  margin-top:28px;
  margin-bottom:40px;
}

.article-products{
  margin-top:60px;
}

.article-faq{
  margin-top:60px;
}

/* Mobile: mantener densidad más compacta */
@media(max-width:640px){
  .section > .wrap > .lead{
    margin-bottom:22px;
  }

  .section > .wrap > h2{
    margin-top:30px;
    margin-bottom:15px;
  }

  .prose.article > h2{
    margin-top:34px;
    margin-bottom:10px;
  }

  .prose.article > h3{
    margin-top:25px;
  }

  .card-body{
    min-height:0;
  }

  .card h3{
    min-height:0;
  }
}
