/*
Theme Name: HariyaliBasket
Theme URI: https://hariyalibasket.com
Author: HariyaliBasket
Author URI: https://hariyalibasket.com
Description: Farm Fresh Vegetables & Fruits Delivery — HariyaliBasket
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: hariyalibasket
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
  color: #222;
}

/* ── MARQUEE TOP BAR ── */
.top-marquee {
  background: #f4a228;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.top-marquee span {
  display: inline-block;
  animation: marquee 22s linear infinite;
  font-size: 12px;
  font-weight: 700;
  color: #0f2d18;
  letter-spacing: 1px;
}
@keyframes marquee {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── HEADER / NAV ── */
.site-header {
  background: #1a4d2e;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-circle {
  width: 44px; height: 44px;
  background: #f4a228;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 3px 10px rgba(244,162,40,0.4);
}
.logo-text .brand { font-size: 20px; font-weight: 900; color: #fff; line-height: 1; }
.logo-text .brand span { color: #f4a228; }
.logo-text .tagline { font-size: 9px; color: #8ed46a; font-weight: 600; letter-spacing: 1.5px; }
.header-wa {
  background: #25d366;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 24px;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}

/* ── HERO SECTION ── */
.hero-section {
  background: linear-gradient(160deg, #1a4d2e 55%, #2d7a45);
  padding: 60px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '🌿';
  font-size: 200px;
  position: absolute;
  top: -40px; right: -40px;
  opacity: 0.05;
}
.hero-badge {
  display: inline-block;
  background: rgba(244,162,40,0.15);
  border: 1px solid rgba(244,162,40,0.4);
  color: #f4a228;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero-section h1 {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}
.hero-section h1 span { color: #f4a228; }
.hero-sub {
  font-size: 13px;
  color: #8ed46a;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 6px;
}
.hero-tagline em { color: #f4a228; font-style: normal; }
.hero-tagline2 {
  font-size: 13px;
  color: #8ed46a;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #f4a228;
  color: #0f2d18;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(244,162,40,0.4);
  transition: transform .2s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: all .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* ── INFO CARDS ── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 24px;
  background: #153d25;
}
.info-card {
  background: #1f5535;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid #2a6640;
}
.info-card .ic-icon { font-size: 28px; margin-bottom: 6px; }
.info-card .ic-label { font-size: 9px; color: #8ed46a; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.info-card .ic-val { font-size: 14px; color: #fff; font-weight: 700; margin-top: 3px; }

/* ── FREE OFFER BANNER ── */
.free-banner {
  background: linear-gradient(135deg, #f4a228, #e8920a);
  margin: 20px 24px;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(244,162,40,0.35);
}
.free-banner .fb-icon { font-size: 36px; }
.free-banner .fb-label { font-size: 10px; font-weight: 700; color: #7a3d00; letter-spacing: 1px; text-transform: uppercase; }
.free-banner .fb-val { font-size: 20px; font-weight: 900; color: #fff; }
.free-banner .fb-badge {
  background: #fff;
  color: #e8920a;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  margin-left: auto;
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
}

/* ── SECTION TITLE ── */
.section-title {
  text-align: center;
  padding: 40px 24px 20px;
}
.section-title h2 {
  font-size: 26px;
  font-weight: 900;
  color: #1a4d2e;
}
.section-title h2 span { color: #f4a228; }
.section-title p { font-size: 13px; color: #777; margin-top: 6px; }

/* ── HOW IT WORKS ── */
.how-section { background: #f9fff9; padding: 0 24px 40px; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.step-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid #e8f5e9;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.step-num {
  width: 36px; height: 36px;
  background: #1a4d2e;
  color: #f4a228;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.step-icon { font-size: 32px; margin-bottom: 10px; }
.step-card h3 { font-size: 14px; font-weight: 800; color: #1a4d2e; margin-bottom: 4px; }
.step-card p { font-size: 12px; color: #777; }

/* ── FEATURES ── */
.features-section { background: #1a4d2e; padding: 40px 24px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #245e38;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #2d7048;
}
.feat-item .fi { font-size: 22px; }
.feat-item .ft { font-size: 13px; color: #fff; font-weight: 600; }

/* ── REVIEWS ── */
.reviews-section { background: #f9fff9; padding: 40px 24px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.review-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #e8f5e9;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.review-stars { color: #f4a228; font-size: 16px; margin-bottom: 8px; }
.review-text { font-size: 13px; color: #444; line-height: 1.6; margin-bottom: 12px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 8px; }
.review-avatar {
  width: 36px; height: 36px;
  background: #1a4d2e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.review-name { font-size: 13px; font-weight: 700; color: #1a4d2e; }
.review-loc { font-size: 10px; color: #999; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, #1a4d2e, #2d7a45);
  padding: 60px 24px;
  text-align: center;
}
.cta-section h2 { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.cta-section h2 span { color: #f4a228; }
.cta-section p { font-size: 14px; color: #8ed46a; margin-bottom: 28px; }
.wa-btn-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: transform .2s;
}
.wa-btn-big:hover { transform: translateY(-3px); }

/* ── FOOTER ── */
.site-footer {
  background: #0a2010;
  padding: 30px 24px 20px;
  text-align: center;
}
.footer-logo { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.footer-logo span { color: #f4a228; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { font-size: 12px; color: #4a7a5a; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #8ed46a; }
.footer-copy { font-size: 11px; color: #2d5035; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero-section h1 { font-size: 28px; }
  .site-header { padding: 12px 16px; }
  .info-cards { padding: 16px; }
}

/* ════════════════════════════════════════════════════
   PATCH v4 — Dark Mode + Mobile Fonts + Smooth Scroll
   + Print Styles (No original code changed)
   ════════════════════════════════════════════════════ */

/* ── SMOOTH SCROLL ── */
html {
  scroll-behavior: smooth;
}

/* ── BETTER MOBILE FONTS ── */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .prod-name { font-size: 13px; }
  .prod-sp   { font-size: 16px; }
  .faq-q     { font-size: 14px; }
  .review-text { font-size: 14px; }
  .cd-unit span { font-size: 26px; }
  .hero-section h1 { font-size: 32px; }
}

/* ── DARK MODE ── */
@media (prefers-color-scheme: dark) {
  body { background: #0a1a0e; color: #e0e0e0; }

  /* Product cards */
  .prod-card {
    background: #1a3326 !important;
    border-color: #2a5035 !important;
    color: #e0e0e0;
  }
  .prod-name { color: #8ed46a !important; }
  .prod-qty  { color: #fff !important; }

  /* Search box */
  #search-box {
    color: #fff !important;
  }
  #search-box::placeholder { color: #666 !important; }

  /* Filter bar background */
  #filter-bar { background: transparent; }
  .filter-btn {
    background: #1a3326 !important;
    color: #8ed46a !important;
    border-color: #2a5035 !important;
  }
  .filter-btn.active {
    background: #1a4d2e !important;
    color: #fff !important;
    border-color: #25d366 !important;
  }

  /* Review cards */
  .review-card {
    background: #1a3326 !important;
    border-color: #2a5035 !important;
  }
  .review-text { color: #ccc !important; }
  .review-name { color: #8ed46a !important; }

  /* Step cards */
  .step-card {
    background: #1a3326 !important;
    border-color: #2a5035 !important;
  }
  .step-card h3 { color: #8ed46a !important; }
  .step-card p  { color: #aaa !important; }

  /* Section titles */
  .section-title h2 { color: #8ed46a !important; }

  /* Order modal */
  #order-modal > div > div {
    background: #1a3326 !important;
  }
  #order-modal h3 { color: #8ed46a !important; }

  /* Inputs in order modal */
  #o-name, #o-society, #o-block, #o-flat, #o-phone, #o-txn {
    background: #0f2d18 !important;
    color: #fff !important;
    border-color: #2a5035 !important;
  }
  #o-name::placeholder, #o-society::placeholder,
  #o-block::placeholder, #o-flat::placeholder,
  #o-phone::placeholder { color: #666 !important; }
}

/* ── PRINT STYLES (Price List Print) ── */
@media print {
  /* Hide all interactive elements */
  .site-header,
  .top-marquee,
  .hero-section,
  .info-cards,
  .countdown-bar,
  #cart-bar,
  #cart-drawer,
  #order-modal,
  #hb-delivery-bar,
  .hero-btns,
  .features-section,
  .reviews-section,
  .cta-section,
  #about, #blog, #wishlist, #contact, #faq, #privacy,
  .site-footer,
  #filter-bar,
  #search-box,
  .prod-ctrl,
  .disc-badge,
  .max-badge,
  .hb-size-chips,
  .how-section,
  footer { display: none !important; }

  /* Page setup */
  body {
    background: #fff !important;
    color: #000 !important;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
  }

  /* Print header */
  #products::before {
    content: '🌿 HariyaliBasket — Fresh Price List';
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: #1a4d2e;
    text-align: center;
    padding: 12px 0 4px;
    border-bottom: 2px solid #1a4d2e;
    margin-bottom: 12px;
  }

  /* Product grid print layout */
  #product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    padding: 0 !important;
  }

  .prod-card {
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 8px !important;
    break-inside: avoid;
  }

  .prod-name { color: #000 !important; font-size: 10px !important; font-weight: 700 !important; }
  .prod-sp   { color: #1a4d2e !important; font-size: 12px !important; font-weight: 900 !important; }
  .prod-mrp  { color: #999 !important; font-size: 9px !important; }
  .prod-uom  { color: #666 !important; font-size: 8px !important; }
  .prod-emoji { font-size: 20px !important; }

  /* Section title print */
  .section-title h2 { color: #1a4d2e !important; font-size: 16px !important; }
  .section-title p  { color: #666 !important; }

  /* No page break in middle of card */
  .prod-card { page-break-inside: avoid; }
}
