/* ─────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────── */
:root {
  --forest:    #2d433f;
  --forest-dk: #1e2e2b;
  --forest-lt: #3d5a54;
  --leaf:      #a9ba83;
  --leaf-lt:   #c4d1a8;
  --cream:     #f9f8f6;
  --parchment: #f0ede7;
  --ink:       #1a2420;
  --mist:      #e8e4dc;
  --text-body: #3a4a44;
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --shadow-organic: 0 8px 40px rgba(45,67,63,.13), 0 2px 8px rgba(45,67,63,.07);
  --shadow-card:    0 4px 24px rgba(45,67,63,.10), 0 1px 4px rgba(45,67,63,.06);
  --shadow-deep:    0 20px 60px rgba(45,67,63,.22), 0 4px 16px rgba(45,67,63,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--text-body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── NAV */
.gpn-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--forest);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 68px;
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
  border-bottom: 2px solid var(--leaf);
  transition: box-shadow .3s;
}
/* WP admin bar pushes body down — nav needs to follow */
.admin-bar .gpn-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .gpn-nav { top: 46px; } }
.nav-logo img { height: 36px; width: auto; filter: brightness(1.1); }
.nav-links { display: flex; gap: 2.4rem; list-style: none; }
.nav-links a { font-size: .8rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: rgba(249,248,246,.72); transition: color .25s; }
.nav-links a:hover { color: var(--leaf); }
.nav-actions { display: flex; gap: 1rem; align-items: center; }
.nav-cart-link { display: flex; align-items: center; gap: .4rem; color: rgba(249,248,246,.7); font-size: .85rem; transition: color .2s; position: relative; }
.nav-cart-link:hover { color: var(--leaf); }
.nav-cart-link:hover .cart-icon { stroke: var(--leaf); }
.cart-icon { display: block; flex-shrink: 0; stroke: rgba(249,248,246,.7); transition: stroke .2s; }
.cart-count { background: var(--leaf); color: var(--forest-dk); font-size: .65rem; font-weight: 700; padding: .15rem .45rem; border-radius: 2rem; line-height: 1.4; }
.btn-nav { background: var(--leaf); color: var(--forest-dk); font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: .55rem 1.25rem; border-radius: var(--r-sm); border: none; cursor: pointer; transition: background .2s, transform .15s; }
.btn-nav:hover { background: var(--leaf-lt); transform: translateY(-1px); }

/* ── HERO */
.hero { min-height: 100vh; background: var(--forest); display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 68px clamp(2rem, 7vw, 6rem) 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(169,186,131,.07) 0%, transparent 70%), radial-gradient(ellipse 40% 80% at 15% 80%, rgba(45,67,63,.6) 0%, transparent 60%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"); opacity: .55; pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding: clamp(3rem, 8vh, 6rem) 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf); margin-bottom: 1.8rem; }
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--leaf); }
.hero-title { font-family: var(--serif); font-size: clamp(3rem, 5.5vw, 5.2rem); font-weight: 300; line-height: 1.08; color: var(--cream); margin-bottom: 1.6rem; }
.hero-title em { font-style: italic; color: var(--leaf); }
.hero-body { font-size: 1rem; line-height: 1.75; color: rgba(249,248,246,.6); max-width: 420px; margin-bottom: 2.8rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--leaf); color: var(--forest-dk); font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: .9rem 2rem; border-radius: var(--r-sm); border: none; cursor: pointer; transition: background .2s, transform .18s, box-shadow .2s; box-shadow: 0 4px 20px rgba(169,186,131,.25); display: inline-block; }
.btn-primary:hover { background: var(--leaf-lt); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(169,186,131,.3); }
.btn-ghost { background: transparent; color: rgba(249,248,246,.75); font-family: var(--sans); font-size: .8rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; padding: .9rem 2rem; border-radius: var(--r-sm); border: 1px solid rgba(249,248,246,.2); cursor: pointer; transition: border-color .2s, color .2s; display: inline-block; }
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf); }
.hero-visual { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.hero-bottle-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  padding-bottom: 2rem;
}
.hero-bottle-img {
  height: clamp(320px, 55vh, 520px);
  width: auto;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.45));
  animation: bottle-float 5s ease-in-out infinite;
  transition: filter .3s ease;
}
.hero-bottle-img:hover {
  filter: drop-shadow(0 50px 70px rgba(0,0,0,.55));
}
@keyframes bottle-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.hero-bottle-glow {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 32px;
  background: radial-gradient(ellipse, rgba(169,186,131,.35) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: glow-pulse 5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: .7; transform: translateX(-50%) scaleX(1); }
  50%       { opacity: 1; transform: translateX(-50%) scaleX(.75); }
}
.hero-badge { position: absolute; bottom: 14%; left: -10%; background: var(--cream); border-radius: var(--r-md); padding: 1rem 1.4rem; box-shadow: var(--shadow-deep); min-width: 175px; }
.hero-badge-label { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--leaf); margin-bottom: .3rem; }
.hero-badge-val { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--forest); line-height: 1; }
.hero-badge-sub { font-size: .72rem; color: rgba(58,74,68,.55); margin-top: .25rem; }
.hero-strip { grid-column: 1/-1; border-top: 1px solid rgba(249,248,246,.08); display: flex; padding: 1.5rem 0; gap: 3rem; position: relative; z-index: 2; }
.hero-strip-item { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(249,248,246,.4); display: flex; align-items: center; gap: .6rem; }
.hero-strip-item::before { content: '✦'; color: var(--leaf); font-size: .6rem; }

/* ── COUNTERS */
.counters { background: var(--parchment); border-bottom: 1px solid var(--mist); display: grid; grid-template-columns: repeat(4, 1fr); }
.counter-item { padding: 2.8rem 2rem; border-right: 1px solid var(--mist); text-align: center; }
.counter-item:last-child { border-right: none; }
.counter-num { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; color: var(--forest); line-height: 1; margin-bottom: .4rem; }
.counter-num span { font-style: italic; }
.counter-label { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(58,74,68,.5); }

/* ── SECTION COMMONS */
.section-wrap { max-width: 1280px; margin: 0 auto; padding: clamp(4rem, 8vh, 7rem) clamp(1.5rem, 5vw, 4rem); }
.section-eyebrow { font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf); display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.section-eyebrow::after { content: ''; display: block; height: 1px; flex: 1 0 28px; max-width: 50px; background: var(--leaf); }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 300; color: var(--forest); line-height: 1.15; }
.section-title em { font-style: italic; }

/* ── ABOUT / STORY */
.story { background: var(--cream); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 7rem); align-items: center; }
.story-img-wrap { position: relative; }
.story-img-placeholder { width: 100%; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: var(--forest); position: relative; box-shadow: var(--shadow-deep); }
.story-img-placeholder svg { width: 100%; height: 100%; }
.story-tag { position: absolute; top: -1.5rem; right: -1.5rem; background: var(--leaf); color: var(--forest-dk); font-family: var(--serif); font-size: .85rem; font-style: italic; padding: .6rem 1.2rem; border-radius: var(--r-sm); box-shadow: var(--shadow-card); }
.story-lead { font-family: var(--serif); font-size: 1.2rem; font-weight: 300; font-style: italic; color: var(--forest); line-height: 1.6; margin: 1.5rem 0 1.2rem; }
.story-body { font-size: .95rem; line-height: 1.85; color: var(--text-body); margin-bottom: 1.2rem; }
.story-attributes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.attr-pill { background: var(--parchment); border: 1px solid var(--mist); border-radius: var(--r-md); padding: 1rem 1.2rem; display: flex; align-items: flex-start; gap: .8rem; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.attr-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-organic); }
.attr-icon { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.attr-text strong { display: block; font-size: .78rem; font-weight: 500; letter-spacing: .05em; color: var(--forest); margin-bottom: .2rem; }
.attr-text span { font-size: .72rem; color: rgba(58,74,68,.55); }

/* ── PRODUCTS */
.products { background: var(--parchment); }
.products-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1rem; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.product-card { background: var(--cream); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .3s cubic-bezier(.34,1.2,.64,1), box-shadow .3s; position: relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.product-img { width: 100%; aspect-ratio: 3/4; background: var(--forest); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-img::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(169,186,131,.12) 0%, transparent 70%); }
.product-img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.product-img svg { position: relative; z-index: 1; }
.product-badge { position: absolute; top: 1rem; left: 1rem; background: var(--leaf); color: var(--forest-dk); font-size: .65rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 2rem; z-index: 2; }
.product-body { padding: 1.6rem; }
.product-type { font-size: .65rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--leaf); margin-bottom: .5rem; }
.product-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; color: var(--forest); line-height: 1.2; margin-bottom: .6rem; }
.product-desc { font-size: .85rem; line-height: 1.65; color: rgba(58,74,68,.65); margin-bottom: 1rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--mist); padding-top: 1.2rem; margin-top: .8rem; }
.product-price { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; color: var(--forest); }
.product-price sup { font-size: .7em; vertical-align: top; margin-top: .2em; font-family: var(--sans); font-weight: 300; }
/* Override Woo price styles */
.woocommerce-Price-amount { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; color: var(--forest); }
.woocommerce-Price-currencySymbol { font-family: var(--sans); font-size: .9rem; font-weight: 300; vertical-align: super; }
.btn-add, .add_to_cart_button { background: var(--forest); color: var(--cream); font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: .65rem 1.3rem; border-radius: var(--r-sm); border: none; cursor: pointer; transition: background .2s, transform .15s; display: inline-block; }
.btn-add:hover, .add_to_cart_button:hover { background: var(--forest-lt); transform: translateY(-1px); color: var(--cream); }
.btn-add.loading { opacity: .7; pointer-events: none; }
.btn-add.added { background: var(--leaf); color: var(--forest-dk); }

/* ── FAQ */
.faq { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { border: 1px solid var(--mist); border-radius: var(--r-md); overflow: hidden; background: var(--parchment); transition: border-color .2s, box-shadow .2s; }
.faq-item:hover { border-color: rgba(169,186,131,.4); }
.faq-item.open { border-color: rgba(169,186,131,.5); box-shadow: var(--shadow-card); }
.faq-question { width: 100%; background: none; border: none; cursor: pointer; padding: 1.25rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; font-family: var(--sans); font-size: .92rem; font-weight: 500; color: var(--forest); }
.faq-question-icon { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--mist); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .9rem; color: var(--leaf); transition: transform .3s, background .2s; }
.faq-item.open .faq-question-icon { transform: rotate(45deg); background: var(--leaf); color: var(--forest-dk); border-color: var(--leaf); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer-inner { padding: 0 1.4rem 1.4rem; font-size: .88rem; line-height: 1.8; color: rgba(58,74,68,.75); }
.faq-item.open .faq-answer { max-height: 400px; }

/* ── CONTACT */
.contact { background: var(--parchment); border-top: 1px solid var(--mist); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }

/* Map */
.contact-map {
  height: 340px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--mist);
  margin-top: 2.5rem;
}

.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; font-size: .9rem; color: var(--text-body); }
.contact-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--forest); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--leaf); text-decoration: none; transition: background .2s; }
.contact-icon:hover { background: var(--forest-lt); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-label { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(58,74,68,.6); }
.form-input, .form-textarea { padding: .85rem 1.1rem; border: 1px solid var(--mist); border-radius: var(--r-sm); background: var(--cream); font-family: var(--sans); font-size: .9rem; color: var(--forest); outline: none; transition: border-color .2s, box-shadow .2s; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(58,74,68,.3); }
.form-input:focus, .form-textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(169,186,131,.12); }
.form-textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER */
.gpn-footer { background: var(--forest-dk); color: var(--cream); padding: 4rem clamp(1.5rem, 5vw, 4rem) 2rem; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand-logo { margin-bottom: 1rem; }
.footer-brand-logo img { height: 32px; width: auto; filter: brightness(1.1) opacity(.85); }
.footer-brand p { font-size: .85rem; line-height: 1.75; color: rgba(249,248,246,.45); max-width: 240px; }
.footer-company-info { display: none; }
.footer-legal-info p { font-size: .72rem; line-height: 1.7; color: rgba(249,248,246,.3); margin: 0; }
.footer-col h4 { font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .7rem; }
.footer-col a { font-size: .84rem; color: rgba(249,248,246,.45); transition: color .2s; }
.footer-col a:hover { color: var(--leaf); }
.footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 1px solid rgba(249,248,246,.08); padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .75rem; color: rgba(249,248,246,.3); }
.footer-certifications { display: flex; gap: 1rem; }
.cert-badge { font-size: .65rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .8rem; border: 1px solid rgba(249,248,246,.15); border-radius: 2rem; color: rgba(249,248,246,.4); }

/* ── WOO PAGE HEADER (breadcrumb bar) */
.woo-page-header { display: none; }
.woo-page-header-inner { display: none; }
.woocommerce-breadcrumb { font-size: .78rem; color: rgba(58,74,68,.5); }
.woocommerce-breadcrumb a { color: var(--leaf); }

/* ── SCROLL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── RESPONSIVE */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-strip { gap: 1.5rem; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .story-attributes { grid-template-columns: 1fr; }
}
/* ═══════════════════════════════════════════════
   LEGAL POPUPS
   Dodati na kraj main.css
═══════════════════════════════════════════════ */

/* ── Overlay */
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(18, 28, 26, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.legal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ── Modal card */
.legal-modal {
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  background: var(--cream);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(32px);
  transition: transform .38s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 -20px 60px rgba(45, 67, 63, .22), 0 -4px 16px rgba(45, 67, 63, .1);
  overflow: hidden;
}
.legal-overlay.open .legal-modal {
  transform: translateY(0);
}

/* ── Modal header */
.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2rem 1.2rem;
  border-bottom: 1px solid var(--mist);
  background: var(--parchment);
  flex-shrink: 0;
}
.legal-modal-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.2;
}
.legal-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--mist);
  background: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--forest);
  font-size: 1.1rem;
  line-height: 1;
  transition: background .2s, border-color .2s, transform .15s;
}
.legal-modal-close:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
  transform: rotate(90deg);
}

/* ── Handle (drag indicator) */
.legal-modal-handle {
  width: 40px;
  height: 4px;
  background: var(--mist);
  border-radius: 4px;
  margin: 0.9rem auto 0;
  flex-shrink: 0;
}

/* ── Scrollable content */
.legal-modal-body {
  overflow-y: auto;
  padding: 2rem;
  flex: 1;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.legal-modal-body::-webkit-scrollbar { width: 4px; }
.legal-modal-body::-webkit-scrollbar-track { background: transparent; }
.legal-modal-body::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 4px; }

/* ── Content typography */
.legal-content h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--forest);
  margin: 1.8rem 0 .6rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--mist);
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p {
  font-size: .88rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: .8rem;
}
.legal-content ul {
  margin: .5rem 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.legal-content li {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-body);
}
.legal-content li::marker { color: var(--leaf); }
.legal-content strong { color: var(--forest); font-weight: 500; }
.legal-content a { color: var(--leaf); text-decoration: underline; text-underline-offset: 2px; }

/* ── Footer CTA bar inside modal */
.legal-modal-footer {
  padding: 1rem 2rem 1.2rem;
  border-top: 1px solid var(--mist);
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.legal-modal-footer-note {
  font-size: .75rem;
  color: rgba(58, 74, 68, .45);
}
.legal-modal-footer .btn-primary {
  font-size: .72rem;
  padding: .6rem 1.4rem;
}

/* ── Footer link trigger style */
.footer-col a[data-legal] {
  cursor: pointer;
  position: relative;
}
.footer-col a[data-legal]::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--leaf);
  transition: right .25s ease;
}
.footer-col a[data-legal]:hover::after { right: 0; }

/* ── Desktop: center modal, not bottom-sheet */
@media (min-width: 768px) {
  .legal-overlay {
    align-items: center;
    padding: 2rem;
  }
  .legal-modal {
    border-radius: var(--r-lg);
    max-height: 82vh;
    transform: translateY(16px) scale(0.98);
  }
  .legal-overlay.open .legal-modal {
    transform: translateY(0) scale(1);
  }
  .legal-modal-handle { display: none; }
}

/* ── Prevent body scroll when open */
body.legal-open { overflow: hidden; }


/* ═══════════════════════════════════════════════════════════
   SHOP PAGE (archive-product.php)
═══════════════════════════════════════════════════════════ */

.shop-page-header {
  background: var(--forest);
  color: var(--cream);
  padding: calc(68px + 1rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 5vh, 4rem);
}
.shop-page-header .section-eyebrow { color: var(--leaf); }
.shop-page-header .section-title { color: var(--cream); }
.shop-page-header .section-title em { color: var(--leaf); }
.shop-page-intro {
  margin-top: 1.2rem;
  font-size: .95rem;
  color: rgba(249,248,246,.55);
  max-width: 480px;
  line-height: 1.7;
}
.gpn-shop-page { padding-top: 0; }


/* ═══════════════════════════════════════════════════════════
   SINGLE PRODUCT PAGE (single-product.php)
═══════════════════════════════════════════════════════════ */

.spg-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(68px + 3rem) clamp(1.5rem, 5vw, 4rem) 5rem;
}

/* Breadcrumb */
.spg-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: rgba(58,74,68,.4);
  margin-bottom: 2.5rem;
}
.spg-breadcrumb a { color: var(--leaf); transition: color .2s; }
.spg-breadcrumb a:hover { color: var(--forest); }
.spg-breadcrumb span { color: rgba(58,74,68,.3); }

/* ── Product main layout */
.spg-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 5rem;
}

/* Gallery */
.spg-gallery { position: sticky; top: 88px; }

.spg-gallery-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  background: var(--forest);
  aspect-ratio: 4/5;
}
.spg-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .3s ease;
}
.spg-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spg-gallery-placeholder svg { width: 100%; height: 100%; }

.spg-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--leaf);
  color: var(--forest-dk);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 2rem;
  z-index: 2;
}

.spg-gallery-thumbs {
  display: flex;
  gap: .6rem;
  margin-top: .8rem;
}
.spg-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color .2s;
  flex-shrink: 0;
}
.spg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spg-thumb.active { border-color: var(--leaf); }
.spg-thumb:hover { border-color: rgba(169,186,131,.5); }

/* Summary */
.spg-summary { padding-top: .5rem; }

.spg-eyebrow {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.spg-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--leaf); }

.spg-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.spg-price {
  margin-bottom: 1.5rem;
}
.spg-price .woocommerce-Price-amount {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1;
}
.spg-price .woocommerce-Price-currencySymbol {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 300;
  vertical-align: super;
}

.spg-short-desc {
  font-size: .93rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--mist);
}
.spg-short-desc p { margin: 0; }

/* Quick specs grid */
.spg-quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-bottom: 2rem;
}
.spg-qs-item {
  background: var(--parchment);
  border: 1px solid var(--mist);
  border-radius: var(--r-sm);
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.spg-qs-label {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(58,74,68,.45);
}
.spg-qs-val {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--forest);
  font-weight: 400;
}

/* Woo add-to-cart override within summary */
.spg-atc-wrap { margin-bottom: 1.5rem; }
.spg-atc-wrap form.cart {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.spg-atc-wrap form.cart .qty {
  width: 72px;
  height: 50px;
  padding: 0 .8rem;
  border: 1px solid var(--mist);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--forest);
  background: var(--cream);
  outline: none;
  text-align: center;
  transition: border-color .2s;
}
.spg-atc-wrap form.cart .qty:focus { border-color: var(--leaf); }
.spg-atc-wrap form.cart .single_add_to_cart_button {
  flex: 1;
  height: 50px;
  background: var(--leaf);
  color: var(--forest-dk);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 2rem;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .18s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(169,186,131,.25);
}
.spg-atc-wrap form.cart .single_add_to_cart_button:hover {
  background: var(--leaf-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(169,186,131,.3);
}

.spg-out-of-stock {
  background: rgba(220,80,80,.07);
  border: 1px solid rgba(220,80,80,.2);
  border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
  font-size: .88rem;
  color: #8b2020;
}

/* Trust pills */
.spg-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.spg-trust-item {
  font-size: .75rem;
  color: rgba(58,74,68,.55);
  background: var(--parchment);
  border: 1px solid var(--mist);
  border-radius: 2rem;
  padding: .35rem .9rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ── Detail tabs */
.spg-details {
  border-top: 1px solid var(--mist);
  padding-top: 4rem;
  margin-bottom: 5rem;
}

.spg-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--mist);
  margin-bottom: 3rem;
}
.spg-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 1rem;
  margin-right: 2.5rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(58,74,68,.35);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.spg-tab.active { color: var(--forest); border-bottom-color: var(--leaf); }
.spg-tab:hover { color: var(--forest); }

.spg-panel { display: block; }
.spg-panel.hidden { display: none; }

/* Description panel */
.spg-desc-text {
  max-width: 720px;
  font-size: .95rem;
  line-height: 1.9;
  color: var(--text-body);
}
.spg-desc-text p { margin-bottom: 1.1rem; }
.spg-desc-text p:last-child { margin-bottom: 0; }
.spg-desc-text ul { margin: .5rem 0 1rem 1.1rem; }
.spg-desc-text li { line-height: 1.8; margin-bottom: .25rem; }
.spg-desc-text li::marker { color: var(--leaf); }

/* Specs panel */
.spg-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 720px;
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--parchment);
}
.spg-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .8rem 1.2rem;
  border-bottom: 1px solid var(--mist);
  border-right: 1px solid var(--mist);
  gap: 1rem;
}
.spg-spec-row:nth-child(2n) { border-right: none; }
.spg-spec-row:nth-last-child(-n+2) { border-bottom: none; }
.spg-spec-label { font-size: .75rem; color: rgba(58,74,68,.5); }
.spg-spec-val { font-family: var(--serif); font-size: .95rem; color: var(--forest); text-align: right; }

/* Usage panel */
.spg-usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; max-width: 900px; }
.spg-usage-heading { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--forest); margin-bottom: 1rem; }
.spg-usage-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.spg-usage-list li { font-size: .9rem; line-height: 1.7; color: var(--text-body); display: flex; align-items: flex-start; gap: .6rem; }
.spg-usage-list li::before { content: '→'; color: var(--leaf); flex-shrink: 0; margin-top: .05rem; }
.spg-usage-note { font-size: .82rem; line-height: 1.7; color: rgba(58,74,68,.5); font-style: italic; }

/* ── Related products */
.spg-related {
  border-top: 1px solid var(--mist);
  padding-top: 4rem;
}
.spg-related .products-grid { grid-template-columns: repeat(2, 1fr); max-width: 800px; }

/* ── Responsive */
@media (max-width: 1024px) {
  .spg-product { grid-template-columns: 1fr; gap: 3rem; }
  .spg-gallery { position: static; max-width: 480px; }
  .spg-usage-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .spg-specs-grid { grid-template-columns: 1fr; }
  .spg-spec-row { border-right: none; }
  .spg-spec-row:nth-last-child(1) { border-bottom: none; }
  .spg-spec-row:nth-last-child(2) { border-bottom: 1px solid var(--mist); }
  .spg-related .products-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}
@media (max-width: 640px) {
  .spg-quick-specs { grid-template-columns: 1fr 1fr; }
  .spg-related .products-grid { grid-template-columns: 1fr; }
  .spg-wrap { padding-top: calc(68px + 2rem); padding-left: 1.2rem; padding-right: 1.2rem; }
}


/* ═══════════════════════════════════════════════
   MINI CART DRAWER
═══════════════════════════════════════════════ */

.cart-count-hidden { display: none; }

.nav-cart-link {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(249,248,246,.7);
  padding: 0;
  transition: color .2s;
  position: relative;
}
.nav-cart-link:hover { color: var(--leaf); }
.nav-cart-link:hover .cart-icon { stroke: var(--leaf); }

/* Overlay */
.gpn-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,28,26,.6);
  backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.gpn-drawer-overlay.open { opacity: 1; visibility: visible; }

/* Drawer panel */
.gpn-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--cream);
  z-index: 9001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.16,1,.3,1);
  box-shadow: -20px 0 60px rgba(45,67,63,.18);
}
.gpn-drawer.open { transform: translateX(0); }

/* Drawer header */
.gpn-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--mist);
  background: var(--parchment);
  flex-shrink: 0;
}
.gpn-drawer-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--forest);
}
.gpn-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--mist);
  background: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.gpn-drawer-close:hover { background: var(--forest); color: var(--cream); transform: rotate(90deg); }

/* Drawer body */
.gpn-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.6rem;
  overscroll-behavior: contain;
}
.gpn-drawer-body::-webkit-scrollbar { width: 3px; }
.gpn-drawer-body::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 3px; }

/* Loading spinner */
.gpn-drawer-loading { display: flex; justify-content: center; padding: 3rem 0; }
.gpn-drawer-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--mist);
  border-top-color: var(--leaf);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.gpn-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 1rem;
}
.gpn-drawer-empty svg { opacity: .2; }
.gpn-drawer-empty p { font-size: .9rem; color: rgba(58,74,68,.45); }
.gpn-drawer-empty a { font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }

/* Cart items */
.gpn-drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--mist);
}
.gpn-drawer-item:last-child { border-bottom: none; }

.gpn-drawer-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--forest);
  flex-shrink: 0;
}
.gpn-drawer-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gpn-drawer-item-info { min-width: 0; }
.gpn-drawer-item-name {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--forest);
  font-weight: 400;
  line-height: 1.3;
  display: block;
  margin-bottom: .3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpn-drawer-item-meta {
  font-size: .78rem;
  color: rgba(58,74,68,.5);
}
.gpn-drawer-item-price {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--forest);
  text-align: right;
  flex-shrink: 0;
}
.gpn-drawer-item-remove {
  display: block;
  font-size: .65rem;
  color: rgba(58,74,68,.35);
  text-align: right;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: .25rem;
  transition: color .2s;
}
.gpn-drawer-item-remove:hover { color: #dc5050; }

/* Drawer footer */
.gpn-drawer-footer {
  padding: 1.4rem 1.6rem;
  border-top: 1px solid var(--mist);
  background: var(--parchment);
  flex-shrink: 0;
}
.gpn-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
}
.gpn-drawer-total span:first-child { font-size: .72rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: rgba(58,74,68,.5); }
.gpn-drawer-total span:last-child { font-family: var(--serif); font-size: 1.5rem; color: var(--forest); }

.gpn-drawer-checkout {
  display: block;
  width: 100%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem;
  border-radius: var(--r-sm);
  text-align: center;
  margin-bottom: .6rem;
  transition: background .2s, transform .15s;
}
.gpn-drawer-checkout:hover { background: var(--forest-lt); transform: translateY(-1px); color: var(--cream); }

.gpn-drawer-viewcart {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--forest);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem;
  border-radius: var(--r-sm);
  text-align: center;
  border: 1px solid var(--mist);
  transition: border-color .2s, color .2s;
}
.gpn-drawer-viewcart:hover { border-color: var(--forest); color: var(--forest); }

/* ═══════════════════════════════════════════════
   PAYMENT ICONS IN FOOTER
═══════════════════════════════════════════════ */

.footer-payment {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(249,248,246,.06);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-payment-label {
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(249,248,246,.25);
  margin-right: .5rem;
  white-space: nowrap;
}
.footer-payment-icons {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.footer-payment-icon {
  height: 28px;
  width: auto;
  opacity: .7;
  transition: opacity .2s;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-payment-icon:hover { opacity: 1; }
.footer-payment-icon.corvus { height: 20px; }
