/* ==========================================================================
   feedorymatrices.com - CORE DESIGN SYSTEM & STYLESHEET
   Location: Wageningen, Netherlands 🇳🇱
   Theme: Agritech Modern, High-Precision, Glassmorphism, Bio-Emerald & Cyan
   ========================================================================== */

:root {
  --base-bg: #f4f7f4;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(16, 185, 129, 0.15);
  --primary-accent: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.35);
  --secondary-accent: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.3);
  --deep-moss: #142e1b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --card-shadow: 0 8px 32px 0 rgba(20, 46, 27, 0.05);
  --card-hover-shadow: 0 12px 40px 0 rgba(16, 185, 129, 0.12);
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--base-bg);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
}

/* ==========================================================================
   GLASSMORPHISM UTILITIES
   ========================================================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: var(--card-hover-shadow);
}

.glass-btn {
  background: linear-gradient(135deg, var(--deep-moss), #1c3d25);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--primary-glow);
  background: linear-gradient(135deg, var(--primary-accent), #059669);
  color: #ffffff;
}

.glass-btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--deep-moss);
  border: 1px solid rgba(20, 46, 27, 0.15);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.glass-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--secondary-accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVIGATION (OPTIMIZED & SLIMMED)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 5%;
  min-height: 56px;
  background: rgba(244, 247, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
  transition: var(--transition);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--deep-moss);
}

.logo-container svg {
  width: 32px;
  height: 32px;
  transition: var(--transition);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--deep-moss), var(--primary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-weight: 400;
  color: var(--text-secondary);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 550;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-accent);
}

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

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

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

.nav-actions .glass-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.cart-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.cart-icon-btn svg {
  width: 20px;
  height: 20px;
}

.cart-icon-btn:hover {
  background: rgba(16, 185, 129, 0.08);
}

.cart-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--secondary-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--deep-moss);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav Active States */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO / BANNER STYLES
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 100px 5% 140px;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
              var(--base-bg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-pill {
  background: rgba(16, 185, 129, 0.12);
  color: var(--deep-moss);
  border: 1px solid var(--primary-accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 850;
  max-width: 900px;
  color: var(--deep-moss);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ==========================================================================
   METRIC / SPEC STATS ROW
   ========================================================================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  width: 90%;
  margin: -60px auto 80px;
  position: relative;
  z-index: 10;
}

.stat-card {
  padding: 24px;
  text-align: center;
}

.stat-card h3 {
  font-size: 2.2rem;
  color: var(--primary-accent);
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 550;
}

/* ==========================================================================
   COMMON LAYOUT WRAPPERS & GRID
   ========================================================================== */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--deep-moss);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ==========================================================================
   CARD STYLING
   ========================================================================== */
.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon-wrapper {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--deep-moss);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* PRODUCT / MATRIX CARDS WITH EXTENDED AGRO-CONTENT */
.matrix-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  height: 100%;
}

.matrix-card-visual {
  position: relative;
  height: 200px;
  background: var(--deep-moss);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matrix-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.cert-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(20, 46, 27, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--primary-accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 5;
}

.matrix-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 14px;
}

.matrix-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.matrix-card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-accent);
  font-weight: bold;
}

.matrix-card-fcr {
  font-size: 0.8rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.matrix-card-title {
  font-size: 1.3rem;
  color: var(--deep-moss);
  font-weight: 800;
  line-height: 1.25;
}

.matrix-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* New Understandability Components */
.matrix-card-how-it-works {
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid var(--primary-accent);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: var(--deep-moss);
}

.matrix-card-how-it-works strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-accent);
  margin-bottom: 2px;
}

.matrix-card-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(20, 46, 27, 0.03);
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed rgba(20, 46, 27, 0.08);
}

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

.spec-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--deep-moss);
}

.matrix-card-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.matrix-card-footer .glass-btn,
.matrix-card-footer .glass-btn-secondary {
  flex: 1;
  font-size: 0.85rem;
  padding: 11px 14px;
  justify-content: center;
  white-space: nowrap;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE SPECIFICS
   ========================================================================== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.detail-gallery {
  position: sticky;
  top: 100px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--deep-moss);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-fcr-badge {
  align-self: flex-start;
}

.detail-title {
  font-size: 2.5rem;
  font-weight: 850;
  color: var(--deep-moss);
  line-height: 1.2;
}

.detail-price-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--primary-accent);
  padding: 16px;
  border-radius: 0 12px 12px 0;
  margin: 12px 0;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--deep-moss);
}

.detail-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.detail-spec-table th, 
.detail-spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(20, 46, 27, 0.1);
}

.detail-spec-table th {
  background: rgba(20, 46, 27, 0.05);
  font-weight: bold;
  color: var(--deep-moss);
}

.detail-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

/* ==========================================================================
   NUTRITION ANALYTICS LAB (CALCULATOR)
   ========================================================================== */
.lab-card {
  padding: 40px;
  border-radius: 24px;
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-weight: 600;
  color: var(--deep-moss);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(20, 46, 27, 0.15);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 10px var(--primary-glow);
}

.calc-results {
  background: var(--deep-moss);
  color: #fff;
  padding: 40px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.result-value {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--secondary-accent);
}

.result-value.total-glow {
  color: var(--primary-accent);
  font-size: 2.2rem;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   FEEDBACK / REVIEWS
   ========================================================================== */
.review-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reviewer-meta h4 {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--deep-moss);
}

.reviewer-meta span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rating-stars {
  color: #f1c40f;
  display: flex;
  gap: 4px;
}

/* ==========================================================================
   LEGAL DOCUMENT & RICH TEXT STYLES
   ========================================================================== */
.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.legal-header {
  border-bottom: 2px solid rgba(16, 185, 129, 0.15);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.legal-date {
  font-weight: bold;
  color: var(--primary-accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.legal-wrapper h1 {
  font-size: 2.6rem;
  color: var(--deep-moss);
  margin-bottom: 12px;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--deep-moss);
  margin-top: 36px;
  margin-bottom: 16px;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 8px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
footer {
  background: var(--deep-moss);
  color: #f8fafc;
  padding: 80px 5% 40px;
  position: relative;
  z-index: 5;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

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

.footer-brand .logo-text {
  background: linear-gradient(135deg, #ffffff, var(--primary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

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

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

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--primary-accent);
  padding-left: 4px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

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

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary-accent);
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  z-index: 2000;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-banner.active {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  gap: 16px;
}

.cookie-icon {
  color: var(--primary-accent);
  flex-shrink: 0;
}

.cookie-text h4 {
  font-size: 1.1rem;
  color: var(--deep-moss);
  margin-bottom: 4px;
}

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

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cookie-actions button {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   FORMULATION BATCH (CART DRAWER)
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 46, 27, 0.3);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  z-index: 1501;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(20, 46, 27, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  color: var(--deep-moss);
  font-weight: 800;
}

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: var(--transition);
}

.cart-close-btn:hover {
  background: rgba(20, 46, 27, 0.05);
}

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

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(20, 46, 27, 0.05);
  align-items: center;
}

.cart-item-visual {
  width: 60px;
  height: 60px;
  background: var(--deep-moss);
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep-moss);
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--primary-accent);
  font-weight: bold;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-item-remove:hover {
  opacity: 0.7;
}

.cart-total-box {
  padding: 24px;
  border-top: 1px solid rgba(20, 46, 27, 0.1);
  background: #f8fafc;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--deep-moss);
}

.cart-total-row span:last-child {
  color: var(--primary-accent);
}

/* ==========================================================================
   SUCCESS MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 46, 27, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  max-width: 500px;
  width: 100%;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM SAFEGUARDS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
  }
  .calculator-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 56px; /* Dynamically adjusted to align with slimmer header */
    left: -100%;
    width: 100%;
    height: calc(100vh - 56px);
    background: rgba(244, 247, 244, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: var(--transition);
    z-index: 1000;
  }
  .nav-links.active {
    left: 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cookie-content {
    flex-direction: column;
  }
}