:root {
  --primary: #0f766e;
  --primary-dark: #0d5f58;
  --primary-light: #14b8a6;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

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

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-sm { padding: 10px 20px; font-size: 14px; }

.section { padding: 80px 0; }

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

.section-tag {
  display: inline-block;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.header {
  position: relative;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  flex-shrink: 0;
  min-width: 0;
}

.logo img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }

.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.nav a:hover, .nav a.active {
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary);
}

.nav-search { display: none; }

.search-box.nav-search { display: none; }

.search-box.header-search { display: flex; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  gap: 8px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 140px;
  min-width: 0;
}

.search-box svg { color: var(--text-muted); flex-shrink: 0; }

.menu-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-toggle .icon-close { display: none; }

.menu-toggle.active .icon-menu { display: none; }

.menu-toggle.active .icon-close { display: block; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 998;
}

.nav-overlay.open { display: block; }

body.nav-open { overflow: hidden; }

.cart-btn {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

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

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #f0fdfa 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-badge span { color: var(--primary); font-weight: 600; }

.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 7 / 5;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-item { text-align: center; min-width: 0; padding: 0 4px; }

.stat-value {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: clamp(11px, 2.5vw, 14px);
  color: var(--text-muted);
  line-height: 1.35;
  hyphens: auto;
  word-break: break-word;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 20px;
  object-fit: cover;
}

.card h3 { font-size: 18px; margin-bottom: 10px; }

.card p { color: var(--text-muted); font-size: 15px; }

.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f1f5f9;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.product-author { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }

.product-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }

.product-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price { font-size: 18px; font-weight: 700; color: var(--primary); }

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--accent);
}

.carousel-wrap { position: relative; }

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 0;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track .product-card {
  min-width: 280px;
  max-width: 280px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: all 0.2s;
}

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

.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

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

.feature-item {
  text-align: center;
  padding: 32px 24px;
}

.feature-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 20px;
}

.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}

.review-stars { color: var(--accent); margin-bottom: 12px; font-size: 18px; }

.review-text { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; font-style: italic; }

.review-author { display: flex; align-items: center; gap: 12px; }

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.review-name { font-weight: 600; font-size: 15px; }
.review-age { font-size: 13px; color: var(--text-muted); }

.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.blog-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

.blog-card-body { padding: 24px; }

.blog-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card h3 { font-size: 18px; margin: 8px 0 12px; line-height: 1.3; }

.blog-meta { font-size: 13px; color: var(--text-muted); }

.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 60px) clamp(20px, 5vw, 40px);
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(22px, 5vw, 32px);
  margin-bottom: 16px;
  line-height: 1.25;
  padding: 0 4px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(14px, 3.5vw, 16px);
  line-height: 1.6;
  padding: 0 4px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  align-items: center;
}

.team-grid img {
  border-radius: var(--radius);
  width: 100%;
}

.team-grid h3 {
  font-size: clamp(18px, 4vw, 22px);
  margin-bottom: 16px;
  line-height: 1.3;
}

.team-grid p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: clamp(14px, 3.5vw, 16px);
  line-height: 1.7;
}

.shop-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.shop-search-input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  min-width: 0;
  flex: 1;
}

.shop-sort-select {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
  font-family: var(--font);
  min-width: 0;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  font-size: 15px;
  outline: none;
}

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 0;
}

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

.footer-brand p { margin: 16px 0 24px; font-size: 14px; line-height: 1.7; }

.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer ul { list-style: none; }

.footer ul li { margin-bottom: 10px; }

.footer ul a { color: #94a3b8; font-size: 14px; }
.footer ul a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.footer-social { display: flex; gap: 12px; margin-top: 20px; }

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s;
}

.footer-social a:hover { background: var(--primary); color: #fff; }

.payment-icons { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.payment-icon {
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
}

.footer-map {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
}

.footer-map iframe { width: 100%; height: 100%; border: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

#cart-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 20px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
}

.modal-img {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.modal-img img { max-height: 400px; object-fit: contain; border-radius: 8px; }

.modal-content { padding: 40px; }

.modal-content h2 { font-size: 24px; margin-bottom: 8px; }

.modal-author { color: var(--text-muted); margin-bottom: 16px; }

.modal-price { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }

.modal-rating { color: var(--accent); margin-bottom: 20px; }

.modal-desc { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }

.modal-section { margin-bottom: 24px; }

.modal-section h4 { font-size: 15px; margin-bottom: 8px; }

.modal-section p { font-size: 14px; color: var(--text-muted); }

.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.similar-books { padding: 24px 40px 40px; border-top: 1px solid var(--border); }

.similar-books h4 { margin-bottom: 16px; }

.similar-grid { display: flex; gap: 16px; overflow-x: auto; }

.similar-item {
  min-width: 120px;
  text-align: center;
  cursor: pointer;
}

.similar-item img {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 8px;
}

.similar-item span { font-size: 12px; color: var(--text-muted); }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 2100;
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
  transition: right 0.3s;
  display: flex;
  flex-direction: column;
}

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

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

.cart-header h3 { flex: 1; }

.cart-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text);
  flex-shrink: 0;
}

.cart-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.cart-panel.active {
  display: flex;
}

.cart-panel#cart-panel-items.active {
  min-height: 0;
}

.cart-panel#cart-panel-checkout,
.cart-panel#cart-panel-success {
  overflow-y: auto;
  padding: 24px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-field input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.checkout-field input:focus {
  border-color: var(--primary);
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
}

.checkout-success {
  text-align: center;
  padding: 24px 0;
}

.checkout-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.checkout-success h4 {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.checkout-success p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

#cart-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cart-items { flex: 1; overflow-y: auto; padding: 24px; }

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img { width: 60px; height: 80px; object-fit: cover; border-radius: 8px; }

.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; font-size: 14px; }
.cart-item-price { color: var(--primary); font-weight: 600; margin-top: 4px; }

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}

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

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 3000;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.3s;
}

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

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p { font-size: 14px; color: var(--text-muted); flex: 1; min-width: 280px; }

.cookie-btns { display: flex; gap: 12px; }

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0 80px;
}

.filters {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 24px;
}

.filters h3 { font-size: 16px; margin-bottom: 20px; }

.filter-group { margin-bottom: 24px; }

.filter-group h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text-muted); }

.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
}

.filter-label input { accent-color: var(--primary); }

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.sort-bar select {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.page-hero {
  background: linear-gradient(180deg, #f0fdfa, var(--bg));
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 0 auto; }

.quiz-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.quiz-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.quiz-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.quiz-card-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
}

.quiz-container {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px;
  border: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
}

.quiz-progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 32px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 3px;
  transition: width 0.3s;
}

.quiz-question { font-size: 20px; font-weight: 600; margin-bottom: 24px; }

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

.quiz-option {
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  background: #fff;
  text-align: left;
}

.quiz-option:hover { border-color: var(--primary); background: rgba(15,118,110,0.04); }

.quiz-option.correct { border-color: #22c55e; background: #f0fdf4; }
.quiz-option.wrong { border-color: #ef4444; background: #fef2f2; }

.quiz-explanation {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  display: none;
}

.quiz-explanation.show { display: block; }

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

.quiz-score {
  font-size: 64px;
  font-weight: 800;
  color: var(--primary);
  margin: 24px 0;
}

.quiz-score span { font-size: 24px; color: var(--text-muted); }

.age-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }

.age-btn {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.age-btn.active, .age-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.story-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.story-card h3 { font-size: 22px; margin-bottom: 16px; }

.story-card p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.8; }

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-content h2 { font-size: 24px; margin: 32px 0 16px; }
.legal-content h3 { font-size: 18px; margin: 24px 0 12px; }
.legal-content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.legal-content ul { margin: 0 0 16px 24px; color: var(--text-muted); }
.legal-content li { margin-bottom: 8px; }

.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  text-align: center;
  display: none;
}

.form-success.show { display: block; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  z-index: 4000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}

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

@media (max-width: 1100px) {
  .header-inner .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #fff;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 999;
    max-height: min(70dvh, 520px);
    overflow-y: auto;
  }

  .header-inner .nav.open { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .nav a {
    padding: 14px 16px;
    font-size: 16px;
    white-space: normal;
  }

  .search-box.header-search { display: none; }

  .search-box.nav-search {
    display: flex;
    width: 100%;
    margin-top: 12px;
  }

  .search-box.nav-search input { width: 100%; flex: 1; }

  .menu-toggle { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-img {
    order: -1;
    max-height: 420px;
    width: 100%;
  }

  .hero-img img {
    aspect-ratio: 16 / 9;
    max-height: 420px;
  }

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

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 24px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 60px; }
  .filters { position: static; padding: 20px; }
  .modal-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: clamp(24px, 6vw, 32px); }
  .section-desc { font-size: 16px; }
  .carousel-btn { display: none; }
  .carousel-track .product-card { min-width: 240px; max-width: 240px; }
  .stats-bar { margin-top: 32px; gap: 12px; padding: 20px 12px; }
  .hero { padding: 32px 0 48px; }
  .hero-img { max-height: 300px; }
  .hero-img img { max-height: 300px; aspect-ratio: 16 / 10; }
  .hero h1 { font-size: clamp(28px, 7vw, 40px); }
  .hero p { font-size: 16px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .page-hero { padding: 32px 0; }
  .page-hero h1 { font-size: clamp(26px, 6vw, 36px); }
  .page-hero p { font-size: 16px; padding: 0 8px; }
  .cta-banner { padding: 28px 16px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100%; right: -100%; }
  .quiz-container { padding: 24px; }
  .quiz-cards { grid-template-columns: 1fr; }
  .quiz-card { padding: 28px 20px; }
  .story-card { padding: 24px 20px; }
  .story-card h3 { font-size: clamp(18px, 4.5vw, 22px); }
  .sort-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .shop-controls {
    flex-direction: column;
    width: 100%;
  }
  .shop-search-input,
  .shop-sort-select {
    width: 100%;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-body { padding: 14px; }
  .product-title { font-size: 14px; }
  .product-desc { font-size: 12px; -webkit-line-clamp: 2; }
  .product-footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .product-footer .btn { width: 100%; }
  .product-price { font-size: 16px; }
  .filters .filter-group { margin-bottom: 16px; }
  .filter-label { font-size: 13px; }
  .modal-content { padding: 24px; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
  .checkout-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .logo-text { display: none; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
