:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --ink: #1a2130;
  --ink-soft: #4a5568;
  --ink-faint: #718096;
  --primary: #466d15;
  --primary-dark: #365f0f;
  --primary-glow: rgba(70, 109, 21, 0.35);
  --gold: #b8860b;
  --gold-light: #e0a940;
  --sale-red: #e53e3e;
  --line: #edeeea;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(26, 33, 48, 0.07);
  --shadow-lg: 0 14px 34px rgba(26, 33, 48, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 em, h2 em, .accent-font {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-style: normal;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.15em; }

.mono { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- announcement bar ---- */
.announcement-bar {
  background: var(--primary-dark);
  color: #f0efe9;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.01em;
}

/* ---- header ---- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--line);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }
.brand .co { color: var(--ink-faint); font-weight: 500; }
nav.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
nav.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 6px;
}
nav.main-nav a:hover { color: var(--ink); background: var(--bg-alt); }
nav.main-nav a.active { color: var(--primary-dark); background: #eef3e6; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.icon-btn {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  padding: 8px 10px;
  border-radius: 6px;
}
.icon-btn:hover { background: var(--bg-alt); }
.cart-count {
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* ---- hero ---- */
.hero {
  position: relative;
  background: #211f1f;
  color: var(--white);
  overflow: hidden;
  padding: 116px 0 100px;
  text-align: center;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  animation: hero-zoom 16s ease-in-out infinite alternate;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 16, 0.55) 0%, rgba(20, 18, 14, 0.78) 100%);
  z-index: 1;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.85rem);
  color: var(--white);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 auto 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero p.subtitle {
  font-size: 18.5px;
  color: #f0efe9;
  max-width: 52ch;
  margin: 0 auto 24px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: #f0efe9;
  margin-bottom: 32px;
}
.hero-badges span.sep { opacity: 0.5; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero .btn-accent { font-size: 15.5px; padding: 15px 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 18px var(--primary-glow);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--primary-glow); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--primary-glow); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---- sections ---- */
.section { padding: 76px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}
.section-head .eyebrow {
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.section-head h1, .section-head h2 { font-size: 1.9rem; font-weight: 500; margin: 0; }
.section-head.centered h1, .section-head.centered h2 { text-align: center; margin: 0 auto; }
.section-head.centered { flex-direction: column; align-items: center; text-align: center; }
.section-head .view-all { font-weight: 600; font-size: 14px; color: var(--primary-dark); }
.section-head .view-all:hover { text-decoration: underline; }

/* ---- product grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .22s ease, border-color .22s ease;
  position: relative;
  box-shadow: var(--shadow);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d8e0c8; }
.product-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.badge-sale {
  position: absolute;
  z-index: 3;
  top: 12px; left: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px 5px 10px;
  border-radius: 0 4px 4px 0;
}
.badge-stock {
  position: absolute;
  z-index: 3;
  top: 12px; right: 12px;
  background: var(--sale-red);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  animation: pulse-badge 2s ease-in-out infinite;
}
.sold-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 5px;
}
.sold-note.detail { font-size: 13px; margin-bottom: 4px; }
.stock-note.urgent { color: var(--sale-red); }
.guarantee-note { font-size: 12.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 6px; margin-top: 18px; }
.discount-tag {
  background: #fde8e8;
  color: var(--sale-red);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 600;
}
.product-title { font-weight: 600; font-size: 16px; color: var(--ink); }
.product-title a:hover { color: var(--primary-dark); }
.price-row { margin-top: auto; display: flex; align-items: center; gap: 9px; }
.price {
  font-weight: 700;
  font-size: 18.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.price-was { font-size: 13.5px; color: var(--ink-faint); text-decoration: line-through; }
.add-btn {
  margin-top: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 11px;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(70, 109, 21, 0.22);
}
.add-btn:hover { background: var(--primary-dark); box-shadow: 0 6px 16px rgba(70, 109, 21, 0.3); }

/* ---- category tiles ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-tile {
  background-size: cover;
  background-position: center;
  color: var(--white);
  border-radius: var(--radius);
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: box-shadow .25s ease, transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow);
}
.cat-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cat-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,16,0.05) 30%, rgba(15,18,12,0.85) 100%);
  transition: background .25s ease;
}
.cat-tile:hover .cat-tile-overlay { background: linear-gradient(180deg, rgba(20,24,16,0.15) 20%, rgba(15,18,12,0.9) 100%); }
.cat-tile-body { position: relative; padding: 22px; }
.cat-tile h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 5px; }
.cat-tile span { font-size: 13px; color: #e8e4d5; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---- why-shop cards ---- */
.section-alt { background: var(--bg-alt); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-card .icon { width: 30px; height: 30px; color: var(--primary); margin-bottom: 14px; }
.why-card h4 { font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 0 0 6px; line-height: 1.4; }
.why-card p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---- about / story block ---- */
.story-block {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 44px;
}
.story-block p { font-size: 17px; color: var(--ink-soft); max-width: 70ch; white-space: pre-line; }

/* ---- newsletter band ---- */
.newsletter-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.newsletter-copy h3 { color: #fff; font-size: 1.35rem; margin: 0 0 6px; }
.newsletter-copy p { color: #9199b0; font-size: 14px; margin: 0; max-width: 40ch; }
.newsletter-form { flex-shrink: 0; min-width: 320px; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.newsletter-row input::placeholder { color: #7d8296; }
.newsletter-row input:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; }
.newsletter-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #7d8296; margin-top: 10px; cursor: pointer; }
.newsletter-consent input { margin-top: 2px; }
.newsletter-error { color: #ff8f7c; font-size: 12.5px; margin-top: 8px; }
.newsletter-success { color: var(--gold-light); font-size: 13px; font-weight: 600; margin-top: 10px; }
@media (max-width: 900px) {
  .newsletter-band { flex-direction: column; align-items: flex-start; }
  .newsletter-form { min-width: 0; width: 100%; }
}

/* ---- footer ---- */
.site-footer {
  background: linear-gradient(180deg, #1a2130 0%, #141a26 100%);
  color: #aab0c0;
  margin-top: 40px;
  padding: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 46px;
  padding-bottom: 46px;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 0 0 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: #aab0c0; transition: color .15s ease, padding-left .15s ease; }
.footer-col a:hover { color: var(--gold-light); padding-left: 3px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 4px; }
.footer-logo .co { color: #7d8296; font-weight: 500; }
.footer-desc { font-size: 13.5px; line-height: 1.7; color: #838aa0; max-width: 34ch; margin: 0; }
.pay-icons { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.pay-icons img { height: 19px; width: auto; opacity: 0.75; transition: opacity .15s ease; }
.pay-icons img:hover { opacity: 1; }
.trust-item { font-size: 13.5px; font-weight: 500; color: #aab0c0; display: flex; align-items: center; gap: 8px; }
.trust-item .icon { color: var(--gold-light); flex-shrink: 0; }

.footer-bottom-row {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-badge-link img { height: 40px; width: auto; opacity: 0.85; transition: opacity .15s ease; }
.footer-badge-link:hover img { opacity: 1; }
.footer-bottom { font-size: 12.5px; color: #6b7185; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---- breadcrumb ---- */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 18px 0;
}
.breadcrumb a:hover { color: var(--primary-dark); }

/* ---- product detail ---- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.product-gallery img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
  width: 64px; height: 64px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: none;
  transition: border-color .15s ease, transform .15s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border: none; box-shadow: none; border-radius: 0; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--primary); }
.product-info .product-cat { margin-bottom: 8px; }
.product-info h1 { font-size: 2rem; font-weight: 600; }
.product-info .price-row { margin: 18px 0; font-size: 1.3rem; }
.product-info .price { font-size: 1.4rem; }
.product-info .desc { color: var(--ink-soft); margin-bottom: 26px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qty-box { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty-box button { background: none; border: none; width: 36px; height: 40px; font-size: 16px; color: var(--ink-soft); }
.qty-box input { width: 44px; text-align: center; border: none; background: none; font-size: 15px; }
.stock-note { font-size: 13px; color: var(--primary-dark); font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 6px; }

/* ---- cart / checkout ---- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); padding: 10px 8px; border-bottom: 2px solid var(--line); font-weight: 700; }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }

/* Below ~700px a 5-column table can't fit; stack each row into a card instead. */
@media (max-width: 700px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
  }
  .cart-table td { border-bottom: none; padding: 6px 0; }
  .cart-table td[data-label] {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .cart-table td[data-label]::before {
    content: attr(data-label);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    font-weight: 700;
  }
  .cart-item-row img { width: 52px; height: 52px; }
}
.cart-item-row { display: flex; align-items: center; gap: 14px; }
.cart-item-row img { width: 62px; height: 62px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.cart-item-title { font-weight: 600; color: var(--ink); }
.remove-link { font-size: 12.5px; color: var(--sale-red); font-weight: 600; }
.cart-summary { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.coupon-row { display: flex; gap: 8px; margin: 4px 0 6px; }
.coupon-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 13.5px; text-transform: uppercase; }
.coupon-row input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.coupon-feedback { font-size: 12.5px; margin-bottom: 8px; min-height: 1.2em; }
.coupon-feedback.ok { color: var(--primary-dark); }
.coupon-feedback.err { color: var(--sale-red); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14.5px; color: var(--ink-soft); }
.summary-row.total { font-size: 19px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.empty-state { text-align: center; padding: 80px 0; color: var(--ink-soft); }

/* ---- checkout: numbered steps, Shopify-style ---- */
.checkout-layout { align-items: start; }
.checkout-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.checkout-step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.checkout-step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.checkout-step-num .icon { width: 16px; height: 16px; color: var(--white); }
.checkout-step-head h3 { font-size: 1.05rem; margin: 0 0 2px; }
.checkout-step-head p { font-size: 12.5px; color: var(--ink-faint); margin: 0; }
.checkout-login-hint { font-size: 13px; color: var(--ink-soft); margin: -8px 0 16px; }
.checkout-login-hint a { color: var(--primary-dark); font-weight: 600; }
.express-checkout-wrap.checkout-step { background: linear-gradient(135deg, #fdf6e3 0%, #eef3e6 100%); border-color: #e0d6ad; }
.express-checkout-wrap .checkout-step-num { background: var(--gold); }

.checkout-summary-sticky { position: sticky; top: 90px; }
.checkout-summary-title { font-size: 1rem; margin: 0 0 16px; }
.summary-item-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.summary-item-row img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex-shrink: 0; }
.summary-item-info { flex: 1; min-width: 0; }
.summary-item-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.summary-item-qty { font-size: 11.5px; color: var(--ink-faint); }
.summary-item-price { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 900px) {
  .checkout-summary-sticky { position: static; }
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 14.5px; background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

.confirm-box { text-align: center; padding: 70px 0; }
.confirm-stamp {
  display: inline-flex; align-items: center; gap: 8px; background: #eef3e6; color: var(--primary-dark);
  font-weight: 700; padding: 10px 22px;
  border-radius: 30px; margin-bottom: 22px;
}
.confirm-stamp .icon { width: 1.2em; height: 1.2em; }
.tracking-note {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 18px; font-size: 13.5px; color: var(--ink-soft); margin: 0 auto 26px; max-width: fit-content;
}
.tracking-note .icon { color: var(--primary); }
.tracking-note a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; }

/* ---- cart add-ons (fill the satchel) ---- */
.cart-addons { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.cart-addons h3 { font-size: 1.05rem; margin-bottom: 16px; }
.addon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.addon-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  transition: box-shadow .18s ease, transform .18s ease;
}
.addon-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.addon-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; margin-bottom: 10px; background: var(--bg-alt); }
.addon-name { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
.addon-price { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
@media (max-width: 900px) {
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- free shipping progress ---- */
.free-shipping-bar { margin-bottom: 22px; }
.shipping-msg { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.shipping-msg.ok { color: var(--primary-dark); }
.shipping-track { height: 8px; background: var(--bg-alt); border-radius: 20px; overflow: hidden; }
.shipping-fill { height: 100%; background: linear-gradient(90deg, var(--primary) 0%, var(--gold-light) 100%); border-radius: 20px; transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ---- checkout trust row ---- */
.checkout-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-top: 16px;
}
.checkout-trust span { display: inline-flex; align-items: center; gap: 5px; }
.checkout-trust .icon { color: var(--primary); }
.checkout-stripe-note { text-align: center; font-size: 12px; color: var(--ink-faint); margin-top: 10px; }

/* ---- express checkout (Apple Pay / Google Pay / Link) ---- */
.express-checkout-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 26px;
}
#express-checkout { min-height: 44px; }
.express-checkout-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.express-checkout-divider::before, .express-checkout-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
#card-element {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--white);
}

/* ---- sticky mobile add-to-cart bar ---- */
.sticky-add-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(26,33,48,0.1);
  padding: 12px 16px;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-add-bar.visible { transform: translateY(0); }
.sticky-add-bar .info { flex: 1; min-width: 0; }
.sticky-add-bar .name { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-add-bar .price { font-size: 15px; }
@media (max-width: 900px) {
  .sticky-add-bar { display: flex; }
}

/* =========================================================
   Animation system — micro-interactions, scroll reveals,
   respects prefers-reduced-motion throughout.
   ========================================================= */

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes cart-bounce {
  0% { transform: scale(1) rotate(0) translateY(0); }
  15% { transform: scale(0.8, 1.2) rotate(-6deg) translateY(2px); }
  35% { transform: scale(1.4, 0.75) rotate(8deg) translateY(-6px); }
  55% { transform: scale(0.9, 1.15) rotate(-10deg) translateY(1px); }
  75% { transform: scale(1.15, 0.92) rotate(5deg) translateY(-2px); }
  90% { transform: scale(0.97, 1.03) rotate(-2deg); }
  100% { transform: scale(1) rotate(0) translateY(0); }
}
.icon-btn .icon.bounce { animation: cart-bounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: 50% 100%; }

@keyframes count-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.6); }
  65% { transform: scale(0.85); }
  100% { transform: scale(1); }
}
.cart-count.pop { animation: count-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in-view { animation: fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.cart-row-enter { animation: row-in 0.35s ease both; }

@keyframes check-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.confirm-stamp { animation: check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

.add-btn.added { background: var(--primary-dark); }
.add-btn, .btn-accent, .btn-primary { transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.add-btn:active, .btn-accent:active, .btn-primary:active { transform: scale(0.97); }
.icon-btn, nav.main-nav a, .cat-tile, .qty-box button { transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease; }
.icon-btn:active, .qty-box button:active { transform: scale(0.92); }

.hero h1 em { display: inline-block; animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero .subtitle { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-badges { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero .btn-accent { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }

.cat-tile, .product-card { will-change: transform; }

/* ---- fly-to-cart dot ---- */
.fly-dot {
  position: fixed;
  z-index: 999;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light) 0%, var(--primary) 60%, var(--primary-dark) 100%);
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(70, 109, 21, 0.5);
}

/* ---- mini cart popup (bottom left) ---- */
.mini-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 18px;
  transform: translate(16px, 24px) scale(0.9) rotate(2deg);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s ease, box-shadow 0.2s ease;
}
.mini-cart.show { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; pointer-events: auto; }
.mini-cart.show:hover { box-shadow: 0 20px 46px rgba(26, 33, 48, 0.22); transform: translate(0, -3px) scale(1); }
/* Jolt animates a child wrapper, not the panel itself, so it never fights the
   panel's own show/hide transform transition (same property, same element = jank). */
.mini-cart-inner.landing { animation: mini-cart-jolt 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes mini-cart-jolt {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.06) rotate(-1.5deg); }
  60% { transform: scale(0.98) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}
.mini-cart-close {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--ink-faint);
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mini-cart-close:hover { background: var(--bg-alt); color: var(--ink); }
.mini-cart-close .icon { width: 15px; height: 15px; }
.mini-cart-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--primary-dark); margin-bottom: 12px; }
.mini-cart-head .icon { color: var(--primary); }
.mini-cart-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 6px; margin-left: -6px; margin-right: -6px; border-radius: 8px; transition: background .15s ease; }
.mini-cart-item:hover { background: var(--bg-alt); }
.mini-cart-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex-shrink: 0; transition: transform .2s ease; }
.mini-cart-item:hover img { transform: scale(1.08); }
.mini-cart-skeleton {
  height: 60px;
  border-radius: 8px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--bg-alt) 25%, #eceae2 37%, var(--bg-alt) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.2s ease infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.mini-cart-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mini-cart-qty { font-size: 12px; color: var(--ink-soft); }
.mini-cart-ship { font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.mini-cart-ship.ok { color: var(--primary-dark); font-weight: 600; }
.mini-cart .shipping-track { margin-bottom: 14px; }
.mini-cart-summary { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line); margin-bottom: 14px; }
.mini-cart-actions { display: flex; gap: 8px; }
.mini-cart-actions .btn { flex: 1; justify-content: center; font-size: 13px; padding: 10px; }
@media (max-width: 500px) {
  .mini-cart { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

/* ---- toast notifications ---- */
.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  max-width: 320px;
}
.toast .icon { color: var(--primary); flex-shrink: 0; }
.toast.toast-err .icon { color: var(--sale-red); }
.toast.toast-out { animation: toast-out 0.25s ease both; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(0.95); }
}

/* ---- qty stepper pop ---- */
@keyframes qty-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.qty-box input.pop { animation: qty-pop 0.25s ease; }

/* ---- legal pages ---- */
.legal-body { max-width: 74ch; }
.legal-body h3 { font-size: 1.05rem; margin-top: 34px; margin-bottom: 8px; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

/* ---- account pages ---- */
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.auth-error { background: #fde8e8; color: var(--sale-red); font-size: 13.5px; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.welcome-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #eef3e6 0%, #fdf6e3 100%);
  border: 1px solid #d8e0c8;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--ink-soft);
}
.welcome-banner .icon { color: var(--primary); width: 28px; height: 28px; flex-shrink: 0; }
.welcome-banner strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 3px; }
.account-status { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: capitalize; }
.account-status-awaiting_payment { background: #fdf0dc; color: #8a5a12; }
.account-status-paid { background: #dcedf6; color: #1c5a80; }
.account-status-fulfilled { background: #e2f0dc; color: var(--primary-dark); }
.account-status-cancelled { background: #f6dedb; color: var(--sale-red); }

/* ---- generic modal (newsletter code reveal + entry promo) ---- */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 1200;
  background: rgba(20, 24, 16, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.show .modal-card { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: var(--ink-faint);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }
.newsletter-modal-icon, .entry-promo-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eef3e6;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.newsletter-modal-icon .icon, .entry-promo-icon .icon { width: 26px; height: 26px; }
.modal-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.modal-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }
.newsletter-modal-code {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #eef3e6 0%, #fdf6e3 100%);
  border: 1px dashed #c8d6b0;
  border-radius: var(--radius);
  padding: 16px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.entry-promo form input[type=email] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14.5px;
}
.entry-promo form input[type=email]:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ---- GeoVenture 2027 event coupon celebration ---- */
.coupon-feedback.event-coupon { color: var(--gold); font-weight: 700; }
.event-banner {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 1001;
  transform: translate(-50%, -140%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #2a1c02;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: 0 12px 32px rgba(184, 134, 11, 0.4);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}
.event-banner.show { transform: translate(-50%, 0); }
.event-banner .icon { width: 1.3em; height: 1.3em; }

/* ---- confetti burst (order confirmation) ---- */
.confetti-piece {
  position: fixed;
  top: -12px;
  z-index: 998;
  width: 8px; height: 8px;
  pointer-events: none;
  animation: confetti-fall 1.6s ease-in forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(90vh) rotate(540deg); opacity: 0; }
}

/* ---- mobile nav ---- */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 11px;
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-nav-toggle .icon { width: 22px; height: 22px; transition: transform .2s ease; }
.mobile-nav-toggle.open .icon { transform: rotate(90deg); }
.mobile-nav-toggle:hover { background: var(--bg-alt); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  transition: max-height 0.3s ease;
}
.mobile-nav.open { max-height: 420px; border-top: 1px solid var(--line); }
.mobile-nav a {
  padding: 15px 24px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.active { color: var(--primary-dark); background: #eef3e6; }
.mobile-nav a:active { background: var(--bg-alt); }

@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .account-link-label { display: none; }
  .header-actions { gap: 6px; }
  .hero { padding: 70px 0 60px; }
  .section { padding: 48px 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
  .reveal { opacity: 1 !important; }
}
