:root {
  --brand-green: #2f5233;
  --brand-green-dark: #1f3a22;
  --brand-gold: #d4a017;
  --brand-gold-dark: #b8860b;
  --brand-cream: #F7F0DF;
  --brand-brown: #6b4226;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #2b2b2b;
  background: #F7F0DF;
}

h1, h2, h3, .navbar-brand, .footer-brand {
  font-family: 'Fraunces', serif;
}

.bg-cream { background-color: var(--brand-cream); }
.text-brand-green { color: var(--brand-green); }

/* NAVBAR */
.rice-navbar {
  background: #F7F0DF;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: .75rem 0;
}
.rice-navbar .navbar-brand {
  color: var(--brand-green);
  font-weight: 700;
  font-size: 1.4rem;
}
.navbar-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
}
.rice-navbar .nav-link {
  color: #333;
  font-weight: 500;
  margin: 0 .3rem;
}
.rice-navbar .nav-link:hover { color: var(--brand-green); }

/* BUTTONS */
.btn-brand-green {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
  font-weight: 600;
}
.btn-brand-green:hover { background-color: var(--brand-green-dark); border-color: var(--brand-green-dark); color: #fff; }

.btn-brand-gold {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #201a06;
  font-weight: 700;
}
.btn-brand-gold:hover { background-color: var(--brand-gold-dark); border-color: var(--brand-gold-dark); color: #201a06; }

.btn-outline-brand {
  border: 2px solid var(--brand-green);
  color: var(--brand-green);
  font-weight: 600;
  background: transparent;
}
.btn-outline-brand:hover { background: var(--brand-green); color: #fff; }

/* HERO */
.hero-banner {
  min-height: 78vh;
  background: linear-gradient(rgba(20,40,25,.6), rgba(20,40,25,.7)),
              url('https://images.unsplash.com/photo-1586201375761-83865001e31c?q=80&w=1600') center/cover no-repeat;
}
.hero-badge {
  background: var(--brand-gold);
  color: #201a06;
  font-weight: 700;
  padding: .5rem 1rem;
  letter-spacing: .5px;
}

/* SECTION TITLES */
.section-title {
  font-weight: 700;
  color: var(--brand-green);
  position: relative;
}
.section-title-sm {
  font-weight: 700;
  color: var(--brand-green);
}
.page-header {
  background: linear-gradient(rgba(69, 70, 69, 0.75), rgba(80, 82, 81, 0.8)),
              url('../../../../media/banners/vecteezy_various-spices-and-herbs-in-bowls-on-dark-background_71190238.jpg') center/cover no-repeat;
  padding: 6rem 0;
  background-position: center;
  background-size: auto;
  background-repeat: no-repeat;

}

/* WHY CHOOSE US CARDS */
.col-lg-2-4 { flex: 0 0 auto; width: 20%; }
@media (max-width: 992px) { .col-lg-2-4 { width: 33.33%; } }
@media (max-width: 576px) { .col-lg-2-4 { width: 100%; } }

.why-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  transition: transform .2s ease;
}
.why-card:hover { transform: translateY(-4px); }
.why-card i { color: var(--brand-gold-dark); }

/* PRODUCT CARDS */
.product-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.product-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.product-detail-img {
  max-height: 480px;
  object-fit: cover;
}
.variety-badge {
  background: var(--brand-cream);
  color: var(--brand-brown);
  font-weight: 600;
}
.product-img-placeholder {
  background: var(--brand-cream);
  color: var(--brand-gold-dark);
  height: 230px;
}

/* SUGAR MANTRA PAGE */
.sugar-mantra-hero {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
   background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 4rem 0;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.container_sugar {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container_sugar p {
  flex: 1 1 50%;
  text-align: left;
}

.container_sugar img {
  width: 100vh;
  
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

@media (max-width: 768px) {
  .container_sugar {
    flex-direction: column;
    text-align: center;
  }
  .container_sugar p {
    text-align: center;
  }
}
.gi-callout {
  background: var(--brand-cream);
  border: 2px dashed var(--brand-gold-dark);
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.gi-callout i { color: var(--brand-gold-dark); }
.cert-badge {
  background: #fff;
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  font-weight: 600;
  font-size: .85rem;
  padding: .5rem 1rem;
}

/* ABOUT PAGE - single stacked column (not a grid/flex layout) */
.about-column {
  max-width: 760px;
  margin: 0 auto;
}
.about-block { margin-bottom: 2.5rem; }
.about-block:last-child { margin-bottom: 0; }
.about-block p { line-height: 1.7; }

/* CATEGORY FILTER PILLS */
.category-pills { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.category-pill {
  display: inline-block;
  padding: .5rem 1.1rem;
  border-radius: 30px;
  border: 2px solid var(--brand-green);
  color: var(--brand-green);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: all .2s ease;
}
.category-pill:hover { background: var(--brand-cream); color: var(--brand-green); }
.category-pill.active { background: var(--brand-green); color: #fff; }

/* FEATURE LIST */
.feature-list { list-style: none; padding-left: 0; }
.feature-list li { margin-bottom: .5rem; color: #444; }
.feature-list i { color: var(--brand-green); }

/* QUANTITY SELECTOR */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--brand-green);
  border-radius: 10px;
  overflow: hidden;
}
.qty-btn {
  background: var(--brand-green);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}
.qty-btn:hover { background: var(--brand-green-dark); }
.qty-input {
  width: 60px;
  height: 42px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.qty-input:focus { outline: none; }

/* TESTIMONIALS */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

/* CTA BAND */
.cta-band {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
}
.pagination .page-link {
  color: var(--brand-green);
  border-color: #ddd;
}
.pagination .page-item.active .page-link {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}
.pagination .page-link:hover { color: var(--brand-green-dark); }
/* CONTACT */
.contact-info-card {
  background: var(--brand-cream);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}
.contact-info-card h5 { color: var(--brand-green); font-weight: 700; }
.contact-info-card a { color: var(--brand-brown); text-decoration: none; font-weight: 600; }

/* FOOTER */
.rice-footer {
  background: var(--brand-green-dark);
  color: #e9e9e3;
}
.footer-brand { color: #fff; }
.text-light-50 { color: rgba(255,255,255,0.65); }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-links a:hover { color: var(--brand-gold); }
.rice-footer a i { color: #fff; }
.rice-footer a:hover i { color: var(--brand-gold); }

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 1050;
  animation: pulse 2.2s infinite;
}
.whatsapp-float:hover { background: #1ebc59; color: #fff; }

/* CART BADGE + CART MODAL ROWS */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #d92d20;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 0;
  border-bottom: 1px solid #eee;
  gap: .75rem;
}
.cart-row:last-child { border-bottom: none; }
.cart-row-name { font-weight: 600; font-size: .95rem; }
.cart-row-unit { font-size: .82rem; color: #888; }
.cart-row-controls { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.cart-qty-input {
  width: 56px;
  padding: .3rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: 600;
}
.cart-remove-btn {
  border: 1px solid #d92d20;
  color: #d92d20;
  background: transparent;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.cart-remove-btn:hover { background: #d92d20; color: #fff; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* =========================================================
   RESPONSIVE / MOBILE TUNING
   Bootstrap's grid (col-md-*, col-lg-*) already reflows and
   stacks on its own — these rules polish the spots Bootstrap
   doesn't handle automatically: hero sizing, floating button,
   navbar branding, and touch-friendly spacing on small screens.
   ========================================================= */

/* Tablets and below (~992px) */
@media (max-width: 991.98px) {
  .hero-banner { min-height: 60vh; }
  .page-header { padding: 3rem 0; }
  .product-detail-img { max-height: 340px; }
}

/* Large phones / small tablets (~768px) */
@media (max-width: 767.98px) {
  .hero-banner { min-height: 52vh; }
  .hero-banner h1 { font-size: 1.9rem; }
  .hero-banner .lead { font-size: 1rem; }

  .rice-navbar .navbar-brand { font-size: 1.15rem; gap: .4rem; }
  .navbar-logo { height: 36px; width: 36px; }

  .section-title { font-size: 1.5rem; }
  .page-header h1 { font-size: 1.6rem; }

  /* Stack quantity selector and its unit label instead of squeezing them */
  .qty-selector { margin-bottom: .4rem; }

  /* Smaller floating button so it doesn't crowd small screens */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    bottom: 16px;
    right: 16px;
  }

  /* Footer content centers nicely on narrow screens */
  .rice-footer { text-align: center; }
  .rice-footer .social { justify-content: center; }

  .product-img,
  .product-img-placeholder { height: 190px; }
}

/* Small phones (~576px) */
@media (max-width: 575.98px) {
  .hero-banner h1 { font-size: 1.6rem; }
  .hero-badge { font-size: .75rem; padding: .4rem .8rem; }

  .category-pills { gap: .4rem; }
  .category-pill { font-size: .82rem; padding: .4rem .85rem; }

  .why-card { padding: 1.25rem .75rem; }

  .testimonial-card,
  .contact-info-card { padding: 1.1rem; }

  /* Give the quantity buttons a touch-friendly minimum size */
  .qty-btn { width: 44px; height: 44px; }
  .qty-input { width: 52px; height: 44px; }
}
