/* ==========================================================================
   Mochilas de Cabine — design system
   Static affiliate site · pt-PT · conversion-focused, clean, fast
   ========================================================================== */

:root {
  --c-bg: #ffffff;
  --c-surface: #f6f8fb;
  --c-surface-2: #eceff4;
  --c-border: #e1e6ee;
  --c-text: #16202e;
  --c-text-soft: #45506180;
  --c-ink: #2f3a4a;
  --c-muted: #6b7686;
  --c-primary: #0e7a5a;       /* teal-green: travel / trust */
  --c-primary-dark: #0a5f46;
  --c-primary-soft: #e7f5ef;
  --c-accent: #ff9900;        /* Amazon orange — CTAs */
  --c-accent-2: #ffb648;
  --c-accent-dark: #e07c00;
  --c-accent-ink: #3d2600;
  --c-star: #ff9900;
  --c-ok: #0e7a5a;
  --c-bad: #c0392b;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.09);
  --shadow-md: 0 4px 10px -2px rgba(16,24,40,.1), 0 2px 6px -2px rgba(16,24,40,.06);
  --shadow-lg: 0 14px 34px -8px rgba(16,24,40,.16), 0 6px 12px -6px rgba(16,24,40,.1);
  --container: 1120px;
  --container-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; color: var(--c-text); font-weight: 800; letter-spacing: -0.018em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 1.1rem + 3vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2rem); margin-top: 1.9em; }
h3 { font-size: 1.22rem; margin-top: 1.5em; }
p { margin: 0 0 1.05em; color: var(--c-ink); }
strong { color: var(--c-text); font-weight: 700; }
ul, ol { color: var(--c-ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--container-narrow); margin-left: auto; margin-right: auto; }
.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 ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--c-primary); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.16rem; color: var(--c-text); letter-spacing: -0.03em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--c-primary), #18a87c); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.brand .mark svg { width: 22px; height: 22px; }
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a { color: var(--c-ink); font-weight: 600; font-size: .94rem; padding: 8px 11px; border-radius: 8px; }
.main-nav a:hover { color: var(--c-primary); background: var(--c-primary-soft); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--c-border); border-radius: 9px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 420px at 78% -10%, var(--c-primary-soft), transparent 60%), linear-gradient(180deg, var(--c-surface), #fff 78%); border-bottom: 1px solid var(--c-border); padding: 60px 0 48px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--c-primary); background: #fff; border: 1px solid var(--c-border); padding: 6px 13px; border-radius: 99px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.16rem; max-width: 60ch; color: var(--c-ink); }
.hero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn { --b: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.1; padding: 13px 22px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: transform .07s ease, box-shadow .2s ease, background .15s ease, filter .15s ease; text-align: center; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Standout Amazon buy button */
.btn-buy {
  background: linear-gradient(180deg, var(--c-accent-2), var(--c-accent));
  color: var(--c-accent-ink);
  border-color: var(--c-accent-dark);
  box-shadow: 0 6px 16px rgba(255,153,0,.42), inset 0 1px 0 rgba(255,255,255,.45);
  font-weight: 800;
}
.btn-buy:hover { filter: brightness(1.03); box-shadow: 0 9px 22px rgba(255,153,0,.5), inset 0 1px 0 rgba(255,255,255,.5); color: var(--c-accent-ink); }
.btn-buy .px { font-weight: 900; }
.btn-lg { font-size: 1.1rem; padding: 16px 28px; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--c-text); border-color: var(--c-border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--c-surface); color: var(--c-text); }
.btn-soft { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.btn-soft:hover { background: #d7eee4; color: var(--c-primary-dark); }

/* ---------- Stars ---------- */
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--c-star); font-size: 1rem; letter-spacing: .5px; line-height: 1; }
.stars.sm { font-size: .82rem; }
.rating { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--c-muted); font-size: .92rem; }
.rating b { color: var(--c-text); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--c-muted); padding: 16px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--c-border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }

/* ---------- Generic article ---------- */
.page { padding: 22px 0 40px; }
.page h2 { scroll-margin-top: 84px; }
.updated { font-size: .88rem; color: var(--c-muted); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 10px 14px; display: flex; gap: 8px; align-items: flex-start; margin: 0 0 22px; }
.updated a { color: var(--c-primary); }
.lead-p { font-size: 1.12rem; color: var(--c-ink); }

.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .55em; }
.prose h3 { color: var(--c-text); }

/* ---------- Quick picks ---------- */
.quickpicks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 22px 0 8px; padding: 0; list-style: none; }
.quickpick { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; }
.quickpick .tag { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--c-primary); }
.quickpick .name { font-weight: 700; color: var(--c-text); }
.quickpick .why { font-size: .9rem; color: var(--c-muted); margin: 0; }
.quickpick a.mini { margin-top: auto; font-weight: 700; font-size: .9rem; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--c-border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.compare th, table.compare td { padding: 12px 13px; text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
table.compare thead th { background: var(--c-surface); font-weight: 700; color: var(--c-ink); white-space: nowrap; position: sticky; top: 0; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr.pick { background: var(--c-primary-soft); }
table.compare .model { display: flex; align-items: center; gap: 11px; min-width: 200px; }
table.compare .model img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--c-border); flex: none; }
table.compare .model .mn { font-weight: 700; color: var(--c-text); line-height: 1.25; }
table.compare .model .badge-pick { font-size: .68rem; font-weight: 800; color: var(--c-primary-dark); text-transform: uppercase; letter-spacing: .04em; }
table.compare td .btn { padding: 9px 14px; font-size: .86rem; white-space: nowrap; }

/* ---------- Facts table (reference) ---------- */
.facts { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.facts th, .facts td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--c-border); }
.facts thead th { background: var(--c-surface); white-space: nowrap; }
.facts tbody th { font-weight: 800; color: var(--c-text); }
.facts tbody tr:nth-child(even) { background: #fbfcfe; }

/* ---------- Product review card (item) ---------- */
.product { border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); overflow: hidden; margin: 26px 0; scroll-margin-top: 84px; }
.product .pinner { display: grid; grid-template-columns: 300px 1fr; gap: 0; }
.product .pmedia { background: linear-gradient(160deg, var(--c-surface), #fff); padding: 26px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--c-border); position: relative; }
.product .pmedia img { max-height: 280px; width: auto; mix-blend-mode: multiply; }
.product .rank { position: absolute; top: 14px; left: 14px; background: var(--c-text); color: #fff; font-weight: 800; font-size: .8rem; padding: 5px 12px; border-radius: 99px; }
.product .rank.best { background: linear-gradient(135deg, var(--c-primary), #18a87c); }
.product .pbody { padding: 24px 26px; min-width: 0; }
.product .ptag { display: inline-block; font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--c-primary-dark); background: var(--c-primary-soft); padding: 4px 11px; border-radius: 99px; margin-bottom: 10px; }
.product h3 { margin: 0 0 8px; font-size: 1.28rem; }
.product .meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.product .price { font-size: 1.5rem; font-weight: 900; color: var(--c-text); }
.product .price .note { font-size: .76rem; font-weight: 600; color: var(--c-muted); }
.product .pspecs { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0 0 14px; }
.product .pspecs li { font-size: .82rem; font-weight: 600; color: var(--c-ink); background: var(--c-surface-2); padding: 5px 11px; border-radius: 99px; }
.product .review p { margin: 0 0 12px; }
.product .pc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 4px 0 16px; }
.product .pc ul { list-style: none; padding: 0; margin: 0; }
.product .pc li { position: relative; padding-left: 23px; font-size: .92rem; margin-bottom: 7px; color: var(--c-ink); }
.product .pc .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--c-ok); font-weight: 900; }
.product .pc .cons li::before { content: "✕"; position: absolute; left: 0; color: var(--c-bad); font-weight: 900; }
.product .pcta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product .pcta .trust { font-size: .8rem; color: var(--c-muted); }

/* ---------- Verdict / callout ---------- */
.callout { border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary); background: linear-gradient(120deg, var(--c-primary-soft), #fff 70%); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.callout.warn { border-left-color: var(--c-accent); background: linear-gradient(120deg, #fff5e6, #fff 70%); }
.callout p:last-child { margin-bottom: 0; }
.callout .ch { font-weight: 800; color: var(--c-text); display: block; margin-bottom: 4px; }

/* ---------- CTA banner ---------- */
.cta { background: linear-gradient(135deg, #fff6e8, #fff); border: 1px solid #ffe2b0; border-radius: var(--radius-lg); padding: 30px; text-align: center; margin: 34px 0; box-shadow: var(--shadow-sm); }
.cta h2 { margin: 0 0 8px; }
.cta p { max-width: 52ch; margin: 0 auto 18px; }

/* ---------- FAQ ---------- */
.faq { margin: 16px 0; }
.faq details { border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; color: var(--c-text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--c-primary); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--c-border); }
.faq .a { padding: 14px 18px 4px; }
.faq .a p { color: var(--c-ink); }

/* ---------- Disclosure box ---------- */
.disclosure { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .86rem; color: var(--c-muted); margin: 26px 0; }
.disclosure strong { color: var(--c-ink); }

/* ---------- Home cards ---------- */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 22px 0; }
.navcard { display: block; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .2s ease; }
.navcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.navcard .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--c-primary-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 22px; }
.navcard h3 { margin: 0 0 5px; font-size: 1.12rem; }
.navcard p { font-size: .92rem; color: var(--c-muted); margin: 0; }

.section { padding: 30px 0; }
.section-head { max-width: 62ch; }
.section-head .k { color: var(--c-primary); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

/* ---------- Sticky mobile buy bar ---------- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; align-items: center; gap: 12px; background: #fff; border-top: 1px solid var(--c-border); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.buybar .bp { font-weight: 900; font-size: 1.15rem; white-space: nowrap; }
.buybar .btn { flex: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #111923; color: #c2cad6; margin-top: 60px; padding: 48px 0 26px; font-size: .93rem; }
.site-footer a { color: #c2cad6; }
.site-footer a:hover { color: #fff; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .mark { box-shadow: none; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .blurb { max-width: 34ch; margin: 12px 0 0; color: #97a1b0; }
.fbottom { border-top: 1px solid #283342; margin-top: 30px; padding-top: 20px; color: #7d8796; font-size: .82rem; }
.fbottom p { color: #7d8796; margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .fgrid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .product .pinner { grid-template-columns: 1fr; }
  .product .pmedia { border-right: none; border-bottom: 1px solid var(--c-border); }
  .product .pmedia img { max-height: 220px; }
}
@media (max-width: 760px) {
  .main-nav { position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-border); flex-direction: column; align-items: stretch; padding: 8px 14px 14px; gap: 2px; box-shadow: var(--shadow-md); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; }
  .nav-toggle { display: inline-flex; }
  .product .pc { grid-template-columns: 1fr; }
  .buybar { display: flex; }
  body.has-buybar { padding-bottom: 76px; }
}
@media (max-width: 460px) {
  .fgrid { grid-template-columns: 1fr; }
  .product .pbody { padding: 20px; }
}
