/* dealspot public foundations. Intentionally independent of the admin palette. */
:root {
  color-scheme: light;
  --bg: #fff; --surface: #fff; --surface-alt: #F7F8FA; --text: #171E2D;
  --muted: #6B7280; --accent: #2563EB; --discount: #15803D; --border: #E5E7EB;
  --accent-fg: #fff; --accent-hover: #1d4ed8;
  --control-bg: #fff; --menu-bg: #fff; --shadow-menu: 0 8px 24px #171e2d12;
  --chip-active-bg: #171E2D; --chip-active-fg: #fff;
  --image-bg: #F7F8FA; --hero-image-bg: #fff; --image-border: #E5E7EB; --image-fg: #6B7280;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --public-max: 880px; --public-motion: 180ms;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E131B; --surface: #161C26; --surface-alt: #161C26; --text: #E8EBF0;
  --muted: #9AA3B2; --accent: #60A5FA; --discount: #4ADE80; --border: #262E3B;
  --accent-fg: #0E131B; --accent-hover: #93C5FD;
  --control-bg: #161C26; --menu-bg: #161C26; --shadow-menu: 0 12px 32px #0008;
  --chip-active-bg: #E8EBF0; --chip-active-fg: #0E131B;
  --image-bg: #F7F8FA; --hero-image-bg: #F7F8FA; --image-border: #D1D5DB; --image-fg: #4B5563;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0E131B; --surface: #161C26; --surface-alt: #161C26; --text: #E8EBF0;
    --muted: #9AA3B2; --accent: #60A5FA; --discount: #4ADE80; --border: #262E3B;
    --accent-fg: #0E131B; --accent-hover: #93C5FD;
    --control-bg: #161C26; --menu-bg: #161C26; --shadow-menu: 0 12px 32px #0008;
    --chip-active-bg: #E8EBF0; --chip-active-fg: #0E131B;
    --image-bg: #F7F8FA; --hero-image-bg: #F7F8FA; --image-border: #D1D5DB; --image-fg: #4B5563;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font-sans); }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
button, input { font: inherit; }
a, button, summary { transition: background-color var(--public-motion), color var(--public-motion); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
header, main, footer { width: 100%; max-width: calc(var(--public-max) + 48px); margin-inline: auto; padding-inline: 24px; }
header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 25px; font-weight: 800; letter-spacing: -1px; }
.brand svg { width: 29px; height: 29px; flex: none; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 5; background: var(--menu-bg); padding: 10px; }
.skip-link:focus { top: 10px; }
main { padding-block: 36px 48px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; letter-spacing: -1.2px; margin-bottom: 24px; }
h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.6px; }
h3 { font-size: 17px; line-height: 1.4; }
.muted, .eyebrow, .meta { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.meta { font-size: 13px; margin-bottom: 5px; }
.search { display: flex; gap: 10px; align-items: center; height: 48px; padding-inline: 14px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 10px; }
.search svg { width: 20px; flex: none; color: var(--muted); }
.search input { width: 100%; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); }
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.search input:focus-visible { outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 4px; margin: 12px -4px 24px; }
.chip { flex: none; padding: 7px 17px; border: 1px solid var(--border); border-radius: 24px; background: var(--control-bg); color: var(--text); cursor: pointer; text-decoration: none; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--chip-active-bg); color: var(--chip-active-fg); border-color: var(--chip-active-bg); }
.chip:hover { background: var(--surface-alt); color: var(--text); }
:root[data-theme="dark"] .chip[aria-pressed="true"]:hover { background: var(--chip-active-bg); color: var(--chip-active-fg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .chip[aria-pressed="true"]:hover { background: var(--chip-active-bg); color: var(--chip-active-fg); }
}
.hero { display: grid; grid-template-columns: 2fr 3fr; gap: 28px; align-items: center; padding: 24px; background: var(--surface-alt); border-radius: 16px; margin-bottom: 36px; }
.hero-image { display: flex; align-items: center; justify-content: center; background: var(--hero-image-bg); border-radius: 16px; aspect-ratio: 1; }
.hero-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.hero h2 { font-size: 27px; margin-bottom: 10px; }
.hero p { margin-bottom: 12px; }
.price { font-size: 25px; font-weight: 800; letter-spacing: -.7px; color: var(--text); }
.prices { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
del { color: var(--muted); font-size: 14px; }
.discount { color: var(--discount); font-size: 13px; font-weight: 700; }
.shop-cta, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 18px; border-radius: 8px; background: var(--accent); color: var(--accent-fg); font-weight: 650; text-decoration: none; }
.shop-cta:hover, .button:hover { background: var(--accent-hover); }
.section-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.section-title h2 { margin-bottom: 0; }
.count { color: var(--muted); font-size: 14px; }
.deals { display: flex; flex-direction: column; }
.deal-row { display: flex; gap: 18px; align-items: center; padding-block: 15px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; min-width: 0; }
.deal-row:hover { background: var(--surface-alt); }
.deal-image { width: 90px; height: 90px; border-radius: 14px; background: var(--image-bg); object-fit: contain; flex: none; }
.no-image { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--image-fg); font-size: 12px; }
.deal-copy { flex: 1; min-width: 0; }
.deal-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 650; line-height: 1.4; margin-bottom: 5px; overflow-wrap: anywhere; }
.deal-row .price { font-size: 22px; }
.chevron { color: var(--muted); font-size: 23px; flex: none; }
.more { text-align: center; margin-top: 28px; }
.more a, .more-link { display: inline-block; border: 1px solid var(--border); padding: 10px 24px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 650; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-link { color: var(--text); text-decoration: none; }
.hero-link:hover { text-decoration: underline; text-underline-offset: .15em; }
footer { padding-block: 24px 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer-nav, .footer-social { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.product { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; border-radius: 16px; background: var(--image-bg); margin-block: 24px; }
.image-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 180px; border: 1px dashed var(--image-border); color: var(--image-fg); font-size: 13px; text-align: center; }
.image-placeholder span:first-child { font-size: 28px; line-height: 1; }
.copy { white-space: pre-line; }
.expired, .legal-page__notice, .empty { padding: 18px; border-radius: 10px; background: var(--surface-alt); }
.legal-page__content, .legal-page { overflow-wrap: anywhere; }
.demo-label { font-size: 12px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--control-bg); color: var(--text); cursor: pointer; flex: none; }
.theme-toggle:hover { background: var(--surface-alt); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .search input::placeholder { color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme]) .search input::placeholder { color: var(--muted); }
}
details.navigation { position: relative; }
.navigation summary { cursor: pointer; padding: 10px; list-style: none; border-radius: 8px; }
.navigation summary::-webkit-details-marker { display: none; }
.navigation nav { position: absolute; top: 48px; right: 0; width: 210px; padding: 16px; background: var(--menu-bg); border: 1px solid var(--border); border-radius: 10px; z-index: 2; box-shadow: var(--shadow-menu); }
.navigation nav a { display: block; padding: 7px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  header, main, footer { padding-inline: 16px; }
  header { min-height: 72px; }
  main { padding-top: 28px; }
  h1 { max-width: 320px; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 20px; margin-bottom: 28px; }
  .hero-image { height: 210px; aspect-ratio: auto; }
  .hero h2 { font-size: 24px; }
  .deal-row { gap: 12px; padding-block: 14px; }
  .deal-image { width: 74px; height: 74px; }
  .deal-title { font-size: 15px; }
  .deal-row .prices { gap: 7px; }
  .deal-row .price { font-size: 20px; }
  .meta { font-size: 12px; }
  .chevron { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
