:root {
  --forest: #14231B;
  --moss: #1D3126;
  --pine: #33513E;
  --kernel: #EFE7D4;
  --kernel-dim: #B8B09A;
  --resin: #D9A441;
  --ring: #2A4433;
  --font-display: 'Manrope', sans-sans-serif;
  --font-body: 'Manrope', sans-sans-serif;
}

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #14231B; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--pine);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; max-width: 1320px; margin: 0 auto; padding: 0 40px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--kernel); text-decoration: none;
}
.logo-mark { width: 26px; height: 26px; color: var(--resin); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav-links a[href*="/partnership"],
.nav-links li:has(a[href*="/partnership"]),
.mobile-nav a[href*="/partnership"],
.mobile-nav li:has(a[href*="/partnership"]) {
  display: none !important;
}
.nav-links a {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--kernel); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--resin); }
.header-right { display: flex; align-items: center; gap: 20px; }
.lang-bar {
  display: inline-flex; align-items: center;
  border: 1px solid var(--pine); border-radius: 999px; padding: 3px 4px;
  background: transparent;
}
.lang-bar a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 10px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  color: var(--kernel); text-decoration: none; transition: background 0.2s, color 0.2s;
}
.lang-bar a:not(:first-child)::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: var(--pine);
}
.lang-bar a:hover { color: var(--resin); }
.lang-bar a.active { background: var(--forest); color: var(--kernel); border-radius: 999px; border: 1px solid var(--pine); }
.lang-bar a.active::before { display: none; }
.icon-btn {
  background: rgba(20,35,27,0.05); border: none; color: var(--kernel); cursor: pointer;
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  transition: all 0.2s ease; position: relative;
}
.icon-btn:hover { background: rgba(20,35,27,0.10); color: var(--resin); }
.cart-count {
  position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--forest); color: var(--kernel); font-size: 0.65rem; font-weight: 700;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--pine);
}
.menu-btn { display: none; }
.mobile-menu {
  display: none; position: fixed; top: 80px; left: 0; right: 0; bottom: 0;
  background: var(--moss); z-index: 40; padding: 24px; flex-direction: column; gap: 16px; overflow-y: auto;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 1.2rem; color: var(--kernel); text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--pine); }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .header-inner { padding: 0 24px; }
}

/* Dark hero / scrolled states */
body.header-over-dark .header { background: transparent; border-bottom-color: rgba(51,81,62,0.2); }
body.header-over-dark .header .logo,
body.header-over-dark .nav-links a,
body.header-over-dark .icon-btn,
body.header-over-dark .lang-bar a { color: var(--kernel); }
body.header-over-dark .lang-bar { border-color: rgba(51,81,62,0.3); background: rgba(20,35,27,0.08); }
body.header-over-dark .lang-bar a.active { background: var(--moss); color: var(--kernel); }
body.header-over-dark .cart-count { border-color: var(--pine); }
.header-scrolled,
body.header-over-dark .header-scrolled {
  background: #14231B !important; border-bottom-color: var(--pine) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.header-scrolled .logo,
.header-scrolled .nav-links a,
.header-scrolled .icon-btn,
.header-scrolled .lang-bar a { color: var(--kernel) !important; }
.header-scrolled .lang-bar { border-color: var(--pine) !important; background: rgba(20,35,27,0.04) !important; }
.header-scrolled .lang-bar a.active { background: var(--forest) !important; color: var(--kernel) !important; }

body:not(.header-over-dark) { padding-top: 80px; }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--resin); z-index: 9999; pointer-events: none; }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(20,35,27,0.45); z-index: 60; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; width: 100%; max-width: 460px; height: 100%; background: var(--moss); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 40px rgba(20,35,27,0.12); }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header { padding: 22px 24px; border-bottom: 1px solid var(--pine); display: flex; align-items: center; justify-content: space-between; }
.cart-drawer-header h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--kernel); margin: 0; }
.cart-drawer-header h2 span { font-size: 0.85rem; color: var(--kernel-dim); font-weight: 500; margin-left: 6px; }
.cart-close { background: none; border: none; font-size: 1.6rem; color: var(--kernel-dim); cursor: pointer; line-height: 1; padding: 4px; }
.cart-close:hover { color: var(--kernel); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.cart-upsell { border: 1px solid var(--pine); border-radius: 18px; padding: 18px; margin-bottom: 20px; background: var(--moss); }
.cart-upsell-title { font-weight: 600; font-size: 0.95rem; color: var(--kernel); margin-bottom: 12px; }
.cart-upsell-product { display: flex; align-items: center; gap: 14px; }
.cart-upsell-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--moss); }
.cart-upsell-product h4 { font-size: 0.95rem; font-weight: 600; color: var(--kernel); margin: 0 0 4px; }
.cart-upsell-product p { font-size: 0.85rem; color: var(--kernel-dim); margin: 0; }
.cart-upsell-product p s { color: var(--kernel-dim); margin-right: 6px; }
.btn-add-cart-sm { margin-left: auto; padding: 8px 18px; border-radius: 999px; border: none; background: var(--forest); color: var(--kernel); font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.btn-add-cart-sm:hover { background: var(--forest); }
.cart-items { margin-bottom: 24px; }
.cart-empty { text-align: center; color: var(--kernel-dim); padding: 40px 0; font-size: 0.95rem; }
.cart-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--pine); }
.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--moss); }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.95rem; font-weight: 600; color: var(--kernel); margin: 0 0 4px; }
.cart-item-option { font-size: 0.8rem; color: var(--kernel-dim); margin-bottom: 4px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--pine); border-radius: 999px; overflow: hidden; background: var(--moss); }
.qty-btn { width: 30px; height: 30px; border: none; background: var(--moss); color: var(--kernel); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--moss); }
.qty-value { width: 28px; text-align: center; font-size: 0.85rem; font-weight: 600; }
.cart-item-remove { background: none; border: none; color: var(--kernel-dim); font-size: 0.75rem; cursor: pointer; text-decoration: underline; }
.cart-item-remove:hover { color: var(--kernel); }
.cart-item-price { font-weight: 700; color: var(--resin); font-size: 0.95rem; min-width: 70px; text-align: right; }
.cart-also-bought { margin-top: 24px; }
.also-bought-list { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.also-bought-item { flex: 0 0 110px; text-align: center; }
.also-bought-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; background: var(--moss); margin-bottom: 8px; }
.also-bought-item p { font-size: 0.75rem; font-weight: 600; color: var(--kernel); margin-bottom: 4px; }
.also-bought-item button { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--pine); background: transparent; color: var(--kernel); font-size: 0.7rem; font-weight: 600; cursor: pointer; }
.also-bought-item button:hover { background: var(--forest); color: var(--kernel); }
.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--pine); background: var(--moss); }
.cart-guarantee { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; color: var(--kernel-dim); margin-bottom: 14px; }
.btn-checkout { width: 100%; padding: 16px 20px; border-radius: 999px; border: none; background: var(--forest); color: var(--kernel); font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s ease; }
.btn-checkout:hover { background: var(--forest); }
.btn-checkout s { opacity: 0.75; font-weight: 500; margin-left: 6px; }

/* Reveal animations (included because many pages use these classes) */
.reveal, .auto-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible, .auto-reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .auto-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (scripting: none) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .auto-reveal { opacity: 1; transform: none; }
}


/* Dark forest theme base */
body { background: var(--forest); color: var(--kernel); }
h1, h2, h3, h4, h5, h6, .display, .section-title, .page-hero h1, .partnership-hero h1, .shop-hero h1, .hero-title { font-family: 'Manrope', sans-sans-serif; }
