/* 🌾 Pride of Bihar — Ultra-Premium Vedic Luxury D2C
   Bespoke Palette: Sacred Emerald Patina (#0d3a2f), Imperial Kansa Gold (#c59b27), Warm Silk Ivory (#faf7f2)
   100% Unique Design System — Zero Reference Clones */

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

:root {
  /* Brand Core */
  --primary-dark: #061d18;
  --primary: #0d3a2f;
  --primary-light: #165646;
  
  /* Imperial Kansa Gold */
  --gold: #c59b27;
  --gold-light: #f6eedb;
  --gold-bright: #e3bd4d;
  --gold-dark: #987415;
  --gold-gradient: linear-gradient(135deg, #e3bd4d 0%, #c59b27 50%, #987415 100%);
  
  /* Earth & Canvas */
  --terracotta: #9a3412;
  --bg-canvas: #faf7f2;
  --bg-card: #ffffff;
  --bg-alt: #f3efe6;
  
  /* Typography & Lines */
  --text-main: #0f172a;
  --text-muted: #526071;
  --text-light: #8896a6;
  --border-gold: rgba(197, 155, 39, 0.28);
  --border-subtle: #e8e2d5;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(6, 29, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(6, 29, 24, 0.07);
  --shadow-luxe: 0 16px 40px rgba(6, 29, 24, 0.1);
  --shadow-gold: 0 6px 20px rgba(197, 155, 39, 0.28);
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ANNOUNCEMENT TICKER ─────────────────────────────────────────────────── */
.announcement-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  text-align: center;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid rgba(197, 155, 39, 0.3);
}

.badge-gold {
  background: var(--gold-gradient);
  color: #061d18;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 6px rgba(197, 155, 39, 0.3);
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 56px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.brand-logo-wrap:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-logo-text {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  background: none;
  border: 1px solid transparent;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--bg-alt);
  border-color: var(--border-subtle);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--gold);
  color: #061d18;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(13, 58, 47, 0.22);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 58, 47, 0.3);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #061d18;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 155, 39, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 11px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(13, 58, 47, 0.06);
  border-color: var(--primary-dark);
}

/* ── HERO SHOWCASE ───────────────────────────────────────────────────────── */
.hero-section {
  background: radial-gradient(circle at 85% 20%, rgba(197, 155, 39, 0.15), transparent 45%),
              linear-gradient(135deg, #061d18 0%, #0d3a2f 60%, #165646 100%);
  color: #fff;
  padding: 75px 0 65px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(197, 155, 39, 0.35);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-content h1 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 155, 39, 0.35);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-image-wrap {
  position: relative;
  text-align: center;
}

.hero-card-img {
  max-height: 440px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  animation: floatHero 4s ease-in-out infinite;
}

@keyframes floatHero {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── TRUST PILLARS BAR ───────────────────────────────────────────────────── */
.trust-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 30px 0;
  box-shadow: var(--shadow-sm);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-light);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── CATEGORY PILLS FILTER ───────────────────────────────────────────────── */
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 25px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(13, 58, 47, 0.18);
}

/* ── PRODUCT CARDS GRID ──────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin: 30px 0 50px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 3px 12px rgba(6, 29, 24, 0.03);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-luxe);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold-gradient);
  color: #061d18;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(197, 155, 39, 0.3);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.card-origin {
  color: #64748b;
  font-weight: 600;
}

.card-rating {
  background: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-weight-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.weight-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.card-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.current-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.original-price {
  font-size: 0.95rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.discount-tag {
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: auto;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.card-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(13, 58, 47, 0.25);
}

/* ── TRACEABILITY SECTION ─────────────────────────────────────────────────── */
.trace-section {
  background: radial-gradient(circle at 10% 20%, rgba(197, 155, 39, 0.12), transparent 40%),
              linear-gradient(135deg, #061d18 0%, #0d3a2f 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
  border-top: 1px solid rgba(197, 155, 39, 0.3);
  border-bottom: 1px solid rgba(197, 155, 39, 0.3);
}

.trace-box {
  max-width: 680px;
  margin: 0 auto;
}

.trace-input-group {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.trace-input {
  flex: 1;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  outline: none;
  text-transform: uppercase;
  font-weight: 600;
}

.trace-btn {
  background: var(--gold-gradient);
  color: #061d18;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  white-space: nowrap;
}

/* ── CART DRAWER ─────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 29, 24, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #ffffff;
  z-index: 2001;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-canvas);
}

.cart-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.close-cart-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #64748b;
}

.free-shipping-progress {
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-gold);
}

.cart-items-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  padding: 4px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.btn-checkout {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 58, 47, 0.25);
  transition: var(--transition);
}

.btn-checkout:hover {
  background: var(--primary-dark);
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: #041411;
  color: #e2e8f0;
  padding: 60px 0 30px;
  border-top: 2px solid rgba(197, 155, 39, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── FLOATING WHATSAPP CONCIERGE WIDGET ──────────────────────────────────── */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius-full);
  padding: 12px 20px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-wa-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.wa-live-pip {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: waPulse 1.8s infinite;
}

@keyframes waPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .hero-content p {
    margin: 0 auto 24px;
  }
  .hero-badges, .hero-actions {
    justify-content: center;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .main-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .trace-input-group {
    flex-direction: column;
  }
  .floating-wa-btn span.wa-label {
    display: none;
  }
  .floating-wa-btn {
    padding: 14px;
    border-radius: 50%;
  }
}
