/* ============================================================================
   Capri — friendly, mobile-first design system
   Design tokens per design_handoff_capri_redesign
   ============================================================================ */
:root {
  /* Brand blue */
  --blue:        #2F6FB0;
  --blue-dark:   #245C97;
  --blue-darker: #1C4A7C;
  --blue-deep:   #183C6C;
  --blue-soft:   #E5EFF8;
  --blue-pale:   #F0F4F9;  /* desktop back button, dropdown hover */

  /* Secondary green (warranty / success) */
  --green:       #6FA287;
  --green-dark:  #5C9075;
  --green-soft:  #E9F1EC;

  /* Ink text */
  --ink:         #2B2723;
  --ink-title:   #20303F;  /* desktop page-title ink */
  --ink-2:       #5B5248;
  --ink-desk:    #3A4552;  /* desktop body text */
  --ink-desk-2:  #5B6470;  /* desktop secondary text */
  --muted:       #8A8079;
  --muted-desk:  #8A93A0;  /* desktop muted subtitle */
  --faint:       #A99C8C;
  --faint-2:     #B7A794;

  /* Surfaces */
  --app-bg:      #FDFBF7;   /* off-white app surface (behind cards) */
  --page-bg:     #FDFBF7;   /* body backdrop = app-bg on mobile */
  --surface:     #FFFFFF;   /* pure white for cards, inputs, nav */
  --warm:        #F5EFE5;   /* warm cream accent (spec pills, trust strip) */
  --warm-2:      #F3EADF;

  /* Borders */
  --border:      #ECE4D8;
  --border-2:    #F0E8DC;
  --border-desk: #EEF2F6;  /* dropdown border */

  /* Tile tint — one wash derived from --blue #2F6FB0. Category is carried by
     the eyebrow label, not by a different pastel per category. */
  --tile:         linear-gradient(160deg, #F2F6FA, #E1EAF4);
  --tint-fridge:  var(--tile);
  --tint-freezer: var(--tile);
  --tint-stove:   var(--tile);

  /* Radius */
  --r-input: 14px;
  --r-btn:   17px;
  --r-card:  22px;
  --r-hero:  26px;
  --r-tile:  14px;
  --r-pill:  13px;

  /* Shadows */
  --shadow-card: 0 12px 26px -20px rgba(60, 45, 30, 0.55);
  --shadow-lift: 0 14px 30px -22px rgba(60, 45, 30, 0.60);
  --shadow-hero: 0 22px 40px -24px rgba(36, 92, 151, 0.90);
  --shadow-cta:  0 16px 30px -16px rgba(47, 111, 176, 0.90);
  --shadow-green: 0 20px 38px -24px rgba(92, 144, 117, 0.90);

  --topbar-h: 68px;
  --tabbar-h: 76px;
  --content-max: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
body::-webkit-scrollbar { width: 0; height: 0; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue-darker); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* HTML `hidden` attribute must beat any display: flex/grid/block rule
   further down the cascade. Without this, tab-panel forms with `hidden`
   still show because their own .form-grid { display: flex } wins. */
[hidden] { display: none !important; }

/* ---------- App shell ---------- */
.app-shell {
  min-height: 100vh;
  background: var(--page-bg);
  padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- Top bar (fixed — always visible on scroll) ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-2);
}
.topbar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  min-height: var(--topbar-h);
  padding: 12px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.brand-mark:hover { transform: translateY(-1px); }
.brand-mark img {
  height: 34px;
  width: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 6px 14px -6px rgba(47, 111, 176, 0.55);
}
.top-back {
  width: 40px; height: 40px;
  border: none;
  background: var(--warm-2);
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.top-back:hover { background: var(--warm); }
.top-title { flex: 1; min-width: 0; }
.top-title-main {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-title-sub {
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-btn {
  width: 40px; height: 40px;
  border: none;
  background: var(--warm-2);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.menu-btn:hover { background: var(--warm); }

/* ---------- Drawer ---------- */
.scrim {
  position: fixed; inset: 0;
  background: rgba(20, 30, 60, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(320px, 88vw);
  background: var(--app-bg);
  box-shadow: -12px 0 40px rgba(20, 30, 60, 0.15);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  z-index: 70;
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  height: var(--topbar-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-2);
}
.drawer-title { font-family: 'Poppins'; font-weight: 700; color: var(--blue); letter-spacing: 0.5px; }
.drawer-close {
  border: none; background: transparent;
  font-size: 28px; color: var(--ink-2);
  cursor: pointer; line-height: 1;
}
.drawer-nav { display: flex; flex-direction: column; padding: 12px 0; }
.drawer-nav a {
  padding: 14px 22px;
  font-weight: 700;
  color: var(--ink);
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: flex; align-items: center; gap: 12px;
}
.drawer-nav a span { font-size: 18px; width: 22px; text-align: center; }
.drawer-nav a:hover,
.drawer-nav a.active {
  background: var(--blue-soft);
  color: var(--blue);
  border-left-color: var(--blue);
}
.drawer-section {
  padding: 14px 22px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--faint);
  text-transform: uppercase;
}
.drawer-footer {
  margin-top: auto;
  padding: 16px 22px;
  border-top: 1px solid var(--border-2);
  color: var(--faint);
  font-size: 12px;
}

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border-2);
  padding: 10px 4px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  z-index: 30;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  color: #C3B6A5;
  transition: color 0.15s ease;
  min-width: 0;
}
.tab svg { width: 22px; height: 22px; stroke-width: 2; }
.tab span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); }
.tab.active svg { stroke-width: 2.3; }

/* ---------- Main content ---------- */
.app {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 8px) 20px calc(var(--tabbar-h) + 24px);
  min-height: 100vh;
}
.app > .stack { display: flex; flex-direction: column; gap: 20px; }

.page-loading { padding: 80px 0; display: flex; justify-content: center; }
.loader {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { font-family: 'Poppins'; margin: 0; color: var(--ink); }
p { margin: 0; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-title {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.section-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
}
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 2px 12px;
}

.muted { color: var(--faint); }
.crumbs { color: var(--faint); font-size: 13px; }
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-btn);
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-light {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.35);
}
.btn-light:hover { background: #f7f2ea; color: var(--blue-darker); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--warm); }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }
.btn-ghost {
  background: var(--warm);
  color: var(--ink);
  padding: 10px 16px;
  font-size: 13.5px;
  border-radius: var(--r-pill);
}
.btn-ghost:hover { background: var(--warm-2); }
.btn-danger { color: #b53535; background: transparent; }
.btn-danger:hover { background: rgba(181, 53, 53, 0.08); }

/* ---------- Home ---------- */
.hero-card {
  position: relative;
  border-radius: var(--r-hero);
  padding: 30px 26px 26px;
  color: #fff;
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(150deg, var(--blue), var(--blue-dark));
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(28,74,124,.62) 0%, rgba(24,64,108,.82) 55%, rgba(16,48,84,.96) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-content .eyebrow { color: rgba(255,255,255,0.95); }
.hero-content h1 {
  font-family: 'Poppins';
  font-weight: 700;
  font-size: 27px;
  line-height: 1.15;
  margin: 8px 0 8px;
  max-width: 280px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(20,50,90,0.4);
}
.hero-content p {
  font-size: 14.5px;
  opacity: 0.95;
  line-height: 1.5;
  max-width: 320px;
  text-shadow: 0 1px 8px rgba(20,50,90,0.4);
}
.hero-content .btn {
  margin-top: 20px;
}

/* Quick action cards */
.quick-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quick-desktop-only { display: none; }
@media (min-width: 900px) { .quick-desktop-only { display: block; } }
.quick-card {
  text-align: left;
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 18px 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px -18px rgba(60, 45, 30, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  color: inherit;
}
.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(60, 45, 30, 0.55);
}
.quick-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
}
.quick-ico-green { background: var(--green-soft); color: var(--green); }
.quick-ico-blue  { background: var(--blue-soft);  color: var(--blue); }
.quick-ico-warm  { background: var(--warm);       color: #a45a00; }
.quick-title {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.quick-sub {
  font-size: 12.5px;
  color: var(--faint);
  font-weight: 600;
  margin-top: 2px;
}

/* Category chips row (Fridges / Freezers / Stoves) */
.cat-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.cat-mini {
  background: #fff;
  border-radius: 16px;
  padding: 9px 14px 9px 9px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
}
.cat-mini .cat-arrow { margin-left: auto; color: var(--faint); font-size: 18px; line-height: 1; }
.cat-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.cat-mini-tile {
  width: 56px; height: 56px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  padding: 5px;
  overflow: hidden;
  background: var(--tile);
}
.cat-mini-tile img {
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.cat-mini h3 {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.cat-mini p {
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
  margin-top: 2px;
}

/* Popular products horizontal scroll */
.h-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 8px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  scroll-snap-type: x mandatory;
}
.h-scroll::-webkit-scrollbar { display: none; }
.p-card-h {
  flex-shrink: 0;
  width: 180px;
  text-align: left;
  background: #fff;
  border-radius: var(--r-card);
  padding: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  scroll-snap-align: start;
  color: inherit;
}
.p-card-h:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.p-tile {
  aspect-ratio: 4 / 5;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  position: relative;
  background: var(--tile);
}
/* Product shots are JPEGs on a hard white background. multiply maps that white
   onto the tile tint, so they read as cut-outs without re-masking the files. */
.p-shot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}
.p-chip {
  position: absolute; top: 8px; left: 8px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-2);
  padding: 3px 7px;
  border-radius: 7px;
}
.p-fin {
  position: absolute; bottom: 8px; right: 8px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(43, 39, 35, 0.72);
  color: #fff;
  padding: 3px 8px;
  border-radius: 7px;
}
.p-sw { display: flex; gap: 5px; margin-top: 9px; align-items: center; }
.p-sw i {
  width: 13px; height: 13px;
  border-radius: 50%;
  display: block;
  border: 1px solid rgba(43, 39, 35, 0.16);
}
.p-sw b { font-size: 11px; color: var(--faint); font-weight: 700; margin-left: 2px; }
.p-tile-cap {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--faint-2);
  background: rgba(255, 255, 255, 0.7);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}
.p-name {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-top: 11px;
  line-height: 1.25;
}
.p-cap {
  font-size: 12.5px;
  color: var(--faint);
  font-weight: 600;
  margin-top: 3px;
}

/* Trust strip */
.trust-strip {
  margin-top: 24px;
  background: var(--warm);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.trust-badge {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Poppins';
  font-weight: 700;
  color: var(--green);
  font-size: 18px;
}
.trust-strip h3 {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.trust-strip p {
  font-size: 12.5px;
  color: var(--faint);
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Products (list) ---------- */
.chip-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin: 6px -20px 18px;
  padding: 2px 20px 6px;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 13px;
  background: var(--warm-2);
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.chip:hover { background: var(--warm); color: var(--ink); }
.chip.active { background: var(--blue); color: #fff; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.p-card {
  text-align: left;
  background: #fff;
  border-radius: var(--r-card);
  padding: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
  display: block;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.p-card .p-tile { border-radius: 15px; }
.p-card .p-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 10px;
}
.p-card .p-name {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  margin-top: 3px;
  line-height: 1.25;
}
.p-card .p-cap {
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
  margin-top: 3px;
}

/* ---------- Product Detail ---------- */
.pd-tile {
  height: 260px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}
.pd-tile { background: var(--tile); }
.pd-tile img {
  max-height: 230px; width: auto; object-fit: contain;
  mix-blend-mode: multiply;
}
.pd-vars { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.pd-var {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: none;
  padding: 3px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pd-var i { display: block; width: 100%; height: 100%; border-radius: 50%;
  border: 1px solid rgba(43, 39, 35, 0.18); }
.pd-var:hover { transform: translateY(-2px); }
.pd-var.is-on { border-color: var(--blue); }
.pd-var:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pd-varname { font-size: 13px; color: var(--ink-2); margin-top: 10px; font-weight: 600; }
.pd-varname span { font-family: ui-monospace, monospace; font-size: 12px; color: var(--faint); font-weight: 400; }
.pd-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 18px;
}
.pd-name {
  font-family: 'Poppins';
  font-weight: 700;
  font-size: 23px;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.2;
}
.pd-desc {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.55;
}
.spec-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spec-pill {
  display: flex;
  justify-content: space-between;
  background: var(--warm);
  border-radius: 14px;
  padding: 13px 16px;
}
.spec-pill .k { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.spec-pill .v { font-size: 13.5px; color: var(--ink); font-weight: 700; }

/* ---------- Register ---------- */
.reg-banner {
  background: var(--green-soft);
  border-radius: 18px;
  padding: 15px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.reg-banner-ico {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins';
  font-weight: 700;
  flex-shrink: 0;
}
.reg-banner p {
  font-size: 13.5px;
  color: #3F6350;
  font-weight: 600;
  line-height: 1.4;
}

.reg-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--warm);
  border-radius: 14px;
  margin-bottom: 16px;
}
.reg-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Nunito Sans';
  font-weight: 700;
  font-size: 13.5px;
  color: var(--muted);
  transition: all 0.15s ease;
}
.reg-tab-btn:hover { color: var(--blue); }
.reg-tab-btn.active {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow-card);
}
.reg-panel { display: none; }
.reg-panel.active { display: block; }

.form-grid { display: flex; flex-direction: column; gap: 15px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-field label,
.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  display: block;
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: var(--r-input);
  padding: 14px 15px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field select { appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%235B5248' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 176, 0.12);
}
.form-hint { font-size: 12px; color: var(--faint); margin-top: 6px; min-height: 14px; }
.form-hint.ok  { color: var(--green-dark); font-weight: 700; }
.form-hint.err { color: #b53535; font-weight: 700; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.form-status {
  margin-top: 12px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  display: none;
}
.form-status.err { display: block; background: #fbe9e7; color: #b53535; }
.form-status.ok  { display: block; background: var(--green-soft); color: var(--green-dark); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 4px;
  font-size: 14px;
  color: var(--ink-2);
}
.checkbox-row input { margin-top: 3px; accent-color: var(--blue); }
.checkbox-row a { color: var(--blue); text-decoration: underline; }

.spinner {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}

/* Verify toggle inside existing-customer tab */
/* Autocomplete for product picker */
.ac-field { position: relative; }
.ac-list {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--border-desk, #EEF2F6);
  border-radius: 12px;
  box-shadow: 0 24px 48px -22px rgba(30, 50, 80, 0.35);
  margin-top: 6px;
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s ease;
}
.ac-item:hover { background: var(--blue-pale, #F0F4F9); }
.ac-model {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.ac-desc {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: capitalize;
}
.ac-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
}

.verify-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--warm);
  border-radius: 12px;
  margin: 6px 0 14px;
}
.verify-toggle button {
  padding: 9px 14px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Nunito Sans';
  font-weight: 700;
  font-size: 12.5px;
  color: var(--muted);
}
.verify-toggle button.active { background: var(--blue); color: #fff; }

.verify-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 14px;
}
.verify-success .check-mini {
  width: 30px; height: 30px;
  background: #fff;
  color: var(--green);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.verify-success strong { display: block; font-size: 14.5px; margin-bottom: 2px; color: var(--green-dark); }

/* ---------- Success / Certificate ---------- */
.success {
  padding: 30px 4px;
  text-align: center;
}
.success-check {
  width: 96px; height: 96px;
  border-radius: 999px;
  background: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 10px auto 0;
}
.success h2 {
  font-family: 'Poppins';
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin-top: 22px;
}
.success p {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
  margin: 8px auto 0;
  max-width: 320px;
}
.summary-card {
  background: var(--warm);
  border-radius: 20px;
  padding: 20px;
  margin-top: 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.summary-row .k { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.summary-row .v { font-size: 13.5px; color: var(--ink); font-weight: 700; text-align: right; }
.summary-row .v.green { color: var(--green-dark); }

.cert-note {
  padding: 14px 6px 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}
.cert-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ---------- Warranty info ---------- */
.warranty-hero {
  background: linear-gradient(150deg, var(--green), var(--green-dark));
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow-green);
}
.warranty-hero h2 {
  font-family: 'Poppins';
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}
.warranty-hero p {
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.5;
  margin-top: 6px;
}
.cov-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cov-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  padding: 15px 16px;
  box-shadow: 0 10px 24px -20px rgba(60, 45, 30, 0.5);
}
.cov-check {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 1px;
}
.cov-item h4 {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  margin: 0;
}
.cov-item p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  margin-top: 2px;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  text-align: left;
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px -20px rgba(60, 45, 30, 0.5);
  width: 100%;
  color: inherit;
}
.faq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-q {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.faq-sign {
  color: var(--blue);
  font-size: 20px;
  flex-shrink: 0;
  font-weight: 700;
}
.faq-body {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
  margin-top: 10px;
  display: none;
}
.faq-item.open .faq-body { display: block; }

.warranty-terms {
  background: #fff;
  border-radius: var(--r-card);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
}
.warranty-terms h2 { font-family: 'Poppins'; font-weight: 700; font-size: 20px; color: var(--blue-dark); margin: 20px 0 8px; }
.warranty-terms h3 { font-family: 'Poppins'; font-weight: 700; font-size: 15px; color: var(--ink); margin: 16px 0 6px; }
.warranty-terms h4 { font-family: 'Poppins'; font-weight: 600; font-size: 13.5px; color: var(--ink); margin: 12px 0 4px; }
.warranty-terms p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; line-height: 1.55; }
.warranty-terms ul { padding-left: 20px; margin: 0 0 12px; }
.warranty-terms li { margin-bottom: 6px; color: var(--ink-2); font-size: 14px; }
.warranty-terms code { background: var(--warm); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }

/* ---------- Guides ---------- */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-card {
  background: #fff;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 14px 30px -22px rgba(60, 45, 30, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  color: inherit;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -22px rgba(60, 45, 30, 0.65); }
.guide-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.guide-banner img { max-height: 120px; width: auto; object-fit: contain; }
.guide-body { padding: 16px 18px 20px; }
.guide-body h3 {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.guide-body p {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.4;
}
.guide-body .count {
  font-size: 12.5px;
  color: var(--blue);
  font-weight: 700;
  margin-top: 10px;
  display: inline-block;
}

.guide-detail-banner {
  height: 160px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}
.guide-detail-banner img { max-height: 130px; width: auto; }
.guide-sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
  margin-top: 18px;
}
.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: 'Poppins';
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.step h4 {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.step p {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
  margin-top: 3px;
}

/* ---------- Category page ---------- */
.cat-hero {
  border-radius: var(--r-hero);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.cat-hero-fridge  { background: var(--tint-fridge); }
.cat-hero-freezer { background: var(--tint-freezer); }
.cat-hero-stove   { background: var(--tint-stove); }
.cat-hero-img {
  width: 110px; height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-hero-img img { max-height: 108px; width: auto; }
.cat-hero-copy .eyebrow { color: var(--muted); }
.cat-hero-copy h1 {
  font-family: 'Poppins';
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin: 4px 0 4px;
}
.cat-hero-copy p {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}
.cat-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

/* ---------- Utilities ---------- */
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.hidden { display: none !important; }

/* ============================================================================
   Desktop top nav bar (default hidden on mobile)
   ============================================================================ */
.topnav-desktop { display: none; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  :root { --content-max: 720px; }
  .grid-2 { grid-template-columns: repeat(3, 1fr); }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .hero-card { min-height: 360px; padding: 34px 32px 30px; }
  .hero-content h1 { font-size: 30px; max-width: 400px; }
  .hero-content p { font-size: 15px; max-width: 460px; }
  .app { padding: calc(var(--topbar-h) + 12px) 24px calc(var(--tabbar-h) + 32px); }
  .topbar-inner { padding: 12px 24px; }
}

/* ============================================================================
   DESKTOP (≥ 900px) — top nav, no bottom tab bar, 1140px shell
   ============================================================================ */
@media (min-width: 900px) {
  :root { --content-max: 1140px; }

  /* Swap the chrome */
  .topbar-mobile { display: none; }
  .tabbar { display: none; }
  .topnav-desktop {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 40;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-2);
  }
  .topnav-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .topnav-brand {
    margin-right: 22px;
    display: flex;
    align-items: center;
  }
  .topnav-brand img {
    height: 38px;
    width: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.15s ease;
  }
  .topnav-brand:hover img { transform: translateY(-1px); }
  .topnav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
  }
  .topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    font-family: 'Poppins';
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink-desk);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .topnav-link:hover { background: var(--blue-pale); color: var(--blue); }
  .topnav-link.active { color: var(--blue); }
  .topnav-link-btn { font: inherit; }
  .topnav-dropdown { position: relative; }
  .dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--border-desk);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 24px 48px -22px rgba(30, 50, 80, 0.45);
    z-index: 50;
    animation: dropIn 0.15s ease;
  }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .dropdown-item {
    display: block;
    padding: 11px 14px;
    border-radius: 11px;
    color: var(--ink);
    transition: background 0.12s ease;
  }
  .dropdown-item:hover { background: var(--blue-pale); }
  .dropdown-item-title {
    font-family: 'Poppins';
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
  }
  .dropdown-item-sub {
    font-size: 12.5px;
    color: var(--muted-desk);
    font-weight: 600;
    margin-top: 2px;
  }
  .btn-nav {
    padding: 11px 20px;
    font-size: 14.5px;
    border-radius: 13px;
    margin-left: 18px;
  }

  /* Content shell */
  .app {
    max-width: var(--content-max);
    padding: calc(var(--topbar-h) + 28px) 40px 72px;
  }

  /* Desktop page heading (screen-title above content, not on home) */
  .app.has-heading::before { content: ''; }

  /* Grids scale up */
  .grid-2 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .cat-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .h-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    padding: 4px 0;
    margin: 0;
    gap: 18px;
  }
  .h-scroll > * { width: auto; }

  /* Hero scales up */
  .hero-card { min-height: 420px; padding: 42px 40px 36px; }
  .hero-content h1 { font-size: 34px; max-width: 440px; line-height: 1.12; }
  .hero-content p { font-size: 15.5px; max-width: 460px; }

  /* Product detail 2-col */
  .pd-tile { height: 440px; }
  .pd-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: start;
  }

  /* Register form as centered card */
  .register-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 24px 56px -36px rgba(60, 45, 30, 0.5);
  }
  .register-card .form-row { grid-template-columns: 1fr 1fr; gap: 18px; }
  .register-card .form-full { grid-column: 1 / -1; }

  /* Warranty 2-col */
  .warranty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
  }
  .warranty-grid > .cov-list-wrap { margin-top: 0; }
  .warranty-grid > .faq-wrap { margin-top: 0; }

  /* Guides 2-col */
  .guide-list { grid-template-columns: 1fr 1fr; gap: 26px; display: grid; }

  /* Category showcase adjusts */
  .cat-hero { padding: 28px 32px; }
  .cat-hero-img { width: 160px; height: 160px; }
  .cat-hero-img img { max-height: 152px; }
  .cat-hero-copy h1 { font-size: 28px; }

  /* Larger screen padding + typography */
  .section-row { margin: 32px 2px 14px; }
  .section-title { font-size: 19px; }
}

/* Desktop page-heading component (used on non-home routes) */
.page-heading { display: none; }
@media (min-width: 900px) {
  .page-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }
  .page-heading-back {
    width: 44px; height: 44px;
    border: none;
    background: var(--blue-pale);
    border-radius: 14px;
    color: var(--blue);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease;
  }
  .page-heading-back:hover { background: var(--blue-soft); }
  .page-heading-title {
    font-family: 'Poppins';
    font-weight: 700;
    font-size: 30px;
    color: var(--ink-title);
    line-height: 1.1;
  }
  .page-heading-sub {
    font-size: 14.5px;
    color: var(--muted-desk);
    font-weight: 600;
    margin-top: 3px;
  }
}

/* Warranty tabs (per-category) */
.warranty-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin: 0 -20px 18px;
  padding: 2px 20px 6px;
}
.warranty-tabs::-webkit-scrollbar { display: none; }
.warranty-tab {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-family: 'Nunito Sans';
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 13px;
  background: var(--warm-2);
  color: var(--muted);
}
.warranty-tab:hover { background: var(--warm); color: var(--ink); }
.warranty-tab.active { background: var(--blue); color: #fff; }

/* ============================================================================
   HOME — hero carousel, find-your-model, warranty card, category bento
   Added with the landing-page rebuild. Mobile-first; desktop rules live in the
   min-width blocks at the foot of this file.
   ============================================================================ */

/* ---------- hero carousel ---------- */
.car {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #231F1C;
  aspect-ratio: 4 / 3;          /* the photographs' native ratio — no crop */
}
.car-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0.01, 0.2, 1);
}
/* the slide must resolve a height, or the image's height:100% falls back to
   auto and a 4:3 photo leaves a gap beneath itself */
.car-slide { min-width: 100%; height: 100%; position: relative; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(20,17,15,0.06) 0%, rgba(20,17,15,0.04) 34%,
    rgba(20,17,15,0.60) 72%, rgba(20,17,15,0.85) 100%);
}
.car-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 15px; color: #fff; }
.car-copy .car-eb {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.92; margin-bottom: 5px;
}
.car-copy h2 {
  color: #fff; font-size: 19px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.14;
}
.car-copy p { margin: 5px 0 0; font-size: 12.5px; color: rgba(255,255,255,0.85); max-width: 32ch; }
.car-cta {
  display: inline-block; margin-top: 10px; background: #fff; color: var(--blue-darker);
  font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 15px;
}
.car-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 5px; }
.car-dots button {
  width: 6px; height: 6px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.45); transition: width 0.3s ease, background 0.3s ease;
}
.car-dots button.on { width: 17px; border-radius: 3px; background: #fff; }
.car-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); color: var(--ink); font-size: 17px;
  cursor: pointer; display: none; place-items: center; box-shadow: var(--shadow-card);
}
.car-nav.prev { left: 12px; } .car-nav.next { right: 12px; }
.car:hover .car-nav { display: grid; }
.car-nav:focus-visible, .car-dots button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .car-track { transition: none; } }

/* ---------- find your appliance ---------- */
.find {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 14px 15px; box-shadow: var(--shadow-card);
}
.find h3 { font-family: 'Poppins'; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.find > p { margin: 0 0 11px; font-size: 13px; color: var(--ink-2); }
.find-row { display: flex; gap: 8px; }
.find-row input {
  flex: 1; min-width: 0; background: var(--app-bg); border: 1px solid var(--border);
  border-radius: var(--r-input); padding: 11px 14px; font: inherit; font-size: 14px; color: var(--ink);
}
.find-row input::placeholder { color: var(--muted); }
.find-row input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.find-hint { margin-top: 9px; font-size: 11.5px; color: var(--faint); }
.find-hint code {
  font-family: ui-monospace, monospace; color: var(--ink-2); background: var(--app-bg);
  border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; margin-right: 5px;
}

/* ---------- warranty card ---------- */
.wcard {
  position: relative; border-radius: 20px; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 52%, var(--blue-deep) 100%);
}
/* faint engraved guilloche, the way a real certificate is printed */
.wcard::after {
  content: ""; position: absolute; inset: -40% -20%; opacity: 0.13; pointer-events: none;
  background: repeating-radial-gradient(circle at 78% 18%,
    transparent 0 13px, rgba(255,255,255,0.5) 13px 14px);
}
.wcard-in { position: relative; z-index: 1; padding: 20px 22px; }
.wtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wmark { font-family: 'Poppins'; font-weight: 700; letter-spacing: 0.13em; font-size: 12.5px; }
.wstate {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,0.19); padding: 4px 9px; border-radius: 9px;
}
.wstate.live { background: #8FD3AE; color: #14432B; }
.wcard h3 { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.16; }
.wcard .wsub { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,0.82); }
.wrows { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; }
.wrow .k {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.wrow .v { font-size: 13.5px; font-weight: 600; margin-top: 1px; }
.wrow .v.mono { font-family: ui-monospace, monospace; font-size: 12.5px; font-weight: 400; }
.wbar { margin-top: 16px; }
.wbar .track { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.22); overflow: hidden; }
.wbar .fill { height: 100%; border-radius: 3px; background: #8FD3AE; }
.wbar .lab {
  display: flex; justify-content: space-between; font-size: 11px;
  color: rgba(255,255,255,0.72); margin-top: 7px;
}
.wacts { display: flex; gap: 8px; margin-top: 17px; flex-wrap: wrap; }
.wbtn {
  font-size: 12.5px; font-weight: 700; padding: 9px 15px; border-radius: 16px;
  background: #fff; color: var(--blue-darker);
}
.wbtn.ghost { background: rgba(255,255,255,0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32); }
.wbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wsteps { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.wstep { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: rgba(255,255,255,0.9); }
.wstep i {
  width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%;
  background: rgba(255,255,255,0.19); font-family: ui-monospace, monospace;
  font-size: 11px; font-style: normal; display: grid; place-items: center;
}

/* ---------- coverage panel ---------- */
.cover { background: #fff; border-radius: 20px; box-shadow: var(--shadow-card); padding: 20px 22px; }
.cover h4 { font-family: 'Poppins'; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.cover > p { margin: 0 0 15px; font-size: 13px; color: var(--muted); }
.covrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.covrow:first-child { border-top: none; }
.covrow .term {
  width: 46px; flex: 0 0 auto; font-family: 'Poppins'; font-weight: 700;
  font-size: 15px; color: var(--blue); font-variant-numeric: tabular-nums;
}
.covrow .what { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.covrow.no .term { color: var(--faint); font-size: 13px; }
.covrow.no .what { color: var(--muted); font-weight: 400; }
.cover .more { display: inline-block; margin-top: 13px; font-size: 13px; font-weight: 700; color: var(--blue); }

/* ---------- category tiles ----------
   One component, two shapes: a compact row on a phone (eight full-width cards
   is a lot of scrolling) and a uniform tile from 720px up. Same DOM either
   way — only the flex direction and the image box change. */
.bento { display: grid; grid-template-columns: 1fr; gap: 9px; }
.bcard {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-card); color: inherit;
  display: flex; align-items: center; gap: 13px; padding: 9px 14px 9px 9px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.bcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.bcard:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.bcard .shotwrap {
  width: 56px; height: 56px; flex: 0 0 auto; background: var(--tile);
  border-radius: 11px; display: grid; place-items: center; padding: 5px;
  overflow: hidden;   /* as .p-tile does — without this a tall shot paints over the text */
}
.bcard .shotwrap img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bbody { min-width: 0; }
.bbody h3 { font-family: 'Poppins'; font-size: 13.5px; font-weight: 600; }
.bbody p { margin: 1px 0 0; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.bsw { display: flex; gap: 4px; margin-top: 7px; align-items: center; }
.bsw i { width: 11px; height: 11px; border-radius: 50%; display: block; border: 1px solid rgba(43,39,35,0.15); }
.bsw b { font-size: 10px; color: var(--faint); font-weight: 700; margin-left: 2px; }
.bcard-arrow { margin-left: auto; color: var(--faint); font-size: 18px; line-height: 1; }
.bcard.all { background: var(--warm); justify-content: center; text-align: center; }

/* ---------- home: tablet ---------- */
@media (min-width: 720px) {
  /* From here the row becomes a tile: image on top, text beneath.
     The image box gets an explicit height rather than an aspect-ratio — as a
     flex item inside a stretched grid item, an aspect-ratio has no stable
     width to resolve against and the tile inflates. height:100% on the card
     plus grid's default stretch is what keeps a row uniform; grid-auto-rows
     is deliberately not used, since it equalises across *all* rows and drags
     every tile to the tallest one. */
  .bento { grid-template-columns: repeat(3, 1fr); gap: 13px; }
  .bcard {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    height: 100%; gap: 0; padding: 0; overflow: hidden; border-radius: 18px;
  }
  .bcard .shotwrap {
    width: 100%; height: 168px; flex: 0 0 168px;
    aspect-ratio: auto; border-radius: 0; padding: 14px;
  }
  /* max-width/max-height with auto sizing, not width/height:100%. A percentage
     height on a centred grid item resolves against a content-sized area, so it
     silently became `auto` and portrait shots rendered at natural height. */
  .bcard .shotwrap img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
  .bbody { padding: 13px 15px 15px; }
  .bbody h3 { font-size: 15px; }
  .bbody p { font-size: 12.5px; }
  .bsw { margin-top: 10px; }
  .bsw i { width: 12px; height: 12px; }
  .bcard-arrow { display: none; }
  .bcard.all { justify-content: center; align-items: center; padding: 22px; }
  .car-copy { padding: 20px 22px 19px; }
  .car-copy h2 { font-size: 23px; }
}

/* ---------- home: desktop ---------- */
@media (min-width: 900px) {
  /* hero and search share a row so neither drops below the fold */
  .home-split { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 15px; align-items: stretch; }
  .home-split .car { aspect-ratio: auto; min-height: 320px; }
  .home-split .find { display: flex; flex-direction: column; justify-content: flex-start; }
  .car-copy { padding: 24px 26px 22px; }
  .car-copy h2 { font-size: 26px; }
  .car-copy p { font-size: 14px; }

  /* warranty card beside what it covers */
  .warranty-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 15px; align-items: stretch; }
  .bento { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================================
   CATEGORY — compact bar, category strip, filters, sheet
   ============================================================================ */
.cat-bar {
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: 12px; display: flex; align-items: center; gap: 13px; margin-bottom: 12px;
}
.cat-bar-thumb {
  width: 56px; height: 56px; flex: 0 0 auto; background: var(--tile);
  border-radius: 12px; display: grid; place-items: center; padding: 6px;
}
.cat-bar-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-bar-copy { min-width: 0; }
.cat-bar-copy .eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--blue);
}
.cat-bar-copy h1 { font-family: 'Poppins'; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.cat-bar-copy p { margin: 1px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.cat-bar-acts { display: none; margin-left: auto; gap: 8px; flex-shrink: 0; }

/* thumb-scrollable category switcher — no trip back to the home page */
.cat-strip {
  display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; font-size: 12.5px; font-weight: 700; padding: 7px 13px;
  border-radius: 14px; background: #fff; border: 1px solid var(--border);
  color: var(--ink-2); white-space: nowrap;
}
.cat-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.cat-tools {
  position: sticky; top: calc(var(--topbar-h) - 1px); z-index: 6;
  display: flex; gap: 8px; align-items: center; padding: 9px 0;
  background: var(--app-bg);
}
.tool {
  font: inherit; font-size: 12.5px; font-weight: 700; padding: 7px 13px;
  border-radius: 14px; background: #fff; border: 1px solid var(--border);
  color: var(--ink-2); cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.tool.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tool b { background: rgba(255,255,255,0.28); border-radius: 8px; padding: 0 6px; font-size: 11px; }
.tool:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tool-count { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 600; }

.cat-side { display: none; }
.cat-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }

/* ---------- filter sheet (mobile) ---------- */
body.sheet-open { overflow: hidden; }
.sheet-mask { position: fixed; inset: 0; background: rgba(30,26,23,0.42); z-index: 60; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff;
  border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(43,39,35,0.16); max-height: 80vh; overflow-y: auto;
}
.grab { width: 36px; height: 4px; border-radius: 2px; background: #E3DACC; margin: 0 auto 12px; }
.sheet h4 { font-family: 'Poppins'; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sheet-lbl {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 15px 0 9px;
}
.swgrid { display: flex; flex-wrap: wrap; gap: 7px; }
.swchip {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 6px 12px 6px 7px;
}
.swchip.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-darker); }
.swchip i { width: 14px; height: 14px; border-radius: 50%; display: block; border: 1px solid rgba(43,39,35,0.18); }
.sheet-acts { display: flex; gap: 9px; margin-top: 20px; }
.sheet-acts > * {
  flex: 1; text-align: center; font: inherit; font-weight: 700; font-size: 13.5px;
  padding: 12px; border-radius: 17px; cursor: pointer;
}
.sa-clear { background: #fff; border: 1px solid var(--border); color: var(--ink-2); }
.sa-apply { background: var(--blue); border: none; color: #fff; }

/* ---------- category: desktop ---------- */
@media (min-width: 900px) {
  .cat-bar { padding: 18px 22px; gap: 18px; }
  .cat-bar-thumb { width: 72px; height: 72px; border-radius: 15px; }
  .cat-bar-copy h1 { font-size: 24px; }
  .cat-bar-copy p { font-size: 13.5px; }
  .cat-bar-acts { display: flex; }
  /* the strip is a phone affordance; the sidebar does this job on desktop */
  .cat-strip { display: none; }
  .cat-split { display: grid; grid-template-columns: 224px 1fr; gap: 22px; align-items: start; }
  .cat-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
  .panel { background: #fff; border-radius: 18px; box-shadow: var(--shadow-card); padding: 15px 16px; }
  .panel h4 {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 11px;
  }
  .checks { display: flex; flex-direction: column; gap: 2px; }
  .check {
    display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2);
    padding: 7px 9px; border-radius: 9px;
  }
  .check.on { background: var(--blue-soft); color: var(--blue-darker); }
  .check i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(43,39,35,0.18); display: block; flex: 0 0 auto; }
  .check u { width: 15px; height: 15px; border: 1.5px solid #D6CCBE; border-radius: 5px; display: block; flex: 0 0 auto; }
  .check.on u { border-color: var(--blue); background: var(--blue); }
  .check b { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 600; }
  .check.on b { color: var(--blue); }
  /* filtering lives in the sidebar, so the sheet button is not needed */
  #filterBtn { display: none; }
  .cat-foot { max-width: 520px; }
}

/* ---------- popular models, inside the search panel ---------- */
.find-pop { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 13px; }
.find-pop-lbl {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.find-pop-row {
  display: flex; align-items: center; gap: 11px; padding: 6px 4px;
  border-radius: 12px; color: inherit;
}
.find-pop-row:hover { background: var(--app-bg); }
.find-pop-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.find-pop-thumb {
  width: 40px; height: 40px; flex: 0 0 auto; background: var(--tile);
  border-radius: 9px; display: grid; place-items: center; padding: 4px;
  overflow: hidden;
}
.find-pop-thumb img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  mix-blend-mode: multiply;
}
.find-pop-copy { min-width: 0; display: flex; flex-direction: column; }
.find-pop-copy b { font-family: 'Poppins'; font-size: 13px; font-weight: 600; color: var(--ink); }
.find-pop-copy em { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.find-pop-arrow { margin-left: auto; color: var(--faint); font-size: 17px; line-height: 1; }
