:root {
  --bg: #f7faf8;
  --card: #ffffff;
  --ink: #12281f;
  --muted: #61756c;
  --line: #e3eee8;
  --brand: #0b7a55;
  --brand-dark: #075c40;
  --brand-soft: #e7f7f0;
  --accent: #ffb020;
  --accent-soft: #fff6e0;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(18, 40, 31, 0.08);
  --max: 1280px;
  --sidebar: 200px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: linear-gradient(180deg, #e8f8f0 0%, var(--bg) 280px);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--brand-dark); text-decoration: none; }
/* Links inside running text are underlined so they don't rely on color alone (WCAG 1.4.1). */
p a:not([class]), .page li a:not([class]), .deal-summary a:not([class]) { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
p a:not([class]):hover, .page li a:not([class]):hover { text-decoration-thickness: 2px; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0.85rem 1rem 2.5rem; width: 100%; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--brand-soft);
  box-shadow: var(--shadow);
}
.logo .mark { color: var(--brand); }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 600; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--brand-dark); }
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
}
.hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.15;
}
.hero p { margin: 0 0 1rem; color: var(--muted); font-size: 1.05rem; }
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: #92400e;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: var(--shadow);
}
.cta:hover { background: var(--brand-dark); }
.mascot {
  max-width: 260px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 24px rgba(11, 122, 85, 0.25));
}
.section h2 { margin: 0 0 0.85rem; font-size: 1.25rem; }
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.tile h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.tile p { margin: 0; opacity: 0.92; font-size: 0.88rem; }
.t1 { background: linear-gradient(160deg, #0b7a55, #065f46); }
.t2 { background: linear-gradient(160deg, #ffb020, #d97706); }
.t3 { background: linear-gradient(160deg, #0ea5e9, #075985); }
.t4 { background: linear-gradient(160deg, #7c3aed, #4c1d95); }
.t5 { background: linear-gradient(160deg, #e11d48, #9f1239); }
.t6 { background: linear-gradient(160deg, #14b8a6, #0f766e); }
.soon {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.soon h2 { margin-top: 0; }
.soon p { margin: 0.4rem 0; color: var(--muted); }
footer {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer h2, footer h3 { color: var(--ink); font-size: 1rem; margin: 0 0 0.5rem; }
footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.fine { font-size: 0.8rem; margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.page { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.page h1 { margin-top: 0; }
.page p, .page li { color: var(--muted); }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .mascot { max-width: 200px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr; }
}

/* —— Homepage showcase + browse split (v home-browse-3) —— */
.site-header {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.35rem 0 1rem;
  position: relative;
}
.header-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font: inherit;
  padding: 0.7rem 1rem;
  background: transparent;
  color: var(--ink);
}
.header-search-btn {
  appearance: none;
  border: none;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
}
.header-search-btn:hover { background: var(--brand-dark); }
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  font-weight: 600;
  font-size: 0.92rem;
}
.header-nav a { color: var(--muted); text-decoration: none; }
.header-nav a:hover { color: var(--brand-dark); }
.nav-cta {
  appearance: none;
  border: none;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}
.nav-cta:hover { background: var(--brand-dark); }
.nav-menu { position: relative; }
.nav-menu > summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu[open] > summary { color: var(--brand-dark); }
.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 200px;
  max-width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(24rem, calc(100dvh - 8rem), calc(100vh - 8rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  z-index: 20;
  display: grid;
  gap: 0.2rem;
}
/* Full-width in-viewport sheet once the header nav wraps (home-browse-29) */
@media (max-width: 1100px) {
  .nav-menu { position: static; }
  .nav-menu-panel {
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
    max-width: none;
    top: calc(100% + 0.35rem);
    max-height: min(70dvh, calc(100dvh - 12rem), 70vh, calc(100vh - 12rem));
  }
}
.nav-link-btn {
  appearance: none;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-link-btn:hover { background: var(--brand-soft); color: var(--brand-dark); }
.tiny { font-size: 0.8rem; margin: 0.35rem; }

.preview-label {
  background: #12281f;
  color: #e7f7f0;
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}
.preview-label code {
  background: rgba(255,255,255,0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.ghost-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.ghost-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.ghost-btn[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}
.demo-banner {
  background: var(--accent-soft);
  border: 1px solid #f5d48a;
  color: #7a4b08;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
.demo-toggle-inline { margin-left: auto; }
.muted { color: var(--muted); }
.section-head { margin-bottom: 0.85rem; }
.section-head h2 { margin: 0 0 0.25rem; }
.section-head p { margin: 0; font-size: 0.95rem; }
.section-head.row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.collection-card {
  appearance: none;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.85rem;
  text-align: left;
  cursor: pointer;
  background: var(--card);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 140px;
  padding: 0;
  font: inherit;
  color: inherit;
}
.collection-card:hover { border-color: var(--brand); }
.collection-card.size-hero {
  grid-column: 1 / -1;
  grid-template-columns: 180px 1fr;
  min-height: 190px;
}
.collection-art { display: grid; place-items: center; font-size: 2.4rem; color: #fff; position: relative; overflow: hidden; }
.collection-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-card.has-art-image .collection-emoji { display: none; }
.collection-art:not(:has(.collection-art-img)) .collection-emoji { display: block; }
.tone-harvest .collection-art { background: linear-gradient(160deg, #c2410c, #9a3412); }
.tone-tech .collection-art { background: linear-gradient(160deg, #0ea5e9, #075985); }
.tone-home .collection-art { background: linear-gradient(160deg, #0b7a55, #065f46); }
.tone-essentials .collection-art { background: linear-gradient(160deg, #7c3aed, #4c1d95); }
.collection-copy { padding: 1rem 1rem 1rem 0; display: flex; flex-direction: column; justify-content: center; }
.collection-copy h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.collection-copy p { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.92rem; }
.collection-meta { font-size: 0.8rem; font-weight: 800; color: var(--brand-dark); }

.home-shelf {
  background: transparent;
  margin-bottom: 1.5rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid var(--line);
}
.home-deal-grid { grid-template-columns: repeat(5, 1fr); }
.deal-card.is-compact { min-height: 0; padding: 0; }

.browse-shell { margin-bottom: 2rem; }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  font-size: 0.88rem; font-weight: 600; color: var(--muted); margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--brand-dark); }
.browse-heading {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem;
}
.browse-heading h2 { margin: 0 0 0.25rem; }
.browse-heading p { margin: 0; }
.browse-layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}
.filters-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0.5rem;
}
.filters-panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem;
}
.filters-panel-head h3 { margin: 0; font-size: 1rem; }
.filter-group { margin-bottom: 1rem; }
.filter-group h4 {
  margin: 0 0 0.4rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips.stacked { flex-direction: column; align-items: stretch; }
.chips.stacked .chip { justify-content: flex-start; border-radius: 12px; }
.chip {
  appearance: none; border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-weight: 700; font-size: 0.82rem; padding: 0.4rem 0.75rem; border-radius: 999px; cursor: pointer; text-align: left;
}
.chip:hover { color: var(--brand-dark); border-color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.clear-btn { width: 100%; justify-content: center; }
.controls {
  display: grid; grid-template-columns: 1fr auto auto; gap: 0.65rem; align-items: center; margin-bottom: 0.75rem;
}
.controls input[type="search"], .controls select {
  font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.85rem; background: var(--card); color: var(--ink);
}
.controls input[type="search"] { width: 100%; }
.sort-label { font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.active-chip {
  appearance: none; border: 1px solid var(--line); background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: 0.78rem; padding: 0.35rem 0.65rem; border-radius: 999px; cursor: pointer;
}
.active-chip.clear { background: var(--card); color: var(--muted); }
.deals-heading-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.65rem; }
.result-count { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.deal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; }
.deal-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 0; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0; min-height: 0;
  overflow: hidden;
}
.deal-card.is-clickable { cursor: pointer; }
.deal-card.is-clickable:hover { box-shadow: 0 10px 28px rgba(18, 40, 31, 0.12); border-color: #cfe4d9; }
.deal-card-link {
  display: flex; flex-direction: column; color: inherit; text-decoration: none !important; height: 100%;
}
.deal-card-link:hover { text-decoration: none !important; color: inherit; }
.deal-card-media { position: relative; }
.deal-card-body { padding: 0.6rem 0.7rem 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; }
.deal-card .deal-title {
  font-size: 0.9rem; line-height: 1.3; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.34em;
}
.deal-card .deal-summary { display: none; }
.deal-card .price { font-size: 1.02rem; }
.deal-card .deal-cta { padding: 0.55rem 0.7rem; font-size: 0.85rem; }
.deal-store-badge {
  position: absolute; top: 0.45rem; left: 0.45rem; z-index: 2;
  display: inline-flex; align-items: center; max-width: calc(100% - 3.2rem);
  background: rgba(255,255,255,0.94); color: var(--ink);
  font-size: 0.68rem; font-weight: 800; padding: 0.18rem 0.5rem; border-radius: 999px;
  border: 1px solid var(--line); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deal-store-badge.is-static { position: static; max-width: none; }
.deal-tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.deal-type-tag {
  display: inline-flex; align-items: center;
  font-size: 0.68rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.12rem 0.45rem; background: #fff;
}
.deal-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.deal-chip {
  display: inline-flex; font-size: 0.68rem; font-weight: 700; color: var(--muted);
  background: #f3f6f4; border-radius: 999px; padding: 0.1rem 0.45rem;
}
.price-amazon { font-size: 0.92rem !important; font-weight: 700; color: var(--ink); }
.example-ribbon {
  display: inline-block; align-self: flex-start; background: var(--accent-soft); color: #92400e;
  font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.5rem; border-radius: 999px;
}

.live-ribbon {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0b5c40;
  background: #d8f5e8;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.deal-image-wrap {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #eef3f0;
  aspect-ratio: 4 / 3;
}
.deal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.deal-card.is-compact .deal-image-wrap { aspect-ratio: 4 / 3; margin: 0; }
.prices-as-of, .deal-variants {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
}
a.deal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff !important;
}

.deal-top { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.deal-title { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.deal-summary { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }
.deal-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem; }
.price { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.was { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.save { background: var(--brand-soft); color: var(--brand-dark); font-size: 0.75rem; font-weight: 800; padding: 0.15rem 0.45rem; border-radius: 999px; }
.deal-cta {
  display: inline-flex; justify-content: center; align-items: center; margin-top: 0.35rem; background: var(--brand);
  color: #fff !important; font-weight: 700; padding: 0.65rem 0.9rem; border-radius: 999px; text-decoration: none !important; border: none; font: inherit;
}
.deal-cta.is-disabled, .deal-cta:disabled { background: #c5d5cd; color: #4a5c54 !important; cursor: not-allowed; }
.empty-state {
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; text-align: center;
}
.empty-state h3 { margin: 0 0 0.4rem; }
.empty-state p { margin: 0 0 1rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.filters-backdrop { position: fixed; inset: 0; background: rgba(18, 40, 31, 0.45); z-index: 30; }
.mobile-only { display: none; }
.cta {
  display: inline-flex; align-items: center; gap: 0.4rem; background: var(--brand); color: #fff !important;
  font-weight: 700; padding: 0.7rem 1.15rem; border-radius: 999px; text-decoration: none !important; box-shadow: var(--shadow); border: none; font: inherit; cursor: pointer;
}
.cta:hover { background: var(--brand-dark); }

@media (max-width: 1279px) {
  :root { --max: 1180px; }
  .home-deal-grid, .deal-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  :root { --max: 100%; --sidebar: 180px; }
  .site-header { grid-template-columns: auto 1fr; }
  .header-nav { grid-column: 1 / -1; justify-content: flex-start; }
  .home-deal-grid, .deal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .collection-card.size-hero { grid-column: 1 / -1; }
  .home-deal-grid, .deal-grid { grid-template-columns: repeat(2, 1fr); }
  .browse-layout { grid-template-columns: 1fr; }
  .mobile-only { display: inline-flex; }
  .filters-panel {
    position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(300px, 92vw); height: 100%;
    border-radius: 0; transform: translateX(-105%); transition: transform 0.2s ease; overflow: auto;
  }
  .filters-panel.is-open { transform: translateX(0); }
}
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr; }
  .header-search { max-width: none; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .mascot { max-width: 200px; }
  .hero-actions { justify-content: center; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card, .collection-card.size-hero { grid-template-columns: 96px 1fr; min-height: 130px; }
  .home-deal-grid, .deal-grid { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .sort-label { display: none; }
  footer .cols { grid-template-columns: 1fr; }
}

/* Saved hearts + auth preview (home-browse-29) */
.nav-linkish {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
}
.nav-linkish:hover { color: var(--brand-dark); }
.header-auth.ghost-btn { padding: 0.45rem 0.85rem; }
.header-auth.signup { padding: 0.45rem 0.9rem; }
.deal-card-toprow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4rem;
}
.deal-card > .heart-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 3;
}
.heart-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  box-shadow: 0 1px 4px rgba(18, 40, 31, 0.12);
}
.heart-btn.has-count { width: auto; padding: 0 0.45rem; }
.heart-count { font-size: 0.68rem; font-weight: 800; }
.heart-btn.is-saved {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
}
.deal-card.is-unavailable { opacity: 0.78; }
.deal-unavailable {
  margin: 0;
  color: #9f1239;
  font-size: 0.82rem;
  font-weight: 700;
}
.auth-dialog {
  position: fixed;
  inset: 0;
  background: rgba(18, 40, 31, 0.45);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.auth-dialog[hidden] { display: none !important; }
.auth-dialog-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.1rem;
}
.auth-dialog-card h2 { margin: 0 0 0.5rem; }
.auth-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
}
.consent-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.85rem 0 1rem;
}
.auth-dialog-card .nav-cta {
  width: 100%;
  justify-content: center;
}
.auth-dialog-card .nav-cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
@media (max-width: 1100px) {
  .header-auth.signup { order: 2; }
}


/* FragranceShop store catalog (home-browse-29) */
.store-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}
.store-regular-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8a5a00;
  font-size: 0.78rem;
  font-weight: 700;
}
.store-shell .brand-chips {
  max-height: 220px;
  overflow: auto;
  padding-right: 0.2rem;
}
#store-brand-search {
  width: 100%;
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.catalog-ribbon {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #fff3d6;
  color: #7a5200;
  font-size: 0.72rem;
  font-weight: 700;
}
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0.5rem;
}
.store-card-note {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.home-store-card {
  text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff8e8, #ffffff);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  width: 100%;
}
.home-store-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.home-store-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Amazon Associates cards (home-browse-29) */
.deal-card.is-amazon .live-ribbon { background: #fff6e0; color: #92400e; }
.amazon-disclosure-inline {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}
.deal-price-row .price.muted { color: var(--muted); font-size: 0.95rem; font-weight: 700; }

.deal-image-wrap.is-broken {
  background: #f3f4f6;
  min-height: 8rem;
}
.deal-image-wrap.is-broken::after {
  content: "Photo needed";
  display: grid;
  place-items: center;
  height: 100%;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 650;
}


/* Deal details view (home-browse-29) */
body.deal-detail-open { overflow: hidden; }
.deal-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(18, 40, 31, 0.5);
  display: grid;
  place-items: start center;
  overflow: auto;
  padding: 1.5rem 1rem 2rem;
}
.deal-detail-overlay[hidden] { display: none !important; }
.deal-detail-dialog {
  position: relative;
  width: min(980px, 100%);
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: auto;
  padding: 1rem 1.1rem 1.25rem;
}
.deal-detail-toolbar { display: flex; justify-content: flex-end; }
.deal-detail-close {
  appearance: none; border: none; background: transparent;
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted);
  width: 2rem; height: 2rem;
}
.deal-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.deal-detail-gallery .deal-image-wrap { border-radius: 12px; }
.deal-detail-info { display: flex; flex-direction: column; gap: 0.55rem; }
.deal-detail-actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.deal-detail-actions .heart-btn { position: static; }
.icon-btn {
  appearance: none; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; font: inherit; font-size: 0.78rem; font-weight: 700;
  color: var(--muted); padding: 0.35rem 0.7rem; cursor: pointer;
  text-decoration: none !important; display: inline-flex; align-items: center;
}
.icon-btn:hover { color: var(--brand-dark); border-color: var(--brand); }
.deal-detail-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.deal-detail-title { margin: 0; font-size: 1.35rem; line-height: 1.25; }
.deal-detail-summary { margin: 0; color: var(--muted); font-size: 0.92rem; }
.deal-detail-info .deal-cta { margin-top: 0.25rem; width: 100%; }
.deal-disclosure {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
.deal-coupon {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border: 1px dashed var(--brand); background: var(--brand-soft);
  border-radius: 12px; padding: 0.65rem 0.8rem;
}
.deal-coupon-label { display: block; font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.deal-coupon-code { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.04em; }
.deal-similar { margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.deal-similar-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) {
  .deal-detail-main { grid-template-columns: 1fr; }
  .deal-similar-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .deal-detail-overlay { padding: 0; background: var(--card); }
  .deal-detail-dialog {
    width: 100%; min-height: 100%; border-radius: 0; border: 0; margin: 0;
    box-shadow: none;
  }
  .deal-similar-grid { grid-template-columns: repeat(2, 1fr); }
}


/* Real accounts (home-browse-29) */
.auth-field {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.auth-field[hidden] { display: none !important; }
.auth-field input {
  font: inherit;
  font-weight: 400;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.auth-field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
#auth-form[hidden] { display: none !important; }
.auth-error {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 0.88rem;
  font-weight: 700;
}
.auth-notice {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.88rem;
  font-weight: 700;
}
.auth-error[hidden], .auth-notice[hidden] { display: none !important; }
.auth-switch { margin-top: 0.75rem; }
.linkish {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.linkish[hidden] { display: none !important; }
.account-menu[hidden] { display: none !important; }
.account-menu > summary { list-style: none; cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 800;
}
.account-panel {
  display: grid;
  gap: 0.35rem;
}
.account-email {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.account-verify { margin: 0; color: #9a3412; }
.account-verify[hidden] { display: none !important; }
.account-newsletter { margin: 0.35rem 0; }
.account-panel .nav-linkish { text-align: left; padding-left: 0; }
.account-panel .ghost-btn { justify-self: start; }

/* Mailing list (home-browse-29) */
footer .cols { grid-template-columns: 1.4fr 1.2fr 1fr; }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; } }
.newsletter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-row input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
.newsletter-row button { flex: 0 0 auto; }
.newsletter-row button:disabled { opacity: 0.6; cursor: progress; }
.newsletter-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.newsletter-fine { margin: 0.5rem 0 0; }
.newsletter-status { min-height: 1.2em; margin: 0.35rem 0 0; font-weight: 600; }
.newsletter-status[data-kind="ok"] { color: #0b7a55; }
.newsletter-status[data-kind="error"] { color: #b42318; }
.account-newsletter-note { margin: -0.25rem 0 0.5rem; color: var(--muted); }
