/* ============================================================
   FreshMart — style.css
   ============================================================ */

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

:root {
  --green:      #16a34a;
  --green-dark: #14532d;
  --green-light:#dcfce7;
  --accent:     #f97316;
  --accent-2:   #7c3aed;
  --text:       #111827;
  --text-muted: #6b7280;
  --border:     #e5e7eb;
  --bg:         #f9fafb;
  --white:      #ffffff;
  --red:        #dc2626;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.15);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: .22s ease;
  font-family: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 11px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600; transition: var(--transition);
}
.btn-primary  { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-ghost    { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-light); }
.btn-sm       { padding: 7px 16px; font-size: 13px; background: #fff; color: var(--text); border-radius: 6px; }
.btn-sm:hover { background: var(--green-light); color: var(--green); }
.btn-block    { width: 100%; margin-top: 10px; }

/* ======================================================
   TOP BAR
====================================================== */
.topbar {
  background: var(--green-dark); color: #d1fae5;
  font-size: 13px; padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-right { display: flex; gap: 20px; }
.topbar-right a { color: #d1fae5; transition: color var(--transition); }
.topbar-right a:hover { color: #fff; }

/* ======================================================
   HEADER
====================================================== */
.header {
  background: var(--white); position: sticky; top: 0; z-index: 900;
  box-shadow: var(--shadow-sm); padding: 14px 0;
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { font-size: 32px; }
.logo-name  { display: block; font-size: 22px; font-weight: 800; color: var(--green); line-height: 1; }
.logo-tagline { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; }
.footer-logo .logo-name { font-size: 18px; }

/* Search */
.search-wrap {
  flex: 1; display: flex; border: 2px solid var(--border); border-radius: 10px;
  overflow: hidden; min-width: 200px; transition: border-color .2s;
}
.search-wrap:focus-within { border-color: var(--green); }
.search-cat {
  border: none; border-right: 1px solid var(--border); outline: none;
  padding: 0 10px; font-size: 13px; background: #f3f4f6; color: var(--text-muted);
  font-family: inherit; cursor: pointer;
}
.search-input {
  flex: 1; border: none; outline: none; padding: 10px 14px;
  font-size: 14px; font-family: inherit; background: var(--white);
}
.search-btn {
  background: var(--green); color: #fff; padding: 0 18px;
  font-size: 18px; transition: background var(--transition);
}
.search-btn:hover { background: var(--green-dark); }

/* Header actions */
.header-actions { display: flex; gap: 6px; flex-shrink: 0; }
.action-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 14px; border-radius: 8px;
  transition: background var(--transition); position: relative;
}
.action-btn:hover { background: var(--green-light); }
.action-icon { font-size: 22px; line-height: 1; }
.action-label { font-size: 11px; color: var(--text-muted); }
.cart-count {
  position: absolute; top: 2px; right: 8px;
  background: var(--red); color: #fff; border-radius: 50%;
  width: 18px; height: 18px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ======================================================
   NAV
====================================================== */
.nav {
  background: var(--green-dark); position: sticky;
  top: 72px; z-index: 800;
}
.nav-inner { display: flex; align-items: center; }
.nav-toggle { display: none; color: #fff; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 13px 16px; color: rgba(255,255,255,.85);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.1); color: #fff;
}

/* ======================================================
   HERO
====================================================== */
.hero { position: relative; overflow: hidden; height: 480px; }

.hero-slides { display: flex; height: 100%; transition: transform .6s cubic-bezier(.77,0,.18,1); }
.hero-slide {
  min-width: 100%; display: flex; align-items: center;
  padding: 40px 0; opacity: .4; transition: opacity .6s;
}
.hero-slide.active { opacity: 1; }

.hero-content { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.hero-text { color: #fff; max-width: 520px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4); border-radius: 20px;
  padding: 4px 14px; font-size: 12px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px;
}
.hero-text h1 { font-size: clamp(28px,4vw,52px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero-text p  { font-size: 17px; opacity: .9; margin-bottom: 28px; line-height: 1.6; }
.hero-btns    { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual  { font-size: clamp(60px,10vw,130px); filter: drop-shadow(0 8px 32px rgba(0,0,0,.25)); flex-shrink: 0; }
.hero-img-wrap { flex-shrink: 0; width: clamp(200px,35%,440px); aspect-ratio: 1/0.85; position: relative; }
.hero-product-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  border: 3px solid rgba(255,255,255,.2);
}

.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); transition: background .3s, transform .3s;
}
.dot.active { background: #fff; transform: scale(1.3); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); color: #fff; width: 44px; height: 44px;
  border-radius: 50%; font-size: 18px; display: flex; align-items: center;
  justify-content: center; transition: background .2s; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-arrow.left  { left: 20px; }
.hero-arrow.right { right: 20px; }

/* ======================================================
   SECTION COMMON
====================================================== */
.section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.section-head p  { color: var(--text-muted); font-size: 15px; }

/* ======================================================
   DEPARTMENTS GRID
====================================================== */
.depts-section { background: var(--white); }

.depts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
}
.dept-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 10px; background: var(--bg); border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.dept-card:hover {
  transform: translateY(-4px); border-color: var(--c);
  background: color-mix(in srgb, var(--c) 8%, white);
}
.dept-emoji { font-size: 36px; line-height: 1; }
.dept-card span { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; }

/* ======================================================
   DEALS BANNER
====================================================== */
.deals-banner { padding: 32px 0; background: #111827; }
.deals-inner { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.deal-card {
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
}
.deal-card::before {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.deal-red   { background: linear-gradient(135deg,#dc2626,#f87171); }
.deal-green { background: linear-gradient(135deg,#16a34a,#4ade80); }
.deal-blue  { background: linear-gradient(135deg,#1d4ed8,#60a5fa); }

.deal-pct { font-size: 26px; font-weight: 800; color: #fff; }
.deal-txt { font-size: 15px; color: rgba(255,255,255,.88); font-weight: 500; }

/* ======================================================
   PRODUCTS SECTION
====================================================== */
.products-section { background: var(--bg); }

.products-controls {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.sort-wrap select {
  border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px;
  font-family: inherit; font-size: 13px; outline: none; cursor: pointer;
  background: var(--white);
}

.section-head { display: flex; justify-content: space-between; align-items: flex-start; text-align: left; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 24px; }
.section-head p  { display: none; }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px; border-radius: 6px; font-size: 16px;
  background: var(--white); border: 1px solid var(--border); color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.view-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

/* Filter chips */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: var(--white); border: 1px solid var(--border); cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }

/* No results */
.no-results { text-align: center; padding: 80px 20px; }
.no-results-icon { font-size: 60px; margin-bottom: 16px; }
.no-results h3 { font-size: 22px; margin-bottom: 8px; }
.no-results p  { color: var(--text-muted); margin-bottom: 24px; }

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.products-grid.list-view {
  grid-template-columns: 1fr;
}

/* Product Card */
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-card .badge-wrap { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge-sale   { background: #fef2f2; color: var(--red); }
.badge-new    { background: #eff6ff; color: #2563eb; }
.badge-organic{ background: #f0fdf4; color: var(--green); }
.badge-hot    { background: #fff7ed; color: var(--accent); }

.product-img-wrap {
  background: #f8fafc;
  display: flex; align-items: center; justify-content: center;
  height: 200px; overflow: hidden; cursor: pointer; position: relative;
}
.product-img-wrap:hover .quick-view-btn { opacity: 1; transform: translateY(0); }
.product-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.product-img-wrap:hover .product-img { transform: scale(1.07); }
/* emoji fallback shown when image fails */
.product-emoji { font-size: 70px; line-height: 1; transition: transform .3s; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-img-wrap:hover .product-emoji { transform: scale(1.1); }

.quick-view-btn {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: rgba(0,0,0,.75); color: #fff; border-radius: 20px;
  padding: 5px 14px; font-size: 12px; font-weight: 600; opacity: 0;
  transition: opacity .2s, transform .2s; white-space: nowrap;
}

.wishlist-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--white);
  box-shadow: var(--shadow-sm); font-size: 16px; display: flex; align-items: center;
  justify-content: center; z-index: 2; transition: background var(--transition), color var(--transition);
}
.wishlist-btn.active { color: var(--red); background: #fef2f2; }

.product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-dept { font-size: 11px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: .5px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }
.product-brand{ font-size: 12px; color: var(--text-muted); }

.product-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.stars { color: #f59e0b; }
.rating-count { color: var(--text-muted); }

.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-current { font-size: 18px; font-weight: 800; color: var(--text); }
.price-old     { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.price-save    { font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-light); padding: 2px 6px; border-radius: 4px; }

.product-footer { padding: 0 14px 14px; }
.qty-control {
  display: flex; align-items: center; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; width: fit-content;
}
.qty-btn { padding: 7px 13px; font-size: 16px; font-weight: 700; color: var(--green); transition: background .15s; }
.qty-btn:hover { background: var(--green-light); }
.qty-num { padding: 0 10px; font-size: 15px; font-weight: 600; min-width: 32px; text-align: center; }
.add-to-cart {
  width: 100%; padding: 9px; background: var(--green); color: #fff; border-radius: 8px;
  font-size: 14px; font-weight: 600; transition: background var(--transition); display: flex;
  align-items: center; justify-content: center; gap: 6px;
}
.add-to-cart:hover { background: var(--green-dark); }
.add-to-cart.in-cart { background: var(--accent-2); }

/* List view overrides */
.list-view .product-card { flex-direction: row; }
.list-view .product-img-wrap { width: 160px; flex-shrink: 0; height: 160px; border-radius: 0; }
.list-view .product-emoji { font-size: 55px; }
.list-view .product-body { flex-direction: row; flex-wrap: wrap; align-items: center; }
.list-view .product-price { margin-top: 0; }
.list-view .product-footer { display: flex; align-items: center; gap: 12px; padding: 14px; flex-shrink: 0; }

/* Load more */
.load-more-wrap { text-align: center; margin-top: 36px; }
.load-more-btn { padding: 12px 40px; font-size: 15px; color: var(--green); border-color: var(--green); border: 2px solid var(--green); background: transparent; border-radius: 8px; font-weight: 600; }
.load-more-btn:hover { background: var(--green); color: #fff; }

/* ======================================================
   PROMO STRIP
====================================================== */
.promo-strip { background: var(--white); border-top: 1px solid var(--border); padding: 32px 0; }
.promo-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.promo-item { display: flex; align-items: center; gap: 14px; }
.promo-icon { font-size: 34px; }
.promo-item strong { display: block; font-size: 15px; font-weight: 700; }
.promo-item span   { font-size: 13px; color: var(--text-muted); }

/* ======================================================
   FOOTER
====================================================== */
.footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }

.footer-brand p { font-size: 14px; line-height: 1.7; margin: 16px 0 20px; color: #94a3b8; max-width: 280px; }
.footer-logo .logo-name    { color: #4ade80; }
.footer-logo .logo-tagline { color: #64748b; }
.footer-logo .logo-icon    { font-size: 28px; }

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: background var(--transition);
}
.social-link:hover { background: var(--green); }

.footer-col h4 { font-size: 15px; font-weight: 700; color: #f1f5f9; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: #94a3b8; transition: color var(--transition); }
.footer-col ul li a:hover { color: #4ade80; }

.contact-list li { font-size: 14px; color: #94a3b8; display: flex; gap: 8px; align-items: flex-start; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom span { font-size: 13px; color: #64748b; }

.powered-by-wrap { text-align: center; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.04); margin-top: 12px; }
.powered-by-text { font-size: 13px; color: #64748b; }
.powered-by-link {
  font-weight: 700;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: .3px;
  transition: opacity .2s;
}
.powered-by-link:hover { opacity: .8; }

.payment-icons { display: flex; gap: 8px; }
.pay-icon {
  padding: 4px 10px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; font-size: 11px; font-weight: 700; color: #94a3b8;
}

/* ======================================================
   CART DRAWER
====================================================== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 1100; 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; bottom: 0; width: 400px; max-width: 100%;
  background: var(--white); z-index: 1200; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.77,0,.18,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

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

.cart-body { flex: 1; overflow-y: auto; padding: 16px 24px; }

.cart-empty { text-align: center; padding: 60px 0; }
.cart-empty-icon { font-size: 60px; margin-bottom: 12px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 20px; font-size: 15px; }

.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: flex; gap: 14px; padding: 14px; background: var(--bg);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.cart-item-thumb {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; background: #f1f5f9; display: flex; align-items: center; justify-content: center;
}
.cart-thumb-img  { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-thumb-emoji{ font-size: 32px; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-brand { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--green); margin-top: 4px; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-qty-btn {
  width: 26px; height: 26px; border-radius: 6px; background: var(--white);
  border: 1px solid var(--border); font-size: 14px; font-weight: 700;
  color: var(--green); display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cart-qty-btn:hover { background: var(--green-light); }
.cart-qty { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-remove { font-size: 14px; color: var(--text-muted); margin-left: auto; transition: color .2s; }
.cart-remove:hover { color: var(--red); }

.cart-footer {
  padding: 20px 24px; border-top: 1px solid var(--border);
}
.cart-summary { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.summary-total { font-size: 17px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--border); }

/* ======================================================
   TOAST
====================================================== */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1f2937; color: #fff; padding: 12px 24px;
  border-radius: 30px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; z-index: 2000;
  transition: opacity .3s, transform .3s;
  box-shadow: var(--shadow-lg); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ======================================================
   MODAL
====================================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 1300; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-56%);
  width: 700px; max-width: 95vw; background: var(--white);
  border-radius: var(--radius); z-index: 1400; overflow: hidden;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  max-height: 90vh; overflow-y: auto;
}
.modal.open { opacity: 1; pointer-events: all; transform: translate(-50%,-50%); }

.modal-close {
  position: absolute; top: 16px; right: 16px; font-size: 22px;
  color: var(--text-muted); z-index: 10; transition: color .2s;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: 50%;
}
.modal-close:hover { color: var(--red); }

.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img {
  background: #f8fafc; display: flex; align-items: center; justify-content: center;
  min-height: 300px; overflow: hidden; position: relative;
}
.modal-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  min-height: 300px;
}
.modal-img .modal-emoji {
  font-size: 120px; display: flex; align-items: center;
  justify-content: center; width: 100%; min-height: 300px;
  padding: 40px;
}
.modal-info { padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.modal-dept { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; }
.modal-name { font-size: 22px; font-weight: 800; line-height: 1.3; }
.modal-brand { font-size: 14px; color: var(--text-muted); }
.modal-rating { display: flex; align-items: center; gap: 6px; }
.modal-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.modal-price-row { display: flex; align-items: baseline; gap: 10px; }
.modal-price { font-size: 28px; font-weight: 800; }
.modal-old   { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.modal-save  { font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-light); padding: 3px 8px; border-radius: 4px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid  { grid-template-columns: 1fr 1fr; }
  .deals-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar-right { display: none; }
  .header-inner { gap: 12px; }
  .search-cat   { display: none; }
  .action-label { display: none; }
  .nav-toggle   { display: block; }
  .nav-list     { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--green-dark); z-index: 900; }
  .nav-list.open { display: flex; }
  .nav { position: relative; }
  .hero         { height: auto; min-height: 380px; }
  .hero-content { flex-direction: column; text-align: center; gap: 20px; }
  .hero-visual  { font-size: 70px; }
  .hero-img-wrap { width: 100%; max-width: 360px; }
  .hero-product-img { border-radius: 12px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .footer-grid  { grid-template-columns: 1fr; }
  .promo-grid   { grid-template-columns: 1fr 1fr; }
  .modal-body   { grid-template-columns: 1fr; }
  .modal-img    { min-height: 180px; font-size: 80px; }
}

@media (max-width: 480px) {
  .header-inner { flex-wrap: nowrap; }
  .search-wrap  { min-width: 0; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .promo-grid   { grid-template-columns: 1fr; }
  .depts-grid   { grid-template-columns: repeat(5, 1fr); }
  .dept-card    { padding: 14px 4px; }
  .dept-emoji   { font-size: 26px; }
  .dept-card span { font-size: 10px; }
  .hero-text h1 { font-size: 26px; }
  .hero-btns    { justify-content: center; }
  .list-view .product-card { flex-direction: column; }
  .list-view .product-img-wrap { width: 100%; height: 140px; }
}

/* Image lazy-load fade in */
.product-img { opacity: 0; transition: opacity .35s ease, transform .4s ease; }
.product-img.loaded { opacity: 1; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ======================================================
   WHY CHOOSE US
====================================================== */
.why-section { background: var(--white); }

.section-head-center { text-align: center; margin-bottom: 40px; }
.section-head-center h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.section-head-center p  { color: var(--text-muted); font-size: 15px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 28px 24px; border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; gap: 12px;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.why-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: color-mix(in srgb, var(--wc) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.why-card h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.why-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ======================================================
   FLASH SALE
====================================================== */
.flash-sale-section {
  background: linear-gradient(135deg, #0f2219 0%, #14532d 50%, #1a6b3a 100%);
  padding: 56px 0;
}

.flash-inner {
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}

.flash-left {
  flex: 1; min-width: 260px;
  display: flex; flex-direction: column; gap: 20px;
}
.flash-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); color: #fcd34d;
  padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;
  width: fit-content;
}
.flash-left h2 { font-size: 32px; font-weight: 800; color: #fff; line-height: 1.2; }

.countdown { display: flex; align-items: center; gap: 10px; }
.cdown-block {
  background: rgba(255,255,255,.1); border-radius: 10px;
  padding: 14px 18px; text-align: center; min-width: 72px;
  display: flex; flex-direction: column; gap: 4px;
}
.cdown-block span { font-size: 36px; font-weight: 800; color: #fff; line-height: 1; }
.cdown-block small { font-size: 11px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .5px; }
.cdown-sep { font-size: 28px; font-weight: 800; color: #4ade80; }

.flash-items {
  flex: 1.4; display: flex; gap: 16px; flex-wrap: wrap;
}
.flash-item {
  background: rgba(255,255,255,.08); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; overflow: hidden;
  flex: 1; min-width: 140px; max-width: 180px;
  transition: transform var(--transition);
}
.flash-item:hover { transform: translateY(-4px); }
.flash-item img { width: 100%; height: 130px; object-fit: cover; }
.flash-item-info { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.flash-item-name { font-size: 13px; font-weight: 600; color: #fff; }
.flash-item-off  { font-size: 12px; font-weight: 700; color: #4ade80; }

/* ======================================================
   TESTIMONIALS
====================================================== */
.testimonials-section { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.testimonial-stars { font-size: 18px; color: #f59e0b; letter-spacing: 2px; }

.testimonial-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; font-style: italic; flex: 1; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.testimonial-author span   { font-size: 12px; color: var(--text-muted); }

/* ======================================================
   NEWSLETTER
====================================================== */
.newsletter-section {
  background: linear-gradient(135deg, #0f2219 0%, #14532d 60%, #1a6b3a 100%);
  padding: 64px 0;
}

.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}

.newsletter-text { display: flex; flex-direction: column; gap: 16px; }
.newsletter-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); color: #86efac;
  padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  width: fit-content;
}
.newsletter-text h2 { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.25; }
.newsletter-text p  { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.7; }

.newsletter-perks { display: flex; flex-direction: column; gap: 8px; }
.newsletter-perks li { font-size: 13px; color: #86efac; font-weight: 500; }

.newsletter-form-wrap {
  background: rgba(255,255,255,.07); border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12); padding: 32px;
}

.newsletter-form { display: flex; flex-direction: column; gap: 16px; }

.nl-field { display: flex; flex-direction: column; gap: 6px; }
.nl-field label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.nl-field input {
  padding: 12px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: #fff; font-family: inherit; font-size: 14px; outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.nl-field input::placeholder { color: rgba(255,255,255,.35); }
.nl-field input:focus { border-color: #4ade80; background: rgba(255,255,255,.12); }

.nl-submit { font-size: 15px; padding: 14px 24px; margin-top: 4px; }
.nl-note { font-size: 12px; color: rgba(255,255,255,.45); text-align: center; }

/* ======================================================
   RESPONSIVE — new sections
====================================================== */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .flash-inner { gap: 28px; }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .flash-items { gap: 10px; }
  .flash-left h2 { font-size: 24px; }
  .cdown-block { padding: 10px 14px; min-width: 58px; }
  .cdown-block span { font-size: 26px; }
  .section-head-center h2 { font-size: 22px; }
}
