@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:          #FDFAF4;
  --bg-warm:     #FFF8EE;
  --bg-dark:     #1A0A04;
  --text:        #2C1810;
  --text-muted:  #7A5C4A;
  --accent:      #8B4513;
  --gold:        #C8922A;
  --gold-light:  #E8C870;
  --cream:       #F5E6C8;
  --border:      #E8D5B7;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, sans-serif;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-full: 999px;

  --shadow-sm: 0 2px 8px  rgba(44,24,16,.08);
  --shadow-md: 0 4px 20px rgba(44,24,16,.12);
  --shadow-lg: 0 8px 40px rgba(44,24,16,.18);

  --ease: 200ms ease;
  --max-w: 1200px;
  --nav-h: 72px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; }
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); line-height: 1.2; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.section       { padding: 6rem 0; }
.section-warm  { background: var(--bg-warm); }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: .4rem;
}
.section-header p {
  max-width: 560px;
  margin: .8rem auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 13px 28px;
  border-radius: var(--r-full);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ease);
  text-decoration: none;
}
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline  { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-ghost    { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(253,250,244,.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}
.logo-icon { font-size: 1.4rem; }
.nav-logo-img    { height: 64px; width: auto; display: block; }
.footer-logo-img { height: 100px; width: auto; display: block; margin-bottom: 1.2rem; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.cart-btn:hover { background: var(--text); transform: translateY(-1px); }

.cart-count {
  background: var(--gold);
  color: var(--text);
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  min-width: 20px;
  text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 2.5rem 6rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #120602 0%, #2C0E07 35%, #4A1A0A 65%, #6B2E12 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(200,146,42,.14) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(139,69,19,.18) 0%, transparent 50%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
  pointer-events: none;
}

.hero-bg-loaf {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 38vw;
  opacity: .045;
  user-select: none;
  pointer-events: none;
  filter: blur(3px);
  line-height: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 780px; }

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6rem);
  color: #fff;
  line-height: 1.0;
  margin-bottom: 1.4rem;
  font-weight: 700;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 530px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: #fff;
  line-height: 1;
}
.hero-stat span {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-stat-divider { width: 1px; height: 42px; background: rgba(255,255,255,.14); }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: nudge 2.2s ease-in-out infinite;
}
.hero-scroll::after { content: '↓'; font-size: 1rem; }
@keyframes nudge {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   STORY SECTION
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.story-visual { position: relative; }

.story-image {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #C8922A, #8B4513 50%, #3D1A0A);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.story-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(0,0,0,.22) 100%);
}
.story-image--logo {
  background: var(--cream);
  padding: 2rem;
}
.story-image--logo::after { display: none; }
.story-image--logo img { width: 100%; height: 100%; object-fit: contain; }

.story-badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 116px;
  height: 116px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--bg);
}
.story-badge strong { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.story-badge span   { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text); margin-top: 2px; }

.story-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: .5rem 0 1.4rem;
}
.story-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.story-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.4rem;
  margin: 1.5rem 0 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
}

/* ============================================================
   INGREDIENTS (DARK SECTION)
   ============================================================ */
.ingredients {
  background: var(--bg-dark);
  padding: 6rem 0;
}
.ingredients .section-header h2  { color: #fff; }
.ingredients .section-header p   { color: rgba(255,255,255,.55); }
.ingredients .eyebrow             { color: var(--gold-light); }

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.ingredient-card { text-align: center; padding: 2rem 1.5rem; }

.ingredient-icon {
  width: 78px;
  height: 78px;
  background: rgba(200,146,42,.13);
  border: 1.5px solid rgba(200,146,42,.28);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.4rem;
}
.ingredient-card h3 { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin-bottom: .5rem; }
.ingredient-card p  { color: rgba(255,255,255,.5); font-size: .875rem; line-height: 1.65; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-grid {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}
.how-step {
  flex: 1;
  text-align: center;
  padding: 2.4rem 1.5rem;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.how-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.how-number {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  margin: 0 auto 1.2rem;
}
.how-step h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: .5rem; }
.how-step p  { font-size: .875rem; color: var(--text-muted); }

.how-arrow {
  font-size: 1.4rem;
  color: var(--gold);
  padding-top: 3rem;
  flex-shrink: 0;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}

.product-card {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-image {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  position: relative;
}
.product-card--soon { opacity: .75; }
.product-card--soon:hover { transform: none; box-shadow: var(--shadow-sm); }
.product-tag--soon { background: var(--text-muted); color: #fff; }

.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--text);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.product-body { padding: 1.4rem; }
.product-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.product-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.product-footer { display: flex; align-items: center; justify-content: space-between; }

.product-price {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
}
.product-price span {
  font-size: .78rem;
  font-weight: 400;
  font-family: var(--sans);
  color: var(--text-muted);
}

.add-to-cart {
  background: var(--text);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
}
.add-to-cart:hover  { background: var(--accent); transform: translateY(-1px); }
.add-to-cart.added  { background: #2D7A4A; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial { background: var(--cream); padding: 6rem 0; text-align: center; }

.quote-marks {
  display: block;
  font-family: var(--serif);
  font-size: 7rem;
  color: var(--gold);
  line-height: .5;
  margin-bottom: 1.5rem;
}
.testimonial-quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}
.testimonial-stars { font-size: 1.3rem; margin-bottom: 1rem; letter-spacing: .1em; }
.testimonial-author {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ============================================================
   SHOP PAGE HERO
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 70px) 2.5rem 70px;
  background: linear-gradient(155deg, #120602, #3D1A0A 60%, #6B2E12);
  text-align: center;
  color: #fff;
}
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); color: #fff; margin: .5rem 0 1rem; }
.page-hero p  { color: rgba(255,255,255,.68); font-size: 1.05rem; max-width: 480px; margin: 0 auto; }

/* ============================================================
   SHOP INFO BAR
   ============================================================ */
.shop-section { padding: 4rem 0 6rem; }

.shop-info { margin-bottom: 2.5rem; }
.shop-note {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .75rem 1.4rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.shop-note strong { color: var(--text); }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-header h3 { font-family: var(--serif); font-size: 1.4rem; }

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 2px 6px;
  transition: color var(--ease);
}
.cart-close:hover { color: var(--text); }

.cart-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.8rem; }

.cart-empty { text-align: center; padding: 4rem 0; color: var(--text-muted); }
.cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.cart-empty h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .4rem; color: var(--text); }
.cart-empty p  { font-size: .875rem; }

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-image {
  width: 62px;
  height: 62px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-family: var(--serif); font-size: 1rem; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { color: var(--accent); font-weight: 600; font-size: .88rem; }

.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn {
  width: 26px; height: 26px;
  border: 1.5px solid var(--border);
  background: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-value { font-size: .9rem; font-weight: 600; min-width: 20px; text-align: center; }

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.3rem;
  padding: 4px;
  line-height: 1;
  transition: color var(--ease);
  flex-shrink: 0;
}
.cart-item-remove:hover { color: #C0392B; }

.cart-footer {
  padding: 1.6rem 1.8rem;
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
  flex-shrink: 0;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.cart-subtotal span:first-child { color: var(--text-muted); font-size: .9rem; }
.cart-subtotal-amount { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }

.checkout-btn { width: 100%; margin-bottom: .8rem; }

.cart-note {
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.65); padding: 6rem 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .875rem; line-height: 1.75; max-width: 270px; }

.footer-heading { font-family: var(--serif); color: #fff; font-size: 1rem; margin-bottom: 1.2rem; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-links li a { font-size: .86rem; color: rgba(255,255,255,.55); transition: color var(--ease); }
.footer-links li a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; gap: 3rem; }
  .story-visual { max-width: 500px; margin: 0 auto; }
  .story-image { aspect-ratio: 16/9; }
  .ingredients-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { flex-wrap: wrap; }
  .how-arrow { display: none; }
  .how-step { flex: 1 1 calc(50% - 1rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 1.4rem; }
  .section { padding: 4rem 0; }
  .nav-links { display: none; }
  .ingredients-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .how-step { flex: 1 1 100%; }
  .hero-actions { flex-direction: column; align-items: center; }
  .story-badge { width: 90px; height: 90px; bottom: -16px; right: -12px; }
  .story-badge strong { font-size: 1.5rem; }
}
