/* ==========================================================================
   Minimal — overlay on themes/classic/style.css
   Loaded second, so plain-specificity rules here win. The theme sets
   bootstrap_bg false in theme.json, which strips the bg-* class off the
   header and footer and keeps the classic !important rules from matching.
   ========================================================================== */

/* The typeface comes from "font": "inter" in theme.json, which the controller
   loads and prints as --font. Setting it here would be overridden. */

:root {
  /* Flat greyscale. Every surface is the same paper. */
  --bg: #ffffff;
  --bg-warm: #ffffff;
  --surface: #ffffff;
  --surface-warm-a: #ffffff;
  --surface-warm-b: #fafafa;
  --text: #111111;
  --text-soft: #4a4a4a;
  --muted: #8e8e8e;
  --line: #e4e4e4;

  /* Square, flat, quiet. */
  --radius: 2px;
  --radius-sm: 2px;
  --shadow: none;
  --shadow-sm: none;
  --header-h: 64px;
  --max: 1120px;
}

html[data-scheme='dark'] {
  --bg: #0d0d0d;
  --bg-warm: #0d0d0d;
  --surface: #141414;
  --surface-warm-a: #171717;
  --surface-warm-b: #101010;
  --text: #f2f2f2;
  --text-soft: #b8b8b8;
  --muted: #7e7e7e;
  --line: #2b2b2b;
  --shadow: none;
  --shadow-sm: none;
}

@media (prefers-color-scheme: dark) {
  html[data-scheme='auto'] {
    --bg: #0d0d0d;
    --bg-warm: #0d0d0d;
    --surface: #141414;
    --surface-warm-a: #171717;
    --surface-warm-b: #101010;
    --text: #f2f2f2;
    --text-soft: #b8b8b8;
    --muted: #7e7e7e;
    --line: #2b2b2b;
    --shadow: none;
    --shadow-sm: none;
  }
}

/* ---------- Announcement ----------
   A hairline strip. The classic markup prints the message twice for the
   marquee, so the duplicate is clipped rather than left to wrap. */
.announce {
  background: var(--surface);
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.announce-track {
  display: block;
  animation: none;
  padding: 8px 18px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Header ---------- */
.shop-header {
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
}

.shop-header .shop-logo h1 {
  color: inherit;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 17px;
}

.header-search input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
}

.header-search input:focus {
  border-bottom-color: var(--text);
  box-shadow: none;
  outline: none;
}

.header-search button,
.search-toggle,
.cart-link {
  color: var(--text);
}

.cart-count {
  background: var(--text);
  color: var(--bg);
}

.cat-nav-link {
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 8px 10px;
}

.cat-nav-link:hover,
.cat-nav-link.is-active {
  background: transparent;
  color: var(--text) !important;
  box-shadow: inset 0 -2px 0 var(--text);
}

/* ---------- Flatten every panel ---------- */
.product-card,
.memory-product-card,
.smart-tile,
.testimonial-card,
.result-card,
.order-box,
.cart-wrap,
.checkout,
.coupon-box,
.variation-box,
.stock-review-card,
.reorder-tile,
.shop-about {
  border: 1px solid var(--line);
  box-shadow: none;
}

.product-card:hover,
.memory-product-card:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--text);
}

/* ---------- Type ---------- */
.section-head h2,
.pdp-title,
.page-kicker {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.product-card-name { font-weight: 400; }
.product-card-price,
.pdp-price { font-weight: 500; }

/* ---------- Buttons: outline first, accent only for the primary action --- */
.btn,
.btn-add,
.btn-long,
.qty-btn,
.cat-chip,
.smart-action-secondary {
  border-radius: 0;
}

.btn-add,
.cat-chip,
.smart-action-secondary {
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
}

.btn-add:hover,
.cat-chip:hover,
.smart-action-secondary:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-long,
.btn-warning,
.smart-action,
.pay-online-btn {
  border-radius: 0;
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
}

.btn-long:hover,
.btn-warning:hover,
.smart-action:hover,
.pay-online-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.hero,
.hero-image,
.hero-tile,
.hero-cta,
.hero-arrow,
.shop-mark {
  border-radius: var(--radius);
}

/* ---------- Footer ----------
   The bg-* class is gone, so this is the only footer surface rule. */
.shop-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-logo strong { color: var(--text); }
.footer-brand p { color: var(--text-soft); }
.footer-col h4 { color: var(--muted); }
.shop-footer a { color: var(--muted); }
.shop-footer a:hover { color: var(--text); }
.shop-footer .footer-social a {
  color: var(--text);
  border-color: var(--line);
}
.shop-footer-bottom {
  border-top-color: var(--line);
  color: var(--muted);
}
.shop-footer-bottom a { color: var(--text-soft); }
