/* Discount Filter Shop theme: the storefront design (formerly the Next.js app), unchanged.
   Self-hosted latin variable fonts (Archivo, Public Sans, JetBrains Mono). */
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('../fonts/public-sans-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }
:root {
  --font-display: 'Archivo'; --font-body: 'Public Sans'; --font-mono: 'JetBrains Mono';
  /* Water palette: deep water navy, ocean blue actions, aqua highlights, ice backgrounds */
  --ink: #0b2438; --muted: #4f6578; --line: #d6e4ee; --bg: #ffffff; --soft: #f0f8fc;
  --blue: #0369a1; --blue-dark: #075985; --blue-soft: #e0f2fe;
  --aqua: #22d3ee; --deep: #082f49; --wave: #0c4a6e;
  --cta: #0284c7; --cta-dark: #0369a1; --ok: #0f766e; --ok-soft: #dff7f3; --warn: #9a5a07; --warn-soft: #fdf1dc;
  --radius: 10px; --wrap: 1180px;
  --display: var(--font-display), 'Helvetica Neue', Arial, sans-serif;
  --body: var(--font-body), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: var(--font-mono), ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: .01em; }
.muted { color: var(--muted); }
.eyebrow { font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; display: block; }
.section { padding-block: 48px; }
.section.soft { background: var(--soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 8px; font: 700 15px var(--body); border: 2px solid transparent; cursor: pointer; text-decoration: none !important; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 6px 16px rgba(2,132,199,.25); }
.btn-primary:hover { background: var(--cta-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { border-color: currentColor; color: var(--blue); background: transparent; }
.btn-disabled { background: var(--soft); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.img-missing { display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); font-size: 14px; }
.card-img .img-missing { position: absolute; inset: 0; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* announcement + header */
.announce { background: var(--deep); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; letter-spacing: .02em; }
.header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { font: 800 20px var(--display); color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.nav { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); }
.nav .finder-link { color: var(--blue); }
.header-search { flex: 1; max-width: 360px; margin-left: auto; }
.header-icons { display: flex; gap: 16px; font-weight: 600; font-size: 14px; margin-left: auto; }
.header-icons a { color: var(--ink); }

/* search */
.search { position: relative; }
.search input { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 14px; font: 15px var(--body); background: var(--soft); }
.search-results { position: absolute; top: 48px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15,29,43,.12); z-index: 30; max-height: 420px; overflow: auto; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-results a:hover { background: var(--soft); text-decoration: none; }
.search-results img { width: 44px; height: 44px; object-fit: contain; }

/* product card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.card:hover { box-shadow: 0 8px 24px rgba(15,29,43,.08); }
.card-img { aspect-ratio: 1; background: #fff; display: block; position: relative; }
.card-img img { object-fit: contain; padding: 14px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-name { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); }
.card-part { color: var(--muted); font-size: 13px; }
.price { font: 800 20px var(--display); }
.price s { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 6px; }
.badge { display: inline-block; font: 700 11px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; }
.badge-genuine { background: var(--ok-soft); color: var(--ok); }
.card-actions { margin-top: auto; display: grid; gap: 8px; }
.card-actions .btn { min-height: 40px; font-size: 14px; }

/* footer + mobile tab bar */
.footer { background: var(--deep); color: #bfd9ea; padding-block: 44px 90px; margin-top: 40px; font-size: 14px; }
.footer a { color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer h4 { color: #fff; font: 700 13px var(--body); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tabbar { display: none; }

@media (max-width: 860px) {
  .nav, .header-icons .hide-sm { display: none; }
  .header-row { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: 12px; font-weight: 700; color: var(--ink); }
  .tabbar a.primary { color: var(--blue); }
  .tabbar svg { width: 22px; height: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* hero + finder */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(34,211,238,.28), transparent 60%), linear-gradient(160deg, var(--deep) 0%, var(--wave) 55%, var(--blue) 100%); color: #fff; padding-block: 44px 56px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }

/* hero animation: water layer, entrance, pulse (all off with reduced motion) */
.hero-water { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow { position: absolute; width: 620px; height: 620px; right: -120px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.22), transparent 65%); animation: glow 14s ease-in-out infinite alternate; }
.bubble { position: absolute; bottom: -20px; border-radius: 50%; border: 1.5px solid rgba(186,230,253,.45);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(255,255,255,.04) 60%);
  animation: rise-bubble 11s linear infinite; opacity: 0; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 120px; }
.wave path { fill: rgba(34,211,238,.10); }
.wave-1 { animation: drift 22s linear infinite; }
.wave-2 { animation: drift 16s linear infinite reverse; bottom: -8px; }
.wave-2 path { fill: rgba(14,165,233,.14); }
.wave-3 { animation: drift 30s linear infinite; bottom: -18px; }
.wave-3 path { fill: rgba(8,47,73,.35); }
.rise { animation: rise-in .7s cubic-bezier(.2,.7,.2,1) both; }
.btn-pulse { position: relative; }
.btn-pulse::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--aqua);
  opacity: 0; animation: pulse-ring 3.2s ease-out 1.6s infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rise-bubble { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; }
  50% { transform: translate(10px, -45vh); } 90% { opacity: .8; } 100% { transform: translate(-6px, -90vh); opacity: 0; } }
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-80px, 40px) scale(1.15); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse-ring { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.12, 1.35); } }
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .bubble, .wave, .rise, .btn-pulse::after { animation: none !important; }
  .bubble { display: none; }
}
.hero p.lead { font-size: 18px; color: #d4eefb; max-width: 620px; margin: 0 0 24px; }
.finder { background: #fff; color: var(--ink); border-radius: 14px; padding: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.finder-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.finder-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 180px; }
.finder-field.grow { flex: 1; min-width: 240px; }
.finder-field select, .finder-field input { height: 48px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 12px; font: 16px var(--body); color: var(--ink); background: #fff; }
.finder-field input { font-family: var(--mono); }
.finder-form .btn { min-height: 48px; }
.finder-tip, .finder-photo { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.finder-results { margin-top: 14px; display: grid; gap: 8px; }
.finder-hit { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--ink); }
.finder-hit:hover { background: var(--soft); text-decoration: none; }
.finder-hit img { width: 64px; height: 64px; object-fit: contain; }
.finder-none { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.badge-verify { background: var(--warn-soft); color: var(--warn); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-ctas .btn-ghost { color: #fff; }

/* brand tiles, trust, steps */
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.brand-tile { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; font: 800 18px var(--display); color: var(--ink); background: #fff; }
.brand-tile:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.brand-tile small { display: block; font: 600 12px var(--body); color: var(--muted); margin-top: 4px; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.trust strong { display: block; font: 800 17px var(--display); margin-bottom: 4px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps div { padding: 18px; border-radius: var(--radius); background: var(--soft); }
.steps div::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--aqua)); color: #fff; font-weight: 800; margin-bottom: 8px; }
.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.guides a { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-weight: 700; color: var(--ink); background: #fff; }
.crumbs { font-size: 13px; color: var(--muted); padding-block: 14px; }
.crumbs a { color: var(--muted); }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; }
.toolbar select { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: 14px var(--body); }
.guide-box { background: var(--soft); border-radius: var(--radius); padding: 22px; margin-top: 32px; }
.brand-family { margin: -6px 0 18px; font-size: 15px; }
@media (max-width: 860px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust, .steps { grid-template-columns: 1fr; }
  .finder-form .btn { width: 100%; }
}

/* product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.gallery .slide { flex: 0 0 100%; aspect-ratio: 1; position: relative; scroll-snap-align: center; }
.gallery .slide img { object-fit: contain; padding: 24px; }
.pdp-title { font-size: clamp(24px, 3vw, 34px); margin-top: 8px; }
.stock { color: var(--ok); font-weight: 700; margin: 0 0 12px; }
.fits { background: var(--soft); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; font-size: 14px; }
.perks li::before { content: '✓ '; color: var(--ok); font-weight: 800; }
.notsure { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.pdp-details { max-width: 760px; padding-top: 28px; }
.pdp-details ul, .pdp-details ol { padding-left: 20px; }
.sticky-buy { display: none; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 18px; }
  .sticky-buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 58px;
    background: #fff; border-top: 1px solid var(--line); padding: 8px 16px; z-index: 35; }
}

/* photo finder */
.photo-box { margin-top: 16px; border: 2px dashed var(--line); border-radius: 12px; padding: 14px; background: var(--soft); }
.photo-text { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.photo-text strong { color: var(--ink); display: block; font-size: 15px; }
.photo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-row { display: flex; gap: 16px; align-items: center; }
.photo-main { flex: 1; min-width: 0; }
.phone-snap { width: 74px; height: 150px; flex: none; filter: drop-shadow(0 8px 14px rgba(8,47,73,.28)); }
.phone-icon { width: 14px; height: 20px; flex: none; }
.snap-flash { opacity: 0; animation: snap-flash 5.2s ease-out infinite; }
.snap-filter { animation: snap-zoom 5.2s ease-in-out infinite; transform-origin: 36px 66px; }
.snap-focus { animation: snap-focus 5.2s ease-in-out infinite; transform-origin: 36px 65.5px; }
.snap-shutter { animation: snap-shutter 5.2s ease-in-out infinite; transform-origin: 36px 125.5px; }
@keyframes snap-flash { 0%, 46% { opacity: 0; } 50% { opacity: .9; } 62%, 100% { opacity: 0; } }
@keyframes snap-zoom { 0%, 40% { transform: scale(.94); } 50%, 100% { transform: scale(1); } }
@keyframes snap-focus { 0%, 20% { transform: scale(1.35); opacity: 0; } 32% { transform: scale(1); opacity: 1; } 38% { transform: scale(1.06); } 44%, 80% { transform: scale(1); opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes snap-shutter { 0%, 46% { transform: scale(1); } 49% { transform: scale(.82); } 54%, 100% { transform: scale(1); } }
@media (max-width: 480px) { .phone-snap { width: 54px; height: 110px; } .photo-row { gap: 12px; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .snap-flash, .snap-filter, .snap-focus, .snap-shutter { animation: none !important; } }
.photo-result { display: flex; gap: 14px; margin-top: 14px; align-items: flex-start; flex-wrap: wrap; }
.photo-preview { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.scan { color: var(--blue); font-weight: 700; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.hero-ctas .btn-ghost { border-color: rgba(255,255,255,.7); }
/* brand logo (components/Logo.tsx) */
.logo:hover { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 42px; flex: none; font-family: var(--display); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 700 21px var(--display); color: var(--ink); letter-spacing: -.01em; }
.brand-name b { font-weight: 700; color: var(--cta); }
@media (max-width: 480px) { .brand-mark { width: 28px; height: 35px; } .brand-name { font-size: 18px; } }
@media (max-width: 860px) { .photo-actions .btn { flex: 1; } }

/* WordPress content inside the new design */
.prose { max-width: 780px; padding-bottom: 32px; font-size: 17px; line-height: 1.7; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 10px; height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose blockquote { border-left: 4px solid var(--aqua); margin: 1em 0; padding: 4px 16px; background: var(--soft); }
.prose [style*="background"] { border-radius: 10px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.post-date { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.post-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); background: #fff; }
.post-card:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(11,36,56,.08); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; width: 100%; }
.prose-cta { max-width: 780px; margin-bottom: 20px; }
.model-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 14px; }
.reviews { list-style: none; padding: 0; display: grid; gap: 14px; }
.reviews li { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.stars { color: #f5a623; letter-spacing: 2px; }

/* My fridge */
.fridge-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--wave); font-size: 13px; font-weight: 600; white-space: nowrap; }
.fridge-chip:hover { text-decoration: none; background: #cdeafd; }
@media (max-width: 1180px) { .fridge-chip-text { display: none; } .fridge-chip { padding: 6px 9px; } }
.nav a { white-space: nowrap; }
.header-search { min-width: 170px; }
.finder-hit-row { display: flex; gap: 8px; align-items: center; }
.finder-hit-row .finder-hit { flex: 1; min-width: 0; }
.save-fridge { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--blue); color: var(--blue); background: #fff; border-radius: 8px; padding: 8px 12px; font: 700 14px var(--body); cursor: pointer; white-space: nowrap; }
.save-fridge:hover { background: var(--blue-soft); text-decoration: none; }
.save-fridge.small { padding: 6px 10px; font-size: 13px; }
.save-fridge.saved { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
@media (max-width: 600px) { .finder-hit-row { flex-direction: column; align-items: stretch; } .finder-hit-row .save-fridge { justify-content: center; } }
.fits-mine { margin-top: 12px; background: var(--ok-soft); color: var(--ok); border-radius: 8px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.fits-mine-save { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.fridge-list { display: grid; gap: 16px; max-width: 760px; }
.fridge-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; display: grid; gap: 12px; }
.fridge-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.fridge-label { font: 800 20px var(--display); color: var(--ink); border: 1px dashed transparent; border-radius: 6px; padding: 2px 6px; margin-left: -6px; min-width: 0; flex: 1; }
.fridge-label:hover, .fridge-label:focus { border-color: var(--line); outline: none; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.fridge-body { display: flex; gap: 14px; align-items: center; }
.fridge-body img { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.fridge-filter { font-weight: 700; color: var(--ink); }
.fridge-dates { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 14px; color: var(--muted); }
.fridge-dates input { height: 36px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 8px; font: 14px var(--body); margin-left: 6px; }
.due { font-weight: 700; color: var(--ok); }
.due.overdue { color: var(--warn); }
.fridge-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.reminder { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.reminder-label { font-weight: 700; font-size: 14px; }
.reminder-row { display: flex; gap: 8px; flex-wrap: wrap; }
.reminder-row input { flex: 1; min-width: 200px; height: 44px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 12px; font: 16px var(--body); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.form-error { color: #b42318; font-size: 13px; margin: 0; }
.fridge-empty { border: 2px dashed var(--line); border-radius: 14px; padding: 20px; max-width: 640px; background: var(--soft); }

/* Water report */
.hero-slim { padding-block: 36px 40px; }
.water { display: grid; gap: 16px; max-width: 860px; }
.water-form { display: grid; gap: 8px; }
.water-form label { font-weight: 700; }
.water-row { display: flex; gap: 10px; flex-wrap: wrap; }
.water-row input { width: 180px; height: 48px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 14px; font: 20px var(--mono); letter-spacing: .08em; }
.water-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.water-card h2 { font-size: 22px; margin-bottom: 4px; }
.water-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.water-head p { margin: 0; font-size: 14px; }
.water-badge { border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.water-badge.good { background: var(--ok-soft); color: var(--ok); }
.water-badge.warn { background: var(--warn-soft); color: var(--warn); }
.water-badge.bad { background: #fde7e7; color: #b42318; }
.table-scroll { overflow-x: auto; }
.water-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.water-table th, .water-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.water-table thead th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.water-table tr.over td, .water-table tr.over th { color: #b42318; font-weight: 700; background: #fff5f5; }
.water-advice { background: var(--soft); display: grid; gap: 10px; }
.water-products { display: grid; gap: 8px; }
.water-source { max-width: 860px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.water-source h2 { font-size: 18px; color: var(--ink); }
.water-advice .btn { justify-self: start; }
.water-teaser { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: 16px; padding: 24px; color: #fff;
  background: radial-gradient(600px 200px at 90% 0%, rgba(34,211,238,.3), transparent 60%), linear-gradient(160deg, var(--deep), var(--wave)); }
.water-teaser h2 { color: #fff; margin: 0 0 4px; }
.water-teaser p { margin: 0; color: #d4eefb; }
.water-teaser .water-row input { border-color: transparent; }
.water-teaser .form-error { color: #fecaca; margin-top: 6px; }

/* Product photo at the top of each guide (article page). */
.post-hero { margin: 8px 0 28px; text-align: center; }
.post-hero img { width: min(100%, 440px); height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 12px; }
.post-hero figcaption { font-size: 13px; color: var(--muted, #64748b); margin-top: 6px; }

/* Mini cart (Store API): count badge + slide-in drawer. */
.cart-link { position: relative; }
.cart-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px;
  background: var(--cta); color: #fff; font: 700 11px/1 var(--body); vertical-align: 1px; }
.tabbar .cart-count { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; }
.drawer-root { position: fixed; inset: 0; z-index: 60; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(8,47,73,.45); animation: drawer-fade .2s ease-out; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(8,47,73,.25); animation: drawer-in .25s ease-out; }
.drawer[aria-busy="true"] { cursor: progress; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; margin: 0; }
.drawer-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); font-size: 16px; cursor: pointer; color: var(--ink); }
.drawer-perk { margin: 0; padding: 10px 20px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 700; }
.drawer-items { list-style: none; margin: 0; padding: 0 20px; overflow-y: auto; flex: 1; }
.drawer-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer-items img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.drawer-item-body { display: flex; flex-direction: column; gap: 4px; font-size: 14px; min-width: 0; }
.drawer-item-name { font-weight: 700; line-height: 1.3; }
.drawer-line { font-size: 15px; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.qty button { min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 16px; cursor: pointer; color: var(--ink); }
.qty > span { min-width: 22px; text-align: center; font-weight: 700; }
.qty .drawer-remove, .link-btn { border: 0; background: none; color: var(--blue); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0 4px; min-width: 0; }
.drawer-spare { align-self: flex-start; margin-top: 4px; border: 1px dashed var(--cta); border-radius: 8px; background: var(--blue-soft); color: var(--blue-dark);
  font: 600 13px var(--body); padding: 6px 10px; cursor: pointer; text-align: left; }
.drawer-foot { padding: 12px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.drawer-row { display: flex; justify-content: space-between; margin: 0; font-size: 15px; }
.drawer-row .ok { color: var(--ok); font-weight: 700; }
.drawer-total { font-size: 18px; font-weight: 800; }
.drawer-coupon summary { cursor: pointer; color: var(--blue); font-size: 14px; }
.drawer-coupon form { display: flex; gap: 8px; margin-top: 8px; }
.drawer-coupon input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font: 15px var(--body); text-transform: uppercase; }
.drawer-coupon .btn { min-height: 44px; padding: 0 16px; }
.drawer-error { margin: 0; color: #b42318; font-size: 14px; }
.drawer-checkout { width: 100%; min-height: 52px; font-size: 16px; }
.drawer-note { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.drawer-continue { justify-self: center; }
.drawer-empty { padding: 32px 20px; text-align: center; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-overlay { animation: none; } }

/* Pack / auto-delivery picker on product pages. */
.packs { border: 0; padding: 0; margin: 14px 0 4px; display: grid; gap: 8px; }
.packs legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.pack { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; background: #fff; }
.pack.selected { border-color: var(--cta); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--cta); }
.pack:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.pack input { width: 18px; height: 18px; accent-color: var(--cta); margin: 0; }
.pack-main { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; }
.pack-main .muted { font-size: 13px; }
.pack-price { text-align: right; font-weight: 800; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pack-save { font: 700 11px/1 var(--body); color: var(--ok); background: var(--ok-soft); padding: 3px 6px; border-radius: 6px; }

/* Finder results: buy straight from the answer; scrolled into view below the sticky header. */
.finder-results, .finder-none { scroll-margin-top: 150px; }
.finder-hit-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
@media (max-width: 600px) { .finder-hit-actions { flex-direction: row; } .finder-hit-actions > * { flex: 1; } }

[hidden] { display: none !important; }

/* WordPress: images that fill their frame (next/image "fill" equivalent), accessibility helpers, block content. */
.card-img img, .gallery .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }
.prose .wp-block-image { margin: 1em 0; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.page-intro { max-width: 680px; }
.guide-box > :first-child { margin-top: 0; }
.guide-box > :last-child { margin-bottom: 0; }
.page-content { max-width: 780px; margin-top: 32px; }
.page-content > :first-child { margin-top: 0; }
.water [data-results] { display: grid; gap: 16px; }
/* Logged-in administrators: keep the sticky header and the mini cart below the WordPress toolbar. */
.admin-bar .header { top: 32px; }
.admin-bar .drawer { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } .admin-bar .drawer { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
/* Data studies (PFAS study page: dfs-core/data/pages/pfas-tap-water-study.html). */
.study { --b0: #eef2f5; --b1: #d6ecf8; --b2: #a6d4ef; --b3: #5fb0e0; --b4: #1f7fbf; --b5: #0b4f80; }
.study-dek { font-size: 19px; line-height: 1.6; }
.study-byline, .study-note, .study-map figcaption { font-size: 14px; color: var(--muted); }
.study-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin: 24px 0 8px; }
.study-stats div { background: var(--soft); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.study-stats strong { font: 800 30px/1.1 var(--display); color: var(--blue-dark); }
.study-stats span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.study-map { margin: 16px 0 20px; }
.study-map .tiles { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.study-map .tile { aspect-ratio: 1; border-radius: 6px; display: grid; place-content: center; text-align: center; line-height: 1.15; color: var(--ink); }
.study-map .tile b { font: 700 clamp(10px, 1.9vw, 15px) var(--body); }
.study-map .tile span { font-size: clamp(9px, 1.5vw, 12px); }
.study-map .tile.few { outline: 1.5px dashed var(--muted); outline-offset: -2px; }
.study .b0 { background: var(--b0); } .study .b1 { background: var(--b1); } .study .b2 { background: var(--b2); }
.study .b3 { background: var(--b3); color: #fff; } .study .b4 { background: var(--b4); color: #fff; } .study .b5 { background: var(--b5); color: #fff; }
.study-map figcaption { display: grid; gap: 8px; margin-top: 12px; }
.study-map .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink); }
.study-map .legend span { display: inline-flex; align-items: center; gap: 6px; }
.study-map .legend i { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(11, 36, 56, .15); }
.study-table table { font-variant-numeric: tabular-nums; }
.study-table th { background: var(--soft); font-size: 14px; }
.study-table td .bar { display: inline-block; width: 64px; height: 8px; margin-right: 8px; vertical-align: middle; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--w), var(--blue-soft) 0); }
.study-bars { list-style: none; padding: 0; display: grid; gap: 10px; }
.study-bars li { display: grid; grid-template-columns: 76px minmax(0, 1fr) 56px 150px; gap: 4px 12px; align-items: center; font-size: 15px; }
.study-bars .pfas { font-weight: 700; }
.study-bars .bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--w), var(--blue-soft) 0); }
.study-bars .num { text-align: right; font-variant-numeric: tabular-nums; }
.study-bars .tag { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .study-bars li { grid-template-columns: 64px minmax(0, 1fr) 48px; } .study-bars .tag { grid-column: 2 / 4; margin-top: -4px; } }
.study-table tr.sep td { background: var(--soft); font-size: 13px; font-weight: 700; color: var(--muted); }
/* Header between tablet and small laptop widths: the search moves to its own row, then the menu tightens. */
@media (min-width: 861px) and (max-width: 1120px) {
  .header-row { flex-wrap: wrap; row-gap: 8px; padding-block: 10px; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; margin-left: 0; }
}
@media (min-width: 861px) and (max-width: 980px) {
  .nav { gap: 12px; font-size: 14px; }
  .header-icons .hide-sm { display: none; }
}
