/* ============================================
   ESHOPPER - Online Marketplace HTML Template
   Design System: Forest Green + Deep Navy
   Fonts: Plus Jakarta Sans + Inter
   ============================================ */

/* --- Custom Properties --- */
:root {
  --green: #16A34A;
  --green-dark: #15803D;
  --green-light: #22C55E;
  --navy: #0F172A;
  --navy-light: #1E293B;
  --cream: #FFFBEB;
  --cream-dark: #FEF3C7;
  --mint: #F0FDF4;
  --mint-dark: #DCFCE7;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --red: #EF4444;
  --amber: #F59E0B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.25s ease;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Utility --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 4rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--gray-500); }
.bg-cream { background: var(--cream); }
.bg-mint { background: var(--mint); }
.bg-navy { background: var(--navy); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.hidden { display: none !important; }

/* --- Leaf Motif (decorative) --- */
.leaf-accent::before {
  content: '\2766';
  color: var(--green);
  font-size: 1.2em;
  margin-right: 0.3em;
  opacity: 0.6;
}

/* --- Section Titles --- */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--green);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  max-width: 600px;
  margin: -1.5rem auto 2.5rem;
  font-size: 0.95rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-light); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-green { background: var(--mint-dark); color: var(--green-dark); }
.badge-amber { background: #FEF3C7; color: #B45309; }
.badge-verified {
  background: var(--green);
  color: var(--white);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
}
.badge-verified::before { content: '\2713'; margin-right: 0.15em; }

/* --- Topbar --- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  padding: 0.5rem 0;
}
.topbar a { color: rgba(255,255,255,0.7); }
.topbar a:hover { color: var(--green-light); }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-links { display: flex; gap: 1rem; align-items: center; }
.topbar-social { display: flex; gap: 0.75rem; }
.topbar-social a { font-size: 0.9rem; }

/* --- Header --- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-leaf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.1rem;
}
.search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--gray-50);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
  background: var(--white);
}
.search-bar .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.9rem;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--navy);
  transition: all var(--transition);
}
.header-action-btn:hover { background: var(--mint); color: var(--green); }
.header-action-btn .count {
  position: absolute;
  top: 0;
  right: -2px;
  background: var(--green);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Navigation --- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  display: block;
  padding: 0.85rem 1.25rem;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 600;
}
.categories-dropdown {
  position: relative;
}
.categories-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.categories-trigger:hover { background: var(--green-dark); }
.categories-trigger svg { transition: transform var(--transition); }
.categories-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: none;
}
.categories-menu.open { display: block; }
.categories-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--gray-700);
  transition: all var(--transition);
}
.categories-menu a:hover { background: var(--mint); color: var(--green); }
.categories-menu a .cat-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* --- Burger Menu --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  border-radius: 2px;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2744 100%);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(22,163,74,0.2) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.hero-text h1 span { color: var(--green-light); }
.hero-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 480px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green-light);
}
.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.hero-vendors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-vendor-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-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition);
}
.hero-vendor-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.hero-vendor-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
  flex-shrink: 0;
}
.hero-vendor-info h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
.hero-vendor-info p {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
}

/* --- Features Bar --- */
.features-bar {
  padding: 2rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover { background: var(--mint); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--green);
  flex-shrink: 0;
}
.feature-card:hover .feature-icon { background: var(--green); color: var(--white); }
.feature-card h5 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
.feature-card p {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* --- Categories --- */
.categories { padding: 4rem 0; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  group: true;
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background var(--transition);
}
.cat-card:hover .cat-card-overlay {
  background: linear-gradient(to top, rgba(22,163,74,0.85) 0%, rgba(22,163,74,0.2) 60%);
}
.cat-card-overlay h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.cat-card-overlay span {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}

/* --- Product Grid --- */
.products { padding: 4rem 0; background: var(--gray-50); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.product-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: var(--gray-600);
  font-size: 0.8rem;
  transition: all var(--transition);
}
.product-action-btn:hover { background: var(--green); color: var(--white); }
.product-body { padding: 1rem 1.25rem; }
.product-vendor {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}
.product-vendor .badge-verified { font-size: 0.6rem; }
.product-body h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.product-price .current {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
}
.product-price .original {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.product-rating span { color: var(--gray-500); }
.product-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--gray-100);
}
.product-footer .btn { flex: 1; font-size: 0.8rem; padding: 0.5rem 0.75rem; }
.product-compare {
  position: absolute;
  bottom: 0.75rem;
  left: 1.25rem;
}
.product-compare label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--gray-500);
  cursor: pointer;
}
.product-compare input[type="checkbox"] {
  accent-color: var(--green);
  width: 14px;
  height: 14px;
}

/* --- Offers --- */
.offers { padding: 4rem 0; }
.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.offer-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.offer-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.offer-card:hover img { transform: scale(1.05); }
.offer-card .offer-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
}
.offer-card.dark { background: var(--navy); }
.offer-card.dark img { opacity: 0.25; }
.offer-card.green { background: var(--green); }
.offer-card.green img { opacity: 0.2; }
.offer-content .offer-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.offer-content h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.offer-content p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* --- Vendors --- */
.vendors { padding: 4rem 0; background: var(--cream); }
.vendors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.vendor-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.vendor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vendor-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--mint-dark);
}
.vendor-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.vendor-card .vendor-location {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}
.vendor-card .vendor-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.vendor-card .vendor-rating span { color: var(--gray-500); }
.vendor-products-count {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
}

/* --- Testimonials --- */
.testimonials { padding: 4rem 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: var(--mint-dark);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 1rem;
  color: var(--amber);
  font-size: 0.85rem;
}
.testimonial-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-author h5 { font-size: 0.88rem; margin-bottom: 0.1rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--gray-500); }

/* --- Newsletter --- */
.newsletter {
  background: var(--navy);
  padding: 4rem 0;
}
.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.newsletter h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}
.newsletter p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
}
.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: none;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { outline: none; background: rgba(255,255,255,0.15); }
.newsletter-form button {
  padding: 0.85rem 2rem;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--green-dark); }

/* --- Page Header (about, shop, contact) --- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2744 100%);
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22,163,74,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  position: relative;
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  position: relative;
}
.breadcrumbs a { color: rgba(255,255,255,0.6); }
.breadcrumbs a:hover { color: var(--green-light); }
.breadcrumbs .sep { color: rgba(255,255,255,0.3); }
.breadcrumbs .current { color: var(--white); }

/* --- Shop Page --- */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 3rem 0;
}
.shop-sidebar { position: sticky; top: 80px; align-self: start; }
.shop-main { min-width: 0; }
.sidebar-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.sidebar-section h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}

/* --- Accordion --- */
.accordion-item { border-bottom: 1px solid var(--gray-100); }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: color var(--transition);
}
.accordion-header:hover { color: var(--green); }
.accordion-header .arrow {
  transition: transform var(--transition);
  font-size: 0.7rem;
  color: var(--gray-400);
}
.accordion-header.open .arrow { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-body.open { max-height: 300px; }
.accordion-body-inner { padding: 0.5rem 0 1rem; }
.filter-options { display: flex; flex-direction: column; }
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--gray-600);
  cursor: pointer;
}
.filter-option:hover { color: var(--green); }
.filter-option input[type="checkbox"] { accent-color: var(--green); }
.filter-count {
  background: var(--gray-100);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--gray-500);
}
.price-range { padding: 0.5rem 0; }
.price-range input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  margin-bottom: 0.5rem;
}
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* --- Shop Toolbar --- */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 1rem;
}
.shop-toolbar .result-count { font-size: 0.9rem; color: var(--gray-500); }
.shop-toolbar .result-count strong { color: var(--navy); }
.sort-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.85rem;
  background: var(--white);
  color: var(--gray-700);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}

/* --- Shop Grid (3-col in sidebar context) --- */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}
.about-img { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.about-img img { width: 100%; height: auto; }
.about-intro-accent {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 80px;
  height: 80px;
  border: 6px solid var(--green);
  border-radius: var(--radius);
  opacity: 0.3;
  pointer-events: none;
}
.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.about-text p { margin-bottom: 1rem; color: var(--gray-600); }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.about-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
  font-size: 1rem;
}
.about-feature h5 { font-size: 0.88rem; margin-bottom: 0.15rem; }
.about-feature p { font-size: 0.8rem; margin: 0; }

/* --- Stats Band (about) --- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.about-stat {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.about-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin: 0 auto 1rem;
  font-size: 1.1rem;
}
.about-stat-num { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.about-stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.2rem; }

/* --- Team / Vendors Showcase (about) --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-img { position: relative; display: inline-block; margin-bottom: 0.5rem; }
.team-img .badge-verified { position: absolute; bottom: 6px; right: 0; }
.team-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--mint-dark);
}
.team-card h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.team-card .role { font-size: 0.82rem; color: var(--green); font-weight: 500; margin-bottom: 0.5rem; }
.team-card p { font-size: 0.82rem; color: var(--gray-500); }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
}
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .contact-form-row { grid-template-columns: 1fr; }
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-ok {
  background: var(--mint);
  color: var(--green-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
}
.form-err {
  background: #FEF2F2;
  color: #B91C1C;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-card {
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-info-card p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }
.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 280px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  border: 1px solid var(--gray-200);
}
.contact-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 2rem;
}
.contact-map-placeholder i { font-size: 2rem; color: var(--gray-400); }
.contact-map-placeholder p { font-size: 0.9rem; color: var(--gray-500); margin: 0; }

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.footer-contact i { color: var(--green); }
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.footer-links a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--green-light); padding-left: 0.25rem; }
.footer-links a::before {
  content: '\203A';
  margin-right: 0.5rem;
  color: var(--green);
  opacity: 0;
  transition: opacity var(--transition);
}
.footer-links a:hover::before { opacity: 1; }
.footer-newsletter-form {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.5rem;
}
.footer-newsletter-form input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.footer-newsletter-form input:focus { outline: none; }
.footer-newsletter-form button {
  padding: 0.65rem 1.25rem;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.footer-newsletter-form button:hover { background: var(--green-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--green-light); }
.footer-payments {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-payments span {
  background: rgba(255,255,255,0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 99;
  font-size: 1.1rem;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-2px); }

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Cart Demo Toast --- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  opacity: 0;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .toast-icon { color: var(--green-light); }

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablet (980px) --- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-vendors { grid-template-columns: 1fr 1fr; max-width: 500px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-product-grid { grid-template-columns: repeat(2, 1fr); }
  .vendors-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .sidebar-section { margin-bottom: 0; }
}

/* --- Mobile (720px) --- */
@media (max-width: 720px) {
  .topbar { display: none; }
  .header-inner { flex-wrap: wrap; gap: 0.75rem; }
  .search-bar { order: 3; max-width: 100%; flex-basis: 100%; }
  .burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 4rem 1.5rem 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 200;
    transition: right 0.3s ease;
    align-items: stretch;
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-100);
    border-bottom-width: 1px;
  }
  .navbar { display: none; }
  .navbar.mobile-open { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 150; background: rgba(0,0,0,0.5); }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
  }
  .nav-overlay.open { display: block; }
  .categories-dropdown { display: none; }
  .hero { min-height: 400px; }
  .hero-vendors { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .shop-product-grid { grid-template-columns: 1fr; }
  .offers-grid { grid-template-columns: 1fr; }
  .vendors-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { grid-template-columns: 1fr; }
  .shop-toolbar { flex-direction: column; gap: 0.75rem; align-items: stretch; }
  .about-features { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-payments { justify-content: center; }
}
