@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- DESIGN TOKENS & SYSTEM VARIABLES --- */
:root {
  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(122, 139, 123, 0.08);
  --shadow-md: 0 8px 24px rgba(122, 139, 123, 0.12);
  --shadow-lg: 0 16px 40px rgba(122, 139, 123, 0.18);
  --shadow-glow: 0 0 20px rgba(122, 139, 123, 0.2);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Colors (Natural palette: sage/olive/terracotta) */
  --bg-primary: #faf8f5;        /* Warm Neutral */
  --bg-secondary: #ffffff;      /* Warm White */
  --bg-tertiary: #f1ede8;       /* Warm Gray/Beige */
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: rgba(79, 93, 78, 0.12);
  --border-focus: rgba(79, 93, 78, 0.3);
  
  --text-primary: #2b2d2f;      /* Dark Charcoal */
  --text-secondary: #5a5e61;    /* Slate Gray */
  --text-muted: #8d9296;        /* Light Gray */

  --color-brand: #7a8b7b;       /* Sage Green */
  --color-brand-hover: #4f5d4e; /* Olive Green */
  --color-brand-glow: rgba(122, 139, 123, 0.25);
  
  --color-accent: #c87a53;      /* Terracotta */
  --color-accent-hover: #b0623a;
  --color-danger: #d9534f;
  --color-success: #6e8c75;

  --glass-blur: 16px;
}

/* Theme Override: Dark Mode */
[data-theme="dark"] {
  --bg-primary: #121a16;        /* Deep Forest Green */
  --bg-secondary: #1a2420;      /* Dark Sage Green */
  --bg-tertiary: #23302a;       /* Muted Olive */
  --bg-glass: rgba(26, 36, 32, 0.85);
  --border-color: rgba(122, 139, 123, 0.2);
  --border-focus: rgba(122, 139, 123, 0.4);
  
  --text-primary: #faf8f5;
  --text-secondary: #c2c9c5;
  --text-muted: #8a9690;

  --color-brand: #9caf9d;       /* Light Sage Green */
  --color-brand-hover: #b2c2b3;
  --color-brand-glow: rgba(156, 175, 157, 0.25);
  
  --color-accent: #d98b64;      /* Lighter Terracotta */
  --color-accent-hover: #e39d7a;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(156, 175, 157, 0.15);
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-heading);
}

.btn-primary {
  background-color: var(--color-brand);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-color: var(--color-brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-brand-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: white;
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  color: var(--color-brand);
  border: 1px solid var(--border-color);
}

.badge-accent {
  background-color: rgba(208, 140, 96, 0.15);
  color: var(--color-accent);
  border-color: rgba(208, 140, 96, 0.3);
}

/* Glassmorphic Panel */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Section Header */
.section-header {
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-top: 10px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  background: rgba(11, 21, 17, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-normal), border var(--transition-normal);
}

[data-theme="light"] header {
  background: rgba(244, 249, 246, 0.85);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition-fast);
}

.logo-wrapper:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 64px;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.0rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.icon-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--color-brand);
  transform: scale(1.05);
}

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

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.menu-toggle {
  display: none;
}

/* --- HOME VIEW (HERO & HIGHLIGHTS) --- */
.view-section {
  display: none;
  animation: fadeIn var(--transition-normal) forwards;
}

.view-section.active {
  display: block;
}

.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  background-image: linear-gradient(180deg, rgba(11,21,17,0.4) 0%, rgba(11,21,17,0.95) 100%), url('../assets/hero-balcony.webp');
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

[data-theme="light"] .hero {
  background-image: linear-gradient(180deg, rgba(244,249,246,0.3) 0%, rgba(244,249,246,0.98) 100%), url('../assets/hero-balcony.webp');
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--color-brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Value Props Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.feature-card {
  padding: 32px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-tertiary);
  color: var(--color-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  font-size: 1.5rem;
  transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Section Divider CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin: 80px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: var(--color-brand-glow);
  filter: blur(80px);
}

.cta-banner-text {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* --- STORE / PRODUCTS VIEW --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-img-wrapper {
  position: relative;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

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

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

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-brand);
}

/* --- CONFIGURATOR VIEW --- */
.configurator-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 48px;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.step-progress-bar {
  position: absolute;
  top: 20px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-brand);
  z-index: 1;
  transition: width var(--transition-normal);
}

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

.step-number {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all var(--transition-normal);
}

.step-node.active .step-number {
  border-color: var(--color-brand);
  background-color: var(--bg-tertiary);
  color: var(--color-brand);
  box-shadow: var(--shadow-glow);
}

.step-node.completed .step-number {
  border-color: var(--color-brand);
  background-color: var(--color-brand);
  color: var(--bg-primary);
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-normal);
}

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

/* Steps Body */
.config-step {
  display: none;
  animation: slideIn var(--transition-normal) forwards;
}

.config-step.active {
  display: block;
}

.config-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.option-card {
  padding: 30px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  background-color: rgba(255,255,255, 0.02);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.option-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
}

.option-card.selected {
  border-color: var(--color-brand);
  background-color: var(--bg-tertiary);
  box-shadow: var(--shadow-glow);
}

.option-icon {
  font-size: 2.2rem;
  color: var(--color-brand);
  margin-bottom: 8px;
}

.option-card.selected .option-icon {
  animation: pulse 1.5s infinite;
}

.option-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

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

.config-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

/* Configurator Results Layout */
.result-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-top: 32px;
}

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

.result-product {
  padding: 32px;
  border-radius: var(--radius-lg);
}

.result-product-img {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
  display: flex;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.result-product-img img {
  max-height: 200px;
  object-fit: contain;
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recommendations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.plant-badge {
  padding: 10px 14px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.plant-icon {
  font-size: 1.3rem;
}

/* --- BLOG VIEW --- */
.blog-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-glow);
}

.search-box svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
}

.category-pills {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.category-pill {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-pill:hover, .category-pill.active {
  background-color: var(--color-brand);
  color: var(--bg-primary);
  border-color: var(--color-brand);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand);
}

.blog-card-img-wrapper {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
}

.blog-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
}

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

.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-brand);
}

.blog-card-read-more {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-read-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.blog-card:hover .blog-card-read-more svg {
  transform: translateX(4px);
}

/* --- FULL ARTICLE MODAL / DRAWER --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn var(--transition-fast) forwards;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  position: relative;
  animation: scaleUp var(--transition-normal) forwards;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background-color: rgba(0,0,0,0.5);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--color-danger);
}

.article-hero {
  height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.article-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(0deg, var(--bg-secondary) 0%, rgba(0,0,0,0) 100%);
}

.article-body-wrapper {
  padding: 40px;
}

.article-meta-info {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-title-full {
  font-size: 2.2rem;
  margin-bottom: 24px;
  line-height: 1.25;
}

.article-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.article-text p {
  margin-bottom: 20px;
}

.article-text h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-text ul, .article-text ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-text li {
  margin-bottom: 8px;
}

.article-text blockquote, .article-text strong {
  color: var(--text-primary);
}

/* --- CART DRAWER --- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  animation: fadeIn var(--transition-fast) forwards;
}

.cart-drawer-overlay.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 210;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cart-drawer-overlay.active + .cart-drawer, .cart-drawer.active {
  transform: translateX(0);
}

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

.cart-header h3 {
  font-size: 1.5rem;
}

.cart-close {
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.cart-close:hover {
  color: var(--text-primary);
}

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

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cart-empty-icon {
  font-size: 3rem;
  color: var(--border-focus);
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

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

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

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--color-brand);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  background-color: var(--bg-tertiary);
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--color-brand);
  color: var(--bg-primary);
  border-color: var(--color-brand);
}

.cart-item-remove {
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--color-danger);
}

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

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.cart-checkout-btn {
  width: 100%;
}

/* --- FOOTER & NEWSLETTER --- */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

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

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

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-col p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--color-brand);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  padding: 6px;
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.newsletter-form:focus-within {
  border-color: var(--color-brand);
}

.newsletter-form input {
  flex-grow: 1;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.newsletter-form .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- ANIMATIONS & KEYFRAMES --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(82, 183, 136, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(82, 183, 136, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(82, 183, 136, 0); }
}

/* Smart diagnostics tool styles */
.diagnostic-container {
  max-width: 600px;
  margin: 0 auto;
}

.diagnostic-question {
  font-size: 1.35rem;
  margin-bottom: 24px;
  font-weight: 700;
}

.diagnostic-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diag-option-btn {
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.diag-option-btn:hover {
  border-color: var(--color-brand);
  background-color: var(--bg-tertiary);
  transform: translateX(4px);
}

.diag-icon {
  font-size: 1.3rem;
  color: var(--color-brand);
}

.diagnostic-result {
  animation: slideIn var(--transition-normal) forwards;
}

.diagnostic-result h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--color-brand);
}

.diagnostic-advice {
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Responsive navigation and hamburger menu styles */
@media (max-width: 768px) {
  .logo-img {
    height: 52px;
  }

  .logo-text {
    font-size: 1.6rem;
  }

  .container {
    padding: 0 16px;
  }

  .nav-actions {
    gap: 10px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

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

  #theme-toggle {
    display: none !important;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 110;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    display: flex;
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .hero h1 {
    font-size: 2.6rem;
  }
  
  header .container {
    flex-wrap: nowrap !important;
  }
  .logo-wrapper {
    flex-shrink: 0 !important;
  }
  .nav-actions {
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 38px !important;
  }
  .logo-text {
    font-size: 1.25rem !important;
  }
  .logo-wrapper {
    gap: 6px !important;
  }
  .nav-actions {
    gap: 6px !important;
  }
  .lang-switcher {
    font-size: 0.7rem !important;
    gap: 4px !important;
    margin-right: 4px !important;
  }
  .icon-btn {
    width: 32px !important;
    height: 32px !important;
  }
}
