:root {
  --deep-green: #1a5c3a;
  --mid-green: #2d7d4f;
  --leaf-green: #6cb85c;
  --cream: #faf7f0;
  --cream-2: #f2ede1;
  --text-dark: #1f2a22;
  --text-muted: #6b7568;
  --white: #ffffff;
  --danger: #c0392b;
  --shadow: 0 10px 30px rgba(26, 92, 58, 0.10);
  --shadow-sm: 0 4px 14px rgba(26, 92, 58, 0.08);
  --radius: 16px;
}

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

html, body { overflow-x: hidden; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Noto Sans Bengali', 'Segoe UI', 'Hind Siliguri', Arial, sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.5;
}

h1, h2, h3, h4 { font-family: 'Noto Serif Bengali', 'Georgia', serif; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 92, 58, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  position: relative;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-dark);
  padding: 4px 1px;
  transition: color 0.2s ease;
}
.header-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--deep-green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.header-nav a:hover { color: var(--deep-green); }
.header-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.header-track-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 4px 2px;
  transition: color 0.2s ease;
}
.header-track-btn:hover { color: var(--deep-green); }

.header-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.header-whatsapp-btn:hover { transform: scale(1.08); }

/* ---------- Header search bar (desktop/laptop only — mobile uses the search sheet from the bottom nav) ---------- */
.header-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 190px;
  max-width: 260px;
  background: var(--white);
  border: 1.5px solid rgba(26,92,58,0.16);
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}
.header-search-bar:focus-within { border-color: var(--deep-green); box-shadow: var(--shadow-sm); }
.header-search-bar svg { flex-shrink: 0; color: var(--text-muted); }
.header-search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text-dark);
}
.header-search-bar input::placeholder { color: #a3ab9e; }
.header-search-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--deep-green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.header-search-bar button:hover { background: var(--mid-green); }
@media (min-width: 1100px) { .header-search-bar { width: 230px; } }
@media (min-width: 1400px) { .header-search-bar { width: 270px; } }

@media (max-width: 900px) {
  .header-nav, .header-track-btn, .header-search-bar { display: none; }
}

/* ---------- Search bar used inside the mobile search sheet ---------- */
.mobile-search-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1.5px solid rgba(26,92,58,0.14);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: var(--shadow-sm);
}
.mobile-search-bar svg { flex-shrink: 0; color: var(--text-muted); }
.mobile-search-bar input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.mobile-search-bar input::placeholder { color: #a3ab9e; }
.mobile-search-bar:focus-within { border-color: var(--deep-green); }
.mobile-search-bar.in-modal { margin: 4px 0 0; }
.search-result-count { font-size: 0.8rem; color: var(--text-muted); margin: 10px 2px 0; min-height: 1.1em; }

.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img {
  height: 44px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 560px) {
  .logo-link img { height: 38px; max-width: 150px; }
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--deep-green);
  border: 1px solid rgba(26,92,58,0.22);
  padding: 9px 18px 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.25s ease;
}
.cart-btn:hover { border-color: var(--deep-green); transform: translateY(-1px); }

.cart-count {
  background: var(--deep-green);
  color: var(--cream);
  font-size: 0.66rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- ambient background blobs ---------- */
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
}
.ambient-blob-1 {
  top: auto;
  bottom: -120px;
  right: -140px;
  width: 700px;
  height: 1000px;
  background: radial-gradient(ellipse, rgba(185,220,196,0.85) 0%, rgba(185,220,196,0.35) 32%, rgba(185,220,196,0) 55%);
  animation: ambient-pulse 6s ease-in-out infinite;
}

@media (max-width: 860px) {
  .ambient-blob-1 {
    width: 420px;
    height: 520px;
    bottom: -90px;
    right: -100px;
  }
}

@media (max-width: 560px) {
  .ambient-blob-1 {
    width: 320px;
    height: 380px;
    bottom: -60px;
    right: -70px;
    filter: blur(50px);
  }
}

@keyframes ambient-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.ambient-blob-2 {
  bottom: -120px;
  left: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #e6efe0 0%, rgba(230,239,224,0) 70%);
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 70px;
  overflow: hidden;
  position: relative;
}

#heroCanvasZone {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(185,220,196,0.16) 0%, rgba(185,220,196,0.11) 55%, rgba(185,220,196,0.035) 100%), var(--cream);
}

#leafCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}

@media (max-width: 560px) {
  .hero { padding: 20px 0 32px; }
  .hero-badge { margin-bottom: 14px; font-size: 0.68rem; }
  .hero h1 { font-size: 1.55rem; margin-bottom: 12px; line-height: 1.2; }
  .hero p { font-size: 13.5px; margin-bottom: 18px; }
  .hero-ctas { gap: 10px; margin-bottom: 22px; }
  .btn-primary, .text-link-whatsapp { padding: 11px 18px; font-size: 12.5px; }
  .hero-trust { gap: 14px; padding-top: 16px; }
  .hero-trust div { font-size: 11px; gap: 6px; }
  .floating-badge { padding: 8px 13px 8px 10px; left: -10px; bottom: 16px; }
  .floating-badge-title { font-size: 0.74rem; }
  .floating-badge-sub { font-size: 0.64rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #5b6459;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 26px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf-green);
  flex-shrink: 0;
}

.hero-leaf-outline {
  position: absolute;
  right: 32px;
  top: 8px;
  width: 260px;
  height: 260px;
  opacity: 0.07;
  z-index: 1;
  pointer-events: none;
}
.hero-drift-leaf {
  position: absolute;
  left: -10px;
  top: 260px;
  width: 46px;
  height: 46px;
  opacity: 0.14;
  z-index: 1;
  pointer-events: none;
  animation: hero-drift 9s ease-in-out infinite;
}
@keyframes hero-drift {
  0% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(10px,-16px) rotate(8deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #173e29;
  line-height: 1.14;
  margin-bottom: 22px;
  max-width: 480px;
}

.hero p {
  color: #5b6459;
  font-size: 16px;
  max-width: 420px;
  margin-bottom: 34px;
}

.hero-ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 44px; }

.btn-primary {
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  transition: all 0.2s ease;
  background: var(--deep-green);
  color: var(--white);
  box-shadow: 0 8px 18px -8px rgba(26,92,58,0.4);
}
.btn-primary:hover { background: var(--mid-green); transform: translateY(-2px); }

.text-link-whatsapp {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px 13px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: #25D366;
  text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(37,211,102,0.5);
  transition: all 0.2s ease;
}
.text-link-whatsapp svg circle { fill: #fff; }
.text-link-whatsapp svg path { fill: #25D366; }
.text-link-whatsapp:hover { background: #1fb856; transform: translateY(-2px); }

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(26,92,58,0.10);
}
.hero-trust div {
  font-size: 12.5px;
  color: #5b6459;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.hero-visual-wrap {
  position: relative;
}
.hero-visual-backer {
  position: absolute;
  inset: 18px -14px -14px 18px;
  background: linear-gradient(135deg, var(--leaf-green), var(--deep-green));
  border-radius: 26px;
  opacity: 0.35;
  z-index: 0;
}
.hero-visual {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: perspective(1000px);
  transition: box-shadow 0.25s ease;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero-visual video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; display: block; }

/* ---------- Hero slideshow (auto-plays when 2+ images are set) ---------- */
.hero-slideshow { position: relative; width: 100%; aspect-ratio: 4/5; }
.hero-slideshow .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.9s ease; z-index: 1;
}
.hero-slideshow .hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide-dots {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 6px;
}
.hero-slide-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55);
  transition: background 0.2s ease, width 0.2s ease;
}
.hero-slide-dots span.active { background: var(--white); width: 16px; border-radius: 4px; }

.floating-badge {
  position: absolute;
  left: -22px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: float-badge 4.5s ease-in-out infinite;
}
.floating-badge-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.floating-badge-title { font-size: 0.82rem; font-weight: 800; color: var(--text-dark); line-height: 1.2; }
.floating-badge-sub { font-size: 0.7rem; color: var(--text-muted); }

@keyframes float-badge {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}

.float-wrap { animation: float-slow 6s ease-in-out infinite; }
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- decorative vine clusters ---------- */
.hero-vine {
  position: absolute;
  left: -6px;
  bottom: -10px;
  width: 118px;
  height: 128px;
  z-index: 1;
  opacity: 0.68;
  pointer-events: none;
}
.footer-vine {
  position: absolute;
  right: 20px;
  top: -16px;
  width: 82px;
  height: 120px;
  pointer-events: none;
  opacity: 0.55;
}
.vine-draw path[id="vineStem"],
.vine-draw .vine-stem2,
.vine-draw .vine-stem3 {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: vine-grow 1.6s ease-out forwards;
  animation-delay: 0.2s;
}
.vine-draw .vine-stem2 { animation-delay: 0.35s; }
.vine-draw .vine-stem3 { animation-delay: 0.5s; }
.footer-vine path {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: vine-grow 1.8s ease-out forwards;
  animation-delay: 0.15s;
}
@keyframes vine-grow {
  to { stroke-dashoffset: 0; }
}
.vine-draw .vine-leaf {
  transform: scale(0.2);
  transform-origin: center;
  opacity: 0;
  animation: vine-leaf-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.vine-draw g:nth-of-type(1) .vine-leaf { animation-delay: 0.5s; }
.vine-draw g:nth-of-type(2) .vine-leaf { animation-delay: 0.65s; }
.vine-draw g:nth-of-type(3) .vine-leaf { animation-delay: 0.8s; }
.vine-draw g:nth-of-type(4) .vine-leaf { animation-delay: 0.95s; }
.vine-draw g:nth-of-type(5) .vine-leaf { animation-delay: 1.1s; }
.vine-draw g:nth-of-type(6) .vine-leaf { animation-delay: 1.25s; }
.footer-vine .footer-leaf {
  transform: scale(0.2);
  transform-origin: center;
  opacity: 0;
  animation: vine-leaf-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.footer-vine g:nth-of-type(1) .footer-leaf { animation-delay: 0.5s; }
.footer-vine g:nth-of-type(2) .footer-leaf { animation-delay: 0.7s; }
.footer-vine g:nth-of-type(3) .footer-leaf { animation-delay: 0.9s; }
.footer-vine g:nth-of-type(4) .footer-leaf { animation-delay: 1.1s; }
@keyframes vine-leaf-pop {
  0% { opacity: 0; }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- wave dividers ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 46px;
}
.wave-divider-alt {
  margin-top: -2px;
}
.wave-divider-footer {
  height: 52px;
  margin: 0;
  margin-bottom: -4px;
}

/* ---------- scroll reveal + 3D tilt ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.tilt-card { will-change: transform; transition: transform 0.15s ease-out; transform-style: preserve-3d; }
.depth-shadow { box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.15s ease-out; }
.depth-shadow:hover { box-shadow: var(--shadow); }

.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(26, 92, 58, 0.10);
}

/* ---------- Section headers ---------- */
.section { padding: 54px 0; position: relative; overflow: hidden; }

.offers-section {
  background: linear-gradient(180deg, #fff5f2 0%, var(--cream) 100%);
  padding: 44px 0 30px;
}
.offers-section .section-head h2 { color: var(--danger); }

.bestsellers-section {
  background: linear-gradient(180deg, #fffaf0 0%, var(--cream) 100%);
  padding: 44px 0 30px;
}
.bestsellers-section .section-head h2 { color: #a06b1a; }

/* ---------- Best sellers: vertical auto-scrolling showcase ---------- */
.bestseller-scroll-viewport {
  position: relative;
}
.bestseller-scroll-viewport.auto-scrolling {
  max-height: 620px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.bestseller-scroll-track {
  display: flex;
  flex-direction: column;
}
.bestseller-grid-set { margin-bottom: 14px; }
.bestseller-scroll-viewport.auto-scrolling .bestseller-scroll-track {
  animation-name: bestsellerAutoScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 22s;
}
.bestseller-scroll-viewport.auto-scrolling:hover .bestseller-scroll-track,
.bestseller-scroll-viewport.auto-scrolling:focus-within .bestseller-scroll-track {
  animation-play-state: paused;
}
@keyframes bestsellerAutoScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (max-width: 860px) {
  .bestseller-scroll-viewport.auto-scrolling { max-height: 520px; }
}
@media (max-width: 560px) {
  .bestseller-scroll-viewport.auto-scrolling { max-height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  .bestseller-scroll-viewport.auto-scrolling .bestseller-scroll-track { animation: none; }
}

/* ---------- Floating leaf-drop animation (falls the full height of the products section, lands at the bottom seam) ---------- */
.leaf-drop-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
#shop > .container { position: relative; z-index: 1; }
.drop-leaf {
  position: absolute;
  top: -30px;
  width: 54px;
  height: 65px;
  opacity: 0;
  animation-name: leaf-drop-fall;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}
.drop-leaf-1 { left: 8%;  animation-duration: 11s; animation-delay: 0s; }
.drop-leaf-2 { left: 28%; animation-duration: 13s; animation-delay: 3.5s; }
.drop-leaf-3 { left: 58%; animation-duration: 12s; animation-delay: 7s; }
.drop-leaf-4 { left: 82%; animation-duration: 14s; animation-delay: 2s; }

@keyframes leaf-drop-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  6%   { opacity: 0.85; }
  80%  { transform: translateY(612px) rotate(150deg); opacity: 0.75; }
  88%  { transform: translateY(652px) rotate(170deg); opacity: 0; }
  100% { transform: translateY(652px) rotate(170deg); opacity: 0; }
}

.drop-ripple {
  position: absolute;
  bottom: 56px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  border: 3px solid rgba(58,110,74,0.9);
  opacity: 0;
  animation-name: leaf-drop-ripple;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}
.drop-ripple::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(58,110,74,0.5);
}
.drop-ripple-1 { left: calc(8% + 27px);  animation-duration: 11s; animation-delay: 0s; }
.drop-ripple-2 { left: calc(28% + 21px); animation-duration: 13s; animation-delay: 3.5s; }
.drop-ripple-3 { left: calc(58% + 24px); animation-duration: 12s; animation-delay: 7s; }
.drop-ripple-4 { left: calc(82% + 22px); animation-duration: 14s; animation-delay: 2s; }

@keyframes leaf-drop-ripple {
  0%, 87% { transform: scale(0.1); opacity: 0; }
  89%     { transform: scale(0.5); opacity: 0.95; }
  90%     { transform: scale(1.9); opacity: 0.7; }
  100%    { transform: scale(3.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .drop-leaf, .drop-ripple { animation: none; opacity: 0; }
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.7rem;
  color: var(--deep-green);
}
.section-head p { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  background: var(--white);
  border: 1px solid rgba(26,92,58,0.15);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.pill.active, .pill:hover { background: var(--deep-green); color: var(--white); border-color: var(--deep-green); }

@media (max-width: 760px) {
  /* modern app-style horizontally-scrolling chip row instead of wrapping pills */
  .section-head { align-items: flex-start; }
  .category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 2px 16px 6px;
    width: calc(100% + 32px);
  }
  .category-pills::-webkit-scrollbar { display: none; }
  .pill { flex-shrink: 0; }
}

/* ---------- Product grid ---------- */
/* Shop section: same vertical auto-scroll pattern as Best Sellers, but as a
   fallback it also gets padded with "new products arriving soon" filler
   tiles (via JS) whenever there isn't enough real stock to fill this height
   in the first place — only once there's enough real content to overflow
   this height does it switch to auto-scrolling instead of padding. */
.product-scroll-viewport {
  position: relative;
  --target-height: 780px;
}
.product-scroll-viewport.auto-scrolling {
  max-height: var(--target-height);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.product-scroll-track {
  display: flex;
  flex-direction: column;
}
.product-grid-set { margin-bottom: 14px; }
.product-scroll-viewport.auto-scrolling .product-scroll-track {
  animation-name: productAutoScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.product-scroll-viewport.auto-scrolling:hover .product-scroll-track,
.product-scroll-viewport.auto-scrolling:focus-within .product-scroll-track {
  animation-play-state: paused;
}
@keyframes productAutoScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .product-scroll-viewport.auto-scrolling .product-scroll-track { animation: none; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
}
@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 12px; }
  .product-scroll-viewport { --target-height: 620px; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .product-scroll-viewport { --target-height: 560px; }
  .product-body { padding: 10px 11px 12px; gap: 5px; }
  .product-name { font-size: 13px; }
  .product-cat { font-size: 9px; }
  .product-price { font-size: 14.5px; }
  .product-price small { font-size: 9.5px; }
  .discount-pill { font-size: 8.5px; padding: 2px 6px; }
  .price-original { font-size: 10.5px; }
  .add-btn, .buy-now-btn { padding: 7px 6px; font-size: 11px; }
  .product-actions { gap: 5px; }
  .product-badge, .offer-badge, .stock-badge { font-size: 8.5px; padding: 3px 7px; }
}

.product-add-card {
  border: 1.5px dashed rgba(26,92,58,0.28);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100%;
  color: var(--deep-green);
  text-align: center;
  padding: 20px 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.product-add-card:hover {
  border-color: var(--deep-green);
  background: rgba(26,92,58,0.04);
  transform: translateY(-2px);
}
.product-add-card span { font-size: 0.8rem; font-weight: 700; line-height: 1.3; }
@media (max-width: 560px) {
  .product-add-card { padding: 14px 8px; gap: 7px; }
  .product-add-card svg { width: 22px; height: 22px; }
  .product-add-card span { font-size: 11px; }
}

/* ---------- Product card: compact, ghorerbazar.com-inspired ---------- */
.product-card {
  background: var(--white);
  border: 1px solid rgba(26,92,58,0.10);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.product-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--cream-2);
  overflow: hidden;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--cream);
  color: var(--deep-green);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(26,92,58,0.15);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-stack {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.badge-stack .product-badge { position: static; }
.offer-badge {
  background: var(--danger);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.product-body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.product-cat { font-size: 9px; color: var(--leaf-green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.product-name {
  font-family: 'Noto Serif Bengali', 'Georgia', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.56em;
}
/* Description is kept in the DOM for accessibility/search but hidden from
   the compact card — ghorerbazar-style cards show name + price only. */
.product-desc { display: none; }
.product-available-note { font-size: 10.5px; color: #8a9186; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.product-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 3px;
  gap: 6px;
}
.product-actions { display: flex; align-items: stretch; gap: 5px; }
.product-actions .add-btn, .product-actions .buy-now-btn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.product-price { font-size: 15px; font-weight: 700; color: #173e29; }
.product-price small { font-size: 10px; color: #8a9186; font-weight: 500; }
.product-price.has-offer { color: var(--danger); }
.price-original-row { display: flex; align-items: center; gap: 5px; margin-bottom: 1px; }
.price-original { text-decoration: line-through; color: #9aa39a; font-size: 10.5px; font-weight: 500; }
.discount-pill {
  background: #ffe1de; color: var(--danger); font-size: 8.5px; font-weight: 800;
  padding: 2px 6px; border-radius: 999px; letter-spacing: 0.02em; white-space: nowrap;
}

.add-btn {
  background: var(--deep-green);
  color: var(--white);
  border: none;
  padding: 7px 10px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.add-btn:hover { background: var(--mid-green); }
.add-btn:disabled { background: #b9c2bb; cursor: not-allowed; }

.buy-now-btn {
  background: transparent;
  color: var(--deep-green);
  border: 1.2px solid var(--deep-green);
  padding: 7px 9px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.buy-now-btn:hover { background: var(--deep-green); color: var(--white); }
.buy-now-btn:disabled { border-color: #b9c2bb; color: #b9c2bb; cursor: not-allowed; background: transparent; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); grid-column: 1 / -1; width: 100%; }

/* ---------- Features strip ---------- */
.features {
  background: var(--cream-2);
  color: var(--text-dark);
  padding: 44px 0 56px;
  position: relative;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: var(--cream);
  transition: transform 0.25s cubic-bezier(.22,.61,.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 16px 30px -14px rgba(18,30,22,0.22);
  border-color: rgba(26,92,58,0.28);
}
.feature-item .icon {
  width: auto;
  height: auto;
  flex-shrink: 0;
  background: none;
  border-radius: 0;
  margin: 0;
}
.feature-item h4 { font-size: 0.84rem; margin-bottom: 2px; color: var(--text-dark); }
.feature-item p { font-size: 0.75rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: #123c27;
  color: rgba(255,255,255,0.8);
  padding: 40px 0 24px;
}

.footer-sprigs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.footer-branch {
  position: absolute;
  width: clamp(280px, 38vw, 520px);
  height: auto;
  opacity: 0.22;
}
.footer-branch-1 { top: -60px; left: -60px; transform: rotate(-14deg); opacity: 0.24; }
.footer-branch-2 { bottom: -90px; right: -70px; transform: rotate(162deg); opacity: 0.2; width: clamp(260px, 34vw, 480px); }
.footer-branch-3 { top: 10px; left: 38%; transform: rotate(24deg) scaleX(-1); opacity: 0.15; width: clamp(220px, 26vw, 360px); }

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 10px;
  display: block;
}
.footer-brand p { font-size: 0.85rem; max-width: 300px; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social-icon {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); color: #faf7f0; transition: background 0.2s ease;
}
.footer-social-icon:hover { background: rgba(255,255,255,0.25); }
.footer-contact { font-size: 0.88rem; line-height: 2; }
.footer-bottom { text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.5); padding-top: 18px; }

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(18, 30, 22, 0.45);
  z-index: 155;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--cream);
  z-index: 160;
  box-shadow: -12px 0 30px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(26,92,58,0.1);
  background: var(--white);
}
.cart-header h3 { color: var(--deep-green); font-size: 1.2rem; }
.close-btn {
  background: none; border: none; font-size: 1.4rem; color: var(--text-muted); line-height: 1;
}

.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-item {
  display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(26,92,58,0.08);
}
.cart-item img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; background: var(--cream-2); }
.cart-item-info { flex: 1; }
.cart-item-info .name { font-weight: 700; font-size: 0.92rem; }
.cart-item-info .price { color: var(--deep-green); font-weight: 700; font-size: 0.88rem; margin-top: 2px; }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-controls button {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(26,92,58,0.2);
  background: var(--white); font-weight: 700; color: var(--deep-green);
}
.remove-link { font-size: 0.78rem; color: var(--danger); font-weight: 600; margin-left: auto; align-self: flex-start; }

.cart-footer {
  padding: 18px 22px 24px;
  background: var(--white);
  border-top: 1px solid rgba(26,92,58,0.1);
}
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; color: var(--text-dark); }
.checkout-btn {
  width: 100%; background: var(--deep-green); color: var(--white); border: none;
  padding: 14px; border-radius: 12px; font-weight: 700; font-size: 1rem;
}
.checkout-btn:hover { background: var(--mid-green); }
.checkout-btn:disabled { background: #b9c2bb; }
.continue-shopping-btn {
  width: 100%;
  background: transparent;
  color: var(--deep-green);
  border: 1.2px solid rgba(26,92,58,0.3);
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.continue-shopping-btn:hover { background: rgba(26,92,58,0.06); border-color: var(--deep-green); }
.cod-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; }

/* ---------- Checkout modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(18,30,22,0.55);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: 18px; width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto; padding: 28px;
}
.modal-box h3 { color: var(--deep-green); font-size: 1.3rem; margin-bottom: 6px; }
.modal-box .sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1.5px solid rgba(26,92,58,0.18);
  font-size: 0.92rem; font-family: inherit; background: var(--cream);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--deep-green); }
.form-group textarea { resize: vertical; min-height: 70px; }

.order-summary-box {
  background: var(--cream-2); border-radius: 12px; padding: 14px; margin: 16px 0; font-size: 0.88rem;
}
.order-summary-box .row { display: flex; justify-content: space-between; padding: 4px 0; }
.order-summary-box .row.total { font-weight: 800; border-top: 1px dashed rgba(26,92,58,0.25); margin-top: 6px; padding-top: 8px; font-size: 1rem; }
.order-summary-box .row.delivery-row { color: var(--text-muted); }

.delivery-area-options { display: flex; flex-direction: column; gap: 8px; }
.delivery-area-options .delivery-area-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px;
  border: 1.5px solid rgba(26,92,58,0.18); background: var(--cream); cursor: pointer; font-size: 0.92rem;
  font-weight: 600; margin-bottom: 0; color: var(--text-dark);
}
.delivery-area-option input { width: auto; accent-color: var(--deep-green); }
.delivery-area-option span { display: flex; justify-content: space-between; flex: 1; align-items: center; }
.delivery-area-option:has(input:checked) { border-color: var(--deep-green); background: #e3f4e6; }
.delivery-area-option strong { color: var(--deep-green); font-size: 0.88rem; }

.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-actions button { flex: 1; padding: 13px; border-radius: 12px; font-weight: 700; border: none; }
.modal-actions .cancel { background: var(--cream-2); color: var(--text-dark); }
.modal-actions .confirm { background: var(--deep-green); color: var(--white); }

.success-box { text-align: center; padding: 10px 0; }
.success-box .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--leaf-green);
  display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 16px;
  color: #12331f;
}
.success-box h3 { margin-bottom: 8px; }
.success-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; }
.order-num { font-weight: 800; color: var(--deep-green); font-size: 1.1rem; }

.field-error { color: var(--danger); font-size: 0.78rem; margin-top: 4px; display: none; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--deep-green); color: var(--white); padding: 12px 22px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; z-index: 300; opacity: 0; pointer-events: none;
  transition: all 0.3s ease; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.skeleton {
  background: linear-gradient(90deg, var(--cream-2) 25%, #e7e2d4 37%, var(--cream-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius);
  height: 320px;
}
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* =========================================================
   MERGED FEATURES — reviews, delivery checker, order tracking,
   FAQ, newsletter, product detail popup, analytics-adjacent bits
   ========================================================= */

/* ---------- stock urgency badge ---------- */
.stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: #fff3cd;
  color: #8a6100;
  font-size: 8.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---------- add-to-cart micro-interactions ---------- */
.add-btn.added { background: var(--leaf-green) !important; }
.cart-btn.bump, .cart-count.bump { animation: cart-bump 0.45s ease; }
@keyframes cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.fly-item {
  position: fixed;
  z-index: 500;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  transition: left 0.62s cubic-bezier(.3,.6,.4,1), top 0.62s cubic-bezier(.3,.6,.4,1), width 0.62s ease, height 0.62s ease, opacity 0.62s ease;
  box-shadow: var(--shadow);
}

/* ---------- "+1 cart" popup shown over the button that was clicked ---------- */
.cart-pop {
  position: fixed;
  z-index: 500;
  background: var(--deep-green);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: var(--shadow);
  animation: cart-pop-rise 0.9s ease forwards;
}
@keyframes cart-pop-rise {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.8); }
  20% { opacity: 1; transform: translate(-50%, -8px) scale(1); }
  75% { opacity: 1; transform: translate(-50%, -34px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -46px) scale(1); }
}

/* ---------- Floating sticky cart button ---------- */
.floating-cart-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--deep-green);
  color: var(--white);
  border: none;
  padding: 13px 20px 13px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 28px rgba(18, 60, 39, 0.35);
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}
.floating-cart-btn.show { display: flex; }
.floating-cart-btn.hide-for-drawer { display: none !important; }
.floating-cart-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(18, 60, 39, 0.4); }
.floating-cart-btn .fc-icon { position: relative; display: flex; }
.floating-cart-btn .fc-count {
  position: absolute; top: -9px; right: -9px;
  background: var(--leaf-green); color: var(--deep-green);
  font-size: 0.66rem; font-weight: 800; min-width: 17px; height: 17px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid var(--white);
}
.floating-cart-btn .fc-total { font-weight: 800; }
.floating-cart-btn.bump { animation: cart-bump 0.45s ease; }
@media (max-width: 560px) {
  .floating-cart-btn { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 11px 16px 11px 13px; font-size: 0.82rem; }
}

/* ---------- footer: quick links + newsletter ---------- */
.footer-contact a { text-decoration: underline; text-underline-offset: 2px; }
.footer-quick-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.footer-link-btn {
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-link-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }

.footer-newsletter { max-width: 280px; }
.footer-newsletter h4 { font-family: 'Noto Serif Bengali', serif; font-size: 1.02rem; margin-bottom: 6px; }
.footer-newsletter p { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-size: 0.85rem;
  font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { outline: none; border-color: var(--leaf-green); }
.newsletter-form button {
  background: var(--leaf-green);
  color: #123c27;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
}
.newsletter-form button:hover { background: #7fc96d; }
.newsletter-msg { font-size: 0.78rem; color: var(--leaf-green); margin-top: 8px; min-height: 1em; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--cream); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(26,92,58,0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-family: 'Noto Serif Bengali', serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question .chev { transition: transform 0.2s ease; color: var(--deep-green); }
.faq-item.open .faq-question .chev { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer { max-height: 220px; padding: 0 20px 16px; }
.faq-answer p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Track Order + Delivery Checker result panels ---------- */
.order-num-big { font-family: 'Noto Serif Bengali', serif; font-size: 1.2rem; color: var(--deep-green); font-weight: 700; }
.track-total { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px; }

.status-timeline { display: flex; align-items: flex-start; margin: 20px 0; }
.status-step { flex: 1; text-align: center; position: relative; }
.status-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px; left: 50%; width: 100%;
  height: 2px;
  background: rgba(26,92,58,0.15);
  z-index: 0;
}
.status-step.done:not(:last-child)::after { background: var(--deep-green); }
.status-step .dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
  font-size: 0.78rem; font-weight: 700;
  position: relative; z-index: 1;
  border: 2px solid rgba(26,92,58,0.15);
}
.status-step.done .dot, .status-step.current .dot { background: var(--deep-green); color: var(--white); border-color: var(--deep-green); }
.status-step.cancelled .dot { background: var(--danger); color: var(--white); border-color: var(--danger); }
.status-step .label { font-size: 0.72rem; color: var(--text-muted); }
.status-step.current .label, .status-step.done .label { color: var(--text-dark); font-weight: 600; }

.track-items-box, .order-summary-box {
  background: var(--cream-2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
}
.track-items-box .row, .order-summary-box .row {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; padding: 5px 0;
  color: var(--text-dark);
}
.track-items-box .row.total, .order-summary-box .row.total {
  font-weight: 800;
  margin-top: 6px;
  border-top: 1px dashed rgba(26,92,58,0.25);
  padding-top: 10px;
}

.delivery-result, .track-result { text-align: center; }
.delivery-result .icon-big { font-size: 2.2rem; margin-bottom: 8px; }
.delivery-result .yes { font-weight: 700; color: var(--deep-green); font-size: 1.02rem; margin-bottom: 4px; }
.delivery-result .no { font-weight: 700; color: var(--danger); font-size: 1.02rem; margin-bottom: 4px; }
.delivery-result p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Product Detail modal ---------- */
.product-detail-box { max-width: 880px; width: 100%; padding: 0; overflow: hidden; }
.pd-scroll {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 84vh;
  overflow-y: auto;
}
@media (max-width: 720px) {
  .pd-scroll { grid-template-columns: 1fr; }
}
.pd-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 15px;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}
.pd-gallery { background: var(--cream-2); padding: 20px; position: relative; }
.pd-main-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; background: var(--cream); }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumbs img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
  cursor: pointer; opacity: 0.6; border: 2px solid transparent; transition: all 0.15s ease;
}
.pd-thumbs img.active, .pd-thumbs img:hover { opacity: 1; border-color: var(--deep-green); }

.pd-body { padding: 24px 24px 28px; }
.pd-cat { font-size: 11px; color: var(--leaf-green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.pd-title { font-family: 'Noto Serif Bengali', serif; font-size: 1.35rem; font-weight: 700; color: var(--text-dark); margin: 4px 0 8px; }
.rating-line { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.stars { color: #e6a817; letter-spacing: 1px; }
.stars .empty { color: #ddd4bd; }
.pd-price { font-size: 1.4rem; font-weight: 800; color: #173e29; margin-bottom: 14px; }
.pd-price small { font-size: 12px; color: #8a9186; font-weight: 500; }
.pd-price.has-offer { color: var(--danger); }
.pd-price .price-original-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pd-price .price-original { font-size: 15px; }

.pd-trust-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pd-trust-strip span {
  font-size: 11px; background: var(--cream-2); color: var(--text-dark);
  padding: 5px 10px; border-radius: 999px; font-weight: 600;
}
.pd-trust-strip span.warn { background: #fff3cd; color: #8a6100; }

.pd-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.pd-section-title { font-family: 'Noto Serif Bengali', serif; font-weight: 700; font-size: 1rem; color: var(--deep-green); margin: 18px 0 10px; }
.pd-nutrition { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; background: var(--cream-2); padding: 12px 14px; border-radius: 10px; }

.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pd-actions .add-btn, .pd-actions .buy-now-btn { flex: 1; padding: 13px 18px; font-size: 0.9rem; min-width: 130px; }
.whatsapp-order-btn {
  flex: 1; min-width: 170px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff; font-weight: 700; font-size: 0.87rem;
  padding: 12px 16px; border-radius: 10px;
}
.whatsapp-order-btn:hover { background: #1fb856; }

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related-card { cursor: pointer; }
.related-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.related-card .rname { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); }
.related-card .rprice { font-size: 0.8rem; color: var(--deep-green); font-weight: 700; }

.reviews-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.no-reviews { font-size: 0.85rem; color: var(--text-muted); }
.review-card { background: var(--cream-2); border-radius: 10px; padding: 12px 14px; }
.rev-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.rev-name { font-weight: 700; font-size: 0.85rem; color: var(--text-dark); }
.rev-comment { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.rev-date { font-size: 0.72rem; color: #a3ab9e; }

.review-form { border-top: 1px solid rgba(26,92,58,0.1); padding-top: 16px; }
.star-input { font-size: 1.5rem; letter-spacing: 4px; color: #ddd4bd; margin-bottom: 10px; cursor: pointer; }
.star-input span { transition: color 0.15s ease; }
.star-input span.selected { color: #e6a817; }
.review-form input, .review-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(26,92,58,0.18); margin-bottom: 8px;
  font-size: 0.87rem; font-family: inherit; background: var(--cream);
}
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--deep-green); }
.review-form button {
  background: var(--deep-green); color: var(--white); border: none;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 0.85rem;
}
.review-form button:hover { background: var(--mid-green); }
.review-form-msg { font-size: 0.8rem; color: var(--deep-green); margin-top: 8px; }
.review-form-msg.is-error { color: var(--danger); }

/* ---------- Upcoming ("Coming Soon") scheduled products ---------- */
.upcoming-card { opacity: 0.92; }
.upcoming-card .product-img-wrap img { filter: grayscale(0.85) brightness(1.02); }
.upcoming-card .product-name, .upcoming-card .product-price { color: var(--text-muted); }
.upcoming-card .add-btn {
  background: var(--cream-2); color: var(--text-muted); cursor: not-allowed;
}
.coming-soon-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  background: rgba(31,42,34,0.82); color: #fff; font-size: 9px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}

/* =========================================================
   Mobile app feel — safe-area support, bottom-sheet modals,
   full-width drawer, larger touch targets
   ========================================================= */

.site-header { padding-top: env(safe-area-inset-top); }
.cart-header { padding-top: calc(20px + env(safe-area-inset-top)); }
.cart-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.floating-cart-btn { bottom: calc(20px + env(safe-area-inset-bottom)); }

@media (max-width: 640px) {
  /* modals slide up from the bottom like a native app sheet, instead of
     floating in the center of the screen */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    max-width: 100%;
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }
  .product-detail-box { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .pd-scroll { max-height: 92vh; }

  .cart-drawer { width: 100vw; }

  /* comfortable tap targets */
  .add-btn, .checkout-btn, .continue-shopping-btn, .btn-primary, .pill, .qty-controls button {
    min-height: 40px;
  }
  .cart-btn { min-height: 40px; }

  .container { padding: 0 16px; }
  .section { padding: 38px 0; }
  .section-head h2 { font-size: 1.4rem; }
}

/* =========================================================
   Mobile bottom app navigation — the defining "e-commerce app"
   pattern (Home / Shop / Track / Cart tab bar, fixed to the
   bottom of the viewport, replacing the floating cart pill).
   ========================================================= */
.mobile-bottom-nav { display: none; }

@media (max-width: 760px) {
  /* leave room at the bottom of every page for the fixed tab bar so it
     never covers footer content or the last row of products */
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

  /* the tab bar itself already has a cart tab with a live badge, so the
     floating pill button would be redundant screen clutter on mobile */
  .floating-cart-btn { display: none !important; }

  .mobile-bottom-nav {
    display: flex;
    align-items: stretch;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    background: rgba(250, 247, 240, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(26,92,58,0.10);
    box-shadow: 0 -8px 24px rgba(18,30,22,0.10);
    padding: 6px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .mnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 9.5px;
    font-weight: 600;
    padding: 5px 1px 4px;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.15s ease;
  }
  .mnav-item svg { width: 19px; height: 19px; }
  .mnav-item:active { background: rgba(26,92,58,0.07); }
  .mnav-item.active { color: var(--deep-green); }
  .mnav-cart-icon-wrap { position: relative; display: flex; }
  .mnav-cart-count {
    position: absolute;
    top: -7px; right: -9px;
    background: var(--deep-green);
    color: var(--white);
    font-size: 9px;
    font-weight: 800;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--cream);
  }
  .mnav-item.bump .mnav-cart-icon-wrap { animation: cart-bump 0.45s ease; }

  /* keep the toast above the tab bar instead of overlapping it */
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
