/* ============================================================
   The Pure Harvest Group — New Design System
   Design: Forest Green / Cream / Gold / Playfair + Lato
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Lato:wght@300;400;700;900&display=swap');

/* ── TOKENS ── */
:root {
  --green:      #1e3a1e;
  --green-mid:  #2d5a2d;
  --olive:      #4a6741;
  --gold:       #c8a030;
  --gold-light: #e8c060;
  --cream:      #faf7f0;
  --parch:      #f0ebe0;
  --parch-dark: #e2d9c8;
  --text:       #1a1a1a;
  --muted:      #6b6b5a;
  --white:      #ffffff;
  --red:        #c0392b;
  --red-light:  #fde8e6;
  --blue-light: #e6f0fd;
  --shadow-sm:  0 2px 8px rgba(30,58,30,.10);
  --shadow-md:  0 6px 24px rgba(30,58,30,.14);
  --shadow-lg:  0 16px 48px rgba(30,58,30,.18);
  --r:          8px;
  --r-lg:       16px;
  --nav-h:      72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }
h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; line-height: 1.15; }
h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { line-height: 1.75; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }

/* ── GOLD DIVIDER / SECTION LABELS ── */
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 900; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.gold-divider {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 12px 0 20px;
}
.text-center .gold-divider { margin: 12px auto 20px; }

/* ── HEADER / NAV ── */
#site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--green);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  transition: background .3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); gap: 24px;
}
.logo-wrap { flex-shrink: 0; display: flex; align-items: center; }
.logo-wrap img { height: 44px; width: auto; }
.logo-text {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 800;
  color: var(--cream); letter-spacing: -.01em; white-space: nowrap;
}
.logo-text span { color: var(--gold); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: rgba(250,247,240,.75); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  transition: color .2s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cart-btn {
  display: flex; align-items: center; gap: 6px;
  color: rgba(250,247,240,.8); font-size: 13px; font-weight: 700;
  letter-spacing: .04em; padding: 6px 10px; border-radius: var(--r);
  transition: color .2s;
}
.cart-btn:hover { color: var(--gold); }
.cart-count {
  background: var(--gold); color: var(--green);
  font-size: 11px; font-weight: 900;
  min-width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 2px;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: .3s; }
#phg-auth-btn {
  font-size: 12px !important; padding: 8px 16px !important;
  border-radius: var(--r) !important; background: var(--gold) !important;
  color: var(--green) !important; text-decoration: none !important;
  font-weight: 900 !important; white-space: nowrap !important;
  letter-spacing: .04em; text-transform: uppercase;
  transition: background .2s !important;
}
#phg-auth-btn:hover { background: var(--gold-light) !important; }
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 600;
  background: var(--green); flex-direction: column; gap: 0;
  padding: 80px 40px 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 16px 0;
  color: rgba(250,247,240,.8); font-size: 16px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid rgba(250,247,240,.1); transition: color .2s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: var(--cream);
  font-size: 32px; cursor: pointer; line-height: 1;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 13px 26px; border-radius: var(--r); border: none; cursor: pointer;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: var(--green);
  box-shadow: 0 4px 12px rgba(200,160,48,.3);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,160,48,.4); }
.btn-outline {
  background: transparent; color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--cream); }
.btn-outline-gold {
  background: transparent; color: var(--green);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--green); }
.btn-sm { padding: 9px 18px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }
.btn-full + .btn-full { margin-top: 10px; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 11px; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); margin-bottom: 7px;
}
.form-input {
  width: 100%; padding: 12px 16px; border-radius: var(--r);
  border: 1.5px solid var(--parch-dark); background: var(--white);
  font-family: 'Lato', sans-serif; font-size: 14px; color: var(--text);
  transition: border-color .2s, box-shadow .2s; outline: none;
  appearance: none;
}
.form-input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(74,103,65,.1); }
.form-input::placeholder { color: #bbb; }
.form-select-input { background: var(--white); cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section-title {
  font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700;
  color: var(--green); margin-bottom: 16px; margin-top: 24px; padding-bottom: 8px;
  border-bottom: 1px solid var(--parch-dark);
}

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 100px;
  font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
}
.badge-pending    { background: #fef9e6; color: #7a5a00; }
.badge-processing { background: var(--blue-light); color: #1a4a8a; }
.badge-shipped    { background: #fef9e6; color: #7a5a00; }
.badge-delivered  { background: #e6f9e6; color: var(--olive); }
.badge-cancelled  { background: var(--red-light); color: var(--red); }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  padding: 80px 0 56px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(200,160,48,.1);
}
.page-hero-content { position: relative; }
.page-hero h1 { color: var(--cream); }
.page-hero p  { color: rgba(250,247,240,.75); font-size: 16px; margin-top: 12px; max-width: 520px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  margin-bottom: 12px; text-transform: uppercase;
}
.breadcrumb a { color: rgba(250,247,240,.6); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(250,247,240,.4); }
.breadcrumb .current { color: var(--gold); }

/* ── AUTH PAGES ── */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  background: var(--parch); padding: 48px 20px;
}
.auth-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 48px 44px; width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 800;
  color: var(--green); margin-bottom: 6px;
}
.subtitle { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.subtitle a { color: var(--olive); font-weight: 700; }
.auth-error {
  background: var(--red-light); border: 1px solid #f5c6c0; border-radius: var(--r);
  padding: 12px 16px; font-size: 13px; color: var(--red); margin-bottom: 20px;
  line-height: 1.6;
}
.auth-success {
  background: #e6f9e6; border: 1px solid #a8d5a8; border-radius: var(--r);
  padding: 12px 16px; font-size: 13px; color: #1f5f1f; margin-bottom: 20px;
}
.btn-full[type="submit"], button.btn-full {
  margin-top: 8px; padding: 15px; font-size: 14px;
}
.auth-links {
  text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px;
}
.auth-links a { color: var(--olive); font-weight: 700; transition: color .2s; }
.auth-links a:hover { color: var(--green); }

/* ── DASHBOARD ── */
.dash-wrap { max-width: 980px; margin: 0 auto; padding: 48px 24px; }
.dash-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 28px 32px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.dash-card h2 {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  color: var(--green); margin-bottom: 20px;
}
.orders-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.orders-table thead tr { background: var(--parch); }
.orders-table th {
  padding: 12px 16px; text-align: left;
  font-size: 10px; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.orders-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--parch-dark);
  color: var(--text);
}
.orders-table tbody tr:last-child td { border-bottom: none; }
.orders-table tbody tr:hover { background: rgba(250,247,240,.5); }

/* ── CART PAGE ── */
.cart-page-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start;
}
.cart-summary-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.cart-summary-card h3 {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  color: var(--green); margin-bottom: 20px;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--parch-dark);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total {
  font-weight: 900; font-size: 16px; padding-top: 14px;
  border-top: 2px solid var(--parch-dark);
}
.summary-row.total span:last-child {
  font-family: 'Playfair Display', serif; font-size: 22px; color: var(--olive);
}
.free-shipping-note {
  background: #e6f9e6; border: 1px dashed var(--olive); border-radius: var(--r);
  padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--olive);
  text-align: center; margin: 14px 0;
}
.cart-cta-wrap { margin-top: 20px; }

/* Cart items rendered by cart.js */
.cart-item-row {
  display: flex; gap: 16px; align-items: center; padding: 16px;
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.cart-item-img {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--r);
  overflow: hidden; background: var(--parch); display: flex; align-items: center; justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 {
  font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700;
  color: var(--green); margin-bottom: 2px;
}
.cart-item-info .sku-tag { font-size: 12px; color: var(--muted); }
.cart-qty-controls { display: flex; align-items: center; gap: 0; }
.qty-btn {
  background: var(--parch); border: 1px solid var(--parch-dark); color: var(--green);
  width: 32px; height: 32px; font-size: 16px; cursor: pointer; transition: background .2s;
}
.qty-btn:first-child { border-radius: var(--r) 0 0 var(--r); }
.qty-btn:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.qty-btn:hover { background: var(--parch-dark); }
.qty-val { padding: 0 14px; height: 32px; display: flex; align-items: center; border: 1px solid var(--parch-dark); border-left: none; border-right: none; font-weight: 700; font-size: 14px; color: var(--green); }
.cart-item-price { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--olive); white-space: nowrap; }
.remove-item-btn { background: none; border: none; color: var(--muted); font-size: 18px; padding: 4px; cursor: pointer; transition: color .2s; }
.remove-item-btn:hover { color: var(--red); }
.empty-cart {
  text-align: center; padding: 60px 20px; color: var(--muted);
  background: var(--white); border-radius: var(--r-lg);
}
.empty-cart .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-cart h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--green); margin-bottom: 8px; }

/* ── CHECKOUT ── */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start;
}
.checkout-form-wrap {
  background: var(--white); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.order-summary-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.order-summary-card h3 {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
  color: var(--green); margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--parch-dark);
}
.order-item {
  display: flex; gap: 12px; align-items: center; margin-bottom: 14px;
}
.order-item-thumb {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--r);
  overflow: hidden; background: var(--parch);
}
.order-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-item-info { flex: 1; }
.order-item-info h4 { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; color: var(--green); }
.order-item-info span { font-size: 12px; color: var(--muted); }
.order-item-price { font-weight: 700; font-size: 14px; color: var(--olive); white-space: nowrap; }
.order-success {
  background: var(--white); border-radius: var(--r-lg); padding: 60px 40px;
  text-align: center; box-shadow: var(--shadow-md); max-width: 520px; margin: 0 auto;
}
.order-success .success-icon { font-size: 60px; margin-bottom: 16px; }
.order-success h2 { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--green); margin-bottom: 8px; }
.order-success p { font-size: 14px; color: var(--muted); }

/* ── ABOUT PAGE ── */
.about-hero {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  padding: 96px 0 72px; position: relative; overflow: hidden;
}
.about-hero::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(200,160,48,.12);
}
.about-hero-content { position: relative; max-width: 600px; }
.about-hero h1 { color: var(--cream); }
.about-hero p  { color: rgba(250,247,240,.75); font-size: 16px; margin-top: 14px; }
.about-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-img-frame {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-radius: var(--r-lg); aspect-ratio: 1; display: flex;
  align-items: center; justify-content: center; font-size: 80px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.about-img-frame::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 180px; height: 180px; border-radius: 50%; background: rgba(200,160,48,.2);
}
.about-quote {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(30,58,30,.85); backdrop-filter: blur(4px);
  padding: 20px 24px;
}
.about-quote p { color: var(--cream); font-style: italic; font-size: 14px; line-height: 1.6; }
.about-quote cite { font-size: 12px; color: var(--gold); display: block; margin-top: 6px; font-style: normal; font-weight: 700; }
.founder-signature {
  font-family: 'Playfair Display', serif; font-size: 22px; font-style: italic;
  color: var(--gold); margin-bottom: 16px;
}
.values-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.values-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text); line-height: 1.6;
}
.values-list li span::before { content: '✓'; color: var(--gold); font-weight: 900; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.mv-card {
  background: var(--white); border-radius: var(--r-lg); padding: 32px;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--gold);
}
.mv-card-icon { font-size: 36px; margin-bottom: 14px; }
.mv-card h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--green); margin-bottom: 10px; }
.mv-card p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.farmer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.farmer-card {
  background: var(--white); border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.farmer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.farmer-icon { font-size: 36px; margin-bottom: 14px; }
.farmer-card h3 { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--green); margin-bottom: 8px; }
.farmer-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── CONTACT PAGE ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-detail-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; margin-bottom: 28px; }
.contact-detail { display: flex; align-items: flex-start; gap: 16px; }
.contact-detail-icon {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--parch); border: 2px solid var(--parch-dark);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-detail-text h4 { font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.contact-detail-text p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.contact-detail-text a { color: var(--olive); }
.distributor-box {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-radius: var(--r-lg); padding: 28px;
}
.distributor-box h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--cream); margin-bottom: 8px; }
.distributor-box p  { font-size: 13px; color: rgba(250,247,240,.75); line-height: 1.7; margin-bottom: 16px; }
.contact-form-card {
  background: var(--white); border-radius: var(--r-lg); padding: 36px;
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 24px; }
.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success .check-icon { font-size: 48px; margin-bottom: 12px; }
.form-success h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--green); margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 14px; }

/* ── CUSTOMER PROFILE PAGE (Who We Serve) ── */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.profile-card {
  background: var(--white); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.profile-card-header {
  display: flex; align-items: center; gap: 16px; padding: 24px;
  background: var(--parch); border-bottom: 1px solid var(--parch-dark);
}
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.profile-card-header h3 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--green); margin-bottom: 2px; }
.profile-card-header p  { font-size: 12px; color: var(--muted); }
.profile-card-body { padding: 20px 24px; }
.profile-traits { display: flex; flex-direction: column; gap: 0; }
.values-match { }
.values-match-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-size: 13px; color: var(--text); border-bottom: 1px solid var(--parch-dark);
}
.values-match-item:last-child { border-bottom: none; }
.values-match-item::before { content: '✓'; color: var(--gold); font-weight: 900; flex-shrink: 0; }
.stats-bar {
  background: var(--green); padding: 48px 0;
}
.stats-bar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell {
  text-align: center; padding: 20px; border-right: 1px solid rgba(250,247,240,.12);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .num {
  font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 800; color: var(--gold);
}
.stat-cell .lbl {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(250,247,240,.65); margin-top: 4px;
}

/* ── FOOTER ── */
.site-footer { background: var(--green); color: rgba(250,247,240,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand {}
.footer-logo-wrap { margin-bottom: 14px; }
.footer-logo-wrap img { height: 44px; width: auto; }
.footer-logo-text {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800;
  color: var(--cream); margin-bottom: 14px;
}
.footer-logo-text span { color: var(--gold); }
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 260px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(250,247,240,.2); background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--green); }
.footer-col h4 {
  font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700;
  color: var(--cream); margin-bottom: 16px; letter-spacing: .02em;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(250,247,240,.65); transition: color .2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(250,247,240,.12); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: rgba(250,247,240,.5); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(250,247,240,.5); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.55); }

/* ── PRODUCT MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--r-lg);
  max-width: 860px; width: 100%; max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg); position: relative;
}
.modal-gallery {
  background: var(--parch); border-radius: var(--r-lg) 0 0 var(--r-lg);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 32px; gap: 16px; min-height: 360px;
}
.modal-img {
  width: 100%; aspect-ratio: 1; border-radius: var(--r);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 80px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-nav { display: flex; align-items: center; gap: 12px; }
.modal-nav-btn {
  width: 32px; height: 32px; border-radius: 50%; background: var(--white);
  border: 1.5px solid var(--parch-dark); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; color: var(--green);
  transition: background .2s;
}
.modal-nav-btn:hover { background: var(--parch-dark); }
.modal-nav-dots { display: flex; gap: 6px; }
.modal-nav-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--parch-dark); transition: background .2s;
}
.modal-nav-dots span.active { background: var(--green); }
.modal-content { padding: 32px; overflow-y: auto; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--muted); transition: color .2s; line-height: 1;
}
.modal-close:hover { color: var(--green); }
.product-category-tag {
  font-size: 10px; font-weight: 900; letter-spacing: .12em;
  text-transform: uppercase; color: var(--olive); margin-bottom: 8px;
}
.modal-content h2 {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  color: var(--green); margin-bottom: 10px;
}
.modal-desc { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.modal-sourcing {
  background: var(--parch); border-radius: var(--r); padding: 14px;
  margin-bottom: 16px;
}
.modal-sourcing h4 { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.modal-sourcing p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.modal-nutrition { margin-bottom: 20px; }
.modal-nutrition h4 { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.nutrition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nutrition-grid > div {
  background: var(--parch); border-radius: var(--r); padding: 10px;
  text-align: center; border: 1px solid var(--parch-dark);
}
.nutrition-grid .val { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--green); }
.nutrition-grid .label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.modal-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sku-select {
  padding: 10px 12px; border-radius: var(--r); border: 1.5px solid var(--parch-dark);
  font-family: 'Lato', sans-serif; font-size: 13px; color: var(--text); background: var(--white);
  flex: 1; outline: none; cursor: pointer;
}
.sku-select:focus { border-color: var(--olive); }
.modal-price {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  color: var(--olive); white-space: nowrap;
}
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ── PRODUCT CARDS (homepage featured) ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.product-card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-img {
  height: 196px; display: flex; align-items: center; justify-content: center;
  background: var(--parch); position: relative; overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--green);
  font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.product-card-badge.badge-new { background: var(--green); color: var(--cream); }
.product-card-body { padding: 18px; }
.product-card-cat { font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: 6px; }
.product-card-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.product-card-desc { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-price { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--olive); }
.product-card-price small { font-size: 12px; color: var(--muted); font-family: 'Lato', sans-serif; }
.add-to-cart-btn {
  background: var(--green); color: var(--cream); border: none;
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
}
.add-to-cart-btn:hover { background: var(--olive); transform: scale(1.08); }
.out-of-stock-overlay {
  position: absolute; inset: 0; background: rgba(250,247,240,.85);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

/* ── HOMEPAGE SECTIONS ── */
/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 55%, #1a3320 100%);
  min-height: 90vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 80px 0;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 560px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(200,160,48,.15); border: 1px solid rgba(200,160,48,.3);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 24px;
  font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.hero-content h1 { color: var(--cream); margin-bottom: 18px; }
.hero-content h1 em { color: var(--gold); font-style: italic; }
.hero-content p { color: rgba(250,247,240,.75); font-size: 16px; line-height: 1.75; margin-bottom: 32px; }
.hero-btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; }
.hero-stat-num { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 800; color: var(--gold); }
.hero-stat-label { font-size: 12px; color: rgba(250,247,240,.6); letter-spacing: .04em; }
/* Marquee */
.marquee-strip { background: var(--gold); padding: 10px 0; overflow: hidden; }
.marquee-track { display: flex; animation: marquee 20s linear infinite; white-space: nowrap; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 32px;
  font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--green);
}
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(30,58,30,.4); }
/* Promise pillars */
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.pillar-card {
  background: var(--white); border-radius: var(--r-lg); padding: 32px 22px;
  text-align: center; box-shadow: var(--shadow-sm);
  border-bottom: 3px solid transparent; transition: border-color .25s, transform .25s;
}
.pillar-card:hover { border-bottom-color: var(--gold); transform: translateY(-4px); }
.pillar-icon { font-size: 38px; margin-bottom: 14px; }
.pillar-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.pillar-text { font-size: 13px; color: var(--muted); line-height: 1.7; }
/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.cat-card {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  height: 196px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.cat-bg {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 60px;
}
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.cat-name { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--cream); }
.cat-count { font-size: 12px; color: rgba(250,247,240,.7); }
/* Brand story */
.brand-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-visual {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-radius: var(--r-lg); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; font-size: 80px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.story-visual::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 180px; height: 180px; border-radius: 50%; background: rgba(200,160,48,.2);
}
.trust-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--green); }
.trust-icon { font-size: 18px; }
/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; left: -80px; top: -80px;
  width: 360px; height: 360px; border-radius: 50%; background: rgba(200,160,48,.1);
}
.cta-banner h2 { color: var(--cream); margin-bottom: 14px; position: relative; }
.cta-banner p  { color: rgba(250,247,240,.75); font-size: 16px; margin-bottom: 28px; position: relative; }
.cta-banner p strong { color: var(--gold); }
.cta-btn-row { display: flex; gap: 14px; justify-content: center; position: relative; flex-wrap: wrap; }

/* ── POLICY PAGES ── */
.policy-wrap { max-width: 820px; margin: 0 auto; padding: 64px 24px; }
.policy-wrap h1 { font-family: 'Playfair Display', serif; color: var(--green); margin-bottom: 6px; }
.policy-date { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.policy-body { color: #444; line-height: 1.85; }
.policy-body h2 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--green); margin: 2rem 0 .75rem; }
.policy-body p  { margin-bottom: .9rem; }
.policy-body ul { margin: .75rem 0 .75rem 1.5rem; list-style: disc; }
.policy-body ul li { margin-bottom: 6px; }
.policy-body a { color: var(--olive); text-decoration: underline; }
.policy-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .75rem 0 1rem; }
.policy-table thead tr { background: var(--parch); }
.policy-table th { padding: .75rem; text-align: left; border: 1px solid var(--parch-dark); font-weight: 700; }
.policy-table td { padding: .65rem .75rem; border: 1px solid var(--parch-dark); }
.policy-table tbody tr:nth-child(even) { background: rgba(250,247,240,.5); }

/* ── PROFILE PAGE (cancel modal) ── */
#cancel-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999;
  align-items: center; justify-content: center;
}
#cancel-modal > div {
  background: var(--white); border-radius: var(--r-lg); padding: 32px;
  max-width: 460px; width: 90%; margin: auto;
  box-shadow: var(--shadow-lg);
}
#cancel-modal h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--green); margin-bottom: 8px; }
#cancel-modal p  { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
#cancel-reason {
  width: 100%; padding: 12px; border: 1.5px solid var(--parch-dark); border-radius: var(--r);
  font-family: 'Lato', sans-serif; font-size: 14px; resize: vertical; outline: none;
}
#cancel-reason:focus { border-color: var(--olive); }
#profile-msg {
  border-radius: var(--r); padding: 12px 16px; font-size: 13px; font-weight: 700;
}

/* ── ANIMATIONS / UTILITIES ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger .reveal:nth-child(2) { transition-delay: .1s; }
.stagger .reveal:nth-child(3) { transition-delay: .2s; }
.stagger .reveal:nth-child(4) { transition-delay: .3s; }
.stagger .reveal:nth-child(5) { transition-delay: .4s; }
.stagger .reveal:nth-child(6) { transition-delay: .5s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .farmer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .cart-page-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-story-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .brand-story-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { grid-template-columns: 1fr; }
  .modal-gallery { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 36px 24px; }
}
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .farmer-grid { grid-template-columns: 1fr; }
  .hero-btn-row .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; }
  .pillars-grid { grid-template-columns: 1fr; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   SECTION II — UPGRADE STYLES (March 2026)
   New homepage, trust badges, carousel, discounts, rewards,
   mobile cart bar, coming soon, animations, OTP reset
   ================================================================ */

/* ── Missing aliases for new homepage index.php ──────────────── */

/* .hero = same as .hero-section */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 55%, #1a3320 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-headline {
  color: var(--cream);
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-sub {
  color: rgba(250,247,240,0.78);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Section titles */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Button size variants */
.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
  border-radius: var(--r-lg);
}
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--r);
  color: var(--cream);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  background: transparent;
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Product card short-class aliases (new index.php uses these) */
.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--parch-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parch);
  position: relative;
  overflow: hidden;
  font-size: 48px;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-cat {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 4px;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--parch-dark);
}
.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--olive);
}
.product-sku-label {
  font-size: 12px;
  color: var(--muted);
  margin-left: 2px;
}
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-green  { background: var(--green); color: var(--cream); }
.badge-gold   { background: var(--gold);  color: var(--green); }
.badge-red    { background: var(--red);   color: #fff; }


/* ── BRAND TRUST BADGES ───────────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e8f5e0;
  color: #2c4a1e;
  border: 1px solid #b8dca0;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.trust-pill::before { content: '✓'; font-weight: 900; }
.trust-pill-sm { font-size: 11px; padding: 3px 10px; }
.trust-pill-gold {
  background: #fef8e7;
  color: #7a5600;
  border-color: #f0d080;
}

/* ── TRUST BAR (top of every page) ───────────────────────────── */
.header-trust-bar {
  background: #2c4a1e;
  color: #a8c47c;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 6px 0;
  letter-spacing: 0.5px;
}
.header-trust-bar span { margin: 0 12px; }
.header-trust-bar span::before { content: '🌿 '; }

/* ── HERO TRUST BADGES ────────────────────────────────────────── */
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

/* ── AUTH PAGES ───────────────────────────────────────────────── */
.auth-brand-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}
.auth-error { display: flex; align-items: center; gap: 8px; }
.auth-error-icon { font-size: 16px; }
.password-wrap { position: relative; }
.toggle-pwd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #888;
  padding: 4px;
}
.otp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.otp-step {
  font-size: 12px;
  font-weight: 600;
  color: #bbb;
  padding: 5px 12px;
  border-radius: 12px;
  border: 1.5px solid #e0dcd0;
}
.otp-step.active {
  background: #2c4a1e;
  color: #fff;
  border-color: #2c4a1e;
}
.otp-step-arrow { color: #ccc; font-size: 14px; }

/* ── CAROUSEL ─────────────────────────────────────────────────── */
.carousel-section { overflow: hidden; }
.carousel-container { position: relative; }
.carousel-track-wrap { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.carousel-track .product-card {
  flex: 0 0 calc(25% - 18px);
  min-width: 220px;
}
@media (max-width: 900px) {
  .carousel-track .product-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 560px) {
  .carousel-track .product-card { flex: 0 0 85%; }
}
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2c4a1e;
  color: #2c4a1e;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.carousel-btn:hover { background: #2c4a1e; color: #fff; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0ccbf;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.carousel-dot.active { background: #2c4a1e; width: 24px; border-radius: 4px; }

/* ── CATEGORY CARDS (new grid) ────────────────────────────────── */
.category-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .category-grid-new { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .category-grid-new { grid-template-columns: 1fr 1fr; gap: 10px; }
}
.cat-card-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  background: #fff;
  border: 1.5px solid #e8e4dc;
  border-radius: 14px;
  text-decoration: none;
  color: #2c4a1e;
  transition: all 0.25s;
  text-align: center;
}
.cat-card-new:hover {
  border-color: #4a7c24;
  background: #f0f7e8;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44,74,30,0.1);
}
.cat-card-new .cat-icon { font-size: 36px; line-height: 1; }
.cat-card-new .cat-name { font-size: 15px; font-weight: 700; }
.cat-card-new .cat-count { font-size: 12px; color: #888; }
.cat-card-new .cat-disc-badge {
  font-size: 11px;
  background: #e8f5e0;
  color: #2c4a1e;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

/* ── COMING SOON ──────────────────────────────────────────────── */
.coming-soon-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #1e3a14 0%, #2c4a1e 100%);
  position: relative;
  overflow: hidden;
}
.coming-soon-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.coming-soon-card {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}
.coming-soon-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-4px);
}
.coming-soon-icon { font-size: 42px; margin-bottom: 12px; }
.coming-soon-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.coming-soon-desc { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.coming-soon-badge {
  display: inline-block;
  margin-top: 12px;
  background: rgba(168,196,124,0.2);
  color: #a8c47c;
  border: 1px solid #a8c47c;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── PRODUCT DISCOUNT BADGE ───────────────────────────────────── */
.product-disc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  z-index: 2;
}
.product-price-original {
  text-decoration: line-through;
  color: #aaa;
  font-size: 13px;
  margin-right: 4px;
}
.product-price-discounted { color: #e53935; font-weight: 700; }

/* ── CHECKOUT ─────────────────────────────────────────────────── */
.checkout-wrap { padding: 40px 0; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-right { order: -1; }
}
.checkout-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c4a1e;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8e4dc;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.order-summary-card {
  background: #fff;
  border: 1.5px solid #e8e4dc;
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 80px;
}
.co-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0ede8;
  gap: 12px;
}
.co-item:last-child { border-bottom: none; }
.co-item-name { font-size: 14px; color: #333; flex: 1; line-height: 1.5; }
.co-item-price { font-size: 14px; font-weight: 600; color: #2c4a1e; white-space: nowrap; }
.co-disc-badge {
  display: inline-block;
  font-size: 10px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  font-weight: 700;
}
.order-summary-totals { border-top: 1.5px solid #e8e4dc; margin-top: 12px; padding-top: 12px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  color: #444;
}
.summary-total {
  font-size: 18px;
  font-weight: 800;
  color: #2c4a1e;
  border-top: 2px solid #e8e4dc;
  margin-top: 8px;
  padding-top: 12px;
}
.reward-box {
  background: #fffbea;
  border: 1.5px solid #f0c040;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.reward-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}
.reward-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}
.reward-toggle input { accent-color: #e07b00; width: 16px; height: 16px; cursor: pointer; }
.payment-method-box { background: #f8f6f0; border-radius: 12px; padding: 20px; margin-top: 16px; }
.payment-method-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid #4a7c24;
  border-radius: 10px;
  background: #f0f7e8;
  font-size: 14px;
  font-weight: 600;
}
.payment-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #4a7c24;
  background: #4a7c24;
  box-shadow: inset 0 0 0 3px #fff;
}
.checkout-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8e4dc;
  font-size: 12px;
  color: #888;
}

/* ── STICKY MOBILE CART BAR ───────────────────────────────────── */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #2c4a1e;
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
@media (max-width: 640px) {
  .mobile-cart-bar { display: flex; }
  body { padding-bottom: 70px; }
}
.mobile-cart-info { display: flex; align-items: center; gap: 10px; color: #fff; }
.mobile-cart-count {
  background: #a8c47c;
  color: #1a2e0e;
  font-weight: 800;
  font-size: 13px;
  padding: 2px 9px;
  border-radius: 10px;
}
.mobile-cart-total { font-size: 16px; font-weight: 700; color: #fff; }
.mobile-cart-btn {
  background: #a8c47c;
  color: #1a2e0e;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

/* ── ADMIN PANEL ──────────────────────────────────────────────── */
.btn-admin-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2c4a1e;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-admin-primary:hover { background: #1e3414; }
.admin-msg { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.msg-success { background: #e8f5e0; color: #2c4a1e; border-left: 4px solid #4a7c24; }
.msg-error   { background: #fee2e2; color: #7f1d1d; border-left: 4px solid #dc2626; }
.invoice-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8f6f0;
  color: #2c4a1e;
  border: 1.5px solid #2c4a1e;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.invoice-print-btn:hover { background: #2c4a1e; color: #fff; }

/* ── MOBILE RESPONSIVE FIXES ──────────────────────────────────── */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .main-nav { display: none; }
  .logo-text { font-size: 18px; }
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .cart-layout { flex-direction: column !important; }
  .cart-summary { width: 100% !important; }
  .cart-item { flex-wrap: wrap !important; }
  h1.section-title { font-size: 22px !important; }
  h2.section-title { font-size: 20px !important; }
  .hero { min-height: 70vh; padding: 60px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
}
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr 1fr !important; }
  .product-card { padding: 12px !important; }
}

/* ── LAZY LOADING ─────────────────────────────────────────────── */
img[data-src] { opacity: 0; transition: opacity 0.3s; }
img.loaded { opacity: 1; }

/* ── SCROLL ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.10s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.15s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.20s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.25s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.30s; }

.btn-pulse { animation: pulse-ring 2s ease infinite; }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(74, 124, 36, 0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(74, 124, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 124, 36, 0); }
}

/* ================================================================
   THE PURE HARVEST GROUP — Style Upgrades v2.0
   ================================================================ */

/* ── LOGO: Visible on dark green header ─────────────────────── */
#site-header .logo-wrap img,
#site-header .phg-logo img,
.site-logo-img,
.phg-logo-img {
  height: 54px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: none !important;
  -webkit-filter: none !important;
  display: block !important;
}
.logo-wrap, .phg-logo {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 6px 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-text, .phg-logo-name {
  font-family: "Playfair Display", serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  line-height: 1.2;
}
.phg-logo-name strong { display: block; color: var(--gold); font-size: 15px; }
.phg-logo-tagline {
  font-size: 9px;
  font-weight: 700;
  color: rgba(168,196,124,0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

/* Footer logo: no filter (light bg) */
.footer-logo-wrap img {
  height: 52px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  filter: none !important;
  -webkit-filter: none !important;
}
.footer-logo-text {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  color: var(--cream);
  font-size: 15px;
}

/* ── AUTH BUTTON ─────────────────────────────────────────────── */
#phg-auth-btn, .phg-auth-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: var(--gold) !important;
  color: var(--green) !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  transition: background 0.2s !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
#phg-auth-btn:hover, .phg-auth-btn:hover {
  background: var(--gold-light) !important;
}

/* ── MOBILE NAV ──────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: linear-gradient(160deg, #1a3018 0%, #2c4a1e 100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav:not([hidden]) { transform: translateX(0); }
.mobile-nav[hidden] { display: flex !important; transform: translateX(-100%); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.15);
}
.mobile-nav-close {
  background: none; border: none;
  color: rgba(255,255,255,0.7); font-size: 28px;
  cursor: pointer; padding: 4px 8px;
}
.mobile-nav a {
  display: flex; align-items: center; gap: 12px;
  color: rgba(250,247,240,0.85);
  font-size: 16px; font-weight: 700;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.phg-mobile-cart-btn {
  margin: 16px 28px 28px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold) !important;
  color: var(--green) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  padding: 14px 24px !important;
  border-radius: 12px !important;
  border-bottom: none !important;
}
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ── STICKY MOBILE CART BAR ──────────────────────────────────── */
.mobile-cart-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 490;
  background: linear-gradient(90deg, #1e3a1e, #2d5a2d);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
@media (max-width: 640px) {
  .mobile-cart-bar { display: flex; }
  body { padding-bottom: 70px; }
}
.mobile-cart-count { background: var(--gold); color: var(--green); font-weight: 900; font-size: 13px; padding: 2px 9px; border-radius: 10px; }
.mobile-cart-items-label { font-size: 12px; color: rgba(255,255,255,0.6); }
.mobile-cart-total { font-size: 17px; font-weight: 800; color: #fff; }
.mobile-cart-btn {
  background: var(--gold); color: var(--green);
  border: none; padding: 10px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 900; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}

/* ── TRUST PILLS ─────────────────────────────────────────────── */
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: #e8f5e0; color: #2c4a1e;
  border: 1px solid #b8dca0; border-radius: 20px;
  padding: 5px 14px; font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.trust-pill::before { content: "✓"; font-weight: 900; }
.trust-pill-sm { font-size: 11px; padding: 3px 10px; }
.hero-trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.hero-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; color: #fff;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero { 
  min-height: 88vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 55%, #1a3320 100%) !important;
  position: relative; overflow: hidden; padding: 80px 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-headline { color: var(--cream) !important; font-size: clamp(30px,4.5vw,54px) !important; font-weight: 800 !important; line-height: 1.1 !important; margin-bottom: 18px !important; }
.hero-sub { color: rgba(250,247,240,0.80) !important; font-size: 17px !important; line-height: 1.75 !important; margin-bottom: 32px !important; max-width: 520px !important; }
.hero-actions { display: flex !important; gap: 14px !important; flex-wrap: wrap !important; }
.btn-outline-light { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 2px solid rgba(255,255,255,0.5); border-radius: var(--r); color: var(--cream); font-weight: 700; font-size: 14px; text-decoration: none; transition: all 0.2s; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-lg { padding: 15px 32px !important; font-size: 16px !important; border-radius: var(--r-lg) !important; }
.btn-pulse { animation: pulse-ring 2s ease infinite; }
@keyframes pulse-ring { 0%{box-shadow:0 0 0 0 rgba(200,160,48,0.4)} 70%{box-shadow:0 0 0 10px rgba(200,160,48,0)} 100%{box-shadow:0 0 0 0 rgba(200,160,48,0)} }

/* ── SECTION TITLES ──────────────────────────────────────────── */
.section-title { font-family:"Playfair Display",serif; font-size:clamp(22px,3vw,34px); font-weight:800; color:var(--green); margin-bottom:8px; }
.section-subtitle { font-size:15px; color:var(--muted); margin-bottom:36px; line-height:1.6; }

/* ── PRODUCT CARDS ───────────────────────────────────────────── */
.product-card { transition: transform 0.25s ease, box-shadow 0.25s ease !important; }
.product-card:hover { transform: translateY(-6px) !important; box-shadow: 0 16px 40px rgba(30,58,30,0.15) !important; }
.product-img { height:180px; display:flex; align-items:center; justify-content:center; background:var(--parch); position:relative; overflow:hidden; font-size:48px; }
.product-img img { width:100%; height:100%; object-fit:cover; }
.product-info { padding:16px; flex:1; display:flex; flex-direction:column; }
.product-cat { font-size:10px; font-weight:900; letter-spacing:0.1em; text-transform:uppercase; color:var(--olive); margin-bottom:4px; }
.product-name { font-family:"Playfair Display",serif; font-size:16px; font-weight:700; color:var(--green); margin-bottom:4px; line-height:1.3; }
.product-desc { font-size:12px; color:var(--muted); line-height:1.6; margin-bottom:10px; flex:1; }
.product-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; padding-top:12px; border-top:1px solid var(--parch-dark); }
.product-sku-label { font-size:12px; color:var(--muted); }
.product-disc-badge { position:absolute; top:10px; left:10px; background:#e53935; color:#fff; font-size:11px; font-weight:800; padding:3px 8px; border-radius:8px; z-index:2; }
.product-price-original { text-decoration:line-through; color:#aaa; font-size:13px; margin-right:4px; }
.product-price-discounted { color:#e53935; font-weight:700; }

/* ── CATEGORY GRID ───────────────────────────────────────────── */
.category-grid-new { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media(max-width:768px){.category-grid-new{grid-template-columns:repeat(2,1fr)}}
@media(max-width:400px){.category-grid-new{grid-template-columns:1fr 1fr;gap:10px}}
.cat-card-new { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:20px 12px; background:#fff; border:1.5px solid var(--parch-dark); border-radius:14px; text-decoration:none; color:var(--green); transition:all 0.25s; text-align:center; }
.cat-card-new:hover { border-color:var(--olive); background:#f0f7e8; transform:translateY(-4px); box-shadow:0 8px 24px rgba(30,58,30,0.10); }
.cat-card-new .cat-icon { font-size:36px; line-height:1; }
.cat-card-new .cat-name { font-size:15px; font-weight:700; }
.cat-card-new .cat-count { font-size:12px; color:#888; }
.cat-card-new .cat-disc-badge { font-size:11px; background:#e8f5e0; color:#2c4a1e; padding:2px 8px; border-radius:10px; font-weight:700; }

/* ── CAROUSEL ────────────────────────────────────────────────── */
.carousel-section{overflow:hidden}.carousel-container{position:relative}.carousel-track-wrap{overflow:hidden}
.carousel-track{display:flex;gap:24px;transition:transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);will-change:transform}
.carousel-track .product-card{flex:0 0 calc(25% - 18px);min-width:220px}
@media(max-width:900px){.carousel-track .product-card{flex:0 0 calc(50% - 12px)}}
@media(max-width:560px){.carousel-track .product-card{flex:0 0 85%}}
.carousel-nav{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:24px}
.carousel-btn{width:44px;height:44px;border-radius:50%;background:#fff;border:2px solid var(--green);color:var(--green);font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all 0.2s}
.carousel-btn:hover{background:var(--green);color:#fff}
.carousel-dots{display:flex;gap:8px}
.carousel-dot{width:8px;height:8px;border-radius:50%;background:#d0ccbf;cursor:pointer;transition:all 0.2s;border:none}
.carousel-dot.active{background:var(--green);width:24px;border-radius:4px}

/* ── COMING SOON ─────────────────────────────────────────────── */
.coming-soon-section{padding:64px 0;background:linear-gradient(135deg,#1e3a14 0%,#2c4a1e 100%);position:relative;overflow:hidden}
.coming-soon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;margin-top:32px}
.coming-soon-card{background:rgba(255,255,255,0.07);border:1.5px solid rgba(255,255,255,0.15);border-radius:14px;padding:24px 20px;text-align:center;backdrop-filter:blur(8px);transition:all 0.25s}
.coming-soon-card:hover{background:rgba(255,255,255,0.12);transform:translateY(-4px)}
.coming-soon-name{font-size:16px;font-weight:700;color:#fff;margin-bottom:6px}
.coming-soon-desc{font-size:13px;color:rgba(255,255,255,0.65);line-height:1.5}
.coming-soon-badge{display:inline-block;margin-top:12px;background:rgba(168,196,124,0.2);color:#a8c47c;border:1px solid #a8c47c;border-radius:12px;padding:4px 12px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px}

/* ── OTP STEPS ───────────────────────────────────────────────── */
.otp-steps{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:24px;flex-wrap:wrap}
.otp-step{font-size:12px;font-weight:600;color:#bbb;padding:5px 12px;border-radius:12px;border:1.5px solid #e0dcd0}
.otp-step.active{background:#2c4a1e;color:#fff;border-color:#2c4a1e}
.otp-step-arrow{color:#ccc;font-size:14px}
.password-wrap{position:relative}
.toggle-pwd{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;font-size:16px;color:#888;padding:4px}

/* ── CHECKOUT ────────────────────────────────────────────────── */
.checkout-wrap{padding:40px 0}
.checkout-grid{display:grid;grid-template-columns:1fr 380px;gap:32px;align-items:start}
@media(max-width:860px){.checkout-grid{grid-template-columns:1fr}.checkout-right{order:-1}}
.checkout-section-title{font-size:20px;font-weight:700;color:var(--green);margin-bottom:20px;padding-bottom:12px;border-bottom:2px solid var(--parch-dark)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:480px){.form-row{grid-template-columns:1fr}}
.order-summary-card{background:var(--white);border:1.5px solid var(--parch-dark);border-radius:16px;padding:24px;position:sticky;top:80px}
.co-item{display:flex;justify-content:space-between;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--parch);gap:12px}
.co-item:last-child{border-bottom:none}
.co-item-name{font-size:14px;color:#333;flex:1;line-height:1.5}
.co-item-price{font-size:14px;font-weight:600;color:var(--green);white-space:nowrap}
.order-summary-totals{border-top:1.5px solid var(--parch-dark);margin-top:12px;padding-top:12px}
.summary-row{display:flex;justify-content:space-between;font-size:14px;padding:5px 0;color:#444}
.summary-total{font-size:18px;font-weight:800;color:var(--green);border-top:2px solid var(--parch-dark);margin-top:8px;padding-top:12px}
.checkout-trust{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid var(--parch-dark);font-size:12px;color:#888}
.payment-method-box{background:var(--parch);border-radius:12px;padding:20px;margin-top:16px}
.payment-option{display:flex;align-items:center;gap:12px;padding:12px;border:2px solid var(--olive);border-radius:10px;background:var(--parch);font-size:14px;font-weight:600}
.payment-radio{width:18px;height:18px;border-radius:50%;border:2px solid var(--olive);background:var(--olive);box-shadow:inset 0 0 0 3px #fff}
.reward-box{background:#fffbea;border:1.5px solid #f0c040;border-radius:12px;padding:16px;margin:16px 0}
.reward-box-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px;font-size:14px}
.reward-toggle{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px;color:#333}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
.reveal{opacity:0;transform:translateY(20px);transition:opacity 0.5s ease,transform 0.5s ease}
.reveal.visible{opacity:1;transform:translateY(0)}
.reveal-stagger>*{opacity:0;transform:translateY(16px);transition:opacity 0.4s ease,transform 0.4s ease}
.reveal-stagger.visible>*:nth-child(1){opacity:1;transform:none;transition-delay:0.05s}
.reveal-stagger.visible>*:nth-child(2){opacity:1;transform:none;transition-delay:0.10s}
.reveal-stagger.visible>*:nth-child(3){opacity:1;transform:none;transition-delay:0.15s}
.reveal-stagger.visible>*:nth-child(4){opacity:1;transform:none;transition-delay:0.20s}
.reveal-stagger.visible>*:nth-child(5){opacity:1;transform:none;transition-delay:0.25s}
.reveal-stagger.visible>*:nth-child(6){opacity:1;transform:none;transition-delay:0.30s}
img[data-src]{opacity:0;transition:opacity 0.3s}
img.loaded{opacity:1}

/* ── ADMIN PANEL ─────────────────────────────────────────────── */
.admin-msg,.msg-ok,.msg-err{padding:14px 18px;border-radius:10px;margin-bottom:20px;font-size:14px;font-weight:600}
.msg-success,.alert-success,.msg-ok{background:#e8f5e0;color:#1b5e20;border-left:4px solid #4a7c24}
.msg-error,.alert-error,.msg-err{background:#fdecea;color:#7f1d1d;border-left:4px solid #dc2626}
.btn-admin-primary{display:inline-flex;align-items:center;gap:8px;background:var(--green);color:#fff;border:none;padding:12px 24px;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer;transition:background 0.2s}
.btn-admin-primary:hover{background:#152e15}

/* ── MOBILE RESPONSIVE ───────────────────────────────────────── */
@media(max-width:768px){
  .main-nav{display:none !important}
  .hamburger{display:flex !important}
  #site-header .phg-logo img, #site-header .logo-wrap img{height:40px !important}
  .header-inner{height:64px}
  .checkout-grid{grid-template-columns:1fr}
  .section-title{font-size:22px !important}
  .products-grid{grid-template-columns:repeat(2,1fr) !important;gap:12px !important}
  .cart-layout{flex-direction:column !important}
  .cart-summary{width:100% !important}
}
@media(max-width:480px){
  #site-header .phg-logo img, #site-header .logo-wrap img{height:36px !important}
  .hero,.hero-section{min-height:70vh;padding:60px 0}
  .hero-actions{flex-direction:column}
  .hero-actions .btn{width:100%;text-align:center}
  .phg-logo, .logo-wrap{padding:4px 8px}
  .phg-logo-tagline{display:none}
}

/* ================================================================
   FRONTEND CRITICAL FIXES (March 2026 Debug Pass)
   ================================================================ */

/* ── FONT LOADING FIX ────────────────────────────────────────── */
/* Ensure Playfair Display and Lato cascade correctly everywhere */
:root {
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;
}
body { font-family: var(--font-body) !important; }
h1, h2, h3, h4, .product-name, .section-title, .page-title-hero, .footer-brand h2,
.about-hero h1, .page-hero h1 {
  font-family: var(--font-heading) !important;
}
/* Category tags — fix font override issue */
.product-category-tag, .product-cat, .cat-name,
.category-tag, .filter-group h4, .badge, .nav-section-label {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* ── TOAST NOTIFICATION ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e3a1e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: #b71c1c; }
@media (max-width: 480px) {
  .toast { bottom: 80px; font-size: 12px; }
}

/* ── CART PAGE ───────────────────────────────────────────────── */
.cart-layout { display: flex; gap: 32px; align-items: flex-start; }
.cart-main   { flex: 1; min-width: 0; }
.cart-summary { width: 320px; flex-shrink: 0; }
.cart-summary-card {
  background: #fff;
  border: 1.5px solid var(--parch-dark);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 80px;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--parch-dark);
  background: var(--parch);
}
.cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--parch); vertical-align: middle; }
.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-table tbody tr:hover td { background: #faf8f3; }
.cart-product-info { display: flex; align-items: center; gap: 12px; }
.cart-product-thumb { font-size: 28px; flex-shrink: 0; }
.cart-product-details h4 { font-size: 14px; font-weight: 700; color: var(--green); font-family: var(--font-body); }
.cart-product-details span { font-size: 12px; color: var(--muted); }
.cart-item-price { font-weight: 700; font-size: 15px; color: var(--green); white-space: nowrap; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1.5px solid var(--parch-dark);
  background: var(--parch);
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  color: var(--green);
}
.qty-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.qty-val { font-weight: 700; font-size: 15px; min-width: 20px; text-align: center; }
.cart-remove-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: var(--red-light);
  color: var(--red);
  font-size: 14px; font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.cart-remove-btn:hover { background: var(--red); color: #fff; }
.cart-disc-badge {
  display: inline-block;
  background: #fde8e6;
  color: #c0392b;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
}
.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart .empty-icon { font-size: 52px; margin-bottom: 16px; }
.empty-cart h3 { font-size: 20px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.empty-cart p  { color: var(--muted); margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--parch); }
.summary-row.total {
  font-size: 18px; font-weight: 800; color: var(--green);
  border-top: 2px solid var(--parch-dark); border-bottom: none;
  margin-top: 4px; padding-top: 12px;
}
.free-shipping-note { font-size: 12px; text-align: right; padding: 4px 0 0; }
.btn-full { width: 100%; }
.btn-outline-gold {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--green); }

/* ── PRODUCT CARD — no accidental click on whole card ────────── */
/* The card itself is NOT a link or button — only its children are */
.product-card { cursor: default !important; }
.product-card .btn,
.product-card .btn-add-cart,
.product-card button,
.product-card .btn-view-product { cursor: pointer !important; }
/* Stop click propagation leak — handled in JS */
.product-controls select { cursor: pointer !important; }

/* Product actions buttons */
.btn-add-cart {
  flex: 1;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.btn-add-cart:hover { background: #152e15; }
/* btn-view-product removed (Details button removed from UI) */
.btn-view-product { display: none !important; }
.product-actions { display: flex; gap: 0; margin-top: 12px; }

/* ── MOBILE HEADER FIX ───────────────────────────────────────── */
#site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 500 !important;
  overflow: visible !important;
}
.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 72px !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;  /* prevent wrapping that causes overflow */
  overflow: visible !important;
}
/* Ensure header does not cause page overflow */
body { overflow-x: hidden; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-inner { height: 60px !important; gap: 8px !important; }
  .main-nav { display: none !important; }
  .hamburger, #phg-hamburger {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 6px !important;
  }
  .hamburger span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; display: block; }
  /* Cart btn: hide label on mobile */
  .cart-btn .cart-label { display: none !important; }
  .cart-layout { flex-direction: column !important; }
  .cart-summary { width: 100% !important; }
  .cart-summary-card { position: static !important; }
  .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; } /* hide unit price on mobile */
}
@media (max-width: 480px) {
  .phg-logo-tagline { display: none !important; }
  .phg-logo-name { font-size: 10px !important; }
  .phg-logo-name strong { font-size: 12px !important; }
}

/* ── MOBILE NAV OVERLAY ──────────────────────────────────────── */
.mobile-nav, #phg-mobile-nav {
  position: fixed !important;
  inset: 0 !important;
  z-index: 600 !important;
  background: linear-gradient(160deg, #1a3018 0%, #2c4a1e 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  transform: translateX(-100%) !important;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1) !important;
}
.mobile-nav.open,
#phg-mobile-nav:not([hidden]) { transform: translateX(0) !important; }
#phg-mobile-nav[hidden] { transform: translateX(-100%) !important; }
.mobile-nav-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 20px 28px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.mobile-nav a, .mobile-nav a:visited {
  display: block !important;
  padding: 16px 28px !important;
  color: rgba(250,247,240,0.85) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  transition: background 0.2s !important;
  text-decoration: none !important;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.06) !important; color: #fff !important; }
.mobile-nav-close {
  background: none !important; border: none !important;
  color: rgba(255,255,255,0.7) !important;
  font-size: 28px !important; cursor: pointer !important;
  padding: 4px 8px !important;
}
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ── PRODUCTS GRID MOBILE ────────────────────────────────────── */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .products-layout {
    grid-template-columns: 1fr !important;
  }
  .filter-sidebar { position: static !important; }
  .category-grid-new { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr !important; }
}
