/* =========================================================
   buyurself — brand stylesheet
   Colors sampled from the buyurself logo:
   orange gradient (#FF9A0E → #F2570B) + deep navy (#14212F)
   ========================================================= */

:root {
  --orange: #ff7a00;
  --orange-light: #ff9a0e;
  --orange-deep: #e8540a;
  --orange-text: #c2410c;          /* AA-contrast orange for small text on white */
  --orange-soft: #fff4e8;
  --orange-tint: #ffe2c4;
  --navy: #14212f;
  --navy-2: #1f3044;
  --navy-soft: #eef2f6;
  --ink: #14212f;
  --muted: #566272;
  --line: #ebe5de;
  --bg: #ffffff;
  --bg-alt: #fbf8f4;

  --grad: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 45%, var(--orange-deep) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 47, .06), 0 2px 8px -2px rgba(20, 33, 47, .06);
  --shadow: 0 12px 32px -14px rgba(20, 33, 47, .22);
  --shadow-cta: 0 8px 20px -8px rgba(232, 84, 10, .55);
  --max: 1240px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 900; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-text); margin-bottom: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(232, 84, 10, .65); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-block { width: 100%; }
.link-arrow { font-weight: 800; color: var(--navy); white-space: nowrap; }
.link-arrow:hover { color: var(--orange-text); text-decoration: none; }

/* ---------- Promo bar + header ---------- */
.promo-bar { background: var(--navy); color: #e6ecf2; font-size: .9rem; font-weight: 700; text-align: center; padding: 9px 16px; }
.promo-bar a { color: var(--orange-light); font-weight: 800; }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { flex: none; }
.brand img { height: 58px; width: auto; }
.header-search { position: relative; flex: 1; max-width: 420px; }
.header-search input, .nav-search input {
  width: 100%; font: inherit; font-size: .95rem; padding: 11px 16px 11px 42px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--bg-alt); color: var(--ink);
}
.header-search input:focus, .nav-search input:focus { outline: none; border-color: var(--orange); background: #fff; }
.header-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--navy); font-weight: 800; padding: 9px 13px; border-radius: 999px; font-size: .96rem; white-space: nowrap; }
.nav a:hover { background: var(--navy-soft); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--orange-soft); color: var(--orange-text); }
.nav-search { display: none; }
.saved-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--navy); flex: none; }
.saved-link:hover { background: var(--orange-soft); color: var(--orange-deep); }
.saved-count {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--orange-deep); color: #fff; font-size: .7rem; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff;
}
.saved-count[hidden] { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }

@media (max-width: 1080px) {
  .header-search { display: none; }
}
@media (max-width: 820px) {
  .header-inner { height: 64px; gap: 8px; }
  .brand img { height: 46px; }
  .saved-link { margin-left: auto; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-search { display: block; margin-bottom: 8px; }
  .nav-search input { padding-left: 16px; }
  .promo-bar { font-size: .82rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(800px 460px at 100% 0%, var(--orange-tint), transparent 62%), var(--bg-alt);
  padding: 64px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: .88rem; color: var(--navy);
  background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22a35a; box-shadow: 0 0 0 4px rgba(34,163,90,.18); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; margin-bottom: 26px; }
.hero-search {
  position: relative; display: flex; gap: 8px; max-width: 560px; background: #fff; padding: 7px;
  border-radius: 999px; border: 2px solid var(--line); box-shadow: var(--shadow);
}
.hero-search:focus-within { border-color: var(--orange); }
.hero-search svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: 10px 10px 10px 44px; background: transparent; color: var(--ink); }
.hero-search input:focus { outline: none; }
.trending { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; }
.trending span { font-weight: 800; color: var(--muted); margin-right: 2px; }
.trending a {
  color: var(--navy); font-weight: 700; background: #fff; border: 1px solid var(--line); padding: 5px 13px; border-radius: 999px;
}
.trending a:hover { border-color: var(--orange); color: var(--orange-text); text-decoration: none; }

.hero-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-pick {
  display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 16px; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s ease;
}
.hero-pick:hover { transform: translateY(-4px); text-decoration: none; }
.hero-pick.hp-1, .hero-pick.hp-3 { transform: translateY(26px); }
.hero-pick.hp-1:hover, .hero-pick.hp-3:hover { transform: translateY(22px); }
.hp-media { aspect-ratio: 4 / 3; border-radius: 14px; background: linear-gradient(160deg, #fff7ee, #ffe6cc); display: grid; place-items: center; color: var(--orange-deep); overflow: hidden; }
.hp-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 10px; }
.hp-text { font-weight: 800; font-size: .95rem; line-height: 1.3; }
.hp-text small { display: block; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-text); margin-bottom: 3px; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-picks { grid-template-columns: repeat(4, 1fr); }
  .hero-pick.hp-1, .hero-pick.hp-3 { transform: none; }
}
@media (max-width: 640px) {
  .hero-search .btn { padding: .75em 1.1em; }
  .hero-picks { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-pick { padding: 12px; border-radius: 16px; }
  .hero-pick.hp-2, .hero-pick.hp-3 { display: none; }
}

/* ---------- Trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.trust-grid > div { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.trust-grid svg { flex: none; color: var(--orange-deep); }
.trust-grid b { display: block; color: var(--navy); font-size: .98rem; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .25em; }
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }
@media (max-width: 640px) { section { padding: 52px 0; } }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 10px 18px;
  color: var(--navy); font-weight: 800; transition: all .18s ease;
}
.cat-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow); }
.cat-icon {
  width: 62px; height: 62px; margin-bottom: 10px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-deep); transition: all .18s ease;
}
.cat-card:hover .cat-icon { background: var(--grad); color: #fff; }
.cat-name { line-height: 1.25; }
.cat-card small { color: var(--muted); font-weight: 700; font-size: .8rem; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) {
  .cat-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 10px; }
  .cat-card { flex: 0 0 132px; scroll-snap-align: start; }
}

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #fff7ee, #ffe6cc); color: var(--orange-deep); }
.product-media > a { position: absolute; inset: 0; display: grid; place-items: center; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; background: #fff; }
.product-media .ph svg { width: 76px; height: 76px; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 6px; pointer-events: none;
}
.badge.hot { background: #c81e1e; }
.save-btn {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .15s ease;
}
.save-btn:hover { transform: scale(1.08); color: var(--orange-deep); }
.save-btn.saved { color: #e11d48; }
.save-btn.saved svg { fill: currentColor; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.best-for {
  align-self: flex-start; font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em;
  color: var(--orange-text); background: var(--orange-soft); padding: 4px 9px; border-radius: 6px; margin-bottom: 10px;
}
.product-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.product-body h3 a { color: var(--ink); }
.product-body h3 a:hover { color: var(--orange-text); }
.product-body p { color: var(--muted); font-size: .93rem; margin-bottom: 12px; }
.product-points { list-style: none; padding: 0; margin: 0 0 16px; font-size: .9rem; }
.product-points li { display: flex; gap: 8px; align-items: start; margin-bottom: 4px; }
.product-points li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%;
  background: #e7f6ed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23178a4b' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.product-body .btn { margin-top: auto; }
.grid-note { margin: 22px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.grid-note a { color: inherit; text-decoration: underline; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-state svg { color: var(--orange); }
.empty-state h3 { color: var(--ink); margin: 6px 0 0; }

/* ---------- Page hero + shop ---------- */
.page-hero { background: var(--bg-alt); padding: 44px 0 34px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.crumbs a { color: var(--muted); }
.updated { margin-top: 14px; font-size: .85rem; font-weight: 800; color: var(--muted); }
.shop-section { padding-top: 0; }
.toolbar {
  position: sticky; top: 76px; z-index: 20; background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  display: flex; gap: 14px; align-items: center; padding: 16px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font: inherit; font-weight: 800; font-size: .9rem; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: #fff; color: var(--navy);
}
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.toolbar-right { display: flex; gap: 10px; flex: none; }
.toolbar-search { position: relative; width: 220px; }
.toolbar-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar-search input, #shop-sort {
  width: 100%; font: inherit; font-size: .92rem; font-weight: 700; padding: 9px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
}
.toolbar-search input { padding-left: 38px; }
#shop-sort { width: auto; cursor: pointer; }
.toolbar-search input:focus, #shop-sort:focus { outline: none; border-color: var(--orange); }
.result-count { color: var(--muted); font-weight: 700; font-size: .9rem; margin: 14px 0 18px; }
@media (max-width: 900px) {
  .toolbar { flex-direction: column; align-items: stretch; top: 64px; }
  .toolbar-right { width: 100%; }
  .toolbar-search { flex: 1; width: auto; }
}

/* ---------- Promo tiles ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promo-tile {
  position: relative; overflow: hidden; border-radius: 24px; padding: 40px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; min-height: 300px;
  transition: transform .18s ease;
}
.promo-tile:hover { text-decoration: none; transform: translateY(-3px); }
.promo-tile h2 { max-width: 420px; }
.promo-tile p { max-width: 420px; opacity: .92; font-size: 1.05rem; }
.promo-tile .btn { margin-top: auto; }
.promo-navy { background: var(--navy); }
.promo-navy .kicker { color: var(--orange-light); }
.promo-navy::after { content: ""; position: absolute; right: -90px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; background: var(--grad); opacity: .9; }
.promo-orange { background: var(--grad); }
.promo-orange .kicker { color: #fff; opacity: .9; }
.promo-orange::after { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.14); }
.promo-tile > * { position: relative; z-index: 1; }
@media (max-width: 820px) { .promo-grid { grid-template-columns: 1fr; } .promo-tile { padding: 30px 24px; min-height: 0; } .promo-tile .btn { margin-top: 10px; } }

/* ---------- How we pick ---------- */
.how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 18px 74px; box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 900; display: grid; place-items: center;
}
.steps b { display: block; font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: all .18s ease; }
.guide-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-thumb { aspect-ratio: 16/9; background: var(--grad); display: grid; place-items: center; color: #fff; }
.guide-thumb.alt { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: var(--orange-light); }
.guide-thumb svg { width: 60px; height: 60px; }
.guide-card .body { padding: 18px 22px 22px; }
.guide-card .meta { font-size: .78rem; font-weight: 900; color: var(--orange-text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.guide-card p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 800; font-size: 1.04rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-deep); display: grid; place-items: center; font-weight: 900; font-size: 1.1rem;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Newsletter ---------- */
.newsletter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  background: var(--grad); color: #fff; border-radius: 24px; padding: 48px;
}
.newsletter h2 { margin-bottom: .3em; }
.newsletter p { opacity: .95; font-size: 1.08rem; margin: 0; }
.news-form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; }
.news-form input { flex: 1; min-width: 0; border: 0; font: inherit; padding: 10px 16px; border-radius: 999px; color: var(--ink); }
.news-form input:focus { outline: none; }
@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; padding: 32px 22px; text-align: center; } }
@media (max-width: 420px) { .news-form { flex-direction: column; border-radius: 18px; } .news-form input { text-align: center; } }

/* ---------- Prose pages ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.callout { background: var(--orange-soft); border-left: 5px solid var(--orange); padding: 18px 22px; border-radius: 12px; margin: 24px 0; font-weight: 700; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 16px; max-width: 620px; }
.form-grid label { font-weight: 800; font-size: .92rem; display: block; margin-bottom: 6px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; font: inherit; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: none; border-color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c5d2; padding: 60px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 14px; background: #fff; padding: 4px; }
.footer-brand span { font-size: 1.6rem; font-weight: 900; color: #fff; }
.footer-brand span b { color: var(--orange-light); font-weight: 900; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9c5d2; }
.site-footer a:hover { color: var(--orange-light); }
.footer-disclosure {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #8d9bab;
  display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* Real photos fill the frame; Amazon cut-out images (white background) stay whole */
.product-media.has-img, .hp-media.has-img { background: #f3efea; }
.product-media.has-img img, .hp-media.has-img img { object-fit: cover; padding: 0; }
.product-media.has-img img[src*="media-amazon.com"], .hp-media.has-img img[src*="media-amazon.com"],
.product-media.has-img img[src*="images-amazon.com"], .hp-media.has-img img[src*="images-amazon.com"] { object-fit: contain; padding: 14px; background: #fff; }
.product-card:hover .product-media.has-img img { transform: scale(1.03); }
.product-media.has-img { overflow: hidden; }
.product-media img { transition: transform .3s ease; }

/* Form status messages */
.form-msg { margin: 0; font-weight: 800; font-size: .95rem; }
.form-msg:empty { display: none; }
.form-msg.error { color: #b91c1c; }
.form-msg.ok { color: #178a4b; }
.news-msg { margin-top: 12px; color: #fff; }
.news-msg.error { color: #fff; background: rgba(120, 20, 0, .35); padding: 8px 14px; border-radius: 10px; display: inline-block; }
.news-msg.ok { color: #fff; }

/* Amazon price + rank (shown only when fetched from the API within the last hour) */
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.card-tags .best-for { margin-bottom: 0; }
.rank { font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--navy); padding: 4px 9px; border-radius: 6px; }
.brand { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 2px 0 2px; }
.price { font-size: 1.45rem; font-weight: 900; color: var(--ink); }
.list-price { color: var(--muted); font-weight: 700; }
.save { font-size: .78rem; font-weight: 900; color: #fff; background: #c81e1e; padding: 3px 8px; border-radius: 6px; }
.price-note { font-size: .72rem; color: var(--muted); margin-bottom: 12px; }
.price-note a { color: inherit; text-decoration: underline; }
.card-tags:empty { display: none; }

/* Placeholder until a real product photo is added (brand name + category icon) */
.product-media .ph { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.product-media .ph b { font-size: .95rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); opacity: .75; }
