/* ==========================================================================
   NaturaVita España - Modern Health & Nutraceuticals E-Commerce Stylesheet
   Google Ads & GDPR Compliant | Mobile-First | Clean Medical Aesthetic
   ========================================================================== */

:root {
  --primary: #047857;
  --primary-dark: #064e3b;
  --primary-light: #10b981;
  --primary-bg: #ecfdf5;
  --secondary: #0284c7;
  --secondary-bg: #f0f9ff;
  --accent-gold: #d97706;
  --accent-gold-bg: #fffbeb;
  
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --border-light: #e2e8f0;
  --border-focus: #059669;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 30px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px rgba(4, 120, 87, 0.2);
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

body.modal-open {
  overflow: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #064e3b 0%, #047857 50%, #065f46 100%);
  color: #ffffff;
  font-size: 0.825rem;
  padding: 0.55rem 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar-announcement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.92;
}

@media (max-width: 860px) {
  .top-bar-badges {
    display: none;
  }
  .top-bar-announcement {
    margin: 0 auto;
    text-align: center;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.25);
}

.brand-logo span.highlight {
  color: var(--primary);
}

.brand-logo small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: -3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-soft);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

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

/* Language Selector */
.lang-switcher {
  display: flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn.active {
  background: #ffffff;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

/* Cart Trigger Button */
.btn-open-cart {
  position: relative;
  background: var(--primary-bg);
  border: 1px solid rgba(4, 120, 87, 0.2);
  color: var(--primary-dark);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-open-cart:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.cart-count-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  height: 20px;
  min-width: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .main-nav.show {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #d1fae5 0%, #ecfdf5 40%, #f8fafc 100%);
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid rgba(4, 120, 87, 0.25);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.12;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title span.accent-green {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, var(--primary-dark) 100%);
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--dark);
  color: #ffffff;
}

.btn-secondary:hover {
  background: var(--dark-soft);
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  color: var(--dark-soft);
  border: 1px solid var(--border-light);
}

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

.btn-accent {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.btn-block {
  width: 100%;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-soft);
}

.hero-trust-item .check-icon {
  color: var(--primary);
  font-weight: 800;
}

.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
}

.hero-floating-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.floating-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.floating-badge-text h5 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dark);
}

.floating-badge-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-visual {
    max-width: 450px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Trust Bar / Key Features
   ========================================================================== */
.features-section {
  padding: 2.5rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(4, 120, 87, 0.3);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.feature-content p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Catalog & Product Cards
   ========================================================================== */
.catalog-section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(4, 120, 87, 0.3);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--dark);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.card-badge.gold {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.product-card-img-wrap {
  background: #f8fafc;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-card-img-wrap img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  transition: transform 0.4s ease;
  margin: 0 auto;
}

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

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.product-title:hover {
  color: var(--primary);
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.star-rating {
  color: #f59e0b;
  letter-spacing: 1px;
}

.rating-score {
  font-weight: 700;
  color: var(--dark);
}

.rating-reviews {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.product-desc-preview {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-box {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.price-current {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
}

.price-old {
  font-size: 1rem;
  text-decoration: line-through;
  color: var(--text-light);
  margin-left: 0.5rem;
}

.capsules-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-bg);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.btn-card-buy {
  background: var(--primary);
  color: #ffffff;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.btn-card-buy:hover {
  background: var(--primary-dark);
}

.btn-card-details {
  background: var(--bg-subtle);
  color: var(--dark-soft);
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  border: 1px solid var(--border-light);
}

.btn-card-details:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .card-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Quality Standards & GMP Section
   ========================================================================== */
.quality-section {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #ffffff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.quality-content h2 {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.quality-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.quality-list {
  list-style: none;
  margin-bottom: 2.25rem;
}

.quality-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.quality-list li .check {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.quality-badges-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.quality-pill {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.quality-pill-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.quality-pill h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.quality-pill p {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .quality-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================================================
   Customer Testimonials
   ========================================================================== */
.testimonials-section {
  padding: 4.5rem 0;
  background: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--dark-soft);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.author-info h5 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--dark);
}

.author-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   COD Order Flow Highlight / Banner
   ========================================================================== */
.cod-banner-section {
  padding: 3.5rem 0;
  background: var(--bg-page);
}

.cod-banner-box {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px dashed rgba(4, 120, 87, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cod-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

.cod-step-item {
  display: flex;
  gap: 1rem;
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .cod-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Product Detail Page & Quick View Modal
   ========================================================================== */
.product-detail-section {
  padding: 3.5rem 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.product-gallery-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-light);
}

.product-gallery-box img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  margin: 0 auto;
}

.product-info-col h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.product-price-large {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--dark);
}

.product-price-large .old {
  font-size: 1.25rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 0.6rem;
  font-weight: 600;
}

.product-short-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.benefits-checklist {
  list-style: none;
  margin-bottom: 2rem;
}

.benefits-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  color: var(--dark-soft);
  font-weight: 500;
}

.benefits-checklist li .chk {
  color: var(--primary);
  font-weight: 900;
}

.purchase-actions-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.qty-buy-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 48px;
}

.qty-selector button {
  background: transparent;
  border: none;
  width: 42px;
  height: 100%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--dark-soft);
  transition: var(--transition);
}

.qty-selector button:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.qty-selector input {
  width: 50px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

.delivery-cod-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Tabs for product details */
.product-tabs-wrapper {
  margin-top: 3.5rem;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 2rem;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
  background: #ffffff;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  line-height: 1.7;
}

.tab-pane.active {
  display: block;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.nutrition-table th, .nutrition-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.nutrition-table th {
  background: var(--bg-subtle);
  font-weight: 800;
  color: var(--dark);
}

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

/* ==========================================================================
   Checkout Page & Forms
   ========================================================================== */
.checkout-section {
  padding: 3.5rem 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.checkout-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.checkout-card-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.checkout-card-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
}

.checkout-card-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark-soft);
  margin-bottom: 0.4rem;
}

.form-group label span.required {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--dark);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

.form-control.error {
  border-color: #ef4444;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cod-alert-box {
  background: var(--accent-gold-bg);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #92400e;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.terms-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.terms-checkbox-wrap input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Order Summary Box */
.order-summary-box {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
}

.order-items-list {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding-right: 0.5rem;
}

.order-item-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.order-item-mini img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.order-item-mini-info {
  flex-grow: 1;
}

.order-item-mini-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

.order-item-mini-qty {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.order-item-mini-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
}

.summary-calc-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-calc-row.total-row {
  border-top: 2px solid var(--border-light);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.free-tag {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 960px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Thank You Page (thx.html)
   ========================================================================== */
.thx-section {
  padding: 4.5rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.thx-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.thx-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.2);
}

.thx-order-ref {
  display: inline-block;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 2rem;
}

.thx-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin: 2.5rem 0;
}

.thx-step {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
}

.thx-step h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.thx-step p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.thx-support-box {
  background: var(--primary-bg);
  border: 1px solid rgba(4, 120, 87, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 2rem;
}

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

/* ==========================================================================
   Cart Drawer Modal
   ========================================================================== */
.cart-drawer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cart-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #ffffff;
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.cart-drawer-modal.active .cart-drawer-panel {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
}

.btn-close-cart {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
}

.cart-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.cart-item-price-single {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: var(--bg-subtle);
  border: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: 700;
}

.qty-input {
  width: 32px;
  text-align: center;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1rem;
}

.cart-item-total {
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark);
  flex-shrink: 0;
}

.empty-cart-view {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-cart-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-page);
}

/* ==========================================================================
   Footer & Legal Information
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #64748b;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   Toast Notification & Cookie Banner
   ========================================================================== */
.live-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--dark);
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-check {
  color: #34d399;
  font-weight: 900;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 0;
  z-index: 990;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

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

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
