/* ============================================================
   BeezLink — Shared design tokens & base components
   ============================================================ */

:root {
  /* Brand palette */
  --honey-gold: #F5A623;
  --hive-ink: #1A1A2E;
  --warm-white: #FFFCFB;
  --buzz-yellow: #FFC83D;
  --honey-tint: #FAEEDA;
  --stone-gray: #5F5E5A;
  --mint-success: #1D9E75;
  --alert-red: #E24B4A;

  /* Derived neutrals */
  --soft-line: #E8E4D9;
  --light-stripe: #F7F4EC;
  --ink-60: rgba(26, 26, 46, 0.6);
  --ink-40: rgba(26, 26, 46, 0.4);
  --ink-08: rgba(26, 26, 46, 0.08);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 26, 46, 0.10);
  --shadow-xl: 0 20px 60px rgba(26, 26, 46, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 320ms;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--hive-ink);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  color: var(--hive-ink);
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

img, svg { display: block; max-width: 100%; }

input, textarea, select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--honey-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Page shell (desktop-first, responsive) ---------- */
.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--warm-white);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-10);
    padding-right: var(--space-10);
  }
}

.container-narrow { max-width: 800px; }

/* ---------- Site nav (BeezLink ribbon) ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 252, 251, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.site-nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .site-nav__inner { height: 88px; gap: var(--space-6); }
}
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.site-nav__logo {
  height: 44px;
  width: auto;
  display: block;
  user-select: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.site-nav__brand:hover .site-nav__logo { transform: scale(1.02); }
@media (min-width: 768px) {
  .site-nav__logo { height: 56px; }
}

.site-nav__links {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
}
@media (min-width: 900px) {
  .site-nav__links { display: inline-flex; }
}
.site-nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--stone-gray);
  border-radius: var(--radius-full);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.site-nav__links a:hover {
  color: var(--hive-ink);
  background: var(--light-stripe);
}
.site-nav__links a.is-active {
  color: var(--hive-ink);
  background: var(--honey-tint);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  justify-self: end;
}
.site-nav__status {
  display: none;
}
@media (min-width: 640px) {
  .site-nav__status { display: inline-flex; }
}

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--hive-ink);
  color: rgba(255, 252, 251, 0.78);
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(245, 166, 35, 0.18), transparent 60%),
    radial-gradient(50% 70% at 100% 0%, rgba(255, 200, 61, 0.10), transparent 60%);
  pointer-events: none;
}
.site-footer > * { position: relative; }
.site-footer a {
  color: var(--warm-white);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer a:hover { color: var(--honey-gold); }

/* CTA banner */
.site-footer__promo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-10) 0;
  border-bottom: 1px solid rgba(255, 252, 251, 0.08);
}
@media (min-width: 768px) {
  .site-footer__promo {
    grid-template-columns: 1fr auto;
    padding: var(--space-12) 0;
  }
}
.site-footer__promo h3 {
  color: var(--warm-white);
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.site-footer__promo p {
  color: rgba(255, 252, 251, 0.7);
  margin-top: var(--space-2);
  max-width: 46ch;
}
.site-footer__promo .gold-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(245, 166, 35, 0.18);
  color: var(--honey-gold);
  font-size: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--space-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer__promo .btn { white-space: nowrap; }

/* Info grid */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding: var(--space-10) 0;
}
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); }
}
.site-footer__col h4 {
  color: var(--warm-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.site-footer__col p,
.site-footer__col address {
  font-style: normal;
  color: rgba(255, 252, 251, 0.72);
  margin: 0;
}
.site-footer__col p + p,
.site-footer__col address + p { margin-top: var(--space-3); }
.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.site-footer__col ul a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 252, 251, 0.88);
}
.site-footer__col ul a:hover { color: var(--honey-gold); }
.site-footer__col ul a .icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--honey-gold);
}
.site-footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Bottom bar */
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 252, 251, 0.08);
  text-align: center;
  color: rgba(255, 252, 251, 0.55);
  font-size: 12.5px;
}
@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--warm-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}
.site-footer__brand-link img {
  height: 28px;
  width: auto;
  display: block;
}

/* ---------- Browser chrome (desktop templates) ---------- */
.browser-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--light-stripe);
  border-bottom: 1px solid var(--soft-line);
}
.browser-chrome .lights {
  display: flex;
  gap: 6px;
}
.browser-chrome .light {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
}
.browser-chrome .light--red { background: #FF5F57; }
.browser-chrome .light--yellow { background: #FEBC2E; }
.browser-chrome .light--green { background: #28C840; }
.browser-chrome .address {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--warm-white);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-full);
  padding: 6px var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-gray);
  max-width: 520px;
  margin: 0 auto;
}
.browser-chrome .address .lock {
  color: var(--mint-success);
  font-size: 11px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  min-height: 44px;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--honey-gold);
  color: var(--hive-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 12px rgba(245, 166, 35, 0.25);
}
.btn-primary:hover { background: #EA9C18; }

.btn-ink {
  background: var(--hive-ink);
  color: var(--warm-white);
}
.btn-ink:hover { background: #25253D; }

.btn-outline {
  background: transparent;
  color: var(--hive-ink);
  border: 1.5px solid var(--soft-line);
}
.btn-outline:hover {
  border-color: var(--hive-ink);
  background: var(--light-stripe);
}

.btn-outline-light {
  background: transparent;
  color: var(--warm-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost {
  background: transparent;
  color: var(--hive-ink);
}
.btn-ghost:hover { background: var(--light-stripe); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; min-height: 36px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 22px; font-size: 16px; min-height: 52px; border-radius: var(--radius-lg); }

/* ---------- Cards ---------- */
.card {
  background: var(--warm-white);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.card-tint { background: var(--honey-tint); border-color: transparent; }
.card-stripe { background: var(--light-stripe); border-color: transparent; }
.card-ink { background: var(--hive-ink); color: var(--warm-white); border-color: transparent; }
.card-elevated { box-shadow: var(--shadow-md); border-color: transparent; }

/* ---------- Info card (icon + title head, indented body) ---------- */
.info-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
  font-family: var(--font-body);
  color: var(--hive-ink);
}
.info-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.info-card__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 46, 0.08);
  color: var(--hive-ink);
  flex-shrink: 0;
}
.info-card__icon--gold { background: var(--honey-tint); color: var(--honey-gold); }
.info-card__icon--dark { background: rgba(255, 255, 255, 0.08); color: var(--honey-gold); }
.info-card__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  flex: 1;
}
.info-card__meta {
  font-size: 12px;
  color: var(--stone-gray);
}
.info-card__body {
  padding-left: 50px;
  font-size: 14px;
  color: var(--hive-ink);
  margin: 0;
}
.info-card__body strong {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
}
/* Dark-card variant: dim body copy for legibility on navy. */
.card-ink .info-card__title { color: var(--warm-white); }
.card-ink .info-card__body { color: rgba(255, 252, 251, 0.78); }
.card-ink .info-card__body strong { color: var(--warm-white); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--light-stripe);
  color: var(--hive-ink);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.badge-success {
  background: rgba(29, 158, 117, 0.12);
  color: var(--mint-success);
}
.badge-success .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--mint-success);
}
.badge-warning {
  background: var(--buzz-yellow);
  color: var(--hive-ink);
}
.badge-gold {
  background: var(--honey-gold);
  color: var(--hive-ink);
}
.badge-tint { background: var(--honey-tint); color: var(--hive-ink); }
.badge-ink { background: var(--hive-ink); color: var(--warm-white); }
.badge-outline {
  background: transparent;
  border: 1px solid var(--soft-line);
  color: var(--stone-gray);
}

/* ---------- Section labels ---------- */
.section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey-gold);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--hive-ink);
}

.muted { color: var(--stone-gray); }
.mono { font-family: var(--font-mono); }

/* ---------- Avatar ---------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--honey-tint);
  color: var(--hive-ink);
  font-family: var(--font-heading);
  font-weight: 700;
  overflow: hidden;
}
.avatar-md { width: 64px; height: 64px; font-size: 22px; }
.avatar-lg { width: 96px; height: 96px; font-size: 32px; }
.avatar-xl { width: 120px; height: 120px; font-size: 38px; }
.avatar-ink { background: var(--hive-ink); color: var(--honey-gold); }
.avatar-gradient {
  background: linear-gradient(135deg, var(--honey-gold), var(--buzz-yellow));
  color: var(--hive-ink);
}
.avatar-ring {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), 0 8px 24px rgba(26, 26, 46, 0.18);
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  padding: var(--space-4);
}
.modal-backdrop.is-open { opacity: 1; }

.modal-dialog {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.modal-backdrop.is-open .modal-dialog { transform: translateY(0); }

@media (min-width: 540px) {
  .modal-backdrop { align-items: center; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5) var(--space-3);
  gap: var(--space-3);
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-gray);
  background: var(--light-stripe);
}
.modal-close:hover { background: var(--soft-line); color: var(--hive-ink); }

.modal-body {
  padding: 0 var(--space-5);
  color: var(--stone-gray);
  font-size: 15px;
  line-height: 1.55;
}
.modal-body strong, .modal-body b { color: var(--hive-ink); }

.modal-footer {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  padding: var(--space-5);
}
.modal-footer .btn { min-width: 100px; }

/* Re-usable form bits inside modals */
.form-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.form-row { display: grid; gap: 6px; }
.form-row label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--hive-ink);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--soft-line);
  background: var(--warm-white);
  font-size: 15px;
  color: var(--hive-ink);
  font-family: var(--font-body);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--honey-gold);
  outline: none;
}
.form-row textarea { min-height: 96px; resize: vertical; }

/* ---------- Cart pill ---------- */
.cart-pill {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  transform: translate(-50%, 120%);
  visibility: hidden;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 18px 12px 14px;
  background: var(--hive-ink);
  color: var(--warm-white);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px rgba(26, 26, 46, 0.3);
  font-family: var(--font-heading);
  font-weight: 600;
  z-index: 800;
  transition: transform var(--dur-slow) var(--ease-out),
              opacity var(--dur-slow) var(--ease-out),
              visibility 0s linear var(--dur-slow);
  cursor: pointer;
  max-width: calc(100% - 32px);
}
.cart-pill.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
  opacity: 1;
  transition: transform var(--dur-slow) var(--ease-out),
              opacity var(--dur-slow) var(--ease-out);
}
.cart-pill .cart-bubble {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--honey-gold);
  color: var(--hive-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-pill .cart-summary {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.cart-pill .cart-summary small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 500;
}
.cart-pill .cart-cta {
  color: var(--honey-gold);
  font-size: 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: var(--space-3);
}

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 900;
  pointer-events: none;
  max-width: calc(100% - 32px);
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  background: var(--hive-ink);
  color: var(--warm-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  pointer-events: auto;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.toast-success { background: var(--mint-success); }
.toast.toast-error { background: var(--alert-red); }
.toast .icon { color: currentColor; }

/* ---------- Accordion ---------- */
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--hive-ink);
  transition: background var(--dur-fast) var(--ease-out);
}
.accordion-trigger:hover { background: var(--light-stripe); }
.accordion-trigger .chevron {
  transition: transform var(--dur-base) var(--ease-out);
}
.accordion-trigger[aria-expanded='true'] .chevron { transform: rotate(180deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}

/* (Old single-line footer replaced by the dark multi-section footer above) */

/* ---------- Utilities ---------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.gold { color: var(--honey-gold); }
.ink { color: var(--hive-ink); }
.stone { color: var(--stone-gray); }
.success { color: var(--mint-success); }

.hide-mobile { display: none; }
@media (min-width: 768px) {
  .hide-mobile { display: revert; }
  .hide-desktop { display: none !important; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Gradient placeholder (used for thumbnails) ---------- */
.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--honey-tint), #FCE0B2);
  color: var(--hive-ink);
  flex-shrink: 0;
}
.thumb-ink {
  background: linear-gradient(135deg, var(--hive-ink), #2C2C44);
  color: var(--honey-gold);
}
.thumb-gold {
  background: linear-gradient(135deg, var(--honey-gold), var(--buzz-yellow));
  color: var(--hive-ink);
}
.thumb-soft {
  background: linear-gradient(135deg, #FDF7EA, var(--honey-tint));
  color: var(--honey-gold);
}

/* ---------- Ad slots ----------
   Three formats: .ad--banner (horizontal), .ad--native (in-feed),
   .ad--square (sidebar). Every ad gets an "Ad" label so the boundary
   between content and promotion stays unambiguous.
*/
.ad {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.ad:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.ad__label {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(26, 26, 46, 0.55);
  color: rgba(255, 252, 251, 0.92);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* Banner format */
.ad--banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--warm-white);
  border: 1px solid var(--soft-line);
}
.ad--banner .ad__mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* Official brand logo loaded from a CDN; falls back to the letter mark */
.ad__logo {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
}
/* When the logo image is present, hide the fallback letter that follows it. */
.ad__logo + .ad__mark-letter { display: none; }
.ad--banner .ad__copy { min-width: 0; }
.ad--banner .ad__copy strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--hive-ink);
  margin-bottom: 2px;
}
.ad--banner .ad__copy small {
  color: var(--stone-gray);
  font-size: 13px;
  line-height: 1.4;
}
.ad--banner .ad__arrow { color: var(--stone-gray); flex-shrink: 0; }

/* Native (in-feed) format — matches menu-item rhythm */
.ad--native {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  background:
    linear-gradient(135deg, var(--light-stripe), var(--warm-white));
  border: 1px dashed rgba(95, 94, 90, 0.28);
}
@media (min-width: 768px) {
  .ad--native { grid-template-columns: 120px 1fr; padding: var(--space-5); gap: var(--space-5); }
}
.ad--native .ad__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) {
  .ad--native .ad__thumb { width: 120px; height: 120px; font-size: 28px; }
}
.ad--native .ad__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ad--native .ad__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.ad--native h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--hive-ink);
}
.ad--native .ad__price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--hive-ink);
  font-size: 18px;
  white-space: nowrap;
}
.ad--native .ad__copy {
  color: var(--stone-gray);
  font-size: 14px;
  line-height: 1.5;
}
.ad--native .ad__cta {
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--honey-gold);
}

/* Square (sidebar) format — two-zone card: hero strip + content */
.ad--square {
  display: flex;
  flex-direction: column;
  background: var(--warm-white);
  border: 1px solid var(--soft-line);
}

/* Hero strip: vibrant gradient with brand mark + featured offer */
.ad--square .ad__hero {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: linear-gradient(135deg, var(--ad-hero-from, #1A1A2E) 0%, var(--ad-hero-to, #2E2E55) 100%);
  color: var(--warm-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  isolation: isolate;
}
/* Decorative blobs in the hero strip */
.ad--square .ad__hero::before,
.ad--square .ad__hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.ad--square .ad__hero::before {
  width: 140px;
  height: 140px;
  right: -40px;
  top: -40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}
.ad--square .ad__hero::after {
  width: 100px;
  height: 100px;
  left: -30px;
  bottom: -40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10), transparent 70%);
}
.ad--square .ad__mark {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: var(--warm-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.ad--square .ad__offer {
  text-align: right;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.ad--square .ad__offer-big {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.03em;
  color: var(--warm-white);
}
.ad--square .ad__offer-big small {
  font-size: 14px;
  font-weight: 600;
  margin-left: 2px;
  opacity: 0.85;
  letter-spacing: 0;
}
.ad--square .ad__offer-sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.78);
}
.ad--square .ad__label {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 252, 251, 0.92);
}

/* Content area below the hero */
.ad--square .ad__content {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ad--square h4 {
  color: var(--hive-ink);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.ad--square p {
  color: var(--stone-gray);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}
.ad--square .ad__verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--stone-gray);
  letter-spacing: 0.02em;
}
.ad--square .ad__verify .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-success);
}
.ad--square .ad__cta { align-self: flex-start; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp var(--dur-base) var(--ease-out); }

/* ---------- Cart modal rows ---------- */
.cart-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
  border-top: 1px solid var(--soft-line);
}
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--soft-line);
  gap: var(--space-4);
}
.cart-row__main { display: flex; flex-direction: column; gap: 2px; }
.cart-row__main strong { color: var(--hive-ink); font-family: var(--font-heading); }
.cart-row__main small { color: var(--stone-gray); }
.cart-row__price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--hive-ink);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-heading);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--soft-line);
  color: var(--hive-ink);
}
.cart-total-row strong { font-size: 22px; color: var(--honey-gold); }
.cart-note {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--honey-tint);
  border-radius: var(--radius-md);
  color: var(--hive-ink);
  font-size: 13px;
}
