/* =============================================
   HẠT DINH DƯỠNG WEB - MAIN STYLESHEET
   6 Theme Variations | SEO Optimized | Responsive
   ============================================= */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* =============================================
   THEME DEFINITIONS (6 STYLES)
   ============================================= */

/* Theme 1: Organic - Tự nhiên dễ bán */
[data-theme="organic"] {
  --primary: #6B8E23;
  --primary-dark: #556B2F;
  --primary-light: #9ACD32;
  --secondary: #8B7355;
  --accent: #DAA520;
  --bg: #FFFDF7;
  --bg-alt: #F5F0E8;
  --bg-card: #FFFFFF;
  --text: #3E3529;
  --text-light: #6B5E50;
  --text-muted: #9B8E80;
  --border: #E5DDD0;
  --shadow: rgba(107, 142, 35, 0.1);
  --gradient: linear-gradient(135deg, #6B8E23, #9ACD32);
  --gradient-hero: linear-gradient(135deg, rgba(107,142,35,0.9), rgba(85,107,47,0.85));
  --nav-bg: rgba(255, 253, 247, 0.97);
  --footer-bg: #3E3529;
  --footer-text: #F5F0E8;
  --badge-bg: #6B8E23;
  --badge-text: #fff;
  --input-bg: #FFFFFF;
  --input-border: #D4C9B8;
}

/* Theme 2: Premium - Quà tặng cao cấp */
[data-theme="premium"] {
  --primary: #2D5016;
  --primary-dark: #1A3A0A;
  --primary-light: #4A7A2E;
  --secondary: #C9A96E;
  --accent: #D4AF37;
  --bg: #FBF9F3;
  --bg-alt: #F0EBE0;
  --bg-card: #FFFFFF;
  --text: #1E1E1E;
  --text-light: #4A4A4A;
  --text-muted: #7A7A7A;
  --border: #D4C9B8;
  --shadow: rgba(45, 80, 22, 0.12);
  --gradient: linear-gradient(135deg, #2D5016, #4A7A2E);
  --gradient-hero: linear-gradient(135deg, rgba(45,80,22,0.92), rgba(26,58,10,0.88));
  --nav-bg: rgba(251, 249, 243, 0.97);
  --footer-bg: #1A1A1A;
  --footer-text: #F0EBE0;
  --badge-bg: #D4AF37;
  --badge-text: #1E1E1E;
  --input-bg: #FFFFFF;
  --input-border: #C9A96E;
}

/* Theme 3: Trẻ trung - Hiện đại */
[data-theme="modern"] {
  --primary: #7A9E7E;
  --primary-dark: #5C8060;
  --primary-light: #A8C5AB;
  --secondary: #C4956A;
  --accent: #E8A87C;
  --bg: #FFFFFF;
  --bg-alt: #F8F6F3;
  --bg-card: #FFFFFF;
  --text: #2C2C2C;
  --text-light: #5A5A5A;
  --text-muted: #8A8A8A;
  --border: #E8E4DF;
  --shadow: rgba(122, 158, 126, 0.1);
  --gradient: linear-gradient(135deg, #7A9E7E, #A8C5AB);
  --gradient-hero: linear-gradient(135deg, rgba(122,158,126,0.9), rgba(92,128,96,0.85));
  --nav-bg: rgba(255, 255, 255, 0.97);
  --footer-bg: #2C2C2C;
  --footer-text: #F8F6F3;
  --badge-bg: #E8A87C;
  --badge-text: #2C2C2C;
  --input-bg: #FFFFFF;
  --input-border: #D4CFC8;
}

/* Theme 4: Rustic - Mộc mạc ấm áp */
[data-theme="rustic"] {
  --primary: #8B6914;
  --primary-dark: #6B4F0E;
  --primary-light: #B8941E;
  --secondary: #6B7F5E;
  --accent: #C17817;
  --bg: #FDF8F0;
  --bg-alt: #F2E8D8;
  --bg-card: #FFFCF5;
  --text: #3C2F1E;
  --text-light: #5E4D38;
  --text-muted: #8E7D68;
  --border: #DDD0BC;
  --shadow: rgba(139, 105, 20, 0.1);
  --gradient: linear-gradient(135deg, #8B6914, #B8941E);
  --gradient-hero: linear-gradient(135deg, rgba(139,105,20,0.9), rgba(107,79,14,0.85));
  --nav-bg: rgba(253, 248, 240, 0.97);
  --footer-bg: #3C2F1E;
  --footer-text: #F2E8D8;
  --badge-bg: #C17817;
  --badge-text: #fff;
  --input-bg: #FFFCF5;
  --input-border: #C9B89A;
}

/* Theme 5: Tropical - Nhiệt đới tươi mới */
[data-theme="tropical"] {
  --primary: #2E8B57;
  --primary-dark: #1E6B42;
  --primary-light: #3CB371;
  --secondary: #FF8C42;
  --accent: #FFB347;
  --bg: #FFFFF5;
  --bg-alt: #F0FAF0;
  --bg-card: #FFFFFF;
  --text: #1A3C2A;
  --text-light: #2D5E40;
  --text-muted: #6B8B7A;
  --border: #C8E6D0;
  --shadow: rgba(46, 139, 87, 0.12);
  --gradient: linear-gradient(135deg, #2E8B57, #3CB371);
  --gradient-hero: linear-gradient(135deg, rgba(46,139,87,0.92), rgba(30,107,66,0.88));
  --nav-bg: rgba(255, 255, 245, 0.97);
  --footer-bg: #1A3C2A;
  --footer-text: #F0FAF0;
  --badge-bg: #FF8C42;
  --badge-text: #fff;
  --input-bg: #FFFFFF;
  --input-border: #A8D8B8;
}

/* Theme 6: Minimal Dark - Tối giản sang trọng */
[data-theme="dark"] {
  --primary: #D4AF37;
  --primary-dark: #B8941E;
  --primary-light: #E8C84A;
  --secondary: #A0A0A0;
  --accent: #E8C84A;
  --bg: #1A1A1A;
  --bg-alt: #242424;
  --bg-card: #2A2A2A;
  --text: #F0F0F0;
  --text-light: #CCCCCC;
  --text-muted: #888888;
  --border: #3A3A3A;
  --shadow: rgba(212, 175, 55, 0.15);
  --gradient: linear-gradient(135deg, #D4AF37, #E8C84A);
  --gradient-hero: linear-gradient(135deg, rgba(212,175,55,0.9), rgba(184,148,30,0.85));
  --nav-bg: rgba(26, 26, 26, 0.97);
  --footer-bg: #111111;
  --footer-text: #CCCCCC;
  --badge-bg: #D4AF37;
  --badge-text: #1A1A1A;
  --input-bg: #2A2A2A;
  --input-border: #4A4A4A;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; color: var(--text-light); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--bg-alt);
}

/* GRID UTILITIES */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.header.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(107, 142, 35, 0.08);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme Switcher */
.theme-switcher {
  position: relative;
}
.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s;
  color: var(--text);
}
.theme-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
  min-width: 220px;
  box-shadow: 0 12px 40px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s;
  z-index: 100;
}
.theme-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.theme-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
}
.theme-option:hover {
  background: var(--bg-alt);
}
.theme-option.active {
  background: var(--bg-alt);
  font-weight: 600;
}
.theme-colors {
  display: flex;
  gap: 3px;
}
.theme-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--border);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 8px;
}
.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 992px) {
  .mobile-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s;
    z-index: 999;
  }
  .nav-links.active { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 0.8rem 1rem; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow);
  color: #fff;
}
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--border);
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content { color: #fff; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-actions .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.hero-stat { text-align: center; }
.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  display: block;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-image-main {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.hero-float {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: float 3s ease-in-out infinite;
}
.hero-float:nth-child(2) { top: 10%; right: -20px; animation-delay: 0.5s; }
.hero-float:nth-child(3) { bottom: 15%; left: -20px; animation-delay: 1s; }
.hero-float-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.hero-float-text strong {
  display: block;
  font-size: 0.8rem;
  color: #333;
}
.hero-float-text span {
  font-size: 0.75rem;
  color: #888;
}

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

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-image-wrapper { max-width: 320px; }
  .hero-float { display: none; }
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}
.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card-image img { transform: scale(1.05); }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}
.card-body { padding: 1.2rem; }
.card-body h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}
.card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.card-price {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.card-price .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
.card-price .price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.2rem 1.2rem;
}

/* Product Card Specific */
.product-card .card-image { aspect-ratio: 1; }
.product-card .card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.product-card .card-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--bg-alt);
  border-radius: 6px;
  color: var(--text-muted);
}
.product-card .card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #F5A623;
}

/* =============================================
   FEATURE BLOCKS / BENEFITS
   ============================================= */
.benefit-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
  border-color: var(--primary);
}
.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  background: var(--bg-alt);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s;
}
.benefit-card:hover .benefit-icon {
  background: var(--gradient);
  color: #fff;
}
.benefit-card h3 { margin-bottom: 0.5rem; }
.benefit-card p { color: var(--text-muted); font-size: 0.9rem; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-card {
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-stars {
  color: #F5A623;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.testimonial-info strong { display: block; color: var(--text); font-size: 0.95rem; }
.testimonial-info span { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--gradient-hero);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1), transparent 60%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--footer-text);
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  transition: all 0.3s;
  font-size: 1.1rem;
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}
.footer h4 {
  color: var(--footer-text);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}
.footer-links a {
  display: block;
  color: var(--footer-text);
  opacity: 0.7;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}
.footer-links a:hover { opacity: 1; color: var(--primary-light); }
.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer-contact-item span:first-child { font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
}

/* =============================================
   PAGE HERO (Inner Pages)
   ============================================= */
.page-hero {
  padding: 8rem 0 3rem;
  background: var(--gradient-hero);
  text-align: center;
  color: #fff;
  position: relative;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.85); }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-story-image {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.about-story-image img { width: 100%; height: 100%; object-fit: cover; }
.about-story-content h2 { margin-bottom: 1rem; }
.about-story-content p { margin-bottom: 1rem; }
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--gradient);
  border-radius: 50%;
  transform: translateX(-6px);
}
.timeline-item h4 { color: var(--primary); margin-bottom: 0.3rem; }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.cert-card {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
}
.cert-card .cert-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .about-story { grid-template-columns: 1fr; }
}

/* =============================================
   PRODUCT PAGE
   ============================================= */
.product-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  align-items: center;
}
.filter-group { display: flex; align-items: center; gap: 0.5rem; }
.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.filter-group select,
.filter-group input {
  padding: 0.5rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.3s;
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
}
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-tag {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  background: var(--bg-alt);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.filter-tag:hover,
.filter-tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-gallery {
  position: sticky;
  top: 90px;
}
.product-main-image {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-alt);
  margin-bottom: 1rem;
}
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs {
  display: flex;
  gap: 0.6rem;
}
.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s;
}
.product-thumb.active,
.product-thumb:hover { border-color: var(--primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin-bottom: 0.5rem; font-size: 1.8rem; }
.product-info .price-block {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}
.product-info .price-block .old-price {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.8rem;
}
.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.product-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.product-meta-item span:first-child { font-size: 1.2rem; }
.product-description {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.product-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.product-tab {
  padding: 0.8rem 1.5rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s;
  font-size: 0.95rem;
}
.product-tab.active,
.product-tab:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.product-tab-content { display: none; }
.product-tab-content.active { display: block; }
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.5rem 0;
}
.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text);
  transition: all 0.2s;
}
.qty-btn:first-child { border-radius: 10px 0 0 10px; }
.qty-btn:last-child { border-radius: 0 10px 10px 0; }
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  background: var(--input-bg);
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}

/* =============================================
   BLOG
   ============================================= */
.blog-card .card-body { padding: 1.5rem; }
.blog-card .card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.blog-card .card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* =============================================
   COMBO / GIFT
   ============================================= */
.combo-card {
  position: relative;
  overflow: hidden;
}
.combo-card .card-image { aspect-ratio: 3/2; }
.combo-card .card-body { padding: 1.5rem; }
.combo-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0;
}
.combo-item {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  background: var(--bg-alt);
  border-radius: 6px;
  color: var(--text-light);
}
.combo-card .combo-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: all 0.3s;
}
.contact-info-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--shadow);
}
.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-info-card p { font-size: 0.9rem; margin: 0; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.3s;
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--shadow);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.map-container {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/7;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =============================================
   POLICY PAGE
   ============================================= */
.policy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
}
.policy-sidebar {
  position: sticky;
  top: 90px;
}
.policy-nav a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--text-light);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.3s;
  margin-bottom: 0.3rem;
}
.policy-nav a:hover,
.policy-nav a.active {
  background: var(--bg-alt);
  color: var(--primary);
  font-weight: 600;
}
.policy-content h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--border);
}
.policy-content h3 {
  margin: 2rem 0 1rem;
  color: var(--primary);
}
.policy-content p { margin-bottom: 1rem; }
.policy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.policy-content ul li {
  list-style: disc;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}
.policy-content > section + section {
  margin-top: 3.5rem;
}

@media (max-width: 768px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-sidebar { position: static; }
}
.policy-content > section + section { margin-top: 3.5rem; }

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s, transform 0.6s;
}
.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s, transform 0.6s;
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* Placeholder images */
.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--bg-alt);
  color: var(--text-muted);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  color: #fff;
}

/* Agent Registration Banner */
.agent-banner {
  background: var(--gradient);
  padding: 3rem 0;
  text-align: center;
  color: #fff;
}
.agent-banner h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.5rem; }
.agent-banner p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 72px;
  left: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 1001;
  transition: width 0.1s;
}

/* Swiper / Slider */
.slider-container {
  position: relative;
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 5px;
}

/* Related products */
.related-section { margin-top: 4rem; }

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 450px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form .btn {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step-num {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}
.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { font-size: 0.88rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* Marquee / Scrolling text */
.marquee {
  overflow: hidden;
  padding: 0.8rem 0;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
}
.marquee-inner {
  display: flex;
  gap: 3rem;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* Added Background Images for Banners */
.hero-bg, .page-header-bg { background-image: url('../generated_images/nuts_banner_organic_1774604062133.png'); background-size: cover; background-position: center; }
.agent-banner { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../generated_images/farm_origin_nuts_banner_1774604442139.png'); background-size: cover; background-position: center; }
.hero { position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: url('../generated_images/homepage_hero_organic_1774604808875.png'); background-size: cover; background-position: center; opacity: 0.2; pointer-events: none; z-index: 0; }

