/* ==========================================================================
   IberiaVital - Modern Health & Supplements E-Commerce Stylesheet
   Theme: Spanish Natural Wellness & Dietary Supplements (EFSA / Google Ads Compliant)
   ========================================================================== */

:root {
  --primary: #0f5132;
  --primary-hover: #0b3d26;
  --primary-light: #e8f5e9;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --secondary: #0284c7;
  --dark: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --light-bg: #faf9f6;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*, *::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(--light-bg);
  color: var(--slate);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: 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;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.font-bold { font-weight: 700; }

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, #0b3d26 0%, #0f5132 100%);
  color: #ffffff;
  padding: 0.55rem 1rem;
  font-size: 0.825rem;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 50;
  letter-spacing: 0.02em;
}

/* Main Navigation Header */
.main-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.725rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

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

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

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

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

/* Language Switcher Button */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  font-size: 0.825rem;
  font-weight: 700;
}

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

.lang-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 6px rgba(15, 81, 50, 0.2);
}

/* Cart Button */
.cart-header-btn {
  position: relative;
  background: var(--primary-light);
  border: 1px solid rgba(15, 81, 50, 0.15);
  color: var(--primary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.cart-count-badge {
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  padding: 2px 7px;
  font-weight: 800;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #f0fdf4 0%, var(--light-bg) 100%);
  padding: 3.5rem 0 4.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

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

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid #bbf7d0;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

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

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--slate);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #15803d 100%);
  color: white;
  font-weight: 700;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(15, 81, 50, 0.3);
  transition: var(--transition);
  text-align: center;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #166534 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 81, 50, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--dark);
  font-weight: 700;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 1.5rem;
}

.stat-item h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* Hero Showcase Card */
.hero-visual {
  position: relative;
}

.hero-card-banner {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-image-mockup {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed #86efac;
  position: relative;
}

.hero-image-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.floating-pill {
  position: absolute;
  bottom: -15px;
  right: 20px;
  background: white;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* Trust Bar */
.trust-bar-section {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}

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

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

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

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

.trust-item-text p {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Products Section */
.products-section {
  padding: 4.5rem 0;
}

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

.section-tag {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

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

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

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

/* Product Card */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 5;
}

.product-image-wrap {
  width: 100%;
  height: 240px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s ease;
}

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

/* Fallback Art if image is missing */
.img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: var(--slate);
  padding: 1.5rem;
  text-align: center;
}

.img-fallback-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

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

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.reviews-count {
  color: var(--muted);
  font-weight: 500;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
  line-height: 1.35;
  cursor: pointer;
}

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

.product-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  flex-grow: 1;
}

.product-specs-list {
  list-style: none;
  margin-bottom: 1.25rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.product-specs-list li {
  font-size: 0.8rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.product-specs-list li span {
  color: var(--success);
  font-weight: bold;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

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

.price-original {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.cod-badge {
  font-size: 0.75rem;
  background: var(--accent-light);
  color: #92400e;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.5rem;
}

.btn-card-view {
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-view:hover {
  background: #e2e8f0;
}

.btn-card-buy {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

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

/* Quality Assurance Section */
.quality-section {
  background: #ffffff;
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.quality-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.quality-card-icon {
  width: 64px;
  height: 64px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.quality-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.quality-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Customer Reviews */
.reviews-section {
  padding: 4.5rem 0;
}

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

.review-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.review-text {
  font-size: 0.925rem;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.6;
}

.review-author {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.review-product-tag {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* FAQ Section */
.faq-section {
  background: white;
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--light-bg);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.6;
  border-top: 1px solid rgba(0,0,0,0.04);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.2s ease;
  font-size: 1.1rem;
}

/* Footer & Disclaimers */
.main-footer {
  background: #091e14;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: auto;
  font-size: 0.875rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid #1e3a2f;
  padding-bottom: 3rem;
}

.footer-brand h2 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-column h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.footer-links a:hover {
  color: #34d399;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

/* Sanity / EFSA Disclaimer Banner in Footer */
.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #1e3a2f;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
}

.footer-disclaimer-box h5 {
  color: #fbbf24;
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.footer-disclaimer-box p {
  font-size: 0.775rem;
  line-height: 1.5;
  color: #94a3b8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
}

/* Modals & Cart Drawer */
.cart-drawer-overlay, .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: white;
  z-index: 101;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
  right: 0;
}

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

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

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  background: #f1f5f9;
  color: var(--dark);
}

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

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  object-fit: contain;
  padding: 4px;
  border: 1px solid var(--border);
}

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

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

.cart-item-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: bold;
}

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

.btn-remove-item {
  color: var(--danger);
  background: none;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

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

/* Modal Box (Product Quick View & Checkout) */
.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: white;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 102;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 2rem;
}

.modal-container.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

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

.modal-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
}

/* Checkout Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

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

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

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

.form-help {
  font-size: 0.775rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

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

.cod-highlight-box {
  background: #f0fdf4;
  border: 1.5px dashed #86efac;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cod-highlight-box p {
  font-size: 0.85rem;
  color: #166534;
  font-weight: 600;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 0;
  z-index: 90;
  display: none;
}

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

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

.cookie-content p {
  font-size: 0.85rem;
  color: var(--slate);
}

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

/* Static Inner Pages (About, Contact, Legal, etc.) */
.page-hero {
  background: linear-gradient(180deg, #f0fdf4 0%, var(--light-bg) 100%);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-content-box {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin: 3rem auto;
  max-width: 900px;
  box-shadow: var(--shadow-sm);
}

.page-content-box h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin: 1.75rem 0 0.75rem;
}

.page-content-box p, .page-content-box li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 1rem;
}

.page-content-box ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Thank You (thx) Page Specific */
.thx-container {
  max-width: 720px;
  margin: 3.5rem auto;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.thx-success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.thx-order-ref {
  background: var(--light-bg);
  border: 1px dashed var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  display: inline-block;
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0 1.5rem;
}

.thx-call-alert {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-align: left;
  margin: 1.5rem 0;
}

.thx-call-alert h4 {
  color: #1e40af;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.thx-call-alert p {
  color: #1e3a8a;
  font-size: 0.875rem;
}

.thx-details-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f8fafc;
  padding: 1.5rem;
  text-align: left;
  margin: 1.5rem 0;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quality-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .thx-container {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }
}
