/* ==========================================================================
   Storefront — overlay on themes/classic/style.css
   Warm paper, soft tinted sticky header (same swatches as Classic), promo bar,
   category nav, hero slider and a three-column footer.
   ========================================================================== */

:root {
  --bg: #f4f1ec;
  --bg-warm: #faf7f2;
  --surface: #ffffff;
  --surface-warm-a: #fffdf9;
  --surface-warm-b: #f7f2ea;
  --text: #1c1917;
  --text-soft: #57534e;
  --muted: #8a847c;
  --line: #e7e2d9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
  --shadow-sm: 0 4px 16px rgba(28, 25, 23, 0.06);
  --header-h: 72px;
  --max: 1240px;
}

html[data-scheme='dark'] {
  --bg: #14120f;
  --bg-warm: #1a1714;
  --surface: #211d19;
  --surface-warm-a: #241f1a;
  --surface-warm-b: #1c1814;
  --text: #f5f1ea;
  --text-soft: #c4bcb0;
  --muted: #948d82;
  --line: #3a332c;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  html[data-scheme='auto'] {
    --bg: #14120f;
    --bg-warm: #1a1714;
    --surface: #211d19;
    --surface-warm-a: #241f1a;
    --surface-warm-b: #1c1814;
    --text: #f5f1ea;
    --text-soft: #c4bcb0;
    --muted: #948d82;
    --line: #3a332c;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  }
}

/* ---------- Promo bar ---------- */
.promo-bar {
  background: #1c1917;
  color: #faf7f2;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  width: 100%;
}

.promo-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9px 18px;
  text-align: center;
}

/* ---------- Header ----------
   Shell colour comes from classic/style.css (--accent wash). */
.shop-header {
  color: var(--text) !important;
}

.shop-header-inner {
  grid-template-columns: auto minmax(180px, 1fr) auto;
}

.shop-header .shop-logo,
.shop-header .shop-logo h1,
.shop-header .search-toggle,
.shop-header .cart-link {
  color: var(--text) !important;
}

.shop-logo h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.shop-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
}

.header-search {
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

.shop-header .header-search input {
  background: var(--bg) !important;
  border: 0;
  border-radius: 999px;
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px var(--line) !important;
}

.shop-header .header-search input::placeholder {
  color: var(--muted);
}

.shop-header .header-search input:focus {
  background: var(--surface) !important;
  color: var(--text) !important;
  box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--accent) !important;
}

.shop-header .header-search button {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 50%;
}

.cart-link,
.header-wa {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 1.15rem;
  cursor: pointer;
}

.shop-header .search-toggle,
.shop-header .cart-link,
.shop-header .header-wa {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  color: var(--text) !important;
}

.shop-header .search-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.header-wa {
  color: #128c7e !important;
}

.shop-header .search-toggle:hover,
.shop-header .cart-link:hover,
.shop-header .header-wa:hover {
  background: var(--bg) !important;
  color: var(--accent) !important;
}

.shop-header .cart-count,
.shop-header #lblCartCount {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ---------- Category nav ---------- */
.cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.cat-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav-link {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft) !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cat-nav-link:hover,
.cat-nav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent) !important;
}

/* ---------- Trust row ---------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.trust-item i {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
}

.trust-item strong,
.trust-item span { display: block; }

.trust-item strong { font-size: 14px; }

.trust-item span {
  color: var(--muted);
  font-size: 12px;
}

.btn-add,
.btn.buy {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.btn-add:hover,
.btn.buy:hover {
  background: var(--accent-hover) !important;
}

#productsToolbar {
  scroll-margin-top: calc(var(--header-h) + 56px);
}

/* ---------- Footer ---------- */
.shop-footer {
  background: #1c1917;
  color: #f5f0e8;
  margin-top: auto;
  border-top: 0;
}

.shop-footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 42px 18px 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #f5f0e8;
}

.footer-logo .shop-logo-img {
  height: 36px;
  max-width: 140px;
}

.shop-header.logo-only .shop-header-inner {
  padding: 6px 18px 6px 8px;
}

.shop-header.logo-only .shop-logo.logo-only {
  align-self: center;
  height: calc(var(--header-h) - 12px);
  max-height: calc(var(--header-h) - 12px);
  overflow: hidden;
}

.shop-logo.logo-only .shop-logo-img {
  height: calc((var(--header-h) - 12px) * 1.5);
  max-width: 320px;
}

.footer-logo.logo-only {
  margin-bottom: 4px;
}

.footer-logo.logo-only .shop-logo-img {
  height: 80px;
  max-width: 340px;
}

@media (max-width: 767px) {
  .shop-header.logo-only .shop-logo.logo-only {
    height: calc(var(--header-h) - 8px);
    max-height: calc(var(--header-h) - 8px);
  }

  .shop-logo.logo-only .shop-logo-img {
    height: calc((var(--header-h) - 8px) * 1.5);
    max-width: 220px;
  }

  .footer-logo.logo-only .shop-logo-img {
    height: 64px;
    max-width: 250px;
  }
}

.shop-footer .shop-mark {
  background: var(--accent);
  color: #fff;
}

.footer-brand p {
  margin: 0;
  max-width: 36ch;
  color: #d6d3d1;
  font-size: 14px;
  font-weight: 500;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a29e;
}

.footer-col a,
.shop-footer-bottom a {
  color: #f5f0e8 !important;
  font-size: 14px;
  font-weight: 600;
}

.footer-col a:hover,
.shop-footer-bottom a:hover {
  color: #fff !important;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #f5f0e8 !important;
  font-size: 16px;
}

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 20px;
  opacity: 0.85;
}

.shop-footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 18px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #a8a29e;
  font-size: 12px;
}

.shop-footer-bottom a { color: #d6d3d1 !important; }

@media (max-width: 900px) {
  .trust-row { grid-template-columns: 1fr; }
  .shop-footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .shop-header-inner {
    grid-template-columns: 1fr auto;
  }
  .header-search {
    max-width: none;
    justify-self: stretch;
  }
  .header-wa { display: none; }
  .cat-nav { top: var(--header-h); }
}
