/* ==========================================================================
   THE WHEATLESS WHISK - CORE STYLESHEET
   Artisanal, 100% Gluten-Free Kitchen & Bakery
   ========================================================================== */

@import url('fonts.css');

:root {
  /* Color Palette matching Kim's Illustrated Logo */
  --color-bg: #FDFBF8;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #F9F5EF;
  --color-surface-dark: #2A211D;
  
  /* Kim's Signature Whisk Rose Pink */
  --color-primary: #D07275;
  --color-primary-hover: #BB5D60;
  --color-primary-light: #FDF1F1;
  
  /* Geometric Gold Accent */
  --color-accent-gold: #C5933C;
  --color-accent-gold-hover: #AF7F2B;
  --color-accent-gold-light: #FCF7EE;
  
  /* Botanical Sage Leaves */
  --color-accent-sage: #54724E;
  --color-accent-sage-light: #EEF4ED;
  --color-accent-terracotta: #B8543D;
  
  --color-text-main: #2A211D;
  --color-text-muted: #6B6159;
  --color-text-light: #998E85;
  --color-text-inverse: #FFFFFF;
  
  --color-border: #EADBCC;
  --color-border-light: #F4ECE1;
  
  /* Typography */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(37, 29, 25, 0.04);
  --shadow-md: 0 8px 24px rgba(37, 29, 25, 0.07);
  --shadow-lg: 0 16px 40px rgba(37, 29, 25, 0.1);
  --shadow-hover: 0 20px 48px rgba(185, 102, 38, 0.15);
  
  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  
  --container-max: 1200px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
  background: var(--color-surface-dark);
  color: #EDE4D8;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.announcement-bar .badge {
  background: var(--color-primary);
  color: #FFF;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.announcement-bar a {
  color: #F8D7B3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   SITE HEADER & NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 10px;
  background: #FFF;
  padding: 2px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border: 1px solid rgba(185, 102, 38, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-sage);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.nav-link.locked-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link.locked-indicator .lock-icon {
  font-size: 0.85rem;
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(185, 102, 38, 0.25);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-header-lock:hover {
  background: var(--color-primary);
  color: #FFF;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(185, 102, 38, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(185, 102, 38, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-surface);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-surface-subtle);
  border-color: var(--color-text-light);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--color-text-main);
  padding: 8px;
}

/* Header: keep every item on one line; drop extras before anything wraps */
.header-inner { gap: 20px; }
.brand-title,
.brand-subtitle,
.nav-link,
.header-actions a { white-space: nowrap; }
.brand-subtitle { letter-spacing: 0.06em; }
.nav-links { gap: 24px; }

@media (max-width: 1500px) {
  .header-actions .btn-header-lock { display: none; }
}

@media (max-width: 1240px) {
  .brand-subtitle { display: none; }
}

@media (max-width: 1140px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
}

@media (max-width: 560px) {
  .header-actions .btn-primary { display: none; }
  .brand-title { font-size: 1.2rem; }
  .brand-logo-img { width: 42px; height: 42px; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent-sage-light);
  color: var(--color-accent-sage);
  border: 1px solid rgba(69, 98, 71, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text-main);
  margin-bottom: 22px;
}

.hero-title span.accent-italic {
  font-style: italic;
  color: var(--color-primary);
  font-weight: 400;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.trust-item .check-icon {
  width: 22px;
  height: 22px;
  background: var(--color-accent-sage);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #EFE8DC;
  aspect-ratio: 4/4.5;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 320px;
}

/* Wisp the mascot (animated SVG; its own animation stops for prefers-reduced-motion) */
.hero-image-card .floating-mascot,
.hero-image-card:hover .floating-mascot {
  width: 56px;
  height: 70px;
  object-fit: contain;
  transform: none;
  flex-shrink: 0;
  margin: -14px 0 -10px -6px;
}

/* Homepage story: Kim's logo card with Wisp peeking out beside it */
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.story-grid > * { min-width: 0; }
.story-visual {
  position: relative;
  text-align: center;
}
.story-mascot {
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 192px;
  height: 240px;
}
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-mascot {
    position: static;
    display: block;
    width: 128px;
    height: 160px;
    margin: 16px auto 0;
  }
  .story-grid .section-title { font-size: 1.8rem !important; overflow-wrap: anywhere; }
}

/* Empty basket */
.cart-empty-mascot {
  display: block;
  width: 112px;
  height: 140px;
  margin: 0 auto 10px;
}
.cart-empty-note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 4px;
}

.floating-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.floating-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.floating-text p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SAFETY & DEDICATION BANNER (CELIAC TRUST)
   ========================================================================== */
.safety-banner-section {
  padding: 30px 0;
}

.safety-card {
  background: linear-gradient(135deg, #F3F7F3 0%, #E6EFE6 100%);
  border: 1px solid #CFE0CF;
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
}

.safety-icon-wrap {
  width: 64px;
  height: 64px;
  background: #FFF;
  border-radius: 18px;
  color: var(--color-accent-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-sm);
}

.safety-content h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--color-accent-sage);
  margin-bottom: 6px;
}

.safety-content p {
  font-size: 0.95rem;
  color: #374E38;
  max-width: 680px;
}

/* ==========================================================================
   UPCOMING MARKETS & EVENTS SECTION
   ========================================================================== */
.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(185, 102, 38, 0.4);
}

.event-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.event-date-badge {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  text-align: center;
  min-width: 76px;
}

.event-date-badge .day-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.event-date-badge .month-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.event-preorder-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent-sage-light);
  color: var(--color-accent-sage);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.event-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-text-main);
  margin-bottom: 12px;
  line-height: 1.25;
}

.event-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-meta-item .icon {
  color: var(--color-primary);
  font-size: 1rem;
}

.event-highlight {
  background: var(--color-surface-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--color-text-main);
  margin-bottom: 22px;
  font-style: italic;
}

.event-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.link-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.link-map:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   PORTAL TEASERS (LOCKED HOME CUSTOMER & TRADE SECTIONS)
   ========================================================================== */
.portals-section {
  background: var(--color-surface-subtle);
  padding: 80px 0;
}

.portal-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.portal-feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.portal-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portal-feature-card.locked-card {
  border-top: 4px solid var(--color-primary);
}

.portal-feature-card.trade-card {
  border-top: 4px solid var(--color-accent-sage);
}

.portal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  align-self: flex-start;
}

.locked-card .portal-badge-pill {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.trade-card .portal-badge-pill {
  background: var(--color-accent-sage-light);
  color: var(--color-accent-sage);
}

.portal-feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  margin-bottom: 14px;
  color: var(--color-text-main);
}

.portal-feature-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.portal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 34px;
}

.portal-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.portal-features-list li .bullet-icon {
  color: var(--color-primary);
  font-weight: 700;
}

.trade-card .portal-features-list li .bullet-icon {
  color: var(--color-accent-sage);
}

/* ==========================================================================
   PASSWORD GATE (FOR LOCKED CUSTOMER PORTAL)
   ========================================================================== */
.gatekeeper-container {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.gatekeeper-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.gatekeeper-icon {
  width: 72px;
  height: 72px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 20px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.gatekeeper-card h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  margin-bottom: 12px;
}

.gatekeeper-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.passcode-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.passcode-input-wrap {
  position: relative;
}

.passcode-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: var(--color-text-main);
  background: var(--color-surface-subtle);
  transition: var(--transition);
}

.passcode-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #FFF;
  box-shadow: 0 0 0 4px rgba(185, 102, 38, 0.15);
}

.passcode-hint {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

.passcode-hint code {
  background: var(--color-surface-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-primary);
  font-weight: 700;
}

/* ==========================================================================
   ORDERING CATALOG & CART (CUSTOMER & TRADE)
   ========================================================================== */
.order-layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.cat-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFF;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 16/11;
  background: #EFE8DC;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(37, 29, 25, 0.85);
  backdrop-filter: blur(4px);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.product-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent-sage);
  background: var(--color-accent-sage-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.product-desc {
  white-space: pre-line;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
}

/* Quantity Stepper Component */
.stepper-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
  background: transparent;
}

.stepper-btn:hover {
  background: var(--color-primary);
  color: #FFF;
}

.stepper-count {
  width: 34px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-main);
}

/* Cart Sidebar Drawer */
.cart-sidebar-card {
  position: sticky;
  top: 100px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.cart-count-badge {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.cart-empty-state {
  text-align: center;
  padding: 36px 12px;
  color: var(--color-text-light);
}

.cart-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 4px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--color-border-light);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.25;
  margin-bottom: 2px;
}

.cart-item-unit-price {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.cart-item-total {
  font-weight: 700;
  color: var(--color-text-main);
}

.cart-totals-section {
  padding-top: 14px;
  border-top: 2px solid var(--color-border);
  margin-bottom: 20px;
}

.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

/* ==========================================================================
   TRADE / WHOLESALE STYLES
   ========================================================================== */
.moq-tracker-card {
  background: linear-gradient(135deg, #FAF7EE 0%, #F3EDDF 100%);
  border: 1px solid #DFCDB5;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.moq-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #E5DACB;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 10px 0;
}

.moq-progress-fill {
  height: 100%;
  background: var(--color-accent-sage);
  width: 0%;
  transition: width 0.3s ease;
}

.moq-status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
}

.trade-item-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  transition: var(--transition);
  margin-bottom: 16px;
}

.trade-item-card:hover {
  border-color: var(--color-accent-sage);
  box-shadow: var(--shadow-sm);
}

.trade-item-details h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.trade-pack-badge {
  display: inline-block;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-accent-sage);
  margin-bottom: 8px;
}

.trade-item-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.trade-price-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.trade-unit-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.trade-rrp-note {
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-main);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(185, 102, 38, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   MODAL / POPUP
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 27, 23, 0.65);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: var(--color-surface-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

.modal-close-btn:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--color-surface-dark);
  color: #FFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInToast 0.3s ease forwards;
}

.toast.success {
  border-left: 4px solid var(--color-accent-sage);
}

.toast.error {
  border-left: 4px solid var(--color-accent-terracotta);
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--color-surface-dark);
  color: #E2D7CC;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #FFF;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: #B5A89B;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-col h5 {
  color: #FFF;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #B5A89B;
}

.footer-links a:hover {
  color: #F8D7B3;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9E9184;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .order-layout-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-sidebar-card {
    position: static;
  }
  
  .portal-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-actions .btn-header-lock,
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .safety-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 20px;
  }
  
  .safety-icon-wrap {
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .trade-item-card {
    grid-template-columns: 1fr;
  }
  
  .trade-price-col {
    align-items: flex-start;
    text-align: left;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}


/* ===== Privacy & legal pages ===== */
.legal-content h2 { font-family: var(--font-heading); font-size: 1.5rem; margin: 36px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { line-height: 1.7; color: var(--color-text); margin-bottom: 10px; }
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }
.legal-content a { color: var(--color-primary); text-decoration: underline; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 0.9rem; }
.legal-table th, .legal-table td { border: 1px solid var(--color-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--color-surface-subtle); font-weight: 600; }
@media (max-width: 640px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { margin-bottom: 12px; border: 1px solid var(--color-border); }
  .legal-table td { border: none; border-bottom: 1px solid var(--color-border); }
}
.consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--color-text-muted); margin: 6px 0 14px; }
.consent-check input { margin-top: 3px; }
.form-privacy-note { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 10px; }
.form-privacy-note a { color: var(--color-primary); text-decoration: underline; }


/* Menu manager: sold out, allergens and photos */
.product-card.is-sold-out .product-image-wrap img { filter: grayscale(0.6); opacity: 0.75; }
.sold-out-badge { background: #C62828 !important; color: #FFF !important; }
.sold-out-label { font-size: 0.85rem; font-weight: 700; color: #C62828; text-transform: uppercase; letter-spacing: 0.04em; }
.product-allergens { font-size: 0.8rem; color: var(--color-text-muted); margin: 6px 0 4px; }
.product-limit { font-size: 0.78rem; color: var(--color-primary); font-weight: 600; margin-bottom: 4px; }
.product-image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 180px; font-size: 3rem; background: var(--color-surface-subtle); }
.trade-item-card.is-sold-out { opacity: 0.75; }
.trade-item-photo { width: 110px; height: 110px; object-fit: cover; border-radius: var(--radius-md); flex-shrink: 0; }
.content-paragraphs { display: flex; flex-direction: column; gap: 16px; }
.faq-answer p + p { margin-top: 8px; }
.trade-item-card.has-photo { grid-template-columns: 110px 1fr auto; }
@media (max-width: 768px) { .trade-item-card.has-photo { grid-template-columns: 1fr; } }


/* Product choices (flavours, fillings) */
.product-option { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.product-option-label { font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.product-option-select { width: 100%; padding: 10px 12px; font-size: 0.95rem; }
.product-options-box .option-label-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; }
.product-options-box .option-label-row .form-input { max-width: 180px; }
.product-options-box .option-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.product-options-box .option-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto auto auto; gap: 8px; align-items: center; }
.product-options-box .option-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; white-space: nowrap; }
.product-options-box .option-help { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 6px; }
@media (max-width: 560px) {
  .product-options-box .option-row { grid-template-columns: minmax(0, 1fr) 84px; }
}
