/* =============================================
   FRESHMART – GLOBAL STYLES
   ============================================= */
:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-light: #4CAF50;
  --green-pale: #E8F5E9;
  --orange: #FF9800;
  --orange-dark: #F57C00;
  --red: #E53935;
  --white: #FFFFFF;
  --bg: #F5F5F5;
  --card-bg: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --border: #E0E0E0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font: 'Nunito', sans-serif;
  --font-display: 'Playfair Display', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =============================================
   LOADER
   ============================================= */
.loader-overlay {
  position: fixed; inset: 0;
  background: var(--green);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.loader-overlay.hidden { opacity: 0; pointer-events: none; }
.loader-box { text-align: center; color: #fff; }
.spinner {
  width: 50px; height: 50px;
  border: 5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-box p { font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--green-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: var(--transition);
}
.navbar.scrolled { background: var(--green); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand-logo {
  width: 38px; height: 38px;
  background: var(--orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
}
.brand-name {
  font-size: 1.4rem; font-weight: 900;
  color: #fff; letter-spacing: -0.5px;
}

.search-wrap {
  flex: 1; max-width: 540px; margin: 0 auto;
  position: relative;
}
.search-wrap input {
  width: 100%; padding: 0.65rem 1rem 0.65rem 2.8rem;
  border: none; border-radius: 50px;
  font-size: 0.95rem; font-family: var(--font);
  background: rgba(255,255,255,0.15);
  color: #fff;
  outline: none;
  transition: var(--transition);
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.7); }
.search-wrap input:focus { background: rgba(255,255,255,0.25); }
.search-icon {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.8); font-size: 0.95rem;
  pointer-events: none;
}
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover); overflow: hidden;
  z-index: 200;
}
.search-dropdown .sd-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1rem; cursor: pointer;
  font-size: 0.9rem; transition: background 0.2s;
}
.search-dropdown .sd-item:hover { background: var(--green-pale); }
.search-dropdown .sd-item span { font-size: 1.4rem; }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }

.btn-login {
  background: var(--orange);
  color: #fff; padding: 0.5rem 1.1rem;
  border-radius: 50px; font-weight: 700;
  font-size: 0.9rem; transition: var(--transition);
  display: flex; align-items: center; gap: 0.4rem;
}
.btn-login:hover { background: var(--orange-dark); transform: translateY(-1px); }

.nav-icon {
  position: relative; color: #fff; font-size: 1.2rem;
  padding: 0.4rem; transition: var(--transition);
}
.nav-icon:hover { color: var(--orange); transform: translateY(-1px); }

.badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--orange); color: #fff;
  font-size: 0.65rem; font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.hamburger {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.3rem; cursor: pointer;
}

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--green-dark); padding: 0.5rem 1.5rem 1rem;
}
.mobile-menu a {
  color: #fff; padding: 0.7rem 0;
  font-size: 1rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 0.7rem;
}
.mobile-menu.open { display: flex; }

/* =============================================
   HERO SLIDER
   ============================================= */
.hero {
  position: relative; overflow: hidden;
  height: 520px; background: var(--green);
}
.slides-container { height: 100%; position: relative; }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 8%;
  opacity: 0; transition: opacity 0.7s ease;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-1 { background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 60%, #388E3C 100%); }
.slide-2 { background: linear-gradient(135deg, #0D47A1 0%, #1565C0 60%, #1976D2 100%); }
.slide-3 { background: linear-gradient(135deg, #E65100 0%, #F57C00 60%, #FF9800 100%); }

.slide-content { flex: 1; z-index: 2; }
.badge-tag {
  display: inline-block; background: rgba(255,255,255,0.2);
  color: #fff; padding: 0.3rem 0.9rem;
  border-radius: 50px; font-size: 0.85rem; font-weight: 700;
  margin-bottom: 1rem; backdrop-filter: blur(4px);
}
.slide-content h1 {
  font-family: var(--font-display);
  font-size: 3.2rem; line-height: 1.15;
  color: #fff; margin-bottom: 0.8rem;
}
.slide-content h1 span { color: var(--orange); }
.slide-content p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 400px; }

.slide-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange); color: #fff;
  padding: 0.75rem 1.8rem; border-radius: 50px;
  font-weight: 800; font-size: 0.95rem;
  transition: var(--transition); display: inline-block;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,152,0,0.4); }

.btn-outline {
  background: transparent; color: #fff;
  padding: 0.75rem 1.8rem; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.7);
  transition: var(--transition); display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.discount-badge {
  display: inline-block; margin-top: 1.2rem;
  background: var(--red); color: #fff;
  padding: 0.4rem 1rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 700;
}

.slide-visual {
  flex: 0 0 300px; position: relative; height: 300px;
}
.hero-circle {
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-circle.c2 { background: rgba(255,255,255,0.12); }
.hero-circle.c3 { background: rgba(255,255,255,0.08); }

.fruit-float {
  position: absolute; font-size: 2.5rem;
  animation: floatFruit 4s ease-in-out infinite;
}
.f1 { top: 10%; left: 20%; animation-delay: 0s; }
.f2 { top: 10%; right: 15%; animation-delay: 0.8s; }
.f3 { bottom: 15%; left: 10%; animation-delay: 1.6s; }
.f4 { bottom: 15%; right: 20%; animation-delay: 2.4s; }

@keyframes floatFruit {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; z-index: 10;
  transition: var(--transition); backdrop-filter: blur(4px);
}
.slider-btn:hover { background: rgba(255,255,255,0.35); }
.prev { left: 1.5rem; }
.next { right: 1.5rem; }

.slider-dots {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* =============================================
   FEATURES STRIP
   ============================================= */
.features-strip {
  background: var(--white);
  display: flex; gap: 0; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.feature-item {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 2rem;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-item > i {
  font-size: 2rem; color: var(--green);
  flex-shrink: 0;
}
.feature-item strong { font-size: 0.95rem; display: block; }
.feature-item p { font-size: 0.8rem; color: var(--text-light); }

/* =============================================
   SECTIONS COMMON
   ============================================= */
.section { max-width: 1280px; margin: 0 auto; padding: 4rem 1.5rem; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 900; color: var(--text); }
.section-header h2 span { color: var(--green); }
.section-header p { color: var(--text-light); margin-top: 0.4rem; }

/* =============================================
   CATEGORIES
   ============================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
}
.cat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem 0.8rem; text-align: center;
  cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow); border: 2px solid transparent;
}
.cat-card:hover {
  border-color: var(--green); transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.cat-card.active { border-color: var(--green); background: var(--green-pale); }
.cat-icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.cat-card span { font-size: 0.8rem; font-weight: 700; color: var(--text); display: block; }

/* =============================================
   PROMO BANNER
   ============================================= */
.promo-banner {
  background: linear-gradient(135deg, #1B5E20, #2E7D32, #FF9800 200%);
  padding: 3rem 1.5rem; text-align: center;
}
.promo-content { max-width: 700px; margin: 0 auto; }
.promo-tag {
  background: rgba(255,255,255,0.2); color: #fff;
  padding: 0.3rem 1rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; display: inline-block; margin-bottom: 1rem;
}
.promo-content h2 { color: #fff; font-size: 1.8rem; font-weight: 900; margin-bottom: 1.5rem; }
.promo-content h2 span { color: var(--orange); }

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

.filter-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.5rem 1.2rem; border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white); cursor: pointer;
  font-size: 0.85rem; font-weight: 700;
  font-family: var(--font); transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green); color: #fff; border-color: var(--green);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

.product-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.pc-badges { position: absolute; top: 0.7rem; left: 0.7rem; display: flex; gap: 0.4rem; flex-direction: column; z-index: 1; }
.pc-badge {
  padding: 0.2rem 0.6rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 800; color: #fff;
}
.badge-sale { background: var(--red); }
.badge-organic { background: var(--green); }
.badge-new { background: var(--orange); }

.pc-wishlist {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 1;
  background: #fff; border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: #999; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: var(--transition);
}
.pc-wishlist:hover, .pc-wishlist.wished { color: var(--red); transform: scale(1.15); }

.pc-img {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f9fbe7, #e8f5e9);
  font-size: 5rem;
}

.pc-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.pc-cat { font-size: 0.72rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.3rem; }
.pc-name { font-size: 0.95rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; line-height: 1.3; }

.pc-stars { color: #FFC107; font-size: 0.8rem; margin-bottom: 0.5rem; }
.pc-stars span { color: var(--text-light); font-size: 0.75rem; margin-left: 0.3rem; }

.pc-prices { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.8rem; }
.pc-price { font-size: 1.15rem; font-weight: 900; color: var(--text); }
.pc-original { font-size: 0.85rem; color: #aaa; text-decoration: line-through; }
.pc-discount { font-size: 0.75rem; font-weight: 700; color: var(--red); }

.btn-addcart {
  width: 100%; padding: 0.6rem;
  background: var(--green); color: #fff;
  border: none; border-radius: 50px; cursor: pointer;
  font-weight: 800; font-size: 0.9rem;
  font-family: var(--font); transition: var(--transition);
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-addcart:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-addcart.added { background: var(--orange); }

.qty-controls {
  width: 100%; display: flex; align-items: center;
  border-radius: 50px; overflow: hidden;
  border: 2px solid var(--green); margin-top: auto;
}
.qty-controls button {
  flex: 1; padding: 0.55rem;
  background: var(--green); color: #fff;
  border: none; cursor: pointer; font-size: 0.9rem;
  transition: background 0.2s;
}
.qty-controls button:hover { background: var(--green-dark); }
.qty-controls span { flex: 1; text-align: center; font-weight: 800; font-size: 0.95rem; }

.no-results { text-align: center; padding: 4rem; color: var(--text-light); }
.no-results i { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { background: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testi-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 1.8rem; border-left: 4px solid var(--green);
}
.stars { color: #FFC107; font-size: 1.1rem; margin-bottom: 0.8rem; }
.testi-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.testi-author { display: flex; align-items: center; gap: 0.8rem; }
.av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.av2 { background: var(--orange); }
.av3 { background: #7B1FA2; }
.testi-author span { font-weight: 700; font-size: 0.9rem; }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 4rem 1.5rem; text-align: center;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter i { font-size: 2.5rem; color: rgba(255,255,255,0.8); margin-bottom: 1rem; display: block; }
.newsletter h2 { color: #fff; font-size: 1.8rem; font-weight: 900; margin-bottom: 0.4rem; }
.newsletter p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; border-radius: 50px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.newsletter-form input {
  flex: 1; padding: 0.8rem 1.4rem;
  border: none; font-size: 0.95rem; font-family: var(--font);
  outline: none;
}
.newsletter-form button {
  padding: 0.8rem 1.8rem; background: var(--orange);
  color: #fff; border: none; cursor: pointer;
  font-weight: 800; font-size: 0.95rem; font-family: var(--font);
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--orange-dark); }
.nl-msg { margin-top: 0.8rem; font-weight: 700; color: #fff; }

/* =============================================
   WISHLIST MODAL
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: var(--radius);
  padding: 2rem; max-width: 500px; width: 100%;
  position: relative; max-height: 80vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.3rem;
  cursor: pointer; color: var(--text-light);
  transition: color 0.2s;
}
.modal-close:hover { color: var(--red); }
.modal-box h2 { font-size: 1.4rem; font-weight: 900; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.empty-state { text-align: center; padding: 2rem; color: var(--text-light); }
.empty-state i { font-size: 3rem; margin-bottom: 0.8rem; display: block; }

/* =============================================
   CART ITEMS (shared by modal & cart page)
   ============================================= */
.cart-list { display: flex; flex-direction: column; gap: 0.8rem; }
.cart-item-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 0.8rem;
}
.ci-emoji { font-size: 2.2rem; flex-shrink: 0; }
.ci-info { flex: 1; min-width: 0; }
.ci-info h4 { font-size: 0.9rem; font-weight: 800; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-cat { font-size: 0.75rem; color: var(--green); font-weight: 700; }
.ci-price { font-size: 0.9rem; font-weight: 800; }
.ci-orig { font-size: 0.78rem; color: #aaa; text-decoration: line-through; margin-left: 0.3rem; }
.ci-qty {
  display: flex; align-items: center; gap: 0.4rem;
  background: #fff; border-radius: 50px; border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
}
.ci-qty button {
  background: none; border: none; cursor: pointer;
  color: var(--green); font-size: 0.8rem; padding: 0.1rem 0.4rem;
}
.ci-qty span { font-size: 0.85rem; font-weight: 800; min-width: 20px; text-align: center; }
.ci-sub { font-weight: 800; font-size: 0.95rem; flex-shrink: 0; }
.ci-remove { background: none; border: none; cursor: pointer; color: #ccc; font-size: 0.9rem; transition: color 0.2s; flex-shrink: 0; }
.ci-remove:hover { color: var(--red); }

/* =============================================
   CART PAGE
   ============================================= */
.cart-page { min-height: calc(100vh - 60px); padding: 2rem 1.5rem; }
.cart-page-inner { max-width: 1100px; margin: 0 auto; }
.cart-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 2rem; display: flex; align-items: center; gap: 0.7rem; }

.cart-layout { display: flex; gap: 2rem; align-items: flex-start; }
.cart-items-col { flex: 1; }
.cart-summary-col { flex: 0 0 320px; }

.summary-box {
  background: #fff; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  position: sticky; top: 90px;
}
.summary-box h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.95rem; }
.discount-row { color: var(--green); font-weight: 700; }
.summary-divider { border-top: 2px dashed var(--border); margin: 0.8rem 0; }
.total-row { font-size: 1.15rem; font-weight: 900; }

.coupon-row { display: flex; gap: 0.5rem; margin-top: 1.2rem; }
.coupon-row input { flex: 1; padding: 0.5rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.85rem; outline: none; }
.coupon-row button {
  padding: 0.5rem 0.9rem; background: var(--green); color: #fff;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 700; font-family: var(--font); font-size: 0.85rem;
}
.coupon-msg { font-size: 0.82rem; font-weight: 700; margin-top: 0.4rem; }
.coupon-msg.success { color: var(--green); }
.coupon-msg.error { color: var(--red); }

.btn-checkout {
  width: 100%; padding: 0.9rem; margin-top: 1.2rem;
  background: var(--orange); color: #fff; border: none;
  border-radius: 50px; font-size: 1rem; font-weight: 800;
  font-family: var(--font); cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-checkout:hover { background: var(--orange-dark); transform: translateY(-1px); }
.continue-shopping { display: block; text-align: center; margin-top: 0.8rem; color: var(--green); font-weight: 700; font-size: 0.85rem; }
.continue-shopping:hover { text-decoration: underline; }

.empty-cart { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem; }
.empty-icon { font-size: 5rem; margin-bottom: 1rem; }
.empty-cart h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.empty-cart p { color: var(--text-light); margin-bottom: 1.5rem; }

/* =============================================
   AUTH PAGE
   ============================================= */
.auth-page { background: var(--green-pale); }
.auth-section {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; position: relative; overflow: hidden;
}
.auth-decoration { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-fruit { position: absolute; font-size: 3rem; animation: floatFruit 5s ease-in-out infinite; opacity: 0.3; }
.af1 { top: 5%; left: 5%; animation-delay: 0s; }
.af2 { top: 15%; right: 8%; animation-delay: 1s; }
.af3 { bottom: 20%; left: 3%; animation-delay: 2s; }
.af4 { bottom: 10%; right: 5%; animation-delay: 3s; }
.af5 { top: 45%; left: 45%; animation-delay: 1.5s; }

.auth-card {
  background: #fff; border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  padding: 2.5rem; width: 100%; max-width: 460px;
  position: relative; z-index: 1;
}
.auth-tabs { display: flex; border-radius: 50px; background: var(--bg); padding: 4px; margin-bottom: 2rem; }
.auth-tab {
  flex: 1; padding: 0.6rem; border-radius: 50px;
  border: none; cursor: pointer; font-weight: 700;
  font-family: var(--font); font-size: 0.9rem;
  background: transparent; color: var(--text-light);
  transition: var(--transition);
}
.auth-tab.active { background: var(--green); color: #fff; }

.auth-header { text-align: center; margin-bottom: 1.8rem; }
.auth-header h2 { font-size: 1.5rem; font-weight: 900; }
.auth-header p { color: var(--text-light); font-size: 0.9rem; margin-top: 0.3rem; }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.form-group input {
  width: 100%; padding: 0.7rem 1rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: var(--font); outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--green); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; }
.eye-btn { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-light); }
.field-err { font-size: 0.78rem; color: var(--red); font-weight: 600; margin-top: 0.2rem; display: block; }

.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.check-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; cursor: pointer; }
.forgot-link { font-size: 0.82rem; color: var(--green); font-weight: 700; }
.forgot-link:hover { text-decoration: underline; }

.btn-auth {
  width: 100%; padding: 0.85rem;
  background: var(--green); color: #fff; border: none;
  border-radius: 50px; font-size: 1rem; font-weight: 800;
  font-family: var(--font); cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-auth:hover { background: var(--green-dark); transform: translateY(-1px); }
.auth-msg { margin-top: 0.8rem; font-size: 0.88rem; font-weight: 700; text-align: center; padding: 0.5rem; border-radius: var(--radius-sm); }
.auth-msg.success { background: var(--green-pale); color: var(--green); }
.auth-msg.error { background: #FFEBEE; color: var(--red); }

.auth-divider { text-align: center; margin: 1.2rem 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { background: #fff; padding: 0 0.8rem; font-size: 0.82rem; color: var(--text-light); position: relative; }

.social-auth { display: flex; gap: 0.8rem; }
.social-btn {
  flex: 1; padding: 0.65rem; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: #fff; cursor: pointer;
  font-weight: 700; font-size: 0.85rem; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: var(--transition);
}
.social-btn:hover { border-color: var(--green); color: var(--green); }
.social-btn.google:hover { border-color: #EA4335; color: #EA4335; }

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #333; color: #fff;
  padding: 0.75rem 1.8rem; border-radius: 50px;
  font-size: 0.9rem; font-weight: 700;
  z-index: 9000; opacity: 0; transition: all 0.4s ease;
  pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  background: var(--green); color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(46,125,50,0.4);
  opacity: 0; transform: translateY(20px);
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--green-dark); transform: translateY(-2px); }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #1B2B1E; color: rgba(255,255,255,0.8); margin-top: 0; }
.footer-top {
  max-width: 1280px; margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); gap: 2.5rem;
}
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand p { margin-top: 0.8rem; font-size: 0.85rem; line-height: 1.6; }
.social-icons { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.social-icons a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.social-icons a:hover { background: var(--orange); color: #fff; }

.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 800; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.85rem; padding: 0.25rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }

.app-btn {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9) !important;
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
  font-size: 0.82rem !important; font-weight: 700;
  margin-bottom: 0.5rem; transition: background 0.2s;
}
.app-btn:hover { background: rgba(255,255,255,0.2) !important; }

.payment-icons { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.payment-icons span {
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9);
  padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.72rem; font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; padding: 1.2rem 1.5rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: span 3; }
}

@media (max-width: 800px) {
  .search-wrap { display: none; }
  .hamburger { display: block; }
  .hero { height: 420px; }
  .slide-content h1 { font-size: 2.2rem; }
  .slide-visual { display: none; }
  .features-strip { flex-direction: column; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: span 2; }
  .cart-layout { flex-direction: column; }
  .cart-summary-col { flex: none; width: 100%; }
}

@media (max-width: 560px) {
  .hero { height: 360px; }
  .slide-content h1 { font-size: 1.8rem; }
  .slide { padding: 0 5%; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .brand-name { font-size: 1.1rem; }
  .btn-login { display: none; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease forwards; }

/* Ripple */
.btn-primary, .btn-auth, .btn-addcart, .btn-checkout {
  position: relative; overflow: hidden;
}
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple-anim 0.5s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}
