/* ── Reset + Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

/* ── Layout ────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.page { padding: 2rem 0; min-height: 60vh; }

/* ── Header ────────────────────────────────────────── */
.site-header {
  background: var(--cream);
  border-bottom: 3px solid var(--red);
  padding: 0;
  position: sticky; top: 0; z-index: 100;
}
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: ".  logo  cart";
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1rem 0.6rem;
}
.header-logo {
  grid-area: logo;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.site-logo {
  display: block;
  height: 58px;
  width: auto;
  max-width: 100%;
}
.cart-icon {
  grid-area: cart;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--red);
  font-family: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  padding-right: 0.15rem;
}
.cart-icon:hover { color: var(--red-dark); text-decoration: none; }
.cart-icon:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.25);
  border-radius: var(--radius-xs);
}
.cart-count-wrap { font-weight: 600; letter-spacing: 0.06em; }
.cart-glyph { font-size: 1rem; line-height: 1; position: relative; top: 0.04em; }
@media (max-width: 600px) {
  .header-top { padding: 0.55rem 0.85rem 0.5rem; }
  .site-logo  { height: 40px; }
  .cart-icon  { font-size: 0.76rem; gap: 0.25rem; letter-spacing: 0.1em; }
  .cart-glyph { font-size: 0.92rem; }
}

/* ── Nav ───────────────────────────────────────────── */
.site-nav {
  background: var(--cream);
  border-top: 2px solid var(--red);
}
.site-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.site-nav li { position: relative; display: flex; align-items: stretch; }
.site-nav li:not(:last-child)::after {
  content: '';
  display: block;
  width: 1px;
  background: rgba(178, 34, 34, 0.55);
  margin: 0.3rem 0;
  align-self: stretch;
}
.site-nav a {
  display: block;
  color: var(--red);
  padding: 0.34rem 2.25rem;
  font-family: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.1;
}
.site-nav a:hover {
  background: var(--cream-dark);
  color: var(--red-dark);
  text-decoration: none;
}
.site-nav a.active {
  background: var(--cream-dark);
  color: var(--red-dark);
}
.site-nav a:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(178, 34, 34, 0.45);
}
@media (max-width: 900px) {
  .site-nav a { padding: 0.34rem 1.25rem; }
}
@media (max-width: 600px) {
  .site-nav a { padding: 0.35rem 0.7rem; font-size: 0.78rem; letter-spacing: 0.11em; }
  .site-nav li:not(:last-child)::after { margin: 0.3rem 0; }
}

/* ── Product grid (responsive) ─────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
}
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.5rem; } }
@media (max-width: 1023px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.25rem; } }
@media (max-width: 767px)  { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; } }
@media (max-width: 419px)  { .product-grid { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ── Product card ──────────────────────────────────── */
.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
  text-decoration: none;
}
.product-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.25), var(--shadow-sm);
  border-color: var(--red);
}
.product-card:hover .product-card-img { transform: scale(1.06); }
.product-card-img-wrap {
  position: relative;
  background: #fff;
  padding: 18px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-card-img-wrap::after {
  /* Subtle bottom vignette so price/name readability stays high on busy images. */
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(26, 21, 18, 0) 0%, rgba(26, 21, 18, 0.10) 100%);
  pointer-events: none; opacity: 0;
  transition: opacity 0.25s ease;
}
.product-card:hover .product-card-img-wrap::after { opacity: 1; }
.product-card-img {
  width: 100%; height: 180px; object-fit: contain; display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.product-card-img-fallback {
  width: 55%; height: 55%; object-fit: contain; opacity: 0.5;
  transition: none;
}
.product-card:hover .product-card-img-fallback { transform: none; }

/* Image-overlay badges + stock pill */
.product-card-badge {
  position: absolute; top: 10px; left: 10px;
  display: inline-block;
  padding: 0.22rem 0.55rem;
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
  z-index: 1;
}
.product-card-badge--sale    { background: var(--ink); }
.product-card-badge--special { background: var(--red); }
.product-card-stock-pill {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-pill);
  font-size: 0.78rem; line-height: 1;
  box-shadow: 0 0 0 2px #fff;
  z-index: 1;
}

/* Body CTA — full-width "Add to Cart" beneath the price row.
   Hidden on hover-capable desktops until the card is hovered; permanently
   visible on touch devices and small screens (overrides below). */
.product-card-cta {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.65rem 0.9rem;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-xs);
}
.product-card:hover .product-card-cta {
  opacity: 1;
  transform: translateY(0);
}
.product-card-cta:hover { background: var(--red-dark); }
.product-card-cta:focus-visible {
  opacity: 1; transform: translateY(0);
  outline: none;
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.30), var(--shadow-sm);
}
.product-card-cta.is-added {
  background: var(--success-text, #2d6a2d);
  color: var(--white);
}
.product-card-cta:disabled {
  background: var(--ink-soft);
  cursor: not-allowed;
  opacity: 1;
  transform: translateY(0);
}

.product-card-body {
  background: var(--cream-card-bottom);
  border-top: 1px solid var(--border);
  padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.product-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.8;
}
.product-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card-stock { font-size: 0.85rem; font-weight: 400; }
/* Shop-only chemical name displayed under the product name. Subtle metadata
   tone; never dominates the product name. Hidden when the product has no
   chemical_name (the renderer simply omits the element). */
.product-card-chemical-name {
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price-row {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}
.product-card-price-current,
.product-card-price-sale {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-top: 4px;
}
/* Sale-only red accent — non-discount prices stay --text-primary. */
.product-card-price-sale { color: var(--red-dark); }
.product-card-price-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
  font-weight: 500;
}
.product-card-special {
  display: inline-block;
  font-size: 0.66rem;
  color: var(--white);
  background: var(--red);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-xs);
}
@media (max-width: 767px) {
  .product-card-body { padding: var(--space-3) var(--space-3) var(--space-4); }
  .product-card-name { font-size: 14px; min-height: 2.4em; }
  .product-card-price-current,
  .product-card-price-sale { font-size: 16px; }
  .product-card-meta { font-size: 10px; letter-spacing: 0.08em; }
  .product-card-img { height: 140px; }
  .shop-layout .product-grid { gap: 14px; }
  /* Touch devices: reveal CTA permanently rather than waiting on hover. */
  .product-card-cta { opacity: 1; transform: translateY(0); }
}
@media (hover: none) {
  .product-card-cta { opacity: 1; transform: translateY(0); }
}

/* ── Product detail hero image ─────────────────────── */
.product-img-placeholder {
  background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center;
  color: #999;
}
.product-img-placeholder.large {
  aspect-ratio: 1 / 1; border-radius: 6px;
  overflow: hidden;
}
.product-img-fallback { width: 50%; height: 50%; max-width: 220px; object-fit: contain; opacity: 0.55; }
.product-img-primary { width: 100%; height: 100%; object-fit: contain; }

/* ── Product detail thumbnail strip ────────────────── */
.product-thumb-strip {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0.75rem 0 0;
}
.product-thumb {
  width: 64px; height: 64px; padding: 2px;
  background: var(--bg-muted); border: 2px solid transparent;
  border-radius: 4px; cursor: pointer; overflow: hidden;
}
.product-thumb.is-active { border-color: var(--red); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-stamp);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--red-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm), var(--shadow-stamp);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-xs);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.25), var(--shadow-stamp);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { background: var(--red); box-shadow: none; }
.btn-secondary { background: var(--ink-soft); }
.btn-secondary:hover { background: var(--ink); }
.btn-secondary:disabled:hover { background: var(--ink-soft); }
.btn-block { width: 100%; text-align: center; padding: 0.85rem 1.4rem; }
.btn-text-link {
  display: inline-block;
  font-size: 0.9rem;
  background: none; border: none; padding: 0;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.btn-text-link:hover { text-decoration: underline; }

/* ── Page/section headings ────────────────────────── */
.page-heading {
  color: var(--red);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 3px solid var(--ink);
}
.section-heading {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}

/* ── Sale badge ───────────────────────────────────── */
.sale-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

/* ── Product detail ───────────────────────────────── */
.product-detail-back { display: inline-block; margin-bottom: 1.25rem; font-size: 0.9rem; }
.product-detail {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem; align-items: start;
}
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}
.product-detail-media { min-width: 0; }
.product-detail-info { min-width: 0; }
.product-detail-name { margin-bottom: 0.4rem; font-size: 1.8rem; line-height: 1.25; }
.product-detail-chemical-name {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.product-detail-meta { color: var(--text-light); margin-bottom: 0.75rem; font-size: 0.95rem; }
.product-detail-price {
  font-size: 1.5rem; color: var(--red); margin: 0.75rem 0;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem;
  font-weight: bold;
}
.product-detail-stock { margin-bottom: 0.75rem; }
.stock-indicator {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 5px; vertical-align: middle;
}
.stock-indicator.green { background: var(--stock-green); }
.stock-indicator.orange { background: var(--stock-orange); }
.stock-indicator.red { background: var(--stock-red); }
.product-highlights { margin: 0.5rem 0 1rem 1.2rem; }
.product-desc-short { margin: 0.75rem 0; }
.product-desc-long { margin-top: 0.5rem; color: var(--text-light); }
.product-testing {
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--bg-muted);
}
.product-testing h4 { margin: 0 0 0.5rem; }
.product-testing ul { list-style: none; padding: 0; margin: 0; }
.product-testing li { margin-bottom: 0.35rem; }
.product-actions { margin-top: 1.5rem; }

/* ── Cart table ───────────────────────────────────── */
.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.cart-table th { font-size: 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 0.5rem 0; }
.cart-table .col-item { text-align: left; }
.cart-table .col-qty { text-align: center; white-space: nowrap; }
.cart-table .col-price { text-align: right; white-space: nowrap; padding-left: 1rem; }
.cart-table .col-action { text-align: right; padding-left: 0.75rem; }
.cart-qty-btn {
  border: 1px solid #ccc; background: var(--cream-dark);
  cursor: pointer; padding: 0 0.4rem; font-size: 1rem;
  border-radius: 3px; transition: background 0.1s;
}
.cart-qty-btn:hover { background: var(--border); }
.cart-qty-value { display: inline-block; min-width: 1.5rem; text-align: center; }
.cart-remove-btn {
  color: var(--red); border: none; background: none;
  cursor: pointer; font-size: 0.9rem;
}
.cart-remove-btn:hover { text-decoration: underline; }
.cart-subtotal { font-weight: bold; text-align: right; }
.cart-actions { text-align: right; margin-top: 1rem; }
.btn-continue { margin-top: 1rem; }

/* ── Summary table (checkout/preview) ─────────────── */
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th {
  text-align: left; padding-bottom: 0.5rem;
  font-size: 0.85rem; color: var(--text-light);
}
.summary-table .col-qty { text-align: center; }
.summary-table .col-price { text-align: right; }
.summary-table td.col-qty { text-align: center; }
.summary-table td.col-price { text-align: right; }

/* ── Checkout ──────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.checkout-form-col h3 { font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.checkout-summary-col {
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 1.5rem; position: sticky; top: 5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.checkout-summary-col h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.checkout-section { margin-top: 1rem; }
.checkout-section-heading { margin-top: 1.75rem; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-totals { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.checkout-totals-estimated { text-align: right; font-weight: bold; }
.checkout-totals-note { text-align: right; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }
.checkout-back-link { display: inline-block; margin-bottom: 1.5rem; font-size: 0.9rem; }
.checkout-heading { margin-bottom: 0.25rem; }
.checkout-review-btn { margin-top: 1.25rem; }

/* Checkout preview (after review) */
.checkout-preview-summary { margin-top: 0.75rem; font-size: 0.92rem; line-height: 1.8; }
.checkout-preview-total {
  font-weight: bold; font-size: 1.15rem;
  margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.checkout-pay-note { text-align: center; margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.coupon-applied { color: var(--success-text); }
.summary-table-spaced { margin-bottom: 0.75rem; }

@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .checkout-summary-col { position: static; }
  .checkout-form-col .btn,
  .checkout-summary-col .btn { width: 100%; text-align: center; }
  .form-row-2col { grid-template-columns: 1fr; }
}

/* ── Footer ───────────────────────────────────────── */
.brand-strip { background: var(--white); padding: 1rem; text-align: center; border-top: 1px solid var(--border); }
.social-banner { background: var(--gold); padding: 0.8rem; text-align: center; font-weight: bold; font-size: 1.1rem; color: var(--text); }
.site-footer { background: var(--text); color: #ccc; padding: 2rem 1rem; }
.site-footer a { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.footer-heading { text-align: center; margin-bottom: 1rem; }
.footer-copy { text-align: center; margin-top: 1.5rem; font-size: 0.8rem; color: var(--text-light); }

/* ── Forms ─────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: bold; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.55rem 0.65rem; border: 1px solid #ccc; border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 2px rgba(178,34,34,0.12);
}
.alert {
  padding: 0.85rem 1.1rem; border-radius: 5px; margin-bottom: 1rem;
  font-size: 0.92rem; line-height: 1.5;
  animation: alertFadeIn 0.25s ease-out;
}
.alert-error { background: #ffe0e0; color: #a01c1c; border: 1px solid #e0a0a0; }
.alert-success { background: #e0ffe0; color: #1e6a1e; border: 1px solid #a0d8a0; }
.alert-warning { background: #fff7e0; color: #7a5a00; border: 1px solid #e0cfa0; }
.alert-info { background: #e8f0fe; color: #1a4a8a; border: 1px solid #a0c0e0; }
@keyframes alertFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ── Homepage Blocks ───────────────────────────────── */
.hero-banner { position: relative; background: var(--text); color: var(--white); text-align: center; overflow: hidden; }
.hero-banner-img { width: 100%; height: 340px; object-fit: cover; display: block; opacity: 0.7; }
.hero-banner-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; padding: 0 1rem; }
.hero-banner-content h2 { color: var(--white); font-size: 2rem; margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.company-intro { padding: 2rem 0; text-align: center; font-size: 1.05rem; color: var(--text-light); }
.company-intro .btn { margin-top: 1rem; }

/* ── Checkout loading spinner ─────────────────────── */
.btn-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: var(--white);
  border-radius: 50%; animation: btnSpin 0.6s linear infinite;
  vertical-align: middle; margin-right: 0.45rem;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ── Coming Soon ───────────────────────────────────── */
.coming-soon { text-align: center; padding: 4rem 1rem; }
.coming-soon h2 { color: var(--red); margin-bottom: 1rem; }
.coming-soon .btn { margin-top: 1rem; }

/* ── Qty stepper ──────────────────────────────────── */
.qty-stepper {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  background: var(--white);
}
.qty-stepper .qty-btn {
  width: 38px; min-height: 42px; background: var(--bg-muted);
  border: none; font-size: 1.15rem; color: var(--text);
  transition: background 0.15s;
}
.qty-stepper .qty-btn:hover { background: var(--border); }
.qty-stepper .qty-input {
  width: 52px; text-align: center;
  border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  padding: 0.4rem 0.2rem;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Product actions (detail CTA row) ─────────────── */
.product-actions {
  margin-top: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.btn.btn-primary-cta {
  flex: 1 1 220px; min-height: 44px;
  padding: 0.85rem 1.5rem; font-size: 1rem;
}
.btn.is-added { background: var(--stock-green, #2a7a2a); }
.btn.is-added:hover { background: var(--stock-green, #2a7a2a); }

/* ── Trust signals ────────────────────────────────── */
.product-trust {
  list-style: none; padding: 0; margin: 1rem 0 1.25rem;
  display: flex; gap: 1.1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-light);
}
.product-trust li { display: flex; align-items: center; gap: 0.35rem; }
.product-trust li::before {
  content: "\2713"; color: var(--stock-green, #2a7a2a);
  font-weight: bold; font-size: 0.9rem;
}

/* ── Out-of-stock notice ──────────────────────────── */
.product-oos-notice {
  margin: 0.75rem 0; padding: 0.65rem 0.9rem;
  background: #fff7e0; color: #7a5a00; border: 1px solid #e0cfa0;
  border-radius: 5px; font-size: 0.9rem;
}

/* ── Sticky action bar (detail page) ──────────────── */
.sticky-action-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  padding: 0.65rem 0; z-index: 90;
  transform: translateY(100%);
  transition: transform 0.2s ease;
}
.sticky-action-bar.is-visible { transform: translateY(0); }
.sticky-action-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0 1rem;
}
.sticky-action-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-action-name {
  font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 0.92rem;
}
.sticky-action-price { color: var(--red); font-weight: bold; font-size: 0.95rem; }
.sticky-action-btn { flex-shrink: 0; }
@media (max-width: 480px) {
  .sticky-action-btn { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
}

/* ── Toast ────────────────────────────────────────── */
.toast-root {
  position: fixed; bottom: 5.5rem; left: 50%;
  transform: translate(-50%, 16px);
  background: var(--text); color: var(--white);
  padding: 0.65rem 1.1rem; border-radius: 6px;
  font-size: 0.9rem; box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  opacity: 0; pointer-events: none; z-index: 200;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast-root.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ── Cart (new list layout) ───────────────────────── */
.cart-items { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.cart-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto auto auto;
  gap: 1rem; align-items: center;
  padding: 0.9rem 0; border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 80px; aspect-ratio: 1 / 1; background: var(--bg-muted);
  border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-img img.is-fallback { width: 60%; height: 60%; object-fit: contain; opacity: 0.5; }
.cart-item-info { min-width: 0; }
.cart-item-name { font-weight: bold; line-height: 1.3; }
.cart-item-price { color: var(--text-light); font-size: 0.88rem; margin-top: 0.2rem; }
.cart-item-qty { display: inline-flex; align-items: center; gap: 0.4rem; }
.cart-item-subtotal { font-weight: bold; min-width: 72px; text-align: right; }
.cart-item-remove {
  color: var(--red); background: none; border: none;
  font-size: 0.85rem; cursor: pointer; padding: 0.25rem;
}
.cart-item-remove:hover { text-decoration: underline; }

.cart-count-pill {
  display: inline-block; background: var(--red); color: var(--white);
  padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.8rem; vertical-align: middle; margin-left: 0.4rem;
}
.cart-summary {
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 1.25rem; margin-top: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cart-summary .cart-subtotal { text-align: right; font-size: 1.1rem; margin-bottom: 0.3rem; }
.cart-summary-note { text-align: right; font-size: 0.82rem; color: var(--text-muted, var(--text-light)); margin-bottom: 1rem; }
.cart-continue { display: inline-block; margin-top: 0.75rem; }
.cart-empty {
  padding: 2.5rem 1rem; text-align: center;
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
}
.cart-empty-msg { margin-bottom: 1rem; color: var(--text-light); }

/* Pending-order recovery banner — shown when an awaiting_payment order exists */
.pending-order-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  background: #fff8e6; border: 1px solid #e8c75a; border-radius: 6px;
  padding: 0.85rem 1rem; margin: 0 0 1rem;
  color: #5a4500;
}
.pending-order-banner-text { display: flex; flex-direction: column; gap: 0.15rem; }
.pending-order-banner-text strong { font-size: 0.95rem; }
.pending-order-banner-note { font-size: 0.82rem; color: #6c5a1f; }
.pending-order-banner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pending-order-banner .btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }

/* ── Social proof + cart trust + pre-suasion ──────── */
.product-social-proof {
  font-size: 0.85rem; color: var(--text-light);
  margin: 0 0 0.75rem; font-style: italic;
}
.cart-trust {
  list-style: none; padding: 0; margin: 1rem 0 0.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-light);
}
.cart-trust li { display: flex; align-items: center; gap: 0.3rem; }
.cart-trust li::before {
  content: "\2713"; color: var(--stock-green, #2a7a2a);
  font-weight: bold; font-size: 0.9rem;
}
.cart-presuasion {
  text-align: center; font-size: 0.88rem;
  color: var(--text-light); margin: 0.65rem 0 0.85rem;
}

/* ── Prominent CTA variant ────────────────────────── */
.btn.btn-cta {
  font-size: 1rem; padding: 0.85rem 1.4rem;
  box-shadow: 0 3px 10px rgba(178,34,34,0.22);
}
.btn.btn-cta:hover {
  box-shadow: 0 5px 14px rgba(178,34,34,0.32);
  transform: translateY(-1px);
}

/* ── Toast action link ────────────────────────────── */
.toast-action {
  margin-left: 0.75rem; color: var(--gold, #ffd96b);
  text-decoration: underline; font-weight: bold;
}
.toast-action:hover { color: var(--white); }

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "img info subtotal"
      "img qty  remove";
    row-gap: 0.4rem; column-gap: 0.75rem;
  }
  .cart-item-img { grid-area: img; width: 64px; }
  .cart-item-info { grid-area: info; }
  .cart-item-qty { grid-area: qty; }
  .cart-item-subtotal { grid-area: subtotal; }
  .cart-item-remove { grid-area: remove; justify-self: end; }
}

/* ── Shop layout: filter sidebar + product grid ─────── */
.shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  transition: grid-template-columns 0.22s ease;
}
/* Collapsed layout — sidebar fully hidden, grid reclaims the full row.
   The expand control lives in the sticky header (#shop-filter-control)
   so it remains clickable even though the aside is display:none. */
.shop-layout.is-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.shop-content { min-width: 0; }

/* Sticky shop control header — premium control strip beneath the site header.
   Offset against the live --site-header-h CSS variable populated by JS. */
.shop-sticky-header {
  position: sticky;
  top: var(--site-header-h, 0px);
  z-index: 50;
  background: rgba(253, 246, 227, 0.96);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(44, 28, 14, 0.04);
  margin-bottom: 8px;
}
.shop-sticky-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  min-height: 56px;
}
.shop-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.shop-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.shop-header-title {
  margin: 0 0 0 4px;
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--red);
  line-height: 1.1;
}
.shop-filter-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.shop-filter-control:hover {
  border-color: var(--red);
  color: var(--red);
}
.shop-filter-control:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.25);
}
.shop-filter-control.is-active {
  border-color: var(--red);
  color: var(--red);
}
.shop-filter-control-icon { font-size: 0.95rem; line-height: 1; }
.shop-header-count {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.shop-page { padding-top: 0.5rem; }
.shop-content > .product-grid { margin-top: 8px; }

@media (max-width: 600px) {
  .shop-sticky-header-inner { padding: 0.55rem 0.85rem; min-height: 48px; gap: 0.65rem; }
  .shop-header-title { font-size: 20px; letter-spacing: -0.01em; }
  .shop-header-count { font-size: 12px; letter-spacing: 0.05em; }
  .shop-view-btn { padding: 0.4rem 0.7rem; font-size: 12px; letter-spacing: 0.05em; }
  .shop-view-btn-label { display: none; }
  .shop-view-btn-icon { font-size: 1.05rem; }
}
.shop-view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--cream-card-bottom);
  padding: 4px;
  border-radius: var(--radius-sm);
}
.shop-view-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.shop-view-btn:hover { border-color: var(--red); color: var(--red); }
.shop-view-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(178, 34, 34, 0.35);
}
.shop-view-btn.is-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.shop-view-btn-icon {
  font-size: 0.95rem; line-height: 1;
  display: inline-block;
  transform: translateY(-0.5px);
}

/* View-mode column overrides — only apply on the shop page where the
   layout container is .shop-layout. Home/featured grids retain base rules. */
.shop-layout .product-grid {
  gap: 18px;
  transition: grid-template-columns 0.22s ease;
}
.shop-layout .product-grid--view-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.shop-layout .product-grid--view-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shop-layout .product-grid--view-list {
  grid-template-columns: 1fr;
  gap: 12px;
}
/* When the filter rail is collapsed, fluidly fill the freed space with
   auto-sized cards rather than locking to the per-view column count. */
.shop-layout.is-collapsed .product-grid--view-grid,
.shop-layout.is-collapsed .product-grid--view-large {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (min-width: 1280px) {
  .shop-layout .product-grid--view-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .shop-layout .product-grid--view-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  .shop-layout .product-grid--view-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout .product-grid--view-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .shop-layout .product-grid--view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout .product-grid--view-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 419px) {
  .shop-layout .product-grid--view-grid { grid-template-columns: 1fr; }
  .shop-layout .product-grid--view-large { grid-template-columns: 1fr; }
}

/* Larger product card in "Large" view — image-led, bigger typography */
.product-grid--view-large .product-card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  gap: 0.45rem;
}
.product-grid--view-large .product-card-meta { font-size: 0.74rem; }
.product-grid--view-large .product-card-name {
  font-size: 1.1rem;
  min-height: 2.7em;
  line-height: 1.3;
}
.product-grid--view-large .product-card-price-current,
.product-grid--view-large .product-card-price-sale { font-size: 1.25rem; }
.product-grid--view-large .product-card-price-original { font-size: 0.95rem; }
.product-grid--view-large .product-card-cta {
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
}

/* List view — premium horizontal browse row */
.product-list-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.product-list-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.product-list-link {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-list-img-wrap {
  width: 130px; height: 130px;
  background: #faf7f1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-list-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.product-list-item:hover .product-list-img { transform: scale(1.05); }
.product-list-img-fallback { width: 55%; height: 55%; object-fit: contain; opacity: 0.5; }
.product-list-body { min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.product-list-name-link { color: inherit; text-decoration: none; }
.product-list-name-link:hover { text-decoration: none; color: var(--red); }
.product-list-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.product-list-chemical-name {
  margin: 0;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.product-list-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.product-list-price-row {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}
.product-list-price-row .product-card-price-current,
.product-list-price-row .product-card-price-sale { font-size: 1.15rem; }
.product-list-actions { display: flex; align-items: center; }
.product-list-add {
  white-space: nowrap;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
}

@media (max-width: 600px) {
  .product-list-item {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas: "img body" "actions actions";
    gap: 0.85rem 1rem;
    padding: 0.75rem 0.9rem;
  }
  .product-list-link { grid-area: img; }
  .product-list-body { grid-area: body; }
  .product-list-actions { grid-area: actions; justify-content: stretch; }
  .product-list-add { width: 100%; padding: 0.7rem 1rem; }
  .product-list-img-wrap { width: 88px; height: 88px; }
  .product-list-name { font-size: 1rem; }
}

/* Sidebar — sticky cream panel; header always visible, body collapses. */
.shop-sidebar {
  position: sticky;
  top: calc(var(--site-header-h, 0px) + 80px);
  align-self: start;
  height: fit-content;
  background: var(--cream-card-bottom);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: width 0.22s ease, padding 0.22s ease;
}

.shop-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.shop-sidebar-title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.shop-sidebar-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.shop-sidebar-toggle:hover {
  border-color: var(--red);
  color: var(--red);
}
.shop-sidebar-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.25);
}

.shop-sidebar-inner { padding: 16px; }

/* Collapsed state — sidebar fully hidden. No rail, no strip, no vertical
   label. Re-expansion comes from the "Filters" button in the sticky header
   (#shop-filter-control), which sits outside the aside and stays clickable. */
.shop-sidebar.is-collapsed { display: none; }

/* Filter sections */
.shop-filter-section {
  padding: 0 0 1rem;
  margin: 0 0 20px;
  border-bottom: 1px solid rgba(178, 34, 34, 0.18);
}
.shop-filter-section:last-of-type { border-bottom: 0; margin-bottom: 0.75rem; }

/* Section header is the collapse toggle button */
.shop-filter-section-header {
  display: flex; width: 100%;
  align-items: center; justify-content: space-between;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 0.55rem;
  cursor: pointer;
  text-align: left;
}
.shop-filter-section-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  color: var(--red);
  font-size: 1rem; line-height: 1; font-weight: bold;
  border: 1px solid rgba(178, 34, 34, 0.4);
  border-radius: var(--radius-xs, 2px);
}
.shop-filter-heading {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.shop-filter-section.is-collapsed .shop-filter-section-body { display: none; }

.shop-filter-control { display: block; }
.shop-filter-label-text {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Checkbox option lists — retro cream squares with red ticks */
.shop-filter-options {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.35rem;
  max-height: 220px; overflow-y: auto;
}
.shop-filter-options::-webkit-scrollbar { width: 6px; }
.shop-filter-options::-webkit-scrollbar-thumb { background: rgba(178, 34, 34, 0.35); border-radius: 3px; }
.shop-filter-option { margin: 0; }
/* Visually-hidden checkbox; the .shop-filter-checkbox-box is the visible square. */
.shop-filter-checkbox {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.shop-filter-option-label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 14px; line-height: 1.3;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.15rem 0;
}
.shop-filter-checkbox-box {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  background: var(--cream-dark);
  border: 1.5px solid var(--red);
  border-radius: var(--radius-xs, 2px);
  position: relative;
  display: inline-block;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.shop-filter-checkbox:checked + .shop-filter-option-label .shop-filter-checkbox-box {
  background: var(--red);
}
.shop-filter-checkbox:checked + .shop-filter-option-label .shop-filter-checkbox-box::after {
  content: '';
  position: absolute;
  left: 4px; top: 0px;
  width: 5px; height: 10px;
  border: solid var(--cream);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.shop-filter-checkbox:focus-visible + .shop-filter-option-label .shop-filter-checkbox-box {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.shop-filter-option-label:hover .shop-filter-checkbox-box {
  background: var(--cream);
}
.shop-filter-option-text { word-break: break-word; }

.shop-filter-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

/* Price slider — red accent track + thumb */
.shop-price-display {
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.shop-price-display strong { color: var(--red); font-weight: 700; }
.shop-filter-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: linear-gradient(to right, var(--red) 0%, var(--red) var(--fill, 100%), rgba(178, 34, 34, 0.18) var(--fill, 100%), rgba(178, 34, 34, 0.18) 100%);
  border-radius: var(--radius-pill);
  outline: none;
  margin: 0.25rem 0 0.4rem;
}
.shop-filter-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--cream);
  box-shadow: 0 1px 3px rgba(44, 28, 14, 0.3);
  cursor: pointer;
}
.shop-filter-range::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--cream);
  box-shadow: 0 1px 3px rgba(44, 28, 14, 0.3);
  cursor: pointer;
}
.shop-filter-range:focus { outline: 2px solid var(--red); outline-offset: 4px; }
.shop-filter-range-bounds {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 0.1rem;
}

/* Clear filters button */
.shop-filter-clear {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-empty { padding: 24px 0; color: var(--text-muted); }

@media (max-width: 900px) {
  .shop-layout,
  .shop-layout.is-collapsed { grid-template-columns: 1fr; gap: 18px; }
  .shop-sidebar { position: static; width: 100%; }
  .shop-filter-control { display: inline-flex; }
}

/* ── Conversion layer: card stock tag, trust bar, toast thumb ─────── */
.product-card-stock-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.15rem;
  line-height: 1.2;
}
.product-card-stock-tag.in  { color: #065f46; }
.product-card-stock-tag.low { color: #b45309; }
.product-card-stock-tag.out { color: #991b1b; }

.shop-trust-bar {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.shop-trust-bar strong { color: var(--text-primary); font-weight: 700; }

/* Toast — extended layout with optional product thumbnail. */
.toast-root { display: inline-flex; align-items: center; gap: 0.65rem; }
.toast-thumb {
  width: 36px; height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-muted);
}
.toast-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.toast-msg  { font-weight: 600; font-size: 0.9rem; }
.toast-sub  {
  font-size: 0.78rem;
  opacity: 0.85;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Cart Drawer (conversion layer) ─────────────────── */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 21, 18, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  z-index: 998;
}
.cart-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 100%;
  height: 100%;
  background: var(--cream-card, #f8f4ea);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  font-family: var(--font-primary);
  color: var(--ink, #1a1512);
}
.cart-drawer.open { transform: translateX(0); }
body.cart-drawer-open { overflow: hidden; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border, #e0d6c2);
  background: var(--cream-panel, #efe6d6);
}
.cart-drawer-title {
  margin: 0;
  font-family: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink, #1a1512);
  font-weight: 700;
}
.cart-drawer-count {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0 0.4rem;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-pill, 999px);
  font-size: 0.72rem;
  text-align: center;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.cart-drawer-close {
  background: transparent;
  border: 0;
  font-size: 1.05rem;
  color: var(--ink-soft, #3a2e22);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm, 6px);
  line-height: 1;
}
.cart-drawer-close:hover { background: rgba(0, 0, 0, 0.06); color: var(--red); }
.cart-drawer-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.25);
}

.cart-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.85rem 1.1rem;
}

.cart-progress {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border, #e0d6c2);
  border-radius: var(--radius-sm, 6px);
}
.cart-progress.is-complete {
  border-color: var(--stock-green, #2ecc40);
  background: rgba(46, 204, 64, 0.08);
}
.cart-progress-text {
  font-size: 12px;
  color: var(--text-secondary, #5c4a3a);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.cart-progress-text strong { color: var(--ink, #1a1512); }
.cart-progress-bar {
  position: relative;
  height: 6px;
  background: var(--bg-muted, #eee);
  border-radius: var(--radius-pill, 999px);
  overflow: hidden;
}
.cart-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold, #ffd700), var(--rust, #a0522d));
  transition: width 0.25s ease;
}
.cart-progress.is-complete .cart-progress-fill {
  background: var(--stock-green, #2ecc40);
}

.cart-drawer-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cart-drawer-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border, #e0d6c2);
  align-items: flex-start;
}
.cart-drawer-item:last-child { border-bottom: 0; }
.cart-drawer-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-muted, #eee);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-drawer-item-img img.is-fallback {
  object-fit: contain;
  padding: 6px;
  opacity: 0.6;
}
.cart-drawer-item-info { min-width: 0; }
.cart-drawer-item-name {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink, #1a1512);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cart-drawer-item-price {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: var(--text-muted, #8b7a67);
}
.cart-drawer-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.cart-drawer-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-strong, #cbbfa3);
  background: #fff;
  color: var(--ink, #1a1512);
  border-radius: var(--radius-xs, 2px);
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer-qty-btn:hover { background: var(--cream-dark, #f5ecd5); }
.cart-drawer-qty-value {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}
.cart-drawer-item-remove {
  background: transparent;
  border: 0;
  color: var(--red);
  font-size: 0.72rem;
  padding: 0 0.25rem;
  margin-left: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cart-drawer-item-remove:hover { color: var(--red-dark); text-decoration: underline; }
.cart-drawer-item-total {
  font-weight: 700;
  color: var(--ink, #1a1512);
  font-size: 0.9rem;
  white-space: nowrap;
}

.cart-drawer-empty {
  text-align: center;
  padding: 2.25rem 0.5rem 1rem;
}
.cart-drawer-empty-glyph {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  opacity: 0.7;
}
.cart-drawer-empty-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink, #1a1512);
}
.cart-drawer-empty-sub {
  margin: 0 0 1.1rem;
  color: var(--text-muted, #8b7a67);
  font-size: 0.85rem;
}
.cart-drawer-empty-btn { min-width: 180px; }

.cart-drawer-footer {
  border-top: 1px solid var(--border, #e0d6c2);
  background: var(--cream-panel, #efe6d6);
  padding: 0.9rem 1.1rem 1rem;
}
.cart-drawer-totals {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--ink, #1a1512);
  margin-bottom: 0.2rem;
}
.cart-drawer-totals strong { font-size: 1.05rem; }
.cart-drawer-totals-note {
  font-size: 11px;
  color: var(--text-muted, #8b7a67);
  margin: 0 0 0.55rem;
  letter-spacing: 0.02em;
}
.cart-drawer-trust {
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--text-secondary, #5c4a3a);
  letter-spacing: 0.02em;
}
.cart-drawer-trust li { line-height: 1.45; }
.cart-drawer-checkout {
  margin-bottom: 0.45rem;
  text-align: center;
  letter-spacing: 0.06em;
}
.cart-drawer-continue {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-secondary, #5c4a3a);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.35rem 0;
  letter-spacing: 0.04em;
}
.cart-drawer-continue:hover { color: var(--red); text-decoration: underline; }

@media (max-width: 480px) {
  .cart-drawer { width: 100%; }
}

/* ── Cart hover mini-preview (desktop only) ──────────── */
.cart-mini-preview {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  max-width: calc(100vw - 16px);
  background: #fff;
  border: 1px solid var(--border, #e0d6c2);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-lg, 0 12px 24px rgba(44, 28, 14, 0.14));
  padding: 0.7rem 0.85rem;
  font-family: var(--font-primary);
  color: var(--ink, #1a1512);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}
.cart-mini-preview.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cart-mini-empty {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted, #8b7a67);
}
.cart-mini-items {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cart-mini-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.55rem;
  align-items: center;
}
.cart-mini-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs, 2px);
  background: var(--bg-muted, #eee);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-mini-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.cart-mini-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink, #1a1512);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-mini-meta {
  font-size: 0.72rem;
  color: var(--text-muted, #8b7a67);
}
.cart-mini-more {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  color: var(--text-muted, #8b7a67);
}
.cart-mini-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border, #e0d6c2);
  padding-top: 0.45rem;
  font-size: 0.82rem;
}
.cart-mini-total strong { font-size: 0.92rem; color: var(--ink, #1a1512); }
.cart-mini-hint {
  margin: 0.3rem 0 0;
  font-size: 0.7rem;
  color: var(--text-muted, #8b7a67);
  text-align: center;
  letter-spacing: 0.02em;
}
@media (hover: none), (pointer: coarse) {
  .cart-mini-preview { display: none; }
}

/* ── Conversion layer batch 3 ──────────────────────────
 *
 * Frontend-only AOV / abandonment surfaces. None of these read or write
 * pricing, stock, or checkout state — see CLAUDE.md §5.4 for the boundary.
 */

/* Frequently-bought-together upsell inside the drawer */
.cart-upsell {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.7rem 0.55rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border, #e0d6c2);
  border-radius: var(--radius-sm, 6px);
}
.cart-upsell-title {
  margin: 0 0 0.5rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary, #5c4a3a);
  font-weight: 700;
}
.cart-upsell-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cart-upsell-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 0.55rem;
  align-items: center;
}
.cart-upsell-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs, 4px);
  background: var(--bg-muted, #eee);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-upsell-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-upsell-img img.is-fallback { width: 70%; height: 70%; object-fit: contain; opacity: 0.55; }
.cart-upsell-info { min-width: 0; line-height: 1.25; }
.cart-upsell-name {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink, #1a1512);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-upsell-price {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted, #8b7a67);
}
.cart-upsell-add {
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
  border-radius: var(--radius-pill, 999px);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.cart-upsell-add:hover { background: var(--red); color: #fff; }
.cart-upsell-add:active { transform: scale(0.96); }
.cart-upsell-add.is-added {
  background: var(--stock-green, #2a7a2a);
  border-color: var(--stock-green, #2a7a2a);
  color: #fff;
}

/* Bundle-save AOV nudge (drawer) */
.cart-bundle-msg {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 215, 0, 0.10);
  border: 1px dashed rgba(160, 82, 45, 0.45);
  border-radius: var(--radius-sm, 6px);
  font-size: 0.78rem;
  color: var(--text-secondary, #5c4a3a);
  letter-spacing: 0.01em;
}
.cart-bundle-msg-glyph { font-size: 0.95rem; line-height: 1; }

/* Reservation copy in drawer footer */
.cart-drawer-reservation {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  font-size: 11px;
  color: var(--text-secondary, #5c4a3a);
  letter-spacing: 0.02em;
}
.cart-drawer-reservation-glyph { font-size: 0.9rem; line-height: 1; }

/* Smoother drawer entrance + a deeper resting shadow */
.cart-drawer {
  box-shadow: -10px 0 32px rgba(26, 21, 18, 0.18);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cart-drawer-checkout { transition: transform 0.12s ease, box-shadow 0.18s ease; }
.cart-drawer-checkout:hover { transform: translateY(-1px); }

/* Toast — confidence boost (check icon + reassurance line) */
.toast-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--stock-green, #2ecc40);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  flex-shrink: 0;
}
.toast-reassurance {
  font-size: 0.72rem;
  opacity: 0.85;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

/* You may also like (related products on PDP) */
.product-related {
  margin: 2.25rem 0 0;
}
.product-related-heading {
  font-family: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink, #1a1512);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border, #e0d6c2);
}
.product-related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}
.product-related-grid .product-card-img { height: 140px; }
@media (max-width: 1023px) {
  .product-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .product-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Product micro-tag (Popular / New) */
.product-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--cream-dark, #f5ecd5);
  color: var(--ink-soft, #3a2e22);
  border-radius: 4px;
  line-height: 1.3;
  vertical-align: middle;
}
.product-tag--new {
  background: var(--ink, #1a1512);
  color: var(--cream, #fdf6e3);
}
.product-tag--popular {
  background: var(--gold, #ffd700);
  color: var(--ink, #1a1512);
}
/* On product cards, the tag floats top-right of the image. */
.product-card-img-wrap > .product-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile sticky View Cart bar */
.mobile-cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem 0.55rem 0.85rem;
  background: var(--ink, #1a1512);
  color: var(--cream, #fdf6e3);
  border-radius: var(--radius-pill, 999px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  font-family: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 180;
}
.mobile-cart-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.mobile-cart-bar-open {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.mobile-cart-bar-count { font-weight: 600; opacity: 0.85; }
.mobile-cart-bar-dismiss {
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: inherit;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-cart-bar-dismiss:hover { background: rgba(255, 255, 255, 0.2); }
@media (hover: none), (pointer: coarse) {
  .mobile-cart-bar { display: flex; }
}

/* Exit-intent modal (desktop) */
.exit-intent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 21, 18, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
.exit-intent-backdrop.is-visible { opacity: 1; }
.exit-intent-modal {
  position: relative;
  width: min(420px, 100%);
  background: var(--cream-card, #f8f4ea);
  color: var(--ink, #1a1512);
  border-radius: var(--radius-md, 8px);
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: 0 18px 48px rgba(26, 21, 18, 0.32);
  font-family: var(--font-primary);
  text-align: center;
  transform: translateY(8px);
  transition: transform 0.22s ease;
}
.exit-intent-backdrop.is-visible .exit-intent-modal { transform: translateY(0); }
.exit-intent-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: 0;
  font-size: 1rem;
  color: var(--text-secondary, #5c4a3a);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
}
.exit-intent-close:hover { background: rgba(0, 0, 0, 0.06); color: var(--red); }
.exit-intent-title {
  font-family: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.25rem 0 0.4rem;
}
.exit-intent-sub {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--ink, #1a1512);
}
.exit-intent-note {
  font-size: 0.85rem;
  color: var(--text-secondary, #5c4a3a);
  margin: 0 0 1.1rem;
}
.exit-intent-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}
.exit-intent-cta { letter-spacing: 0.06em; }
.exit-intent-dismiss {
  background: transparent;
  border: 0;
  color: var(--text-secondary, #5c4a3a);
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.exit-intent-dismiss:hover { color: var(--red); text-decoration: underline; }
@media (hover: none), (pointer: coarse) {
  .exit-intent-backdrop { display: none; }
}
