/* =====================================================
   FARM PURO — Shared Design System
   Single source of truth for tokens, resets, header,
   hamburger nav, footer, and responsive breakpoints.
   All page-specific styles remain inline per-page.
   ===================================================== */

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

/* ====================== DESIGN TOKENS ====================== */
:root {
  /* Brand */
  --green:        #2D6A2D;
  --green-deep:   #234E22;
  --green-soft:   #3D7A3D;
  --green-tint:   #EBF2E5;
  --green-tint-2: #DDE8D2;
  --brown:        #6B3A1F;
  --brown-deep:   #4E2A14;
  --cream:        #FAF7F2;
  --cream-warm:   #F1EBDF;
  --gold:         #C8860A;
  --gold-deep:    #A66E07;
  --gold-soft:    #E0A93C;
  --chilli:       #E8531A;   /* "Hot" / destructive only */

  /* Text */
  --ink:          #1F1A14;
  --ink-soft:     #5B5347;

  /* Borders */
  --rule:         rgba(31,26,20,.10);
  --rule-strong:  rgba(31,26,20,.18);

  /* Spice levels */
  --mild:         #7FA85B;
  --medium:       #D9A100;
  --hot:          #D26B1F;
  --very-hot:     #B23A1A;
}

/* ====================== RESETS ====================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }
svg  { display: block; }
h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ====================== LAYOUT ====================== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ====================== HEADER ====================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250,247,242,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 54px; width: auto; }

.nav { display: flex; gap: 38px; justify-content: center; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .02em;
  position: relative;
  padding: 6px 0;
}
.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background .2s;
}
.icon-btn:hover { background: rgba(45,106,45,.08); }

.cart { position: relative; }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--gold);
  color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: grid; place-items: center;
  padding: 0 4px;
}
.login { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.login:hover { color: var(--green); }

/* ====================== HAMBURGER ====================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ====================== MOBILE NAV OVERLAY ====================== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 84px;
  background: rgba(250,247,242,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 40;
  flex-direction: column;
  padding: 32px 24px;
  gap: 0;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav a::after { content: "→"; font-family: 'DM Sans', sans-serif; font-size: 16px; color: var(--gold); }
.mobile-nav .m-actions { display: flex; gap: 12px; margin-top: 32px; }
.mobile-nav .m-actions .btn { flex: 1; justify-content: center; }

/* ====================== BUTTONS (shared) ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  transition: transform .15s, background .2s, color .2s;
}
.btn-gold { background: var(--gold); color: #1F1409; }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(244,239,227,.5); color: #F4EFE3; }
.btn-outline:hover { background: rgba(244,239,227,.08); border-color: #F4EFE3; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ====================== FOOTER ====================== */
footer { background: #1A1410; color: rgba(244,239,227,.7); padding: 80px 0 0; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}
.foot-brand img { height: 60px; background: var(--cream); padding: 8px; border-radius: 6px; }
.foot-brand p { margin-top: 20px; font-size: 13px; line-height: 1.7; max-width: 280px; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(244,239,227,.18);
  display: grid; place-items: center;
  color: rgba(244,239,227,.7);
}
.socials a:hover { background: var(--gold); color: #1F1409; border-color: var(--gold); }
.foot-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 22px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-col a { font-size: 13px; color: rgba(244,239,227,.7); }
.foot-col a:hover { color: #FFF8E7; }
.copy {
  border-top: 1px solid rgba(244,239,227,.10);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(244,239,227,.45);
}
.copy .pays { display: flex; gap: 10px; align-items: center; }
.copy .pays span {
  padding: 4px 10px;
  border: 1px solid rgba(244,239,227,.14);
  border-radius: 4px;
  font-size: 10px; letter-spacing: .1em; font-weight: 600;
}

/* ====================== SHARED HAMBURGER JS HELPERS ====================== */
/* Body lock when mobile nav is open */
body.nav-open { overflow: hidden; }

/* ====================== RESPONSIVE: ≤900px ====================== */
@media (max-width: 900px) {
  .wrap         { padding: 0 28px; }
  .nav          { display: none; }
  .login        { display: none; }
  .hamburger    { display: flex; }
  .header-inner { grid-template-columns: 1fr auto; height: 70px; }
  .mobile-nav   { top: 70px; }
  .brand img    { height: 48px; }

  /* Footer */
  .foot-grid    { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-brand   { grid-column: 1 / -1; }
}

/* ====================== RESPONSIVE: ≤600px ====================== */
@media (max-width: 600px) {
  .wrap         { padding: 0 20px; }
  .header-inner { height: 64px; }
  .mobile-nav   { top: 64px; }
  .brand img    { height: 42px; }

  /* Footer */
  .foot-grid    { grid-template-columns: 1fr; gap: 32px; }
  .foot-brand   { grid-column: auto; }
  .copy         { flex-direction: column; gap: 12px; text-align: center; }
}
