/* ============================================================
   FreshMart — Design System & Custom Styles
   Green Theme: #16a34a (primary) | #f0fdf4 (light bg)
   ============================================================ */

:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --primary: var(--green-600);
  --primary-dark: var(--green-700);
  --primary-light: var(--green-100);
  --accent: var(--orange-500);
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --radius: .75rem;
  --radius-sm: .375rem;
  --transition: .25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Announcement Bar ── */
#announcement-bar {
  background: var(--green-700);
  color: var(--white);
  text-align: center;
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  z-index: 200;
}
.ticker-wrap { overflow: hidden; white-space: nowrap; }
.ticker {
  display: inline-block;
  animation: ticker-scroll 30s linear infinite;
}
.ticker span { margin: 0 3rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Navbar ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-700);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.logo span { color: var(--orange-500); }

/* Search bar */
.nav-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.nav-search input {
  width: 100%;
  padding: .6rem 1rem .6rem 2.8rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 2rem;
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--gray-50);
}
.nav-search input:focus { border-color: var(--primary); background: var(--white); }
.nav-search .search-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1rem;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
  display: none;
  z-index: 500;
}
.search-suggestions.show { display: block; }
.suggestion-item {
  padding: .65rem 1rem;
  font-size: .88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--gray-700);
}
.suggestion-item:hover { background: var(--green-50); color: var(--primary); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.nav-btn:hover { background: var(--gray-100); color: var(--primary); }
.cart-btn {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 2rem;
  position: relative;
}
.cart-btn:hover { background: var(--primary-dark) !important; }
#cart-count {
  background: var(--orange-500);
  color: var(--white);
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -4px; right: -4px;
}

/* Bottom nav for categories */
.nav-categories {
  background: var(--green-700);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-categories::-webkit-scrollbar { display: none; }
.cat-list {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 0;
}
.cat-list a {
  padding: .55rem 1.1rem;
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  border-bottom: 2px solid transparent;
}
.cat-list a:hover, .cat-list a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
  border-bottom-color: var(--green-300, #86efac);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  border-radius: var(--radius-sm);
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  display: block;
}

/* ── Hero Slider ── */
#hero {
  position: relative;
  overflow: hidden;
  background: var(--green-50);
}
.hero-slides { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.hero-slide {
  min-width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: var(--orange-500);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 2rem;
  margin-bottom: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-content h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-content p { font-size: 1.05rem; margin-bottom: 1.5rem; opacity: .9; max-width: 480px; }
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary);
  color: var(--white);
  padding: .8rem 1.8rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .95rem;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 14px rgba(22,163,74,.35);
}
.btn-hero:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-hero-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  margin-left: .75rem;
}
.btn-hero-outline:hover { background: var(--white); color: var(--primary); }

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: background var(--transition);
}
.slider-btn:hover { background: var(--white); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
  z-index: 5;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.slider-dot.active { background: var(--white); transform: scale(1.3); }

/* ── Section Styles ── */
.section { padding: 4rem 1.5rem; }
.section-sm { padding: 2.5rem 1.5rem; }
.container { max-width: 1280px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: .6rem;
}
.section-sub { color: var(--gray-500); max-width: 520px; margin: 0 auto; font-size: .95rem; }

/* ── Category Grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
.category-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem .75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: var(--gray-700);
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: var(--primary);
}
.category-icon {
  font-size: 2.2rem;
  margin-bottom: .6rem;
  display: block;
  transition: transform var(--transition);
}
.category-card:hover .category-icon { transform: scale(1.15); }
.category-card h3 { font-size: .82rem; font-weight: 600; }
.category-card p { font-size: .72rem; color: var(--gray-400); margin-top: .15rem; }

/* ── Product Card ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
  aspect-ratio: 1;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: .6rem; left: .6rem;
  background: var(--orange-500);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-badge.fresh { background: var(--green-600); }
.product-badge.sale  { background: #ef4444; }
.product-wishlist {
  position: absolute;
  top: .6rem; right: .6rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
  opacity: 0;
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { transform: scale(1.2); }

.product-info { padding: .85rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: .72rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.product-name { font-size: .92rem; font-weight: 600; color: var(--gray-800); margin-bottom: .3rem; line-height: 1.3; }
.product-weight { font-size: .78rem; color: var(--gray-400); margin-bottom: .5rem; }
.product-rating { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--gray-500); margin-bottom: .6rem; }
.stars { color: #f59e0b; font-size: .8rem; }
.product-price-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; margin-top: auto; }
.product-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.product-mrp { font-size: .8rem; color: var(--gray-400); text-decoration: line-through; }
.product-off { font-size: .72rem; color: var(--orange-500); font-weight: 700; }
.btn-add-cart {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: .55rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.btn-add-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-add-cart.added { background: var(--green-800); }

/* Qty stepper inside card */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 100%;
}
.qty-stepper button {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.qty-stepper button:hover { background: var(--primary-dark); }
.qty-stepper span {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-800);
}

/* ── Offers Banner ── */
.offers-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.offer-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  padding: 1.5rem;
  color: var(--white);
}
.offer-card-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  z-index: 0;
}
.offer-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,101,52,.8), rgba(22,101,52,.4));
  z-index: 1;
}
.offer-card-content { position: relative; z-index: 2; }
.offer-card-content h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .25rem; }
.offer-card-content p { font-size: .82rem; opacity: .9; margin-bottom: .75rem; }
.offer-tag {
  display: inline-block;
  background: var(--orange-500);
  padding: .2rem .6rem;
  border-radius: 2rem;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.btn-offer {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--white);
  color: var(--primary);
  padding: .45rem 1rem;
  border-radius: 2rem;
  font-size: .8rem;
  font-weight: 700;
  transition: background var(--transition);
}
.btn-offer:hover { background: var(--green-100); }

/* ── Why Choose Us ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: background var(--transition);
}
.feature-card:hover .feature-icon { background: var(--primary); color: var(--white); }
.feature-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; color: var(--gray-800); }
.feature-card p { font-size: .82rem; color: var(--gray-500); line-height: 1.5; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--green-200);
  position: absolute;
  top: .5rem; left: 1rem;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-text { font-size: .9rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1rem; padding-top: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .88rem; color: var(--gray-800); }
.author-location { font-size: .75rem; color: var(--gray-400); }

/* ── Newsletter ── */
.newsletter-section {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.newsletter-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; }
.newsletter-section p { opacity: .85; margin-bottom: 1.5rem; font-size: .95rem; }
.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: .5rem;
}
.newsletter-form input {
  flex: 1;
  padding: .75rem 1.2rem;
  border: none;
  border-radius: 2rem;
  font-size: .9rem;
  outline: none;
  color: var(--gray-800);
}
.btn-subscribe {
  background: var(--orange-500);
  color: var(--white);
  padding: .75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .88rem;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-subscribe:hover { background: var(--orange-600); }

/* ── Footer ── */
footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: .75rem; }
.footer-brand p { font-size: .85rem; line-height: 1.6; max-width: 260px; }
.footer-brand .social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-700);
  color: var(--gray-400);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.social-link:hover { background: var(--primary); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: .88rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { font-size: .83rem; color: var(--gray-400); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--green-400); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
}
.footer-bottom a { color: var(--green-400); }

/* ── Cart Drawer ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--white);
  z-index: 950;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); }
.close-cart {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--gray-600);
  transition: background var(--transition);
}
.close-cart:hover { background: var(--gray-200); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--gray-400);
  gap: .75rem;
}
.cart-empty i { font-size: 3rem; color: var(--gray-300); }
.cart-item {
  display: flex;
  gap: .9rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}
.cart-item-img {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--gray-100);
  flex-shrink: 0;
}
.cart-item-info { flex: 1 }
.cart-item-name { font-size: .88rem; font-weight: 600; color: var(--gray-800); margin-bottom: .2rem; }
.cart-item-price { font-size: .82rem; color: var(--primary); font-weight: 700; }
.cart-item-weight { font-size: .75rem; color: var(--gray-400); }
.cart-item-controls { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.cart-item-controls button {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: var(--gray-600);
  transition: border-color var(--transition), color var(--transition);
}
.cart-item-controls button:hover { border-color: var(--primary); color: var(--primary); }
.cart-item-controls span { font-size: .88rem; font-weight: 600; min-width: 1.5rem; text-align: center; }
.remove-item { margin-left: auto; color: var(--gray-300); font-size: .85rem; transition: color var(--transition); }
.remove-item:hover { color: #ef4444; }
.cart-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--gray-200); }
.cart-summary { margin-bottom: .75rem; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--gray-600); margin-bottom: .4rem; }
.cart-summary-row.total { font-weight: 800; color: var(--gray-900); font-size: 1rem; border-top: 1px solid var(--gray-200); padding-top: .5rem; margin-top: .3rem; }
.btn-whatsapp {
  width: 100%;
  background: #25D366;
  color: var(--white);
  padding: .9rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background var(--transition), transform var(--transition);
  margin-bottom: .6rem;
}
.btn-whatsapp:hover { background: #1ebe5c; transform: translateY(-1px); }
.btn-clear-cart {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-500);
  padding: .7rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition);
}
.btn-clear-cart:hover { border-color: #ef4444; color: #ef4444; }

/* ── WhatsApp Floating ── */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}
.wa-bubble {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-bubble:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.5); }
.wa-tooltip {
  background: var(--gray-900);
  color: var(--white);
  font-size: .75rem;
  padding: .35rem .75rem;
  border-radius: 2rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateY(0); }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--gray-900);
  color: var(--white);
  padding: .7rem 1.4rem;
  border-radius: 2rem;
  font-size: .88rem;
  font-weight: 500;
  z-index: 1000;
  transition: transform .3s ease;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success i { color: var(--green-400); }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity .6s ease, transform .6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Filter Pills ── */
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-pill {
  padding: .45rem 1rem;
  border-radius: 2rem;
  border: 1.5px solid var(--gray-200);
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}
.filter-pill:hover, .filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ── Countdown Timer ── */
.countdown { display: flex; gap: .75rem; }
.countdown-unit { text-align: center; }
.countdown-unit .number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  background: rgba(0,0,0,.3);
  border-radius: var(--radius-sm);
  padding: .2rem .6rem;
  min-width: 50px;
  display: block;
}
.countdown-unit .label { font-size: .65rem; color: rgba(255,255,255,.75); margin-top: .2rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── Back to Top ── */
#back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 799;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  pointer-events: none;
  font-size: .9rem;
}
#back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
#back-to-top:hover { background: var(--primary-dark); }

/* ── Offer page ── */
.offer-full-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.offer-full-card:hover { box-shadow: var(--shadow-lg); }
.offer-full-card .card-img { position: relative; }
.offer-full-card .card-img img { width: 100%; height: 200px; object-fit: cover; }
.offer-full-card .card-body { padding: 1.25rem; }
.offer-expiry { font-size: .78rem; color: var(--gray-400); margin-bottom: .4rem; }
.offer-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .3rem; }
.offer-desc { font-size: .83rem; color: var(--gray-500); margin-bottom: 1rem; }
.offer-discount {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 2rem;
  margin-bottom: .6rem;
}
.btn-claim {
  width: 100%;
  background: #25D366;
  color: var(--white);
  padding: .65rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: background var(--transition);
}
.btn-claim:hover { background: #1ebe5c; }

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info-card { background: var(--green-700); color: var(--white); border-radius: var(--radius); padding: 2rem; }
.contact-info-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.contact-info-card p { opacity: .85; font-size: .9rem; margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-item-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.contact-item-text h4 { font-size: .85rem; font-weight: 600; }
.contact-item-text p, .contact-item-text a { font-size: .82rem; opacity: .85; color: var(--white); }
.contact-form-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-700); margin-bottom: .35rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
  color: var(--gray-800);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.btn-submit {
  background: var(--primary);
  color: var(--white);
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  width: 100%;
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); }

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .5rem; }
.page-hero p { opacity: .85; font-size: .95rem; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .8rem; opacity: .75; margin-top: .75rem; }
.breadcrumb a { color: var(--white); }
.breadcrumb span { opacity: .6; }

/* ── About ── */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.about-text h2 { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); margin-bottom: 1rem; }
.about-text p { font-size: .9rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 1rem; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.stat-box { text-align: center; }
.stat-box .num { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-box .lbl { font-size: .78rem; color: var(--gray-500); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.team-card {
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-card img { width: 100%; height: 200px; object-fit: cover; }
.team-card-body { padding: 1.1rem; }
.team-card-body h3 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.team-card-body p { font-size: .8rem; color: var(--primary); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-categories { display: none; }
  .nav-search { display: none; }
  .mobile-search-wrap { padding: .5rem 1rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
  .mobile-search-wrap .nav-search { display: flex; max-width: 100%; }
  .hero-slide { min-height: 280px; }
  .hero-content h2 { font-size: 1.5rem; }
  .hero-content p { font-size: .88rem; }
  .btn-hero-outline { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-drawer { width: 100vw; }
}

/* ── Utility ── */
.bg-green-light { background: var(--green-50); }
.bg-gray-light  { background: var(--gray-50); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Page loader */
#page-loader {
  position: fixed; inset: 0;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .4s ease;
}
#page-loader.fade-out { opacity: 0; pointer-events: none; }
.loader-logo { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; }
.loader-bar {
  width: 200px; height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  animation: loader-anim 1.2s ease forwards;
}
@keyframes loader-anim {
  from { width: 0; }
  to   { width: 100%; }
}
