/* ==========================================
   VARIABLES & RESET
   ========================================== */
:root {
  --primary:       #2d6a4f;
  --primary-dark:  #1b4332;
  --primary-light: #52b788;
  --accent:        #f4a261;
  --accent-dark:   #e76f51;
  --light:         #d8f3dc;
  --lighter:       #f0faf2;
  --text:          #1a2e1a;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --shadow:        0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover:  0 8px 32px rgba(0,0,0,0.13);
  --radius:        14px;
  --radius-sm:     8px;
  --transition:    all 0.28s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: #fafcfa;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select, textarea { outline: none; font-family: inherit; }
ul { list-style: none; }

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-title { font-size: 2.2rem; color: var(--primary-dark); margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 560px; }
.section-subtitle.centered { margin-left: auto; margin-right: auto; }

/* ==========================================
   LAYOUT
   ========================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.text-center { text-align: center; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav-logo { visibility: hidden; }
.nav-logo.brand-ready { visibility: visible; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.nav-logo .leaf { color: var(--primary); font-size: 1.6rem; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ── Shop mega-menu ── */
.nav-shop-item { position: relative; }
.shop-chevron { font-size: 0.7rem; opacity: 0.6; margin-left: 2px; transition: transform 0.2s; display: inline-block; }
.nav-shop-item:hover .shop-chevron { transform: rotate(180deg); }

.shop-mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  padding: 16px;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  z-index: 1100;
}
.nav-shop-item:hover .shop-mega-menu { display: grid; }

/* keep menu open when cursor moves from link to menu */
.nav-shop-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px; right: -20px;
  height: 14px;
}

.mega-cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.mega-cat-link:hover { background: var(--bg); color: var(--primary); }
.mega-cat-emoji { font-size: 1.1rem; line-height: 1; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--light);
  color: var(--primary-dark);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}
.cart-btn:hover { background: var(--primary); color: #fff; }
.cart-count {
  position: absolute;
  top: -7px; right: -7px;
  background: var(--accent);
  color: #fff;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 55%, #40916c 100%);
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(82,183,136,0.25) 0%, transparent 70%);
}
.hero-bg-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-circles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.hero-bg-circles span:nth-child(1) { width: 500px; height: 500px; top: -100px; right: -150px; }
.hero-bg-circles span:nth-child(2) { width: 300px; height: 300px; bottom: -50px; right: 200px; }
.hero-bg-circles span:nth-child(3) { width: 200px; height: 200px; top: 50px; right: 400px; }

.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  color: #b7e4c7;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero h1 { font-size: 3.4rem; color: #fff; line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 em { color: #b7e4c7; font-style: normal; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.75); margin-bottom: 2.5rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--primary-dark); border-color: #fff; }
.hero .btn-primary:hover { background: var(--light); border-color: var(--light); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-stat strong { display: block; font-size: 1.7rem; color: #fff; font-family: 'Playfair Display', serif; }
.hero-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-product-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.hero-product-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.16); }
.hero-product-card:first-child { grid-column: 1 / -1; }
.hero-product-card .emoji { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.hero-product-card .name { font-size: 0.85rem; color: rgba(255,255,255,0.85); font-weight: 500; }
.hero-product-card .price { font-size: 1rem; color: #b7e4c7; font-weight: 700; }

/* ==========================================
   FEATURES BAR
   ========================================== */
.features-bar { background: #fff; padding: 44px 0; border-bottom: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.feature-item { display: flex; align-items: center; gap: 1rem; }
.feature-icon {
  width: 50px; height: 50px;
  background: var(--light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.feature-item h4 { font-family: 'Poppins', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 2px; }
.feature-item p  { font-size: 0.78rem; color: var(--text-muted); }

/* ==========================================
   PRODUCT CARDS
   ========================================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.product-image {
  height: 175px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.product-image[data-lightbox] { cursor: zoom-in; }

/* ── Lightbox ── */
#img-lightbox { display: none; }
#img-lightbox.open { display: block; }
.lightbox-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.80);
  animation: lb-fade .18s ease;
}
.lightbox-box {
  position: fixed; inset: 0; z-index: 9001;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.lightbox-img {
  max-width: min(88vw, 560px);
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  background: #f8f8f8;
  box-shadow: 0 16px 64px rgba(0,0,0,0.55);
  pointer-events: auto;
  animation: lb-zoom .2s ease;
}
.lightbox-name {
  color: #fff; font-size: 1rem; font-weight: 600;
  margin-top: 14px; text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}
.lightbox-close {
  position: fixed; top: 18px; right: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.15);
  color: #fff; font-size: 18px; line-height: 36px; text-align: center;
  cursor: pointer; pointer-events: auto;
  backdrop-filter: blur(4px);
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-zoom { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.product-emoji { font-size: 5rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12)); transition: transform 0.3s ease; }
.product-card:hover .product-emoji { transform: scale(1.12) rotate(-6deg); }

.product-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-category {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--primary);
  background: var(--light);
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.product-name { font-size: 0.95rem; font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.product-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { display: flex; align-items: baseline; gap: 3px; }
.price  { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); }
.unit   { font-size: 0.72rem; color: var(--text-muted); }

.btn-add-cart {
  display: flex; align-items: center; gap: 5px;
  background: var(--primary); color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 600;
  transition: var(--transition);
}
.btn-add-cart:hover { background: var(--primary-dark); transform: scale(1.05); }
.btn-out-of-stock { display: inline-block; padding: 7px 12px; border-radius: var(--radius-sm); background: #f1f1f1; color: #999; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }

.payment-method-tabs { display: flex; gap: 12px; margin-bottom: 1.25rem; }
.payment-tab { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.payment-tab:hover { border-color: var(--primary); background: #f0fdf4; }
.payment-tab.active { border-color: var(--primary); background: #f0fdf4; }
.payment-tab-icon { font-size: 1.5rem; flex-shrink: 0; }
.payment-tab-title { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.payment-tab-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.card-qty-stepper {
  display: flex; align-items: center;
  background: var(--primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.card-qty-btn {
  width: 30px; height: 34px;
  background: transparent; color: #fff;
  font-size: 1.1rem; font-weight: 700;
  transition: background 0.15s;
}
.card-qty-btn:hover { background: var(--primary-dark); }
.card-qty-num {
  min-width: 26px; text-align: center;
  color: #fff; font-weight: 700; font-size: 0.88rem;
}

/* ==========================================
   CATEGORIES
   ========================================== */
.categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.category-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.8rem 1rem;
  background: #fff; border-radius: var(--radius);
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.category-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-icon { font-size: 2.8rem; margin-bottom: 0.7rem; }
.category-card h3 { font-family: 'Poppins', sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.category-card p  { font-size: 0.72rem; color: var(--text-muted); }

/* ==========================================
   WHY CHOOSE US
   ========================================== */
.why-section { background: var(--lighter); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card { text-align: center; padding: 2.5rem 2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.why-icon { width: 72px; height: 72px; background: var(--light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.5rem; }
.why-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--primary-dark); }
.why-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.testimonial-stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 1rem; }
.testimonial-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.85rem; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.author-name  { font-weight: 600; font-size: 0.88rem; line-height: 1.2; }
.author-label { font-size: 0.73rem; color: var(--text-muted); }

/* ==========================================
   NEWSLETTER
   ========================================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 88px 0;
  text-align: center;
}
.newsletter-section h2 { color: #fff; font-size: 2rem; margin-bottom: 0.75rem; }
.newsletter-section p  { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1rem; }
.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.newsletter-form input {
  flex: 1; padding: 14px 18px;
  border: none; font-size: 0.9rem;
  background: #fff;
}
.newsletter-form button {
  padding: 14px 22px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--accent-dark); }

/* ==========================================
   FOOTER
   ========================================== */
footer { background: #0d2118; color: rgba(255,255,255,0.6); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.85; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 0.6rem; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}
.social-link:hover { background: var(--primary); }
.footer-col h4 { font-family: 'Poppins', sans-serif; font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a { font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-col address { font-style: normal; font-size: 0.85rem; line-height: 2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 0.78rem; }

/* ==========================================
   PAGE HEADER (inner pages)
   ========================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.page-header h1 { color: #fff; font-size: 2.4rem; margin-bottom: 0.4rem; }
.page-header p  { color: rgba(255,255,255,0.7); font-size: 1rem; }

/* ==========================================
   SHOP PAGE
   ========================================== */
.shop-controls {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 68px; z-index: 100;
  box-shadow: var(--shadow);
}
.shop-controls .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.shop-controls-left { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.filter-buttons {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
}
@media (max-width: 640px) {
  .filter-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .filter-buttons::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  background: var(--lighter); color: var(--text);
  border: 2px solid transparent;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.search-box {
  display: flex; align-items: center; gap: 7px;
  background: var(--lighter);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 8px 14px;
  transition: var(--transition);
}
.search-box:focus-within { border-color: var(--primary); background: #fff; }
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
.search-box input { border: none; background: transparent; font-size: 0.88rem; width: 180px; color: var(--text); }

.product-count { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }

.shop-section { padding: 48px 0; background: #f4f7f4; min-height: 60vh; }
.no-results { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 5rem 1rem; font-size: 1rem; }

/* ==========================================
   CART PAGE
   ========================================== */
.cart-page { background: #f4f7f4; min-height: calc(100vh - 68px); padding: 48px 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }

.cart-panel { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-panel-header h2 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--primary-dark); }
.cart-panel-body { padding: 1.25rem 1.5rem; }

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-image { width: 76px; height: 76px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; flex-shrink: 0; }
.cart-item-details h4 { font-family: 'Poppins', sans-serif; font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.cart-item-details p  { font-size: 0.78rem; color: var(--text-muted); }

.cart-item-qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cart-item-qty button {
  width: 32px; height: 32px;
  background: var(--lighter);
  font-size: 1rem; font-weight: 600;
  color: var(--primary-dark);
  transition: background 0.2s;
}
.cart-item-qty button:hover { background: var(--light); }
.cart-item-qty span { width: 36px; text-align: center; font-weight: 600; font-size: 0.88rem; }

.cart-item-total { font-weight: 700; font-size: 0.95rem; color: var(--primary-dark); min-width: 65px; text-align: right; }
.cart-item-remove { background: transparent; color: #dc2626; padding: 6px; border-radius: var(--radius-sm); transition: background 0.2s; }
.cart-item-remove:hover { background: #fef2f2; }

.cart-summary {
  background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  position: sticky; top: 120px;
}
.cart-summary h3 { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 0.65rem; color: var(--text-muted); }
.summary-row.total { font-weight: 700; font-size: 1.05rem; color: var(--text); border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.25rem; }
.cart-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.cart-actions .btn { justify-content: center; width: 100%; }
.free-shipping-notice {
  display: none;
  background: #f0fdf4; color: #15803d;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.78rem; text-align: center;
  margin-bottom: 0.75rem;
  border: 1px solid #bbf7d0;
}

.empty-cart { text-align: center; padding: 4rem 2rem; }
.empty-cart-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-cart h3 { font-family: 'Poppins', sans-serif; font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--text); }
.empty-cart p  { color: var(--text-muted); margin-bottom: 2rem; }

/* ==========================================
   CHECKOUT PAGE
   ========================================== */
.checkout-page { background: #f4f7f4; min-height: calc(100vh - 68px); padding: 48px 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }

.checkout-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.checkout-card:last-child { margin-bottom: 0; }
.checkout-card h2 {
  font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 1.5rem;
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--light);
  display: flex; align-items: center; gap: 8px;
}
.checkout-card h2 .step-num {
  width: 26px; height: 26px; background: var(--primary); color: #fff;
  border-radius: 50%; font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group label .req { color: #dc2626; margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--text);
  background: #fff; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group input.error, .form-group select.error { border-color: #dc2626; background: #fff5f5; }

.card-icons { display: flex; gap: 0.4rem; margin-left: auto; }
.card-icon { padding: 3px 7px; background: var(--lighter); border-radius: 4px; font-size: 0.68rem; font-weight: 700; color: var(--text-muted); border: 1px solid var(--border); }

.order-summary-card {
  background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  position: sticky; top: 120px;
}
.order-summary-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.summary-items { max-height: 280px; overflow-y: auto; margin-bottom: 0.5rem; }
.summary-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid var(--lighter); font-size: 0.83rem; }
.summary-item:last-child { border-bottom: none; }
.summary-emoji { font-size: 1.4rem; flex-shrink: 0; }
.summary-name  { flex: 1; color: var(--text); }
.summary-name strong { color: var(--text-muted); font-size: 0.78rem; }
.summary-price { font-weight: 600; color: var(--primary-dark); white-space: nowrap; }
.summary-totals { margin-top: 0.75rem; }
.secure-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--lighter); color: var(--primary-dark);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.78rem; margin-top: 1rem;
  border: 1px solid var(--light);
}

#order-success {
  display: none;
  background: #fff; border-radius: var(--radius); padding: 4rem 2rem;
  text-align: center; box-shadow: var(--shadow);
  grid-column: 1 / -1;
}
.success-icon { font-size: 5rem; margin-bottom: 1.5rem; display: block; }
#order-success h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 1rem; }
#order-success p  { color: var(--text-muted); margin-bottom: 0.4rem; font-size: 0.95rem; }
.order-num { display: inline-block; background: var(--light); color: var(--primary-dark); padding: 8px 22px; border-radius: 100px; font-weight: 700; font-size: 1.1rem; margin: 1rem 0 2rem; }

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-story { padding: 88px 0; }
.about-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-story-image { background: var(--light); border-radius: var(--radius); height: 420px; display: flex; align-items: center; justify-content: center; font-size: 9rem; }
.about-story-content h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 1.5rem; }
.about-story-content p  { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.85; font-size: 0.95rem; }

.about-values { background: var(--lighter); padding: 88px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.value-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.value-card h3 { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--primary-dark); }
.value-card p  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.7; }

.team-section { padding: 88px 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { text-align: center; background: #fff; border-radius: var(--radius); padding: 2.5rem 2rem; box-shadow: var(--shadow); transition: var(--transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem; font-size: 2.5rem; display: flex; align-items: center; justify-content: center; background: var(--light); }
.team-card h3  { font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.team-card .role { font-size: 0.78rem; color: var(--primary); font-weight: 500; margin-bottom: 0.75rem; display: block; }
.team-card p  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; }

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-section { padding: 88px 0; background: #f4f7f4; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; align-items: start; }
.contact-info-card {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius); padding: 2.5rem; color: #fff;
}
.contact-info-card h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.75rem; }
.contact-info-card > p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 2rem; line-height: 1.8; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-detail-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.14); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-detail h4 { font-family: 'Poppins', sans-serif; font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.55); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-detail p, .contact-detail a { font-size: 0.88rem; color: #fff; text-decoration: none; line-height: 1.6; }

.contact-form-card { background: #fff; border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.contact-form-card h2 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 1.5rem; font-family: 'Playfair Display', serif; }

/* ==========================================
   TOAST
   ========================================== */
#toast {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  background: var(--primary-dark); color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 500;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-hover);
  pointer-events: none;
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero .container       { grid-template-columns: 1fr; }
  .hero-visual           { display: none; }
  .hero                  { min-height: auto; padding: 80px 0; }
  .hero h1               { font-size: 2.8rem; }
  .footer-grid           { grid-template-columns: 1fr 1fr; }
  .categories-grid       { grid-template-columns: repeat(3, 1fr); }
  .cart-layout,
  .checkout-layout       { grid-template-columns: 1fr; }
  .cart-summary,
  .order-summary-card    { position: static; }
  .about-story-grid      { grid-template-columns: 1fr; }
  .about-story-image     { height: 260px; }
}

@media (max-width: 768px) {
  .navbar .container { padding: 0 1rem; }
  .nav-logo { font-size: 1rem; }

  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border);
    gap: 0.5rem;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }

  .cart-label { display: none; }
  .cart-btn {
    width: 40px; height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: var(--light);
  }

  .hero h1           { font-size: 2.2rem; }
  .hero-stats        { gap: 1.5rem; flex-wrap: wrap; }
  .features-grid     { grid-template-columns: 1fr 1fr; }
  .why-grid          { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .values-grid       { grid-template-columns: 1fr 1fr; }
  .team-grid         { grid-template-columns: 1fr 1fr; }
  .products-grid     { grid-template-columns: 1fr 1fr; }

  .cart-item { grid-template-columns: 64px 1fr auto; gap: 0.75rem; }
  .cart-item-qty   { grid-row: 2; grid-column: 2; }
  .cart-item-total { grid-row: 1; grid-column: 3; align-self: start; }
  .cart-item-remove{ grid-row: 2; grid-column: 3; align-self: start; }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .contact-layout { grid-template-columns: 1fr; }
  .section-title { font-size: 1.85rem; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.85rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .values-grid, .team-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { border-radius: var(--radius); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 60px 0; }
}
