/* ==========================================================================
   PREJO BAKEHOUSE — Design system
   Modern minimalist: warm cream background, deep espresso text,
   single banana-gold accent, bold editorial serif headings.
   ========================================================================== */

:root {
  --cream: #FAF6EF;
  --cream-deep: #F3EBDC;
  --white: #FFFFFF;
  --espresso: #241811;
  --espresso-soft: #4A3A2E;
  --taupe: #8C7A68;
  --line: #E9DFCC;
  --gold: #D9A441;
  --gold-dark: #B8842A;
  --gold-light: #F6E4B8;
  --success: #3F7A5C;
  --success-bg: #E9F2EC;
  --error: #C1503D;
  --error-bg: #FBEDE9;

  --loaf-plain: #E8C878;
  --loaf-espresso: #8B5A2B;
  --loaf-caramel: #C98A3F;
  --loaf-chocorange: #7A4A24;
  --loaf-chocchip: #DEB05C;
  --loaf-almond: #E3C989;
  --loaf-honey: #E0A83E;
  --loaf-coconut: #EFDBA0;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(36, 24, 17, 0.06);
  --shadow-md: 0 8px 24px rgba(36, 24, 17, 0.09);
  --shadow-lg: 0 20px 48px rgba(36, 24, 17, 0.14);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
  color: var(--espresso);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--espresso-soft); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.lede { font-size: 1.12rem; color: var(--espresso-soft); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--espresso); color: var(--white); }
.btn-primary:hover { background: #382518; box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--espresso); }
.btn-gold:hover { background: var(--gold-dark); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-secondary:hover { background: var(--espresso); color: var(--white); }
.btn-ghost { background: transparent; color: var(--espresso-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--espresso); color: var(--espresso); }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--espresso);
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--espresso);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--espresso-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--espresso); border-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.icon-btn:hover { box-shadow: var(--shadow-sm); border-color: var(--gold); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--gold);
  color: var(--espresso);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: none;
  align-items: center; justify-content: center;
  padding: 0 4px;
}
.cart-count.pulse { animation: pulse-badge 0.4s ease; }
@keyframes pulse-badge { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--espresso); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--espresso-soft);
}
.pill-gold { background: var(--gold-light); border-color: var(--gold); color: var(--gold-dark); }
.hero h1 { margin-bottom: 20px; }
.hero-cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--espresso); }
.hero-stat span { font-size: 0.82rem; color: var(--taupe); }
.hero-art {
  position: relative;
  aspect-ratio: 1/1;
  background: linear-gradient(155deg, var(--gold-light), var(--cream-deep));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero-art svg { width: 62%; filter: drop-shadow(0 18px 22px rgba(36,24,17,0.18)); }
.hero-art-tag {
  position: absolute;
  bottom: 22px; left: 22px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-art-tag .stars { color: var(--gold-dark); }

/* ---------- Trust bar ---------- */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: center;
  padding: 28px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; font-weight: 600; color: var(--espresso-soft);
}
.trust-item .ico { font-size: 1.2rem; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-media {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--cream-deep), var(--cream));
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  position: relative;
}
.product-media svg { width: 78%; }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--espresso); color: var(--gold-light);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px; text-transform: uppercase;
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-title { font-family: var(--font-display); font-size: 1.12rem; margin: 0; }
.product-tagline { font-size: 0.86rem; color: var(--taupe); margin: 0; }
.product-rating { font-size: 0.8rem; color: var(--gold-dark); display: flex; gap: 4px; align-items: center; }
.product-rating span.muted { color: var(--taupe); }
.product-allergens { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.tag {
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: var(--cream-deep); color: var(--espresso-soft);
  border: 1px solid var(--line);
}
.tag-free { background: var(--success-bg); color: var(--success); border-color: transparent; }
.product-footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 10px;
}
.price { font-family: var(--font-display); font-size: 1.25rem; color: var(--espresso); }
.price-sub { font-size: 0.72rem; color: var(--taupe); display: block; }

.size-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 600;
}
.size-toggle button {
  border: none; background: var(--white); color: var(--espresso-soft);
  padding: 6px 12px; cursor: pointer;
}
.size-toggle button.active { background: var(--espresso); color: var(--white); }

/* ---------- Bundles ---------- */
.bundle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.bundle-card {
  display: grid; grid-template-columns: 140px 1fr; gap: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; align-items: center;
}
.bundle-media { display: flex; }
.bundle-stack { position: relative; height: 100px; }
.bundle-stack svg { position: absolute; width: 78px; }
.bundle-stack svg:nth-child(1) { left: 0; top: 20px; z-index: 1; }
.bundle-stack svg:nth-child(2) { left: 34px; top: 4px; z-index: 2; }
.bundle-stack svg:nth-child(3) { left: 68px; top: 20px; z-index: 3; }
.bundle-price-row { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 14px; }
.compare-at { text-decoration: line-through; color: var(--taupe); font-size: 0.9rem; }
.save-tag { color: var(--success); font-size: 0.82rem; font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px;
}
.testimonial-stars { color: var(--gold-dark); margin-bottom: 12px; font-size: 0.95rem; }
.testimonial-name { font-weight: 700; margin-top: 14px; }
.testimonial-role { font-size: 0.8rem; color: var(--taupe); }

/* ---------- How it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { text-align: center; padding: 10px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--espresso); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  margin: 0 auto 16px; font-size: 1.1rem;
}

/* ---------- Social strip ---------- */
.social-strip { background: var(--espresso); color: var(--cream); }
.social-strip .section-head h2 { color: var(--cream); }
.social-strip .section-head p { color: #cdbfae; }
.social-links { display: flex; gap: 14px; flex-wrap: wrap; }
.social-links a {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  transition: background 0.15s;
}
.social-links a:hover { background: rgba(217,164,65,0.25); }

/* ---------- Newsletter ---------- */
.newsletter-band {
  background: var(--gold-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type=email] {
  padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--gold-dark);
  min-width: 260px; font-family: var(--font-body); font-size: 0.95rem;
}
.newsletter-msg { display: none; margin: 10px 0 0; font-weight: 600; color: var(--success); }
.newsletter-msg.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: #d8c9b8; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand { color: var(--cream); }
.footer-brand p { color: #b3a08c; max-width: 320px; }
.footer-col h4 { color: var(--cream); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a, .footer-col li { color: #c7b8a4; font-size: 0.92rem; margin-bottom: 10px; display: block; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: #96866f;
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(36,24,17,0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 90;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw;
  background: var(--cream); box-shadow: -12px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%); transition: transform 0.3s ease;
  z-index: 95; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  padding: 22px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer-head h3 { margin: 0; }
.cart-drawer-close { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--espresso-soft); line-height: 1; }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); position: relative; }
.cart-item-thumb { width: 56px; height: 44px; flex-shrink: 0; }
.cart-item-name { font-weight: 600; font-size: 0.92rem; margin: 0; }
.cart-item-meta { font-size: 0.76rem; color: var(--taupe); margin: 2px 0 6px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-weight: 700; font-size: 0.9rem; }
.cart-item-remove {
  position: absolute; top: 12px; right: 0; background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--taupe);
}
.cart-item-remove:hover { color: var(--error); }
.qty-stepper {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.qty-stepper button { width: 28px; height: 28px; background: var(--white); border: none; cursor: pointer; font-size: 1rem; }
.qty-stepper span { min-width: 26px; text-align: center; font-weight: 600; font-size: 0.85rem; }
.qty-stepper-sm button { width: 24px; height: 24px; font-size: 0.9rem; }
.cart-empty { text-align: center; padding: 60px 10px; }
.cart-drawer-footer { padding: 20px 24px 26px; border-top: 1px solid var(--line); background: var(--white); }
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
#cart-free-delivery-note { font-size: 0.8rem; color: var(--gold-dark); margin: 0 0 14px; }

/* ---------- Forms (checkout) ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--espresso-soft); }
.field input, .field textarea, .field select {
  padding: 13px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white); color: var(--espresso);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field-full { grid-column: 1 / -1; }
.field-error { font-size: 0.76rem; color: var(--error); display: none; }
.field.has-error input { border-color: var(--error); }
.field.has-error .field-error { display: block; }

.checkout-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: flex-start; }
.checkout-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  margin-bottom: 24px;
}
.checkout-panel h3 { margin-bottom: 18px; }
.fulfilment-options { display: grid; gap: 12px; }
.fulfilment-option {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-md); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.fulfilment-option:hover { border-color: var(--gold); }
.fulfilment-option.selected { border-color: var(--espresso); background: var(--cream-deep); }
.fulfilment-option input { margin-top: 4px; }
.fulfilment-option .fo-title { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 4px; }
.fulfilment-option .fo-detail { font-size: 0.84rem; color: var(--taupe); margin: 0; }

.card-preview {
  background: linear-gradient(135deg, #2b1b12, #4a3a2e);
  border-radius: var(--radius-md); padding: 22px; color: #f2e6d3; margin-bottom: 20px;
  font-family: "Courier New", monospace; position: relative; overflow: hidden;
}
.card-preview::after {
  content: ""; position: absolute; width: 200px; height: 200px; background: radial-gradient(circle, rgba(217,164,65,0.35), transparent 70%);
  top: -60px; right: -60px;
}
.card-preview-number { font-size: 1.25rem; letter-spacing: 2px; margin: 22px 0 18px; position: relative; z-index: 1; }
.card-preview-row { display: flex; justify-content: space-between; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; position: relative; z-index: 1; }
.card-preview-row b { display: block; font-size: 0.9rem; letter-spacing: 1px; text-transform: none; margin-top: 4px; font-family: var(--font-body); }

.order-summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.92rem; color: var(--espresso-soft); }
.order-summary-line.total { font-weight: 800; font-size: 1.15rem; color: var(--espresso); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.summary-item-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-item-row:last-of-type { border-bottom: none; }
.summary-thumb { width: 48px; height: 38px; flex-shrink: 0; }

.secure-note { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--taupe); margin-top: 14px; justify-content: center; }

/* ---------- Allergen matrix table ---------- */
.matrix-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; }
.matrix-table th, .matrix-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.matrix-table th { background: var(--cream-deep); font-weight: 700; }
.matrix-table td:first-child, .matrix-table th:first-child { text-align: left; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-dark); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; }

/* ---------- Dashboard ---------- */
.dash-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.dash-sidebar {
  background: var(--espresso); color: #cdbfae; padding: 28px 20px; position: sticky; top: 0; height: 100vh;
}
.dash-sidebar .brand { color: var(--cream); margin-bottom: 36px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 500; margin-bottom: 4px; color: #cdbfae; }
.dash-nav a.active, .dash-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.dash-main { padding: 32px 40px 60px; max-width: 1300px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 34px; }
.kpi-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.kpi-label { font-size: 0.8rem; color: var(--taupe); font-weight: 600; margin-bottom: 8px; }
.kpi-value { font-family: var(--font-display); font-size: 1.9rem; }
.kpi-delta { font-size: 0.78rem; color: var(--success); font-weight: 700; margin-top: 6px; }
.chart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-bottom: 34px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.panel h3 { margin-bottom: 4px; }
.panel .panel-sub { font-size: 0.82rem; color: var(--taupe); margin-bottom: 18px; }

.dash-table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td { padding: 14px 18px; text-align: left; font-size: 0.88rem; border-bottom: 1px solid var(--line); }
.dash-table th { background: var(--cream-deep); font-weight: 700; color: var(--espresso-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dash-table tr:last-child td { border-bottom: none; }
.status-pill { padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; background: var(--success-bg); color: var(--success); }
.table-actions { display: flex; gap: 8px; }
.table-actions button {
  border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm); padding: 6px 12px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.table-actions button:hover { border-color: var(--espresso); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--taupe); }
.empty-state h3 { color: var(--espresso-soft); }

.dash-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.dash-toolbar input, .dash-toolbar select { padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font-family: var(--font-body); }
.dash-note {
  background: var(--gold-light); border: 1px solid var(--gold); border-radius: var(--radius-md);
  padding: 16px 20px; font-size: 0.86rem; color: #6b4c14; margin-bottom: 28px;
}

/* ---------- Receipt page ---------- */
.receipt-wrap { max-width: 640px; margin: 0 auto; }
.receipt-check {
  width: 72px; height: 72px; border-radius: 50%; background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 22px;
}
.invoice-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; margin-top: 30px; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; }
.invoice-head h3 { margin: 0; }
.invoice-meta { text-align: right; font-size: 0.85rem; color: var(--taupe); }
.invoice-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.invoice-table th { text-align: left; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--taupe); padding: 8px 0; border-bottom: 1.5px solid var(--line); }
.invoice-table td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.invoice-totals { margin-left: auto; max-width: 260px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); margin: 40px 0; }
.badge-check { color: var(--success); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.stat-block { display: flex; gap: 30px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; height: auto; display: flex; align-items: center; gap: 20px; overflow-x: auto; }
  .dash-sidebar .brand { margin-bottom: 0; }
  .dash-nav { display: flex; gap: 4px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .bundle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-nav {
    position: fixed; top: 70px; left: 0; right: 0; background: var(--cream);
    flex-direction: column; padding: 20px 28px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.25s; gap: 14px; z-index: 55;
  }
  .site-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid, .steps-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-band { flex-direction: column; text-align: center; }
  .newsletter-form { justify-content: center; width: 100%; }
  .newsletter-form input[type=email] { flex: 1; min-width: 0; }
  .bundle-card { grid-template-columns: 1fr; text-align: center; }
  .bundle-media { justify-content: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
