:root {
  --shnai-charcoal: #1b1815;
  --shnai-charcoal-light: #29241f;
  --shnai-gold: #c9a15a;
  --shnai-gold-light: #e6cf9f;
  --shnai-cream: #f8f4ec;
  --shnai-text: #2b2620;
  --shnai-muted: #7a7166;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 24, 21, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--shnai-cream);
  color: var(--shnai-text);
  line-height: 1.5;
}
h1, h2, h3 { font-family: 'Georgia', serif; letter-spacing: 0.02em; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; border: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--shnai-charcoal);
  color: var(--shnai-cream);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; flex-direction: column; }
.brand strong { font-size: 1.6rem; color: var(--shnai-gold-light); letter-spacing: 0.08em; }
.brand span { font-size: 0.72rem; color: var(--shnai-muted); text-transform: uppercase; letter-spacing: 0.1em; }
nav.main-nav { display: flex; gap: 20px; }
nav.main-nav a { color: var(--shnai-cream); text-decoration: none; font-size: 0.95rem; }
nav.main-nav a:hover { color: var(--shnai-gold-light); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 4px; background: rgba(255,255,255,0.08); border-radius: 20px; padding: 4px; }
.lang-switch button {
  background: transparent; color: var(--shnai-cream); padding: 4px 10px;
  border-radius: 16px; font-size: 0.78rem; text-transform: uppercase;
}
.lang-switch button.active { background: var(--shnai-gold); color: var(--shnai-charcoal); font-weight: bold; }

.cart-toggle {
  position: relative; background: var(--shnai-gold); color: var(--shnai-charcoal);
  padding: 8px 16px; border-radius: 20px; font-weight: bold;
}
#cart-count {
  position: absolute; top: -8px; right: -8px; background: var(--shnai-charcoal); color: var(--shnai-gold-light);
  border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--shnai-charcoal), var(--shnai-charcoal-light));
  color: var(--shnai-cream);
  padding: 80px 24px;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; color: var(--shnai-gold-light); max-width: 760px; margin: 0 auto 0.5em; }
.hero p { max-width: 560px; margin: 0 auto 1.6em; color: #d8d0c2; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-outline {
  padding: 12px 26px; border-radius: 30px; font-size: 0.95rem; font-weight: bold;
  transition: transform 0.15s ease;
}
.btn-primary { background: var(--shnai-gold); color: var(--shnai-charcoal); }
.btn-outline { background: transparent; border: 1.5px solid var(--shnai-gold); color: var(--shnai-gold-light); }
.btn-primary:hover, .btn-outline:hover { transform: translateY(-2px); }

/* Category filters */
.category-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 30px 0; }
.chip {
  background: #fff; border: 1px solid #e6ddc8; padding: 8px 18px; border-radius: 20px; font-size: 0.85rem;
}
.chip.active { background: var(--shnai-charcoal); color: var(--shnai-gold-light); border-color: var(--shnai-charcoal); }

/* Products */
section.products { padding: 60px 0; }
section.products h2 { text-align: center; font-size: 1.9rem; }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-top: 30px;
}
.product-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; padding-bottom: 18px;
}
.product-thumb {
  height: 180px; background-color: #eee4cf; background-size: cover; background-position: center;
}
.product-card h3 { font-size: 1.05rem; margin: 14px 18px 4px; }
.product-card .tagline { font-size: 0.85rem; color: var(--shnai-muted); margin: 0 18px 10px; min-height: 2.4em; }
.product-card .price { font-weight: bold; color: var(--shnai-charcoal); margin: 0 18px 12px; font-size: 1.05rem; }
.card-actions { display: flex; gap: 8px; margin: 0 18px; }
.card-actions .btn-outline, .card-actions .btn-primary { flex: 1; padding: 8px 10px; font-size: 0.8rem; text-align: center; }

/* Modal (product + exit-intent share the base) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,17,14,0.55); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%;
  padding: 30px; position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; font-size: 1.4rem; color: var(--shnai-muted);
}
.pm-image { height: 220px; border-radius: var(--radius); background-color: #eee4cf; background-size: cover; background-position: center; margin-bottom: 16px; }
#pm-price { font-size: 1.3rem; font-weight: bold; margin: 10px 0 18px; }

/* Cart drawer */
.drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 92vw; height: 100%;
  background: #fff; box-shadow: -10px 0 30px rgba(0,0,0,0.15); transition: right 0.25s ease;
  z-index: 90; display: flex; flex-direction: column;
}
.drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid #eee; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer-footer { padding: 18px 22px; border-top: 1px solid #eee; background: #faf7f0; }

.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px dashed #eee; }
.cart-line-info { display: flex; flex-direction: column; }
.cart-line-controls { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; }
.cart-line-controls input { width: 50px; padding: 2px 6px; }
.link-btn { background: none; color: #b5473a; text-decoration: underline; font-size: 0.78rem; }
.cart-line-total { grid-column: 2; font-weight: bold; align-self: center; }
.cart-empty { color: var(--shnai-muted); text-align: center; margin-top: 40px; }

.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 6px; }
.summary-row.total { font-size: 1.1rem; font-weight: bold; margin-top: 8px; }

/* Checkout form */
.checkout-form { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.checkout-form input, .checkout-form select, .checkout-form textarea {
  padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.9rem; width: 100%; font-family: inherit;
}
.radio-row { display: flex; gap: 16px; font-size: 0.85rem; flex-wrap: wrap; }
#checkout-ref { font-size: 0.8rem; color: var(--shnai-muted); margin-top: 8px; min-height: 1.2em; }

/* Exit-intent modal */
#exit-modal .modal-box { text-align: center; }
#exit-countdown { font-size: 2rem; font-weight: bold; color: var(--shnai-gold); letter-spacing: 0.05em; margin: 10px 0; }
.exit-code-badge {
  display: inline-block; background: var(--shnai-charcoal); color: var(--shnai-gold-light);
  padding: 8px 18px; border-radius: 20px; font-weight: bold; letter-spacing: 0.08em; margin-bottom: 18px;
}

/* Diagnose */
section.diagnose { background: #fff; padding: 60px 0; }
.diagnose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .diagnose-grid { grid-template-columns: 1fr; } }
.diagnose-form { display: flex; flex-direction: column; gap: 14px; }
.diagnose-form input, .diagnose-form select, .diagnose-form textarea {
  padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 0.9rem;
}
#diagnose-result {
  background: var(--shnai-cream); border-radius: var(--radius); padding: 20px; min-height: 160px;
  white-space: pre-wrap; font-size: 0.92rem; border: 1px solid #eee4cf;
}
#diagnose-result.loading { color: var(--shnai-muted); font-style: italic; }

/* Media */
section.media { padding: 60px 0; text-align: center; }
.media-placeholder {
  background: var(--shnai-charcoal); color: var(--shnai-gold-light); border-radius: var(--radius);
  max-width: 640px; margin: 0 auto 30px; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; padding: 20px;
}
.jingle-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Reviews */
section.reviews { padding: 60px 0; text-align: center; }
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px;
  margin: 30px 0; text-align: left;
}
.review-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.review-card .stars { color: var(--shnai-gold); letter-spacing: 2px; margin-bottom: 8px; }
.review-card .quote { font-style: italic; margin-bottom: 10px; }
.review-card .author { font-size: 0.82rem; color: var(--shnai-muted); }

/* Partners */
section.partners { background: #fff; padding: 60px 0; text-align: center; }

footer.site-footer { background: var(--shnai-charcoal); color: var(--shnai-muted); text-align: center; padding: 26px; font-size: 0.82rem; }

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  nav.main-nav { order: 3; width: 100%; justify-content: center; }
  .hero h1 { font-size: 1.8rem; }
}
