/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Lexend", Georgia, serif;

  --bg: #faf7f2;
  --bg-alt: #ffffff;
  --ink: #221a12;
  --ink-soft: #5c5044;
  --ink-faint: #94897b;
  --line: #eae2d6;
  --line-soft: #f2ece2;

  --accent: #c8672b;
  --accent-hover: #a8531f;
  --accent-ink: #ffffff;
  --accent-soft: #fbeee2;
  --accent-soft-line: #eecdaa;

  --ok: #2f7a4f;
  --ok-soft: #e9f5ee;
  --warn: #a3690f;
  --warn-soft: #fdf1de;
  --danger: #b23a3a;
  --danger-soft: #fbe9e9;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-card: 0 1px 2px rgba(34,26,18,.05), 0 10px 30px -14px rgba(34,26,18,.18);
  --shadow-pop: 0 20px 60px -20px rgba(34,26,18,.4);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130f; --bg-alt: #1e1811; --ink: #f3ece2; --ink-soft: #c4b8a6; --ink-faint: #8a7d6c;
    --line: #322a1f; --line-soft: #241e17;
    --accent: #e08a4c; --accent-hover: #eda062; --accent-ink: #1a1006;
    --accent-soft: #2c2015; --accent-soft-line: #4a3620;
    --ok-soft: #10281c; --warn-soft: #332409; --danger-soft: #341313;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17130f; --bg-alt: #1e1811; --ink: #f3ece2; --ink-soft: #c4b8a6; --ink-faint: #8a7d6c;
  --line: #322a1f; --line-soft: #241e17;
  --accent: #e08a4c; --accent-hover: #eda062; --accent-ink: #1a1006;
  --accent-soft: #2c2015; --accent-soft-line: #4a3620;
  --ok-soft: #10281c; --warn-soft: #332409; --danger-soft: #341313;
  color-scheme: dark;
}

/* =============================================================
   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 { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; overscroll-behavior-y: none; }
img, video, canvas { display: block; max-width: 100%; }
svg { flex: none; }
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(--display); text-wrap: balance; line-height: 1.15; font-weight: 600; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.section-head { max-width: 68ch; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: .5rem; }
.section-head p { color: var(--ink-soft); margin-top: .6rem; font-size: 1.02rem; }
section { padding-block: clamp(2.4rem, 5vw, 4.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; }

.sample-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .84rem; font-weight: 600; padding: .6rem 1rem; }
.sample-banner a { text-decoration: underline; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 10px; font-weight: 600; font-size: .96rem; transition: transform .18s var(--ease-out), background .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out); border: 1px solid transparent; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px rgba(200,103,43,.5); }
.btn-primary:hover, .btn-primary:hover svg { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: var(--bg-alt); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.04rem; }
.btn[disabled], .btn.is-sample { opacity: .7; cursor: not-allowed; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* =============================================================
   5. Header & nav
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; flex: none; }
.brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.header-nav { display: none; gap: 1.2rem; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.header-nav a:hover { color: var(--ink); }
@media (min-width: 860px) { .header-nav { display: flex; align-items: center; } }
.header-nav a.nav-cta, .header-nav a.nav-cta:hover { color: var(--accent-ink); background: var(--accent); padding: .5rem 1rem; border-radius: 999px; }
.mobile-menu-btn { display: inline-flex; width: 38px; height: 38px; border-radius: 8px; align-items: center; justify-content: center; border: 1px solid var(--line); }
@media (min-width: 860px) { .mobile-menu-btn { display: none; } }
.mobile-menu { display: none; position: fixed; inset: 64px 0 0 0; background: var(--bg); z-index: 39; overflow-y: auto; padding: 1.2rem; border-top: 1px solid var(--line); }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.breadcrumbs { font-size: .8rem; color: var(--ink-faint); padding-block: 1rem .5rem; }
.breadcrumbs span { margin: 0 .35rem; }
.breadcrumbs a:hover { color: var(--ink); }

/* =============================================================
   6. Hero / home
   ============================================================= */
.home-hero { background: var(--ink); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.home-hero .eyebrow { color: #f0b585; }
.home-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; }
.home-hero p { color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 58ch; margin-top: .8rem; }
.home-hero .btn-primary { margin-top: 1.6rem; }
.trust-strip { display: flex; gap: 1.6rem 2.2rem; flex-wrap: wrap; margin-top: 2rem; font-size: .85rem; color: rgba(255,255,255,.75); }
.trust-strip span { display: flex; align-items: center; gap: .4rem; }
.trust-strip svg { color: #f0b585; width: 1.1em; height: 1.1em; }

/* =============================================================
   7. Product cards + grids
   ============================================================= */
.products-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s var(--ease-out), border-color .18s var(--ease-out); position: relative; }
.product-card:hover { transform: translateY(-3px); border-color: var(--accent-soft-line); }
.product-card .card-img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--line-soft); }
.product-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-body { padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-card h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; }
.product-card .card-rating { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--ink-soft); }
.product-card .card-rating svg { width: 1em; height: 1em; color: var(--accent); }
.product-card .card-price { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin-top: auto; }
.product-card .card-price .old { font-family: var(--sans); font-size: .82rem; color: var(--ink-faint); text-decoration: line-through; font-weight: 500; margin-right: .4rem; }
.sample-badge { position: absolute; top: 10px; left: 10px; background: var(--warn); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 999px; z-index: 2; }
.offer-badge { position: absolute; top: 10px; right: 10px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 800; padding: .25rem .55rem; border-radius: 999px; z-index: 2; }

/* =============================================================
   8. Ficha (product page)
   ============================================================= */
.ficha-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-block: 1.6rem 2.4rem; }
@media (min-width: 900px) { .ficha-grid { grid-template-columns: minmax(0,1fr) minmax(340px, 420px); } }
.gallery-main { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--line-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.ficha-panel { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 84px; height: fit-content; }
.ficha-brand { font-size: .82rem; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ficha-panel h1 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.ficha-rating { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.stars { display: inline-flex; gap: 1px; color: var(--accent); }
.stars svg { width: 1.05em; height: 1.05em; }
.ficha-price { font-family: var(--display); font-size: 2.1rem; font-weight: 700; }
.ficha-price .old { font-family: var(--sans); font-size: 1.05rem; color: var(--ink-faint); text-decoration: line-through; font-weight: 500; margin-right: .5rem; }
.price-note { font-size: .74rem; color: var(--ink-faint); }
.ficha-panel .btn-primary { margin-top: .3rem; }

.spec-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); margin-top: 1rem; }
.spec-table { min-width: 420px; font-size: .9rem; }
.spec-table th, .spec-table td { padding: .6rem .9rem; text-align: left; border-top: 1px solid var(--line-soft); }
.spec-table th { width: 45%; color: var(--ink-soft); font-weight: 600; background: var(--line-soft); }
.spec-group-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin: 1.4rem 0 .5rem; }

.radar-wrap { width: 100%; max-width: 360px; margin-inline: auto; }
.radar-caption { text-align: center; font-size: .78rem; color: var(--ink-faint); margin-top: .4rem; }

.pc-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
@media (min-width: 640px) { .pc-grid { grid-template-columns: 1fr 1fr; } }
.pc-col { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem; }
.pc-col h3 { font-size: .92rem; font-family: var(--sans); display: flex; align-items: center; gap: .4rem; margin-bottom: .7rem; }
.pc-col.pros h3 { color: var(--ok); }
.pc-col.contras h3 { color: var(--danger); }
.pc-col h3 svg { width: 1.15em; height: 1.15em; flex: none; }
.pc-col li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); padding-block: .3rem; }
.pc-col li svg { width: 1.1em; height: 1.1em; flex: none; margin-top: .1rem; }
.pc-col.pros li svg { color: var(--ok); }
.pc-col.contras li svg { color: var(--danger); }

.ideal-para { background: var(--accent-soft); border: 1px solid var(--accent-soft-line); border-radius: var(--radius-m); padding: 1.1rem 1.3rem; margin-top: 1rem; font-size: .95rem; }
.ideal-para strong { color: var(--accent); }

.editorial-body { color: var(--ink-soft); font-size: .98rem; display: flex; flex-direction: column; gap: 1rem; }
.editorial-body p { margin: 0; }

.reviews-summary { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem 1.3rem; margin-top: 1rem; font-size: .92rem; color: var(--ink-soft); }

.similar-strip { display: flex; gap: 1rem; overflow-x: auto; padding-block: .5rem; }
.similar-strip .product-card { min-width: 220px; flex: none; }

/* =============================================================
   9. Comparator
   ============================================================= */
.compare-picker { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.compare-slot { width: 140px; }
.compare-slot select { width: 100%; padding: .6rem .7rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); font-size: .86rem; }
.compare-cards { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.compare-cards-row { display: grid; gap: 1rem; }
.compare-slot-wrap { position: relative; }
.compare-slot-wrap .thumb { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); background: var(--line-soft); }
.compare-slot-wrap .thumb img { width: 100%; height: 100%; object-fit: cover; }
.compare-slot-wrap .remove-badge { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: .8rem; }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
.compare-table { min-width: 560px; font-size: .88rem; }
.compare-table th, .compare-table td { padding: .6rem .8rem; border-top: 1px solid var(--line-soft); text-align: left; }
.compare-table th:first-child, .compare-table td:first-child { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.compare-table .is-best { color: var(--ok); font-weight: 700; }
.compare-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-faint); }

/* =============================================================
   10. Category / guide / ofertas
   ============================================================= */
.filter-bar { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.5rem; align-items: center; }
.filter-bar select { padding: .55rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-alt); font-size: .86rem; }
.guide-body { max-width: 74ch; color: var(--ink-soft); display: flex; flex-direction: column; gap: 1rem; font-size: 1rem; }
.guide-body h2, .guide-body h3 { color: var(--ink); }
.pick-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem; margin-block: .8rem; }
.pick-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; background: var(--line-soft); }
.pick-rank { font-family: var(--display); font-size: 1.6rem; color: var(--accent); flex: none; width: 2.2rem; text-align: center; }

/* =============================================================
   11. How-we-choose / disclosure / footer
   ============================================================= */
.trust-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.4rem; }
.disclosure-box { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-m); padding: 1rem 1.2rem; font-size: .84rem; display: flex; gap: .6rem; align-items: flex-start; }
.disclosure-box svg { flex: none; margin-top: .1rem; width: 1.2em; height: 1.2em; }

.site-footer { border-top: 1px solid var(--line); padding-block: 2.4rem; margin-top: 2rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: .7rem; }
.footer-cols a { display: block; font-size: .86rem; color: var(--ink-soft); padding-block: .3rem; }
.footer-cols a:hover { color: var(--ink); }
.footer-disclosure { font-size: .76rem; color: var(--ink-faint); margin-top: 1.5rem; max-width: 76ch; }
.footer-note { font-size: .82rem; color: var(--ink-faint); margin-top: .6rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .86rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

.legal-page { padding-block: 3rem; max-width: 74ch; margin-inline: auto; }
.legal-page h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.legal-page h2 { font-size: 1.15rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: .95rem; margin-bottom: .6rem; }
.legal-page ul { list-style: disc; padding-left: 1.4rem; }

.faq-list { display: flex; flex-direction: column; gap: .7rem; max-width: 80ch; }
.faq-item { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-m); padding: .3rem 1.2rem; }
.faq-item summary { cursor: pointer; padding-block: .95rem; font-weight: 600; font-size: .98rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s var(--ease-out); color: var(--ink-faint); flex: none; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1rem; color: var(--ink-soft); font-size: .92rem; }

html:not(.is-ready) .js-only { display: none !important; }
