@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f4f8fb;
  --bg-card: #ffffff;
  --bg-dark: #0f2d3d;
  --text: #14232e;
  --text-muted: #5a7282;
  --teal: #1a8a8a;
  --teal-dark: #147070;
  --sky: #5eb8d4;
  --sky-light: #d4eef6;
  --coral: #e8836a;
  --border: #d4e4ec;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Libre Baskerville', Georgia, serif;
  --nav-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: 0.5;
  background: linear-gradient(135deg, rgba(212,238,246,0.6) 0%, transparent 50%),
              linear-gradient(225deg, rgba(212,238,246,0.4) 0%, transparent 45%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; position: relative; }

.site-header {
  position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: var(--nav-h);
}
.header-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--bg-dark); }
.logo span { color: var(--teal); font-weight: 400; }
.main-nav { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.main-nav a:hover, .main-nav a.active { color: var(--teal); }
.header-actions { display: flex; gap: 10px; align-items: center; }

.cart-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 18px;
  background: var(--teal); color: #fff; font-size: 13px; font-weight: 600;
  border-radius: 8px; border: none; cursor: pointer; transition: background 0.2s;
}
.cart-btn:hover { background: var(--teal-dark); }
.cart-count {
  background: var(--coral); color: #fff; min-width: 20px; height: 20px; border-radius: 6px;
  font-size: 11px; display: none; align-items: center; justify-content: center; font-weight: 700;
}
.cart-count.show { display: flex; }
.icon-btn {
  width: 38px; height: 38px; border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 8px; cursor: pointer; font-size: 16px; color: var(--text-muted);
}

.btn {
  display: inline-block; padding: 11px 22px; font-size: 14px; font-weight: 600;
  border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-sky { background: var(--sky); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--teal); color: var(--teal); }

.hero-health {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 52px 0; min-height: 440px;
}
.hero-health-text .badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--sky-light);
  color: var(--teal-dark); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: 8px; margin-bottom: 18px;
}
.hero-health-text h1 {
  font-family: var(--display); font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700; line-height: 1.15; margin: 0 0 16px; color: var(--bg-dark);
}
.hero-health-text p { color: var(--text-muted); font-size: 16px; max-width: 420px; margin: 0 0 28px; }
.hero-health-img img {
  width: 100%; height: 400px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(15,45,61,0.08);
}

.info-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 44px;
}
.info-strip div {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px; text-align: center;
}
.info-strip strong { font-family: var(--display); font-size: 1.35rem; color: var(--teal); display: block; }
.info-strip span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin-bottom: 8px; }
.section-title { font-family: var(--display); font-size: 1.65rem; font-weight: 700; margin: 0 0 28px; color: var(--bg-dark); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 52px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,45,61,0.07); }
.product-card .tag {
  position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--bg-dark); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 6px; text-transform: uppercase;
}
.product-card .img-wrap { position: relative; }
.product-card img { width: 100%; height: 195px; object-fit: cover; }
.product-card-body { padding: 14px 16px 18px; }
.product-card h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }
.product-card .price { font-size: 15px; color: var(--teal); font-weight: 700; margin-bottom: 10px; }
.product-card .btns { display: flex; gap: 6px; }
.product-card .btn { flex: 1; padding: 8px 8px; font-size: 11px; text-align: center; }
.shop-grid .product-card.hidden { display: none; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; }
.chip {
  padding: 7px 16px; border: 1px solid var(--border); background: var(--bg-card);
  font-size: 13px; font-weight: 500; border-radius: 8px; cursor: pointer; color: var(--text-muted); transition: all 0.2s;
}
.chip.active, .chip:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.page-head { padding: 36px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.page-head .cat { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); margin-bottom: 8px; }
.page-head h1 { font-family: var(--display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; margin: 0 0 8px; }
.page-head .lead { color: var(--text-muted); margin: 0; font-size: 15px; }

.article-layout { display: grid; grid-template-columns: 1fr 270px; gap: 32px; padding-bottom: 68px; }
.article-content img.hero-img { width: 100%; height: 360px; object-fit: cover; border-radius: 12px; margin-bottom: 22px; border: 1px solid var(--border); }
.article-content p { color: var(--text-muted); font-size: 15px; line-height: 1.85; margin-bottom: 14px; }
.article-content h2 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; margin: 24px 0 8px; color: var(--bg-dark); }

.purchase-box {
  background: var(--bg-dark); color: #fff; padding: 22px; border-radius: 12px;
  position: sticky; top: calc(var(--nav-h) + 14px); border-top: 3px solid var(--teal);
}
.purchase-box img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.purchase-box h3 { font-size: 1rem; margin: 0 0 8px; }
.purchase-box .price { font-family: var(--display); font-size: 1.4rem; color: var(--sky-light); margin-bottom: 4px; }
.purchase-box .note { font-size: 11px; opacity: 0.75; margin-bottom: 14px; }
.purchase-box .btn { width: 100%; margin-bottom: 8px; }
.purchase-box .added { font-size: 11px; color: var(--sky-light); display: none; text-align: center; margin-top: 8px; }
.purchase-box .added.show { display: block; }

.cart-page { padding: 36px 0 68px; }
.cart-empty { text-align: center; padding: 60px 24px; border: 2px dashed var(--border); border-radius: 12px; background: var(--bg-card); }
.cart-row {
  display: grid; grid-template-columns: 68px 1fr 110px 76px 50px; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.cart-row img { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; }
.cart-row h4 { font-size: 13px; margin: 0 0 4px; font-weight: 600; }
.cart-row a { font-size: 11px; color: var(--teal); font-weight: 600; }
.qty-ctrl { display: flex; gap: 5px; align-items: center; }
.qty-ctrl button { width: 26px; height: 26px; border: 1px solid var(--border); background: var(--bg); border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 13px; }
.qty-ctrl span { min-width: 18px; text-align: center; font-weight: 600; font-size: 13px; }
.cart-summary { max-width: 320px; margin-left: auto; margin-top: 24px; background: var(--teal); color: #fff; padding: 22px; border-radius: 12px; }
.cart-summary .line { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; opacity: 0.95; }
.cart-summary .total { font-family: var(--display); font-size: 1.2rem; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 10px; margin-top: 10px; }
.cart-summary .btn { width: 100%; margin-top: 14px; background: var(--coral); color: #fff; }
.cart-remove { background: none; border: none; color: var(--coral); font-size: 11px; cursor: pointer; text-decoration: underline; }

.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--bg-card); overflow: hidden; }
.faq-q { width: 100%; padding: 14px 18px; background: none; border: none; text-align: left; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a-inner { padding: 0 18px 14px; color: var(--text-muted); font-size: 13px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 0 68px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font); margin-bottom: 10px; }
.contact-form textarea { min-height: 110px; resize: vertical; }

.modal-overlay { position: fixed; inset: 0; background: rgba(15,45,61,0.55); z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 68px 20px; }
.modal-overlay.show { display: flex; }
.modal-box { background: var(--bg-card); border-radius: 12px; padding: 26px; width: min(460px,100%); position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.modal-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }
.search-input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; font-family: var(--font); }
.search-results a { display: block; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }

#cookieBar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000; background: var(--bg-dark); color: #fff; padding: 13px 22px; transform: translateY(100%); transition: transform 0.3s; }
#cookieBar.show { transform: translateY(0); }
.cookie-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 13px; flex: 1; opacity: 0.9; }
.cookie-inner a { color: var(--sky-light); }
.cookie-btns button { padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; border-radius: 8px; margin-left: 8px; }
#cookieAccept { background: var(--teal); color: #fff; }
#cookieDecline { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff; }

#toastContainer { position: fixed; bottom: 20px; right: 20px; z-index: 2500; }
.toast { background: var(--bg-dark); color: #fff; padding: 11px 18px; font-size: 13px; border-radius: 8px; margin-top: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

.site-footer { background: var(--bg-dark); color: #9eb8c4; padding: 44px 0 22px; margin-top: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.footer-col h4 { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-light); margin: 0 0 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { font-size: 13px; color: #9eb8c4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; font-size: 12px; }

@media (max-width: 992px) {
  .hero-health, .article-layout, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .info-strip { grid-template-columns: 1fr 1fr; }
  .cart-row { grid-template-columns: 56px 1fr; gap: 8px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 18px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
  .main-nav.open { display: flex; }
  .product-grid, .info-strip { grid-template-columns: 1fr; }
}
