/* ============================================================
   GreenBasket – Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #2e7d32;
  --green-light:  #4caf50;
  --green-dark:   #1b5e20;
  --green-pale:   #e8f5e9;
  --orange:       #f57c00;
  --orange-light: #ff9800;
  --red:          #e53935;
  --text:         #212121;
  --text-muted:   #757575;
  --border:       #e0e0e0;
  --white:        #ffffff;
  --bg-light:     #f9fbe7;
  --shadow:       0 2px 8px rgba(0,0,0,.10);
  --shadow-md:    0 4px 20px rgba(0,0,0,.12);
  --radius:       10px;
  --radius-sm:    6px;
  --transition:   .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fafafa;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 28px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.view-all { color: var(--green); font-weight: 600; font-size: .88rem; border-bottom: 1px solid var(--green); padding-bottom: 1px; }
.view-all:hover { color: var(--green-dark); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-sale  { background: var(--red);    color: #fff; }
.badge-new   { background: var(--orange); color: #fff; }
.badge-hot   { background: #7b1fa2;       color: #fff; }
.badge-org   { background: var(--green);  color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .88rem;
  transition: var(--transition);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border: 2px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #e65100; }
.btn-sm { padding: 6px 14px; font-size: .80rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--green-dark);
  color: #c8e6c9;
  font-size: .78rem;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #c8e6c9; }
.top-bar a:hover { color: #fff; }
.top-bar-links { display: flex; gap: 18px; }

/* ---------- Header ---------- */
.header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-main { padding: 12px 0; }
.header-main .container { display: flex; align-items: center; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
}
.logo-text { line-height: 1.2; }
.logo-text strong { font-size: 1.2rem; color: var(--green-dark); display: block; }
.logo-text span { font-size: .7rem; color: var(--text-muted); }

.location-selector {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  font-size: .82rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.location-selector:hover { border-color: var(--green); }
.location-selector .city { font-weight: 700; color: var(--text); }

.search-bar {
  flex: 1;
  display: flex;
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.search-bar select {
  border: none;
  border-right: 1px solid var(--border);
  padding: 0 10px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 600;
  outline: none;
  font-size: .82rem;
  cursor: pointer;
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 0 14px;
  outline: none;
  font-size: .92rem;
}
.search-bar button {
  background: var(--green);
  color: #fff;
  padding: 0 18px;
  font-size: 1rem;
  transition: var(--transition);
}
.search-bar button:hover { background: var(--green-dark); }

.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: .68rem; color: var(--text-muted); transition: var(--transition);
  position: relative;
}
.header-btn:hover { background: var(--green-pale); color: var(--green-dark); }
.header-btn .icon { font-size: 1.3rem; }
.header-btn .label { white-space: nowrap; }
.cart-count {
  position: absolute; top: 2px; right: 6px;
  background: var(--red); color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Nav ---------- */
.main-nav { background: var(--green); }
.main-nav .container { display: flex; align-items: center; }
.nav-list { display: flex; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 11px 16px;
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-list > li:hover > a,
.nav-list > li.active > a { background: rgba(0,0,0,.18); }

.nav-list > li { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  min-width: 200px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 999;
  border-top: 3px solid var(--green);
}
.nav-list > li:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 18px;
  font-size: .84rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.dropdown a:hover { background: var(--green-pale); color: var(--green-dark); }
.dropdown a:last-child { border-bottom: none; }

.mega-dropdown {
  min-width: 600px;
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 20px;
  border-top: 3px solid var(--green);
}
.nav-list > li:hover .mega-dropdown { display: flex; gap: 30px; }
.mega-col h4 { font-size: .78rem; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.mega-col a { padding: 5px 0; font-size: .82rem; border: none; }

.nav-promo {
  margin-left: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 0 8px;
  font-size: .78rem; color: #c8e6c9;
}
.nav-promo strong { color: #fff; }

/* ---------- Hero / Banner ---------- */
.hero { position: relative; overflow: hidden; }
.hero-slider { display: flex; }
.hero-slide {
  min-width: 100%;
  min-height: 460px;
  display: flex; align-items: center;
  padding: 40px 0;
  position: relative;
}
.hero-slide-1 { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #4caf50 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #e65100 0%, #f57c00 60%, #ff9800 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #1a237e 0%, #283593 60%, #3949ab 100%); }

.hero-content { position: relative; z-index: 2; color: #fff; max-width: 520px; }
.hero-tag { display: inline-block; background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 14px; }
.hero-title { font-size: 2.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.hero-title span { color: #ffeb3b; }
.hero-subtitle { font-size: 1.05rem; opacity: .88; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; }
.hero-actions .btn { padding: 12px 28px; font-size: .95rem; }
.hero-actions .btn-white { background: #fff; color: var(--green-dark); }
.hero-actions .btn-white:hover { background: #f1f8e9; }
.hero-actions .btn-outline-white { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.hero-actions .btn-outline-white:hover { background: rgba(255,255,255,.15); }

.hero-image {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 45%;
  display: flex; align-items: center; justify-content: center;
}
.hero-image-inner {
  width: 380px; height: 380px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10rem;
}

.hero-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; cursor: pointer; transition: var(--transition);
}
.hero-dot.active { background: #fff; transform: scale(1.25); }

.hero-badges {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.35);
  padding: 10px 0;
}
.hero-badges .container { display: flex; gap: 30px; justify-content: center; }
.hero-badge-item { display: flex; align-items: center; gap: 8px; color: #fff; font-size: .82rem; }
.hero-badge-item .icon { font-size: 1.2rem; }

/* ---------- Category Chips ---------- */
.category-strip { background: #fff; padding: 16px 0; border-bottom: 1px solid var(--border); }
.category-chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.category-chips::-webkit-scrollbar { height: 3px; }
.category-chips::-webkit-scrollbar-track { background: #f0f0f0; }
.category-chips::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 2px; }

.cat-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green-dark);
}
.cat-chip .chip-icon { font-size: 1.1rem; }

/* ---------- Section Wrapper ---------- */
.section { padding: 50px 0; }
.section-alt { background: var(--green-pale); }
.section-dark { background: var(--green-dark); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: #a5d6a7; }

/* ---------- Product Card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.product-card-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.product-card-actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
  opacity: 0; transition: var(--transition);
}
.product-card:hover .product-card-actions { opacity: 1; }
.product-card-actions button {
  width: 32px; height: 32px;
  background: #fff; border-radius: 50%;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: var(--transition);
}
.product-card-actions button:hover { background: var(--green); color: #fff; }

.product-img {
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  background: #f5f5f5;
  font-size: 5rem;
  overflow: hidden;
}
.product-img img { height: 100%; width: 100%; object-fit: cover; }

.product-body { padding: 14px; }
.product-brand { font-size: .70rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.product-name { font-size: .92rem; font-weight: 600; margin: 3px 0 6px; color: var(--text); line-height: 1.35; }
.product-weight { font-size: .75rem; color: var(--text-muted); margin-bottom: 8px; }

.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.stars { color: #ffc107; font-size: .8rem; letter-spacing: 1px; }
.rating-count { font-size: .72rem; color: var(--text-muted); }

.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--green-dark); }
.price-original { font-size: .82rem; text-decoration: line-through; color: var(--text-muted); }
.price-save { font-size: .72rem; color: var(--red); font-weight: 600; }

.product-add {
  width: 100%;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px;
  font-weight: 600;
  font-size: .82rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--transition);
}
.product-add:hover { background: var(--green-dark); }

.qty-control {
  display: flex; align-items: center; gap: 0;
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 32px; height: 32px;
  background: var(--green); color: #fff;
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--green-dark); }
.qty-val {
  flex: 1; text-align: center;
  font-weight: 700; font-size: .88rem;
  padding: 0 8px;
  min-width: 32px;
}

/* ---------- Flash Sale ---------- */
.flash-sale-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.flash-title { font-size: 1.55rem; font-weight: 800; color: var(--red); }
.flash-icon { font-size: 1.8rem; }
.countdown {
  display: flex; gap: 8px; margin-left: auto;
}
.count-block {
  background: var(--red); color: #fff;
  width: 54px; border-radius: var(--radius-sm);
  text-align: center; padding: 6px 4px;
}
.count-num { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.count-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }

/* ---------- Category Cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-icon { font-size: 2.4rem; margin-bottom: 8px; }
.cat-name { font-size: .86rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.cat-count { font-size: .72rem; color: var(--text-muted); }

/* ---------- Banner Strip ---------- */
.banner-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 50px;
}
.promo-banner {
  border-radius: var(--radius);
  padding: 28px;
  min-height: 160px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.promo-banner-1 { background: linear-gradient(135deg, #1b5e20, #4caf50); color: #fff; }
.promo-banner-2 { background: linear-gradient(135deg, #e65100, #ff9800); color: #fff; }
.promo-banner h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.promo-banner p { font-size: .85rem; opacity: .85; margin-bottom: 14px; }
.promo-banner-emoji {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 5rem; opacity: .3;
}

/* ---------- Brand Row ---------- */
.brand-row {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 8px;
}
.brand-row::-webkit-scrollbar { height: 3px; }
.brand-row::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 2px; }

.brand-card {
  min-width: 120px; height: 70px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; color: var(--text-muted);
  transition: var(--transition); cursor: pointer;
  flex-shrink: 0;
}
.brand-card:hover { border-color: var(--green); color: var(--green-dark); box-shadow: var(--shadow); }

/* ---------- How It Works ---------- */
.how-steps {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  text-align: center;
}
.how-step { padding: 28px 16px; }
.step-icon {
  width: 72px; height: 72px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 16px;
  border: 3px solid var(--green-light);
}
.step-num { font-size: .72rem; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.step-title { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: .82rem; color: var(--text-muted); }

/* ---------- Testimonials ---------- */
.testimonials-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
}
.testimonial-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
}
.testimonial-card .stars { color: #ffeb3b; font-size: .9rem; margin-bottom: 10px; }
.testimonial-text { font-size: .9rem; opacity: .88; line-height: 1.6; margin-bottom: 14px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.author-name { font-weight: 700; font-size: .88rem; }
.author-location { font-size: .75rem; opacity: .6; }

/* ---------- App Download ---------- */
.app-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  border-radius: var(--radius);
  padding: 50px 40px;
  display: flex; align-items: center; gap: 40px;
}
.app-content { flex: 1; }
.app-content h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 10px; }
.app-content p { opacity: .85; margin-bottom: 24px; }
.app-badges { display: flex; gap: 12px; }
.app-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer; transition: var(--transition);
}
.app-badge:hover { background: rgba(255,255,255,.25); }
.app-badge .icon { font-size: 1.5rem; }
.app-badge-text { line-height: 1.2; }
.app-badge-text small { font-size: .65rem; opacity: .8; }
.app-badge-text strong { font-size: .92rem; display: block; }
.app-phone { font-size: 8rem; flex-shrink: 0; }

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: var(--green-pale);
  padding: 50px 0;
  text-align: center;
}
.newsletter-form {
  display: flex; max-width: 500px; margin: 20px auto 0;
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.newsletter-form input {
  flex: 1; border: none; padding: 12px 18px; outline: none; font-size: .92rem;
}
.newsletter-form button {
  background: var(--green); color: #fff;
  padding: 0 24px; font-weight: 700; font-size: .88rem;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--green-dark); }

/* ---------- Footer ---------- */
.footer { background: #1a1a1a; color: #ccc; }
.footer-main { padding: 54px 0 34px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
  gap: 30px;
}
.footer-brand .logo-icon { background: var(--green); }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text span { color: #888; }
.footer-desc { margin: 14px 0 18px; font-size: .85rem; line-height: 1.7; color: #aaa; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: var(--transition);
}
.social-btn:hover { background: var(--green); color: #fff; }

.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: 16px; font-weight: 700; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: .84rem; color: #aaa; transition: var(--transition); }
.footer-col a:hover { color: var(--green-light); }

.footer-contact li { display: flex; gap: 8px; font-size: .83rem; color: #aaa; margin-bottom: 10px; align-items: flex-start; }
.footer-contact .icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.footer-payment { margin-top: 16px; }
.footer-payment p { font-size: .75rem; color: #888; margin-bottom: 8px; }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-icon {
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: .72rem; color: #ccc; font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: #777; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: #777; }
.footer-bottom-links a:hover { color: var(--green-light); }

/* ---------- Sidebar Cart Drawer ---------- */
.cart-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; right: -400px; top: 0; bottom: 0;
  width: 380px;
  background: #fff;
  z-index: 2001;
  transition: right .3s ease;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer-header h3 { font-size: 1.05rem; font-weight: 700; }
.cart-close { font-size: 1.3rem; color: var(--text-muted); padding: 4px; }
.cart-close:hover { color: var(--red); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 60px; height: 60px;
  background: #f5f5f5; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: .85rem; font-weight: 600; margin-bottom: 3px; }
.cart-item-weight { font-size: .72rem; color: var(--text-muted); margin-bottom: 6px; }
.cart-item-price { font-size: .88rem; font-weight: 700; color: var(--green-dark); }
.cart-item-remove { color: var(--text-muted); font-size: .8rem; margin-top: 4px; }
.cart-item-remove:hover { color: var(--red); }

.cart-drawer-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}
.cart-summary-row { display: flex; justify-content: space-between; font-size: .87rem; margin-bottom: 8px; }
.cart-summary-row.total { font-weight: 700; font-size: 1rem; color: var(--green-dark); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
.cart-coupon { display: flex; gap: 8px; margin: 12px 0; }
.cart-coupon input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; outline: none; }
.cart-coupon input:focus { border-color: var(--green); }
.cart-checkout-btn {
  width: 100%; background: var(--green); color: #fff;
  padding: 13px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem;
  margin-top: 12px; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cart-checkout-btn:hover { background: var(--green-dark); }

/* ---------- Toast Notification ---------- */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 3000;
}
.toast {
  background: var(--green-dark); color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  animation: slideInRight .3s ease;
  min-width: 220px;
}
.toast.error { background: var(--red); }
.toast.warning { background: var(--orange); }
@keyframes slideInRight {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ---------- Delivery Banner ---------- */
.delivery-benefits {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  background: var(--green);
}
.benefit-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,.2);
  color: #fff;
}
.benefit-item:last-child { border-right: none; }
.benefit-icon { font-size: 1.8rem; flex-shrink: 0; }
.benefit-text strong { display: block; font-size: .88rem; font-weight: 700; }
.benefit-text span { font-size: .75rem; opacity: .8; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .how-steps { grid-template-columns: repeat(2,1fr); }
  .testimonials-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-main .container { flex-wrap: wrap; }
  .search-bar { order: 3; flex: 0 0 100%; margin-top: 8px; }
  .mega-dropdown { flex-direction: column; min-width: 280px; }
  .hero-title { font-size: 1.9rem; }
  .hero-image { display: none; }
  .banner-strip { grid-template-columns: 1fr; }
  .delivery-benefits { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-section { flex-direction: column; text-align: center; }
  .app-badges { justify-content: center; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .testimonials-row { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .top-bar .container { flex-direction: column; gap: 4px; }
  .nav-list { display: none; }
  .hero-title { font-size: 1.6rem; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .delivery-benefits { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-btn {
  display: none;
  flex-direction: column; gap: 4px; padding: 8px;
  cursor: pointer;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 480px) {
  .mobile-menu-btn { display: flex; }
}

/* ---------- Sticky Add to Cart Bar (Product Page) ---------- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 2px solid var(--border);
  padding: 12px 0; z-index: 900;
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}
