/* ═══════════════════════════════════════════════════════════════
   FATTORIA ITALIANA — Main Stylesheet
   Aesthetic: Rustic & Warm — earthy tones, organic textures
   Fonts: Playfair Display (headings) + Lora (body) + Caveat (accents)
═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --cream:       #fdf6ec;
  --warm-white:  #faf4e8;
  --parchment:   #f0e2c8;
  --earth:       #5c3d1e;
  --earth-light: #7a4f1f;
  --earth-dark:  #3d2b1a;
  --gold:        #d4a96a;
  --gold-light:  #e8c88a;
  --olive:       #6b7c3d;
  --olive-light: #8a9e50;
  --rust:        #b85c38;
  --sage:        #8faa7a;
  --text:        #2d1f0e;
  --text-muted:  #7a6248;
  --border:      #e0cca8;
  --shadow:      0 4px 20px rgba(92,61,30,.12);
  --shadow-lg:   0 12px 40px rgba(92,61,30,.18);
  --radius:      6px;
  --radius-lg:   12px;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Lora', Georgia, serif;
  --font-accent: 'Caveat', cursive;
  --transition:  .25s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--earth); transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--earth-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 5rem 0; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .7rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: .03em;
}
.btn-primary {
  background: var(--earth);
  color: var(--cream);
  border-color: var(--earth);
}
.btn-primary:hover {
  background: var(--earth-light);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--earth);
  border-color: var(--earth);
}
.btn-outline:hover {
  background: var(--earth);
  color: var(--cream);
}
.btn-outline-warm {
  background: transparent;
  color: var(--cream);
  border-color: rgba(253,246,236,.6);
}
.btn-outline-warm:hover {
  background: rgba(253,246,236,.15);
  color: var(--cream);
}
.btn-lg  { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm  { padding: .35rem 1rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-paypal { background: #003087; color: #fff; border-color: #003087; }
.btn-paypal:hover { background: #002060; color: #fff; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-organic  { background: var(--olive);      color: #fff; }
.badge-seasonal { background: var(--rust);       color: #fff; }

/* ── Top Bar ───────────────────────────────────────────────── */
.topbar {
  background: var(--earth-dark);
  color: var(--gold-light);
  font-family: var(--font-accent);
  font-size: 1.05rem;
  padding: .4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-right { display: flex; gap: .5rem; }
.lang-btn {
  color: var(--gold-light);
  text-decoration: none;
  font-size: .75rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: .15rem .4rem;
  border-radius: 3px;
  letter-spacing: .05em;
  transition: background var(--transition);
}
.lang-btn:hover, .lang-btn.active {
  background: rgba(212,169,106,.25);
  color: #fff;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--warm-white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(92,61,30,.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-leaf { font-size: 1.5rem; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--earth-dark);
  letter-spacing: -.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex: 1;
}
.main-nav > a, .nav-dropdown > span {
  padding: .4rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--earth);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.main-nav > a:hover, .nav-dropdown:hover > span {
  background: var(--parchment);
  color: var(--earth-dark);
}

.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: .5rem;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: .5rem .85rem;
  font-size: .88rem;
  border-radius: var(--radius);
  color: var(--earth);
}
.dropdown-menu a:hover { background: var(--parchment); }

.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.cart-btn {
  position: relative;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--earth-dark);
  display: flex;
  align-items: center;
  gap: .25rem;
}
.cart-badge {
  background: var(--rust);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .3rem;
  font-family: var(--font-body);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--earth);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #3d2b1a 0%, #5c3d1e 45%, #7a4f1f 70%, #6b7c3d 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(212,169,106,.15) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 2rem 1.5rem;
  max-width: 720px;
}
.hero-kicker {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: .75rem;
  opacity: .9;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--parchment);
  font-style: italic;
  margin-bottom: 2.5rem;
  opacity: .9;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Trust Strip ───────────────────────────────────────────── */
.trust-strip {
  background: var(--earth-dark);
  color: var(--gold-light);
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.2rem 2.5rem;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  border-right: 1px solid rgba(212,169,106,.2);
}
.trust-item:last-child { border-right: none; }

/* ── Section Headers ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--earth-dark);
  margin-bottom: .5rem;
}
.section-sub {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
}
.section-cta { text-align: center; margin-top: 3rem; }

/* ── Product Cards ─────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--parchment);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: var(--parchment);
}
.product-img-placeholder.large { height: 400px; font-size: 5rem; }
.product-img-wrap .badge { position: absolute; top: .75rem; left: .75rem; }
.product-info { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .3rem; }
.product-name { font-size: 1.05rem; margin-bottom: .4rem; }
.product-name a { text-decoration: none; color: var(--earth-dark); }
.product-name a:hover { color: var(--earth-light); }
.product-desc { font-size: .88rem; color: var(--text-muted); font-style: italic; flex: 1; margin-bottom: .75rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.product-price { display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; }
.price-compare { text-decoration: line-through; color: var(--text-muted); font-size: .85rem; }
.price-main { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--earth); }
.price-main.large { font-size: 1.8rem; }
.price-unit { font-size: .8rem; color: var(--text-muted); }
.btn-add-cart {
  background: var(--earth);
  color: var(--cream);
  border: none;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.btn-add-cart:hover { background: var(--earth-light); }
.out-of-stock { font-size: .82rem; color: var(--text-muted); font-style: italic; }

/* ── Story Banner ──────────────────────────────────────────── */
.story-banner {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--earth) 0%, var(--earth-light) 100%);
  color: var(--cream);
  padding: 6rem 1.5rem;
  text-align: center;
}
.story-content { max-width: 680px; margin: 0 auto; }
.story-kicker {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: .5rem;
}
.story-banner h2 { color: #fff; margin-bottom: 1rem; }
.story-banner p  { color: var(--parchment); font-style: italic; margin-bottom: 2rem; font-size: 1.05rem; }

/* ── Box Cards ─────────────────────────────────────────────── */
.boxes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.box-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  border: 2px solid var(--border);
}
.box-card:hover { transform: translateY(-3px); }
.box-card img { width: 100%; height: 200px; object-fit: cover; }
.box-img-placeholder { height: 200px; background: var(--parchment); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.box-info { padding: 1.5rem; }
.box-info h3 { margin-bottom: .5rem; }
.box-info p  { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; font-style: italic; }
.box-footer { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.box-price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--earth); }
.box-freq  { font-size: .8rem; color: var(--text-muted); background: var(--parchment); padding: .2rem .5rem; border-radius: 3px; }

/* ── Blog Cards ────────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.post-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-info { padding: 1.25rem; }
.post-info time { font-size: .8rem; color: var(--text-muted); display: block; margin-bottom: .4rem; }
.post-info h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.post-info h3 a { text-decoration: none; color: var(--earth-dark); }
.post-info p { font-size: .88rem; color: var(--text-muted); margin-bottom: .75rem; font-style: italic; }
.read-more { font-size: .88rem; color: var(--earth-light); font-weight: 600; text-decoration: none; }

/* ── Shop Layout ───────────────────────────────────────────── */
.shop-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.shop-sidebar { position: sticky; top: 90px; }
.shop-sidebar h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 1rem; }
.category-list { list-style: none; margin-bottom: 2rem; }
.category-list li { border-bottom: 1px solid var(--border); }
.category-list a {
  display: block;
  padding: .55rem 0;
  font-size: .92rem;
  color: var(--earth);
  text-decoration: none;
  transition: padding-left var(--transition);
}
.category-list a:hover, .category-list a.active { padding-left: .5rem; color: var(--earth-dark); font-weight: 600; }
.filter-box { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.filter-box h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; color: var(--text-muted); }
.filter-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin-bottom: .4rem; cursor: pointer; }
.shop-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.shop-header h1 { font-size: 1.8rem; }
.product-count { font-size: .85rem; color: var(--text-muted); }
.empty-state { text-align: center; padding: 4rem; color: var(--text-muted); font-size: 1.1rem; }

/* ── Product Detail ────────────────────────────────────────── */
.product-detail { padding: 2rem 0; }
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--earth); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.product-main-img { border-radius: var(--radius-lg); overflow: hidden; }
.product-main-img img { width: 100%; max-height: 500px; object-fit: cover; }
.product-thumbnails { display: flex; gap: .5rem; margin-top: .5rem; }
.product-thumbnails .thumb { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent; }
.product-thumbnails .thumb:hover { border-color: var(--gold); }
.product-detail-info { display: flex; flex-direction: column; gap: 1.25rem; }
.product-category-link a { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); text-decoration: none; }
.product-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.product-short-desc { font-style: italic; color: var(--text-muted); }
.product-price-block { display: flex; align-items: baseline; gap: .5rem; }
.add-to-cart-form { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.qty-selector { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-selector button { background: var(--parchment); border: none; padding: .5rem .85rem; font-size: 1.1rem; cursor: pointer; }
.qty-selector button:hover { background: var(--border); }
.qty-selector input { width: 50px; border: none; text-align: center; font-size: 1rem; padding: .5rem 0; font-family: var(--font-body); }
.out-of-stock-notice { color: var(--rust); font-style: italic; }

/* Product tabs */
.product-tabs { margin-top: 1.5rem; }
.tab-headers { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.25rem; }
.tab-btn {
  background: none;
  border: none;
  padding: .6rem 1.2rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover { color: var(--earth); border-bottom-color: var(--earth); }
.tab-content { display: none; font-size: .93rem; color: var(--text); line-height: 1.8; }
.tab-content.active { display: block; }

/* Related */
.related-products { padding-top: 3rem; border-top: 2px solid var(--border); }
.related-products h2 { margin-bottom: 2rem; }

/* ── Cart ──────────────────────────────────────────────────── */
.cart-page { padding: 2rem 0 4rem; }
.cart-page h1 { margin-bottom: 2rem; }
.empty-cart { text-align: center; padding: 4rem; }
.empty-cart p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.cart-items { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-row:last-child { border-bottom: none; }
.cart-item-name { font-weight: 500; }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; }
.cart-item-qty button { background: var(--parchment); border: 1px solid var(--border); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.cart-item-price { font-family: var(--font-head); font-weight: 700; color: var(--earth); }
.cart-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: .25rem; }
.cart-remove:hover { color: var(--rust); }
.cart-summary { background: var(--warm-white); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; position: sticky; top: 90px; }
.cart-summary h3 { margin-bottom: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.summary-total { display: flex; justify-content: space-between; padding: 1rem 0 1.25rem; font-size: 1.1rem; }
.summary-total strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--earth); }
.free-shipping-hint { font-size: .82rem; color: var(--olive); background: rgba(107,124,61,.1); padding: .5rem .75rem; border-radius: var(--radius); margin: .75rem 0; text-align: center; }

/* ── Checkout ──────────────────────────────────────────────── */
.checkout-page { padding: 2rem 0 4rem; }
.checkout-page h1 { margin-bottom: 2rem; }
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.checkout-form h2 { font-size: 1.2rem; margin: 1.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.checkout-form h2:first-child { margin-top: 0; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.payment-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.payment-tab {
  flex: 1;
  padding: .65rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .9rem;
  transition: all var(--transition);
}
.payment-tab.active { border-color: var(--earth); background: var(--parchment); font-weight: 600; }
#stripe-payment-element { margin-bottom: 1.25rem; }
.payment-error { color: var(--rust); font-size: .88rem; margin-bottom: .75rem; }
.checkout-summary { background: var(--warm-white); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; position: sticky; top: 90px; }
.checkout-summary h3 { margin-bottom: 1.25rem; }
.summary-item { display: flex; justify-content: space-between; font-size: .88rem; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.secure-notice { font-size: .78rem; color: var(--text-muted); text-align: center; margin-top: .75rem; }

/* ── Order pages ───────────────────────────────────────────── */
.order-success-page, .order-cancel-page { padding: 4rem 0; display: flex; justify-content: center; }
.success-card, .cancel-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.success-icon, .cancel-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-card h1 { color: var(--olive); margin-bottom: .75rem; }
.cancel-card h1  { color: var(--rust);  margin-bottom: .75rem; }
.success-sub { color: var(--text-muted); font-style: italic; margin-bottom: 2rem; }
.order-details { background: var(--warm-white); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.order-number { font-size: 1.2rem; margin-bottom: .5rem; }
.order-items-summary { text-align: left; background: var(--warm-white); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.order-items-summary h3 { margin-bottom: .75rem; font-size: 1rem; }
.order-item-row, .order-total-row { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.order-total-row { font-weight: 700; font-size: 1rem; border-bottom: none; padding-top: .5rem; }
.success-actions, .cancel-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--earth-dark);
  color: var(--gold-light);
  padding: .9rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-accent);
  font-size: 1.05rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  z-index: 1000;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--earth-dark);
  color: var(--parchment);
  padding: 4rem 0 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-logo { font-family: var(--font-head); font-size: 1.5rem; color: #fff; margin-bottom: .5rem; }
.footer-tagline { font-style: italic; color: var(--gold-light); font-family: var(--font-accent); font-size: 1.1rem; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--gold); font-size: .88rem; text-decoration: none; }
.footer-social a:hover { color: #fff; }
.footer-links h4 { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links a { display: block; color: rgba(240,226,200,.7); font-size: .88rem; text-decoration: none; margin-bottom: .4rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact h4 { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-contact p { font-size: .88rem; color: rgba(240,226,200,.7); margin-bottom: .4rem; }
.footer-contact a { color: rgba(240,226,200,.7); text-decoration: none; }
.footer-contact a:hover { color: var(--gold-light); }
.organic-badge { color: var(--sage); font-weight: 600; margin-top: .75rem; font-size: .85rem; }
.footer-bottom {
  border-top: 1px solid rgba(212,169,106,.2);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: .82rem;
  color: rgba(212,169,106,.6);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav { display: none; flex-direction: column; gap: 0; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 1rem 1.5rem; }
  .main-nav { width: 100%; background: var(--warm-white); border-top: 1px solid var(--border); padding: .5rem 0; }
  .main-nav > a { width: 100%; padding: .6rem 1rem; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .trust-strip { flex-direction: column; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(212,169,106,.2); justify-content: center; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
}
