/* Shared storefront skin. Component layout and interactive states stay local. */
:root:root {
  --bg: #f5f6f2;
  --surface: #fff;
  --ink: #151b2d;
  --muted: #525b6f;
  --line: #dce1e8;
  --brand: #304bc3;
  --brand-dark: #213698;
  --brand-soft: #e8edff;
  --cta: #304bc3;
  --cta-dark: #213698;
  --chip-bg: #edf0f7;
  --header-bg: #fbfcff;
  --shadow: 0 8px 24px #3516530c;
  --app-elevation: 0 10px 28px #35165312;
  --app-action: #304bc3;
  --app-hero: #192965;
  --app-highlight: #e3fa79;
}

html.dark:root {
  --bg: #141824;
  --surface: #1c2232;
  --ink: #f4f6ff;
  --muted: #bbc4da;
  --line: #364059;
  --brand: #a9b8ff;
  --brand-dark: #c4ceff;
  --brand-soft: #303b65;
  --chip-bg: #272f44;
  --header-bg: #1b2131;
  --app-elevation: 0 10px 28px #07050b45;
}

:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

app-header header.top {
  background: var(--header-bg);
  border-color: var(--line);
  box-shadow: 0 4px 20px #3516530d;
}

app-header form.search {
  background: var(--chip-bg);
  border-color: var(--line);
  border-radius: 16px;
}

app-header form.search:focus-within {
  background: var(--surface);
  border-color: var(--brand);
}

app-header .search .search-go {
  background: var(--app-action);
  border-radius: 12px;
}

app-header .actions .nav-link {
  font-size: .7rem;
  border-radius: 12px;
}

app-home .hero .hero-carousel {
  border-radius: 24px;
  box-shadow: var(--app-elevation);
}

app-home .css-hero .hero-banner[data-tone] {
  background: var(--app-hero);
  border-color: var(--line);
}

app-home .hero-banner .copy h1,
app-home .hero-banner .copy .lead {
  color: #fff;
}

app-home .cats .cat .ico {
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px #48124813;
}

app-home .promo-grid .promo-tile {
  border-radius: 19px;
  box-shadow: var(--shadow);
}

app-home .block .latest-head h2,
app-home .block .head h2,
app-browse .all-deals-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -.045em;
}

app-home .block .cat-pick-bar {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: .35rem;
}

app-home .cat-pick-views .cat-view-btn.on {
  color: var(--brand);
  background: var(--brand-soft);
}

app-deal-card article.card {
  border-radius: 19px;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

app-deal-card article.card:hover {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  box-shadow: var(--app-elevation);
}

app-deal-card .card .media {
  border-block-end: 1px solid var(--line);
}

app-deal-card .card .off {
  background: var(--app-highlight);
  color: #1b2547;
  border-radius: 8px;
}

app-deal-card .card .cta,
app-deal-page .pricebox .cta,
app-home .hero-banner .shop-now {
  background: var(--app-action);
  color: #fff;
  border-radius: 12px;
}

app-deal-card .card .cta:hover,
app-deal-page .pricebox .cta:hover,
app-home .hero-banner .shop-now:hover {
  background: #213698;
}

app-home .css-hero .hero-banner[data-tone] {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: .8rem;
  min-height: 0;
  padding: clamp(.85rem, 2vw, 1.65rem);
  background-image: radial-gradient(circle at 85% 30%, #354ca0 0, transparent 59%);
  background-color: var(--app-hero);
}

app-home .css-hero .hero-banner[data-tone] .copy h1 {
  color: #fff !important;
  font-size: clamp(1.35rem, 2.7vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

app-home .css-hero .hero-banner[data-tone] .copy .eyebrow {
  margin-bottom: .35rem;
  color: var(--app-highlight);
  letter-spacing: .12em;
}

app-home .hero-banner .copy .lead {
  display: block;
  min-height: 0;
  margin: .4rem 0 .65rem;
  color: #e1e7ff;
  font-size: clamp(.76rem, 1vw, .92rem);
}

app-home .hero-banner .copy .shop-now {
  background: var(--app-highlight);
  color: #1b2547;
  box-shadow: none;
}

app-home .hero-banner .copy .shop-now:hover {
  background: #f0ffab;
}

app-home .hero-banner .art {
  display: grid;
  min-height: clamp(5.5rem, 12vw, 9rem);
  place-items: center;
  isolation: isolate;
}

app-home .hero-banner .art .blob {
  display: block;
  inset: 3%;
  border: 1px dashed #bdcaff88;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 16px, #b1c0ff33 17px 18px);
  opacity: 1;
  z-index: -1;
}

app-home .hero-banner .art .badge {
  position: relative;
  inset: auto;
  width: min(78%, 8rem);
  height: auto;
  aspect-ratio: 1.42;
  border: 2px dashed #34456d;
  outline: 4px solid var(--app-highlight);
  border-radius: 16px;
  background: var(--app-highlight);
  color: #192965;
  box-shadow: 8px 13px 0 #111b47;
  font-size: clamp(.6rem, 1.2vw, .95rem);
  transform: rotate(-12deg);
}

app-home .hero-banner .art .badge b {
  font-size: clamp(.9rem, 1.8vw, 1.55rem);
  letter-spacing: -.06em;
}

app-home .hero-banner .art :is(.float, .hero-tag, .hero-pills) {
  display: none;
}

app-home .hero .css-hero .caro-dots button[aria-label] {
  background: #b3bfff;
}

app-home .hero .css-hero .caro-dots button[aria-label].on {
  background: var(--app-highlight);
}

app-home .promo-grid .promo-tools {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(3.4rem, auto);
  gap: .4rem;
}

app-home .promo-grid .promo-tools .promo-tile {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: .4rem;
}

app-home .promo-tools .promo-tile:first-child {
  background: #dfe8ff;
  border-color: #ced9f4;
  color: #192965;
}

app-home .promo-tools .promo-tile .promo-art {
  width: 100%;
  height: 1.65rem;
}

app-home .promo-tools .promo-tile .promo-copy {
  align-items: flex-start;
  min-width: 0;
}

app-home .promo-grid .promo-tools .promo-tile .promo-copy b {
  font-size: .82rem;
  white-space: normal;
}

app-home .promo-grid .promo-join {
  border-radius: 12px;
  padding-block: .55rem;
}

app-home .block .latest-head {
  margin-top: .6rem;
  padding: .55rem .7rem;
  border-left: 4px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
}

@media (max-width: 640px) {
  app-home .css-hero .hero-banner[data-tone] {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: .45rem;
    padding-bottom: 1.2rem;
  }

  app-home .promo-grid .promo-tools .promo-tile {
    padding-inline: .15rem;
  }

  app-home .promo-grid .promo-tools .promo-tile .promo-copy b {
    font-size: .66rem;
  }
}

app-browse .cat-layout .cat-hero,
app-deal-page .gallery,
app-deal-page .buy .pricebox {
  border-radius: 22px;
  box-shadow: var(--app-elevation);
}

app-browse .filters :is(input, select) {
  border-color: var(--line);
  border-radius: 12px;
}

app-footer footer.foot {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

app-footer .foot .trust {
  background: var(--chip-bg);
}

@media (max-width: 959px) {
  app-dock nav.dock {
    gap: .3rem;
    padding-inline: .55rem;
    background: var(--header-bg);
    border-color: var(--line);
    box-shadow: 0 -6px 24px #35165315;
  }

  app-dock nav.dock :is(a, button) {
    min-height: 44px;
    border-radius: 14px;
    color: var(--muted);
    font-size: .72rem;
  }

  app-dock nav.dock :is(a, button).on {
    background: var(--brand-soft);
    color: var(--brand);
  }
}

@media (prefers-reduced-motion: reduce) {
  app-deal-card article.card {
    transition: none;
  }

  app-deal-card article.card:hover {
    transform: none;
  }
}
