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

:root {
  --brand-brown: #4a2c17;
  --brand-brown-dark: #331d0f;
  --brand-orange: #d97b29;
  --brand-orange-dark: #b8611a;
  --brand-cream: #faf6ef;
  --brand-green: #6a7d3f;
  --brand-red: #b3392c;
  --text-dark: #2c1c10;
}

body {
  font-family: 'Urbanist', Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background: var(--brand-cream);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* ---------- One consistent type scale, used everywhere on the site ---------- */
h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Urbanist', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--brand-brown-dark);
  letter-spacing: normal;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p, li, td, th, label, .form-control, .form-select, input, textarea, select, button, .btn {
  font-family: 'Urbanist', Arial, Helvetica, sans-serif;
}
p { line-height: 1.7; font-size: 1rem; }

/* Reusable size helpers, so every page uses the SAME sizes instead of
   one-off inline font-size overrides scattered per page */
.text-eyebrow { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--brand-orange); }
.text-tagline { font-size: 1.15rem; font-weight: 500; }
.text-small { font-size: 0.9rem; }

a { text-decoration: none; }

/* ---------- Offer Marquee (replaces old topbar) ---------- */
.offer-marquee {
  background: var(--brand-brown-dark);
  color: #ffd9a8;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
}
.offer-marquee-track {
  display: inline-flex;
  animation: marquee-scroll 28s linear infinite;
}
.offer-marquee-item {
  padding: 0 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.offer-marquee:hover .offer-marquee-track { animation-play-state: paused; }

/* ---------- Navbar ---------- */
.navbar-brown {
  background: var(--brand-cream);
  border-bottom: 3px solid var(--brand-orange);
}
.navbar-brown .navbar-brand img { height: 85px; }
.navbar-brown .nav-link {
  color: var(--brand-brown-dark) !important;
  font-weight: 600;
  margin: 0 10px;
}
.navbar-brown .nav-link:hover { color: var(--brand-orange) !important; }
.navbar-brown .dropdown-menu { border: none; box-shadow: 0 8px 24px rgba(74,44,23,0.15); border-radius: 10px; }
.navbar-brown .dropdown-item { color: var(--brand-brown-dark); font-weight: 500; padding: 8px 20px; }
.navbar-brown .dropdown-item:hover { background: var(--brand-cream); color: var(--brand-orange); }
.icon-btn {
  color: var(--brand-brown-dark);
  position: relative;
  font-size: 1.2rem;
  margin-left: 14px;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- Hero Video Slider (slow-motion Ken Burns effect) ---------- */
.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--brand-brown-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns-zoom 9s ease-in-out forwards;
}
.hero-slide:nth-child(even) img { animation-name: kenburns-zoom-alt; }
@keyframes kenburns-zoom {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.18) translate(-2%, -1%); }
}
@keyframes kenburns-zoom-alt {
  0%   { transform: scale(1.1) translate(-1%, 0); }
  100% { transform: scale(1.22) translate(1%, -2%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(100deg, rgba(51,29,15,0.82) 0%, rgba(51,29,15,0.55) 45%, rgba(51,29,15,0.25) 100%);
  display: flex;
  align-items: center;
}
.hero-overlay h1 { color: #fff; font-size: 2.7rem; }
.hero-overlay p { color: #e6d3bd; font-size: 1.1rem; }
.hero-badge {
  display: inline-block;
  background: rgba(217,123,41,0.18);
  border: 1px solid var(--brand-orange);
  color: #ffd9a8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}

/* Text panel so the hero reads clearly over ANY slide image (dark or light) */
.hero-text-card {
  background: rgba(30, 18, 10, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 18px;
  padding: 36px 40px;
  display: inline-block;
}

@media (max-width: 767.98px) {
  .hero-slider { height: 460px; }
  .hero-overlay h1 { font-size: 2rem; }
  .hero-text-card { padding: 24px; }

  /* Keep the same consistent type scale on mobile, just proportionally smaller */
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1.05rem; }
  .text-tagline { font-size: 1.05rem; }
}

/* ---------- Trust strip cards (premium touch) ---------- */
.trust-strip {
  background: var(--brand-cream);
  padding: 48px 0 36px;
}
.trust-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 14px;
  height: 100%;
  box-shadow: 0 4px 16px rgba(74,44,23,0.08);
  transition: 0.2s;
}
.trust-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(74,44,23,0.15); }
.trust-card i {
  font-size: 1.7rem;
  color: var(--brand-orange);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Spice Stories gallery ---------- */
.gallery-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(74,44,23,0.1);
  background: #fff;
  height: 100%;
  transition: 0.25s;
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(74,44,23,0.18); }
.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.gallery-caption { padding: 18px 20px; }
.gallery-caption h6 { font-weight: 700; color: var(--brand-brown-dark); margin-bottom: 6px; }
.gallery-caption p { font-size: 0.88rem; color: #6b5842; margin-bottom: 0; }

/* ---------- Shop by Products - auto-scrolling marquee ---------- */
.product-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.product-marquee-track {
  display: flex;
  width: max-content;
  gap: 20px;
  padding: 4px 20px 14px;
  animation: product-marquee-scroll linear infinite;
}
.product-marquee:hover .product-marquee-track { animation-play-state: paused; }
@keyframes product-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.product-marquee-card {
  flex: 0 0 auto;
  width: 190px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(74,44,23,0.09);
  text-decoration: none;
  transition: 0.2s;
  display: block;
}
.product-marquee-card:hover { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(74,44,23,0.18); }
.product-marquee-img { height: 210px; background: #f3ece0; }
.product-marquee-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-marquee-body { padding: 12px 14px; }
.product-marquee-body h6 { font-size: 0.92rem; color: var(--brand-brown-dark); font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-marquee-body .price-new { font-size: 0.88rem; }

@media (max-width: 767.98px) {
  .product-marquee-card { width: 150px; }
  .product-marquee-img { height: 120px; }
}

/* ---------- Blog ---------- */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(74,44,23,0.1);
  transition: 0.25s;
  height: 100%;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(74,44,23,0.18); }
.blog-card-img { overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px 22px; }
.blog-card-body h5 { color: var(--brand-brown-dark); font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.blog-card-body p { color: #6b5842; font-size: 0.9rem; margin-bottom: 10px; }
.blog-read-more { color: var(--brand-orange); font-weight: 600; font-size: 0.88rem; }

.blog-article p { color: #4a3826; line-height: 1.8; margin-bottom: 1.1rem; }
.blog-article h3 { color: var(--brand-brown-dark); margin-top: 2rem; margin-bottom: 0.9rem; font-size: 1.35rem; }
.blog-article ul { margin-bottom: 1.1rem; padding-left: 1.4rem; }
.blog-article ul li { color: #4a3826; line-height: 1.8; margin-bottom: 0.4rem; }

/* ---------- Combo & Discovery Boxes ---------- */
.combo-tier-card {
  background: var(--brand-brown-dark);
  color: #fff;
  border-radius: 14px;
  padding: 22px;
}
.combo-tier-amt { font-weight: 700; font-size: 1.6rem; color: #ffd9a8; }
.combo-tier-off { font-weight: 700; margin-top: 4px; }
.combo-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(74,44,23,0.07);
}
.combo-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.combo-item-info { flex: 1; min-width: 0; }
.combo-item-info h6 { margin-bottom: 6px; font-weight: 700; color: var(--brand-brown-dark); }
.combo-item-qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ---------- Offer Popup ---------- */
.offer-popup-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
  background: linear-gradient(160deg, var(--brand-brown-dark), var(--brand-brown) 100%);
  color: #fff;
}
.offer-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  filter: invert(1);
  opacity: 0.8;
}
.offer-popup-body { padding: 36px 36px 46px; text-align: center; }
.offer-popup-image {
  width: 100%;
  /*max-height: 220px;*/
  object-fit: cover;
  display: block;
}
.offer-popup-icon { font-size: 2.6rem; color: var(--brand-orange); margin-bottom: 14px; }
.offer-popup-body h4 { color: #fff; margin-bottom: 12px; }
.offer-popup-body p { color: #e6d3bd; margin-bottom: 0; }
.offer-popup-code {
  display: block;
  width: fit-content;
  margin: 16px auto 6px;
  border: 2px dashed var(--brand-orange);
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: #ffd9a8;
}

/* ---------- Feature tiles ---------- */
.feature-tile {
  background: var(--brand-cream);
  border-radius: 12px;
  padding: 22px;
  height: 100%;
}
.feature-tile i { font-size: 1.5rem; color: var(--brand-orange); margin-bottom: 10px; display: block; }
.feature-tile h6 { font-weight: 700; margin-bottom: 6px; }
.feature-tile p { font-size: 0.88rem; color: #6b5842; margin-bottom: 0; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25d366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: 0.2s;
}
.hero-dots button.active { background: var(--brand-orange); width: 26px; border-radius: 6px; }

/* ---------- Legacy plain hero (still used on inner pages if needed) ---------- */
.hero {
  background: linear-gradient(120deg, var(--brand-brown-dark), var(--brand-brown) 70%);
  color: #fff;
  padding: 70px 0;
}
.hero h1 { color: #fff; font-size: 2.6rem; }
.hero p { color: #e6d3bd; font-size: 1.1rem; }
.btn-brand {
  background: var(--brand-orange);
  border: none;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.2s;
}
.btn-brand:hover { background: var(--brand-orange-dark); color: #fff; }
.btn-outline-brand {
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: 600;
}
.btn-outline-brand:hover { background: #fff; color: var(--brand-brown-dark); }

/* ---------- Bulk Order page ---------- */
.bulk-stat { text-align: center; }
.bulk-stat-num { font-weight: 800; font-size: 2rem; color: var(--brand-orange); }
.bulk-stat-label { color: #e6d3bd; font-size: 0.85rem; }
.bulk-form-section {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-orange);
  border-bottom: 1px solid #eee2d2;
  padding-bottom: 8px;
  margin: 24px 0 16px;
}
.bulk-form-section:first-of-type { margin-top: 0; }

/* ---------- Section titles ---------- */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title span {
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
}
.section-title h2 { font-size: 2.1rem; margin-top: 6px; }

/* ---------- Category cards ---------- */
.category-card {
  background: #fff;
  border-radius: 14px;
  text-align: center;
  padding: 26px 14px;
  box-shadow: 0 4px 16px rgba(74,44,23,0.08);
  transition: 0.2s;
  height: 100%;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(74,44,23,0.15); }
.category-card img { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; margin-bottom: 14px; border: 3px solid var(--brand-orange); }
.category-card h5 {
  color: var(--brand-brown-dark);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 0;
  transition: color 0.2s;
}
.category-card:hover h5 { color: var(--brand-orange); }

.sidebar-product-link { display: block; transition: color 0.15s; }
.sidebar-product-link:hover { color: var(--brand-orange) !important; }

.category-showcase {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(74,44,23,0.18);
  height: 100%;
  min-height: 280px;
}
.category-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

/* ---------- Product cards ---------- */
.shop-filter-bar {
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(74,44,23,0.08);
  height: 100%;
  transition: 0.2s;
  position: relative;
}
.product-card:hover { box-shadow: 0 10px 26px rgba(74,44,23,0.18); transform: translateY(-4px); }
.product-card .product-img {
  height: 340px;
  background: #f3ece0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.product-card .p-body { padding: 16px; }
.product-card .p-body h5 { font-size: 1.05rem; margin-bottom: 4px; }
.product-card .p-unit { color: #8a715b; font-size: 0.85rem; }
.price-old { text-decoration: line-through; color: #a8977f; font-size: 0.9rem; margin-right: 6px; }
.price-new { color: var(--brand-orange-dark); font-weight: 700; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-brown-dark);
  color: #e6d3bd;
  padding: 50px 0 20px;
  margin-top: 60px;
}
.site-footer h5 { color: #fff; margin-bottom: 18px; }
.site-footer a { color: #e6d3bd; }
.site-footer a:hover { color: var(--brand-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 30px;
  padding-top: 16px;
  font-size: 0.85rem;
  text-align: center;
  color: #b79c81;
}

/* ---------- Forms / auth ---------- */
.auth-card {
  max-width: 440px;
  margin: 60px auto;
  background: #fff;
  padding: 36px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(74,44,23,0.1);
}
.form-control:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 0.2rem rgba(217,123,41,0.2); }

/* ---------- Misc ---------- */
.badge-payment { background: var(--brand-green); }
.qr-box { background: #fff; padding: 16px; border: 2px dashed var(--brand-orange); border-radius: 10px; display: inline-block; }

/* =====================================================
   MOBILE RESPONSIVE REFINEMENTS
   ===================================================== */
@media (max-width: 767.98px) {
  /* Marquee - smaller, tighter on phones */
  .offer-marquee-item { padding: 0 24px; font-size: 0.78rem; }

  /* Navbar - bigger tap targets, logo scales down slightly */
  .navbar-brown .navbar-brand img { height: 50px; }
  .navbar-brown .nav-link { padding: 10px 0 !important; }
  .icon-btn { margin-left: 10px; font-size: 1.1rem; }

  /* Category cards - avoid cramped 2-up circles on very small screens */
  .category-card { padding: 18px 10px; }
  .category-card img { width: 70px; height: 70px; }
  .category-showcase, .category-showcase img { min-height: 200px; }

  /* Product & blog cards */
  .product-card .product-img { height: 160px; }
  .blog-card-img { height: 160px; }
  .gallery-card img { height: 180px; }

  /* Section spacing tighter on phones */
  .section-title h2 { font-size: 1.6rem; }
  section.py-5 { padding-top: 2.2rem !important; padding-bottom: 2.2rem !important; }

  /* Combo & Discovery Boxes - stack each row's controls */
  .combo-item { flex-wrap: wrap; }
  .combo-item img { width: 48px; height: 48px; }
  .combo-item-info { flex-basis: 100%; order: 1; }
  .combo-item-qty { order: 2; margin-left: auto; }
  .combo-tier-card { padding: 16px; }
  .combo-tier-amt { font-size: 1.3rem; }

  /* Checkout - stack payment QR under details instead of squeezing side by side */
  .qr-box img { max-width: 120px; }

  /* Offer popup fits small screens without overflow */
  .offer-popup-body { padding: 26px 22px 34px; }
  .offer-popup-image { max-height: 160px; }

  /* Feature tiles / trust cards - tighter padding */
  .feature-tile, .trust-card { padding: 16px; }

  /* Footer stacks with a bit more breathing room per column */
  .site-footer { padding: 36px 0 16px; }
  .site-footer .col-md-2, .site-footer .col-md-4 { margin-bottom: 22px; }

  /* WhatsApp float button - slightly smaller, safe from bottom nav gestures */
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; bottom: 16px; right: 16px; }

  /* Tables that aren't already wrapped - allow horizontal scroll as a safety net */
  table { font-size: 0.85rem; }
}

@media (max-width: 575.98px) {
  .hero-overlay h1 { font-size: 1.6rem; }
  .hero-badge { font-size: 0.7rem; padding: 5px 12px; }
  .hero-text-card { padding: 18px; border-radius: 14px; }
  .combo-tiers .row > div { margin-bottom: 10px; }
}
