/* Custom Premium Stylesheet for InstaHealthyMart.com */

/* ----------------------------------------------------
   1. DESIGN SYSTEM VARIABLES
---------------------------------------------------- */
:root {
  --primary-color: #1b4332;       /* Deep Forest Green */
  --primary-light: #2d6a4f;       /* Medium Forest Green */
  --secondary-color: #40916c;     /* Soft Sage Accent */
  --accent-color: #d4a373;        /* Warm Gold Accent */
  --accent-light: #faedcd;        /* Pastel Cream Accent */
  --bg-main: #fcfbf7;             /* Creamy Off-white */
  --bg-surface: #ffffff;          /* Card/Surface White */
  --text-dark: #2d3142;           /* Charcoal Text */
  --text-muted: #626875;          /* Muted Slate */
  --text-light: #9ea4b0;          /* Pale Slate */
  --border-color: #e9e5db;         /* Soft Cream Border */
  --success-color: #2a9d8f;       /* Green Accent */
  --error-color: #e76f51;         /* Terracotta Red Accent */
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.04);
  --shadow-md: 0 8px 24px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 16px 40px rgba(27, 67, 50, 0.12);
  --shadow-focus: 0 0 0 4px rgba(64, 145, 108, 0.15);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ----------------------------------------------------
   2. GENERAL RESET & BASE STYLES
---------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.w-100 {
  width: 100%;
}

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-20 { margin-top: 20px; }

/* ----------------------------------------------------
   3. BUTTONS & UI UTILITIES
---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-surface);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.15);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--bg-surface);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn:active {
  transform: translateY(0);
}

.badge-trust-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-light);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-accent {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* ----------------------------------------------------
   4. PROMO BAR & MAIN HEADER
---------------------------------------------------- */
.promo-bar {
  background-color: var(--primary-color);
  color: var(--bg-main);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 100;
}

.main-header {
  background-color: rgba(252, 251, 247, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background-color: var(--primary-color);
  color: var(--bg-main);
  width: 40px;
  height: 40px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(27, 67, 50, 0.15);
  animation: leafFloat 6s ease-in-out infinite alternate;
}

.logo-text h1 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-text span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-wrapper {
  position: relative;
  width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

#search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-normal);
}

#search-input:focus {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-focus);
}

.cart-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.cart-btn:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--secondary-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

/* ----------------------------------------------------
   5. HERO BANNER SECTION
---------------------------------------------------- */
.hero-section {
  padding: 60px 0 80px 0;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, #f1efe7 0%, var(--bg-main) 70%);
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--primary-color);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title span {
  font-style: italic;
  color: var(--secondary-color);
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blob-bg {
  position: absolute;
  width: 110%;
  height: 110%;
  background-color: var(--accent-light);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: 1;
  filter: blur(10px);
  opacity: 0.75;
  animation: organicBlob 12s ease-in-out infinite alternate;
}

.hero-image {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  transition: transform var(--transition-slow);
}

.hero-image:hover {
  transform: rotate(0deg) scale(1.02);
}

/* ----------------------------------------------------
   6. CERTIFICATIONS BAR
---------------------------------------------------- */
.certifications-row {
  background-color: #f1ede2;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-micro-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-light);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.cert-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.cert-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
}

.cert-logo i {
  font-size: 1.2rem;
  color: var(--accent-color);
}

/* ----------------------------------------------------
   7. MAIN CATALOG GRID & FILTERS
---------------------------------------------------- */
.marketplace-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 24px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.catalog-toolbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.custom-select {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-select:focus {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-focus);
}

.active-filters-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 16px;
  background-color: #f1ede2;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  animation: fadeIn var(--transition-fast);
}

.active-filters-tags > span {
  font-weight: 700;
  color: var(--primary-color);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  background-color: var(--bg-surface);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 4px 10px 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.8rem;
}

.filter-tag button {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.filter-tag button:hover {
  color: var(--error-color);
}

.clear-filters-btn {
  background: none;
  border: none;
  color: var(--primary-light);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  margin-left: auto;
}

.products-layout {
  display: flex;
  gap: 30px;
}

.products-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  min-height: 400px;
}

/* ----------------------------------------------------
   8. PRODUCT CARDS & SKELETON
---------------------------------------------------- */
.product-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--primary-color);
  color: var(--bg-main);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 5;
}

.product-image-container {
  height: 250px;
  background-color: #faf9f6;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img {
  max-height: 85%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

.product-card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.78rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 8px;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-purity-promise {
  font-size: 0.8rem;
  color: var(--success-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.product-rating i {
  color: #fbbf24;
}

.card-footer-price-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.product-price-wrapper {
  display: flex;
  flex-direction: column;
}

.product-price-wrapper span {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
}

.card-actions {
  display: flex;
  gap: 8px;
}

.btn-card-icon {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-icon:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-add-cart {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* Skeleton Loading Animation */
.skeleton-loader {
  background: linear-gradient(90deg, #f3f3f0 25%, #eaeaea 50%, #f3f3f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-lg);
  height: 400px;
  border: 1px solid var(--border-color);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ----------------------------------------------------
   9. WHY US SECTION & STANDARDS
---------------------------------------------------- */
.why-us-section {
  background-color: #f1ede2;
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.why-header {
  text-align: center;
  margin-bottom: 60px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.why-card {
  background-color: var(--bg-surface);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.why-icon {
  background-color: var(--accent-light);
  color: var(--primary-color);
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.why-card h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------
   10. FAQ ACCORDION SECTION
---------------------------------------------------- */
.faq-section {
  padding: 100px 0;
}

.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
}

.faq-trigger i {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  background-color: #fbfaf6;
}

.faq-panel p {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active {
  border-color: var(--primary-color);
}

.faq-item.active .faq-trigger i {
  transform: rotate(45deg);
}

/* ----------------------------------------------------
   11. SLIDING SHOPPING CART PANEL
---------------------------------------------------- */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 67, 50, 0.4);
  backdrop-filter: blur(4px);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100%;
  height: 100%;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  z-index: 120;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-cart-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.close-cart-btn:hover {
  color: var(--error-color);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empty-cart-state {
  text-align: center;
  margin: auto 0;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-cart-state i {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.empty-cart-state p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 600;
}

/* Cart Item Cards */
.cart-item {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  position: relative;
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-img-wrapper {
  width: 80px;
  height: 80px;
  background-color: #faf9f6;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-brand {
  font-size: 0.72rem;
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.cart-item-price {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background-color: var(--bg-main);
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: background-color var(--transition-fast);
}

.qty-btn:hover {
  background-color: #e9e5db;
}

.qty-val {
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.remove-item-btn:hover {
  color: var(--error-color);
}

.cart-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px;
  background-color: #faf9f6;
}

.coupon-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

#coupon-code {
  flex-grow: 1;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  outline: none;
  font-size: 0.85rem;
}

#coupon-code:focus {
  border-color: var(--secondary-color);
}

#apply-coupon-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

#apply-coupon-btn:hover {
  background-color: var(--primary-light);
}

.coupon-status {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: none;
}

.coupon-status.success {
  color: var(--success-color);
  display: block;
}

.coupon-status.error {
  color: var(--error-color);
  display: block;
}

.price-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.price-summary-row.discount-row {
  color: var(--success-color);
  font-weight: 600;
}

.price-summary-row.total-row {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-top: 8px;
  margin-bottom: 20px;
}

.checkout-btn {
  padding: 14px 20px;
  font-size: 1rem;
}

/* ----------------------------------------------------
   12. GENERIC MODAL STYLES (PRODUCT & CHECKOUT)
---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 67, 50, 0.5);
  backdrop-filter: blur(5px);
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--error-color);
  color: white;
  border-color: var(--error-color);
}

/* ----------------------------------------------------
   13. PRODUCT DETAILS MODAL CONTENT
---------------------------------------------------- */
.product-modal-content {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.modal-product-gallery {
  background-color: #faf9f6;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-product-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.modal-product-info {
  display: flex;
  flex-direction: column;
}

.modal-product-brand {
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.modal-product-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary-color);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-product-rating i {
  color: #fbbf24;
}

.modal-product-rating span {
  color: var(--text-muted);
}

.modal-product-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.modal-product-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.purity-badges-modal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.purity-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
}

.purity-badge-item i {
  color: var(--secondary-color);
}

.modal-purchase-row {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  align-items: center;
}

.modal-qty-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-qty-wrapper label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
}

.modal-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background-color: var(--bg-main);
  overflow: hidden;
  height: 48px;
}

.modal-qty-btn {
  background: none;
  border: none;
  width: 44px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: background-color var(--transition-fast);
}

.modal-qty-btn:hover {
  background-color: #e9e5db;
}

.modal-qty-val {
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

.modal-add-cart-btn {
  flex-grow: 1;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
}

/* Ingredients & Nutrition Facts Collapsible */
.modal-tabs {
  margin-top: 10px;
}

.tab-accordion {
  border-top: 1px solid var(--border-color);
}

.tab-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
}

.tab-trigger i {
  transition: transform var(--transition-normal);
}

.tab-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.tab-panel.active {
  max-height: 400px;
}

.tab-trigger.active i {
  transform: rotate(180deg);
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.nutrition-table th, .nutrition-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.nutrition-table th {
  background-color: var(--bg-main);
  color: var(--primary-color);
}

.nutrition-table tr:last-child td {
  border-bottom: none;
}

/* ----------------------------------------------------
   14. INTERACTIVE CHECKOUT MODAL & STEPPER
---------------------------------------------------- */
.checkout-container {
  max-width: 600px;
  padding: 40px;
}

.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-main);
  border: 2px solid var(--border-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-line {
  flex-grow: 1;
  height: 2px;
  background-color: var(--border-color);
  margin-bottom: 24px;
  z-index: 1;
}

.step.active .step-num {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
}

.step.active .step-label {
  color: var(--primary-color);
}

.step.completed .step-num {
  border-color: var(--success-color);
  background-color: var(--success-color);
  color: white;
}

.checkout-step-panel {
  display: none;
}

.checkout-step-panel.active {
  display: block;
  animation: fadeIn var(--transition-normal);
}

.checkout-panel-title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 24px;
}

/* Forms styling */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group input, .form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  outline: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--secondary-color);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-focus);
}

.form-row {
  display: flex;
  gap: 16px;
}

.col-6 { width: 50%; }
.col-4 { width: 33.33%; }

.mt-20 {
  margin-top: 20px;
}

/* Payment selection */
.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.payment-method-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-method-card input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.pm-icon {
  font-size: 1.4rem;
  color: var(--text-muted);
  width: 32px;
  display: flex;
  justify-content: center;
}

.pm-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.pm-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.payment-method-card:hover, .payment-method-card.active {
  border-color: var(--primary-color);
  background-color: #faf9f6;
}

.payment-input-details {
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

/* UPI QR payment simulator */
.qr-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

.qr-code-placeholder {
  width: 110px;
  height: 110px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 2.2rem;
  color: var(--text-dark);
}

.qr-code-placeholder span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.qr-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qr-text strong {
  display: block;
  font-size: 1rem;
  color: var(--primary-color);
  margin-top: 4px;
}

.amount-badge {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--primary-color);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  margin-top: 10px;
}

.input-inline {
  display: flex;
  gap: 10px;
}

.input-inline input {
  flex-grow: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
}

.cod-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--primary-light);
}

.cod-notice i {
  font-size: 1.2rem;
  margin-top: 2px;
}

.cod-notice p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.checkout-footer-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Success Step */
.success-icon-badge {
  background-color: rgba(42, 157, 143, 0.1);
  color: var(--success-color);
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.success-message {
  color: var(--text-muted);
  max-width: 400px;
  margin: 10px auto 30px auto;
  font-size: 0.95rem;
}

.order-summary-box {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 30px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-detail-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.order-detail-line.highlight {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.order-detail-line.highlight strong {
  font-size: 1.2rem;
  font-weight: 800;
}

.order-detail-line strong {
  color: var(--text-dark);
}

.color-primary {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.info-note {
  font-size: 0.78rem;
  color: var(--text-light);
  max-width: 420px;
  margin: 0 auto;
}

/* ----------------------------------------------------
   15. PREMIUM FOOTER
---------------------------------------------------- */
.main-footer {
  background-color: var(--primary-color);
  color: #dfe5e1;
  padding: 80px 0 0 0;
  border-top: 4px solid var(--accent-color);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 40px;
}

.brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-size: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 800;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-logo i {
  color: var(--accent-color);
  font-size: 1.6rem;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #b3c2b8;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-sans);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: #b3c2b8;
}

.footer-col ul a:hover {
  color: white;
  padding-left: 4px;
}

.contact-col ul {
  gap: 16px;
}

.contact-col li {
  font-size: 0.88rem;
  color: #b3c2b8;
  display: flex;
  gap: 12px;
  line-height: 1.5;
}

.contact-col li i {
  color: var(--accent-color);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
  background-color: #133024;
}

.footer-bottom-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: #8fa094;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: white;
}

/* ----------------------------------------------------
   16. CSS ANIMATIONS & KEYFRAMES
---------------------------------------------------- */
@keyframes leafFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-4px) rotate(5deg); }
}

@keyframes organicBlob {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50% { border-radius: 60% 40% 50% 70% / 50% 60% 40% 60%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes animateBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-bounce {
  animation: animateBounce 2s infinite ease-in-out;
}

/* ----------------------------------------------------
   17. RESPONSIVE DESIGN (MEDIA QUERIES)
---------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    width: 100%;
  }
  
  .hero-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .footer-container {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
  
  .brand-col {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
  
  .footer-desc {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
    padding: 12px 16px;
  }
  
  .main-nav ul {
    gap: 16px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .search-wrapper {
    flex-grow: 1;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .catalog-toolbar {
    width: 100%;
    justify-content: space-between;
  }
  
  .filter-group {
    flex-grow: 1;
  }
  
  .filter-group select {
    width: 100%;
  }
  
  .product-modal-content {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 30px;
  }
  
  .modal-product-gallery {
    height: 280px;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .cert-logos {
    gap: 20px 30px;
  }
  
  .catalog-toolbar {
    flex-direction: column;
    gap: 12px;
  }
  
  .cart-sidebar {
    width: 100%;
  }
  
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .col-6, .col-4 {
    width: 100%;
  }
  
  .qr-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-col li {
    justify-content: center;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}
