/* ================================================================
   THE PURE HARVEST GROUP — header.css  v3.0
   Logo: original colors shown on white pill (no filter/invert)
   ================================================================ */
:root {
  --phg-green:      #1e3a1e;
  --phg-green-mid:  #2d5a2d;
  --phg-gold:       #c8a030;
  --phg-gold-light: #e8c060;
  --phg-cream:      #faf7f0;
  --phg-nav-height: 72px;
}

/* TRUST BAR */
.phg-trust-bar {
  background: linear-gradient(90deg,#1a3018,#2c4a1e,#1a3018);
  color: #a8c47c;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 0;
  letter-spacing: 0.4px;
  overflow: hidden;
  white-space: nowrap;
}
.phg-trust-bar-inner {
  display: inline-flex;
  align-items: center;
  animation: phg-marquee 28s linear infinite;
}
@keyframes phg-marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.phg-trust-bar span {
  padding: 0 22px;
  border-right: 1px solid rgba(168,196,124,0.22);
  white-space: nowrap;
}
.phg-trust-bar span:last-child { border-right: none; }
.phg-trust-bar:hover .phg-trust-bar-inner { animation-play-state: paused; }

/* MAIN HEADER */
#site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: linear-gradient(90deg,var(--phg-green) 0%,var(--phg-green-mid) 55%,#254a25 100%);
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
  transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,0.32); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--phg-nav-height);
  gap: 20px;
  overflow: visible;
}

/* ================================================================
   LOGO — WHITE PILL BACKDROP
   Logo has dark/gold/green trademark colors.
   White background makes all colors visible without any filter.
   ================================================================ */
.phg-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px 5px 8px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.20);
  transition: box-shadow 0.2s, opacity 0.2s;
}
.phg-logo:hover {
  box-shadow: 0 3px 14px rgba(0,0,0,0.28);
  opacity: 0.92;
}
/* Logo image — NO filter, original trademark colors */
.phg-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: none;
  -webkit-filter: none;
}
/* Text beside image */
.phg-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.phg-logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--phg-green);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.phg-logo-name strong {
  display: block;
  font-size: 13.5px;
  color: var(--phg-green);
}
.phg-logo-tagline {
  font-family: 'Lato', sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: var(--phg-gold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: 3px;
}
/* Show text alongside image (both visible together) */
/* Text-only fallback when image fails */
.phg-logo-img[style*="display:none"] + .phg-logo-text,
.phg-logo-img[style*="display: none"] + .phg-logo-text {
  color: var(--phg-green);
}

/* NAVIGATION */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(250,247,240,0.82);
  font-family: 'Lato', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--phg-gold);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--phg-gold); }

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cart-btn {
  display: flex; align-items: center; gap: 6px;
  color: rgba(250,247,240,0.88);
  font-family: 'Lato', sans-serif;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.cart-btn:hover { color: #fff; background: rgba(255,255,255,0.09); }
.cart-label { letter-spacing: 0.04em; text-transform: uppercase; font-size: 11.5px; }
.cart-count {
  background: var(--phg-gold);
  color: var(--phg-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 3px; line-height: 1;
}
.phg-auth-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--phg-gold);
  color: var(--phg-green);
  font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 900;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px; white-space: nowrap;
  transition: background 0.2s;
}
.phg-auth-btn:hover { background: var(--phg-gold-light); }
#phg-auth-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--phg-gold); color: var(--phg-green);
  font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 900;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none;
  padding: 8px 16px; border-radius: 8px;
  white-space: nowrap; transition: background 0.2s;
}
#phg-auth-btn:hover { background: var(--phg-gold-light); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 6px; transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.09); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(250,247,240,0.9);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}

/* MOBILE NAV */
.mobile-nav, #phg-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.open, #phg-mobile-nav:not([hidden]) { transform: translateX(0); }
#phg-mobile-nav[hidden] { display: flex !important; transform: translateX(-100%); }

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.12); flex-shrink: 0;
}
.mobile-nav-close {
  background: none; border: none;
  color: rgba(255,255,255,0.75); font-size: 28px;
  cursor: pointer; padding: 2px 8px; border-radius: 4px;
  transition: color 0.2s;
}
.mobile-nav-close:hover { color: #fff; }
.mobile-nav a, #phg-mobile-nav a {
  display: flex; align-items: center; gap: 12px;
  color: rgba(250,247,240,0.85);
  font-family: 'Lato', sans-serif;
  font-size: 16px; font-weight: 700;
  text-decoration: none;
  padding: 15px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, #phg-mobile-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.phg-mobile-cart-btn {
  margin: 14px 24px 24px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 10px !important;
  background: var(--phg-gold) !important; color: var(--phg-green) !important;
  font-size: 15px !important; font-weight: 900 !important;
  padding: 14px 24px !important; border-radius: 12px !important;
  border-bottom: none !important;
}
.phg-mobile-cart-btn:hover { background: var(--phg-gold-light) !important; }

/* Overlay */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 199;
  backdrop-filter: blur(2px); -webkit-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: 11px 20px; align-items: center; justify-content: space-between;
  gap: 12px; box-shadow: 0 -4px 20px rgba(0,0,0,0.20);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.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(--phg-gold); color: var(--phg-green);
  border: none; padding: 10px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 900; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background 0.2s;
}
.mobile-cart-btn:hover { background: var(--phg-gold-light); }

/* RESPONSIVE */
@media (max-width: 960px) { .main-nav a { font-size: 11.5px; padding: 7px 8px; } }
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .phg-logo { padding: 4px 8px 4px 6px; }
  .phg-logo-img { height: 36px; }
  .phg-logo-text { display: none !important; }
  .cart-label { display: none; }
  .cart-btn { padding: 7px 8px; }
}
@media (max-width: 480px) {
  .phg-logo-img { height: 32px; }
  .mobile-cart-bar { display: flex; }
  body { padding-bottom: 68px; }
}
