:root {
  --bg: oklch(98% 0.008 95);
  --green: oklch(46% 0.1 150);
  --green-dark: oklch(22% 0.02 150);
  --green-darker: oklch(24% 0.025 150);
  --green-light-bg: oklch(95% 0.025 150);
  --green-text-strong: oklch(30% 0.05 150);
  --text-dark: oklch(22% 0.02 150);
  --text-mid: oklch(35% 0.02 150);
  --text-muted: oklch(40% 0.02 150);
  --text-muted2: oklch(45% 0.02 150);
  --text-nav: oklch(30% 0.02 150);
  --on-dark-1: oklch(80% 0.015 150);
  --on-dark-2: oklch(85% 0.015 150);
  --on-dark-3: oklch(92% 0.02 150);
  --white-ish: oklch(98% 0.005 150);
  --border: oklch(90% 0.012 150);
  --border-strong: oklch(88% 0.012 150);
  --blue-bg: oklch(94% 0.02 230);
  --blue-bg-2: oklch(90% 0.02 230);
  --blue-text: oklch(45% 0.03 230);
  --blue-badge: oklch(55% 0.09 230);
  --gray-bg: oklch(93% 0.005 250);
  --gray-bg-2: oklch(89% 0.008 250);
  --gray-text: oklch(45% 0.01 250);
  --red: oklch(55% 0.12 25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: 'Work Sans', 'Segoe UI', Arial, sans-serif;
}

h1, h2, h3, .font-display {
  font-family: 'Sora', 'Segoe UI', Arial, sans-serif;
}

a { color: inherit; }

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

button { font-family: inherit; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  position: relative;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-dark); }
.brand-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  color: var(--white-ish); font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.brand-name { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.main-nav { display: flex; gap: 26px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--text-nav); text-decoration: none; }
.main-nav a:hover { text-decoration: underline; }
.cart-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--green); color: var(--white-ish); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.cart-badge {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--white-ish); color: var(--green); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 64px 48px; background: var(--green-light-bg);
}
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--green);
  color: white; font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: 46px; line-height: 1.1; font-weight: 800; margin: 0 0 20px; letter-spacing: -0.02em; }
.hero p { font-size: 18px; line-height: 1.6; color: var(--text-mid); max-width: 520px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  border-radius: 20px; aspect-ratio: 4/3; width: 100%; object-fit: cover;
}
.btn-primary {
  padding: 14px 26px; border-radius: 10px; background: var(--green); color: white;
  text-decoration: none; font-weight: 700; font-size: 15px; border: none; cursor: pointer; display: inline-block;
}
.btn-outline {
  padding: 14px 26px; border-radius: 10px; background: transparent; border: 1.5px solid var(--green);
  color: var(--green-text-strong); text-decoration: none; font-weight: 700; font-size: 15px; display: inline-block;
}

/* Stats bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--green-darker); color: white;
}
.stat-item { padding: 26px 24px; text-align: center; border-right: 1px solid oklch(35% 0.02 150); }
.stat-item:last-child { border-right: none; }
.stat-item .t { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.stat-item .s { font-size: 13px; color: var(--on-dark-1); }

/* Generic section */
.section { padding: 64px 48px; }
.section-tight { padding: 16px 48px 64px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.section-head h2 { font-size: 28px; font-weight: 800; margin: 0; }
.section-head a { color: var(--green); text-decoration: none; font-weight: 600; font-size: 14px; }

/* Category tiles */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.category-tile {
  text-decoration: none; color: inherit; padding: 24px 18px; border-radius: 14px;
  text-align: center; font-weight: 700; font-size: 15px;
}
.category-tile.bg-a { background: var(--green-light-bg); }
.category-tile.bg-b { background: var(--blue-bg); }
.category-tile.bg-c { background: var(--gray-bg); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.product-card {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: white;
  display: flex; flex-direction: column; position: relative;
}
.product-card__badge {
  position: absolute; top: 10px; left: 10px; background: var(--blue-badge); color: white;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 2;
}
.product-card__img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__name { text-decoration: none; color: inherit; font-weight: 700; font-size: 15px; }
.product-card__desc { font-size: 13px; color: var(--text-muted2); flex: 1; }
.product-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.price-row { display: flex; gap: 8px; align-items: baseline; }
.price { font-weight: 800; font-size: 17px; }
.price-old { text-decoration: line-through; color: var(--gray-text); font-size: 13px; }
.btn-add {
  padding: 8px 14px; border-radius: 8px; border: none; background: var(--green); color: white;
  font-weight: 600; font-size: 13px; cursor: pointer;
}

/* Article cards */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.article-grid.wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.article-card {
  text-decoration: none; color: inherit; background: white; border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.article-card.bordered { border: 1px solid var(--border); }
.article-card__img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.article-card__body { padding: 18px; }
.article-card.wide .article-card__body { padding: 20px; }
.article-card__tag { font-size: 12px; color: var(--green); font-weight: 700; }
.article-card__title { font-size: 17px; margin: 8px 0; }
.article-card.wide .article-card__title { font-size: 19px; margin: 10px 0 8px; }
.article-card__excerpt { font-size: 13px; color: var(--text-muted2); margin: 0; }
.article-card.wide .article-card__excerpt { font-size: 14px; line-height: 1.6; }

/* Newsletter */
.newsletter { padding: 56px 48px; text-align: center; background: var(--green); }
.newsletter h2 { color: white; font-size: 26px; margin: 0 0 10px; font-weight: 800; }
.newsletter p { color: var(--on-dark-3); margin: 0 0 22px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 440px; margin: 0 auto; }
.newsletter-form input {
  padding: 12px 16px; border-radius: 8px; border: none; font-size: 14px; flex: 1; min-width: 200px;
}
.newsletter-form button {
  padding: 12px 22px; border-radius: 8px; border: none; background: var(--green-dark);
  color: white; font-weight: 700; cursor: pointer;
}
.form-feedback { margin-top: 14px; color: white; font-weight: 600; font-size: 14px; display: none; }
.form-feedback.show { display: block; }

/* Footer */
.site-footer {
  background: var(--green-darker); color: oklch(92% 0.01 150); padding: 56px 48px 24px;
  display: flex; flex-direction: column; gap: 40px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.footer-brand-name { font-weight: 800; font-size: 20px; color: var(--white-ish); margin-bottom: 10px; }
.footer-brand-desc { font-size: 14px; line-height: 1.6; color: var(--on-dark-1); max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col-title { font-weight: 700; color: var(--white-ish); margin-bottom: 2px; }
.footer-col a { color: var(--on-dark-2); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--on-dark-2); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px;
  border-top: 1px solid oklch(35% 0.02 150); font-size: 13px; color: oklch(70% 0.015 150);
}

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--green-dark);
  color: oklch(95% 0.01 150); padding: 18px 32px; display: flex; gap: 24px; align-items: center;
  justify-content: space-between; flex-wrap: wrap; box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.5; max-width: 640px; }
.cookie-banner a { color: oklch(85% 0.05 150); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-cookie-essential {
  padding: 10px 18px; border-radius: 8px; border: 1px solid oklch(50% 0.02 150); background: transparent;
  color: oklch(95% 0.01 150); font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn-cookie-accept {
  padding: 10px 18px; border-radius: 8px; border: none; background: oklch(56% 0.1 150);
  color: white; font-weight: 600; font-size: 14px; cursor: pointer;
}

/* Article single page */
.article-page { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.back-link { font-size: 13px; color: var(--green); text-decoration: none; font-weight: 600; }
.article-tag { display: block; margin-top: 16px; font-size: 12px; color: var(--green); font-weight: 700; }
.article-page h1 { font-size: 34px; font-weight: 800; margin: 10px 0 18px; line-height: 1.2; }
.article-hero-img { width: 100%; aspect-ratio: 16/8; border-radius: 16px; object-fit: cover; margin-bottom: 28px; }
.article-body { font-size: 16px; line-height: 1.8; color: oklch(25% 0.02 150); display: flex; flex-direction: column; gap: 18px; }
.article-body h2 { font-size: 22px; margin: 8px 0 0; }
.article-body ul, .article-body ol { margin: 0; padding-left: 20px; line-height: 1.9; }
.article-body a { color: var(--green); font-weight: 600; }

/* Page headers (shop/articles list) */
.page-head { padding: 48px 48px 16px; }
.page-head.tight { padding: 40px 48px 16px; }
.page-head h1 { font-size: 34px; font-weight: 800; margin: 0 0 8px; }
.page-head p { color: var(--text-muted); margin: 0; max-width: 640px; }

/* Shop layout */
.shop-layout { padding: 16px 48px 64px; display: flex; gap: 32px; align-items: flex-start; }
.shop-sidebar { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 20px; }
.shop-sidebar-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--text-nav); }
.category-btn {
  text-align: left; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: white; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-dark);
}
.category-btn.active { background: oklch(90% 0.03 150); }
.shop-products { flex: 1; }

/* Product detail */
.product-detail { padding: 40px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-detail__img { border-radius: 18px; aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.product-detail__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.product-detail__price .price { font-size: 26px; }
.product-detail__price .price-old { font-size: 16px; }
.product-detail h1 { font-size: 30px; font-weight: 800; margin: 14px 0 8px; }
.product-detail__short { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.product-detail__desc { font-size: 14px; line-height: 1.7; color: oklch(30% 0.02 150); margin: 0 0 20px; }
.spec-box { background: var(--green-light-bg); border-radius: 14px; padding: 18px 20px; margin-bottom: 24px; }
.spec-box__title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.spec-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.9; color: oklch(30% 0.02 150); }
.qty-row { display: flex; align-items: center; gap: 14px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; }
.qty-btn { width: 38px; height: 42px; border: none; background: transparent; font-size: 16px; cursor: pointer; }
.qty-value { width: 34px; text-align: center; font-weight: 700; }
.btn-add-cart {
  flex: 1; padding: 14px 22px; border-radius: 10px; border: none; background: var(--green);
  color: white; font-weight: 700; font-size: 15px; cursor: pointer;
}
.added-msg { margin-top: 12px; color: var(--green); font-weight: 600; font-size: 14px; }
.added-msg a { color: var(--green); }
.not-found { padding: 80px 48px; text-align: center; }

/* Cart page */
.cart-page { max-width: 920px; margin: 0 auto; padding: 40px 48px 80px; }
.cart-page h1 { font-size: 30px; font-weight: 800; margin: 0 0 24px; }
.cart-empty { text-align: center; padding: 60px 20px; background: var(--green-light-bg); border-radius: 16px; }
.cart-empty p { font-size: 16px; color: var(--text-mid); margin: 0 0 18px; }
.cart-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.cart-item {
  display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--border);
  border-radius: 14px; background: white; flex-wrap: wrap;
}
.cart-item__img { width: 80px; height: 80px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 140px; }
.cart-item__info a { font-weight: 700; text-decoration: none; color: inherit; font-size: 15px; }
.cart-item__price { font-size: 13px; color: var(--text-muted2); }
.cart-item__qty { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; }
.cart-item__qty button { width: 32px; height: 36px; border: none; background: transparent; font-size: 15px; cursor: pointer; }
.cart-item__qty span { width: 28px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-item__total { width: 80px; text-align: right; font-weight: 800; }
.cart-item__remove { border: none; background: transparent; color: var(--red); font-size: 13px; cursor: pointer; font-weight: 600; }
.cart-summary-wrap { display: flex; justify-content: flex-end; }
.cart-summary { width: 100%; max-width: 320px; background: var(--green-light-bg); border-radius: 16px; padding: 22px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: var(--text-mid); }
.summary-total {
  display: flex; justify-content: space-between; font-size: 18px; font-weight: 800;
  padding-top: 12px; border-top: 1px solid oklch(85% 0.02 150); margin-bottom: 18px;
}
.btn-checkout {
  width: 100%; padding: 14px; border-radius: 10px; border: none; background: var(--green);
  color: white; font-weight: 700; font-size: 15px; cursor: pointer;
}
.summary-note { font-size: 12px; color: var(--text-muted2); margin: 10px 0 0; line-height: 1.5; }
.summary-note a { color: var(--green); }
.order-confirm { margin-top: 24px; padding: 22px; border-radius: 14px; background: var(--blue-bg); text-align: center; }
.order-confirm p { margin: 0; font-weight: 700; color: oklch(30% 0.05 230); }

/* Contact page */
.contact-grid { padding: 48px 48px 72px; max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h1 { font-size: 32px; font-weight: 800; margin: 0 0 12px; }
.contact-info > p { font-size: 15px; color: var(--text-muted); margin: 0 0 28px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.contact-details .lbl { font-weight: 700; margin-bottom: 2px; }
.contact-details .val { color: var(--text-mid); }
.contact-map-img { margin-top: 24px; border-radius: 14px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.contact-form {
  background: white; border: 1px solid var(--border); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.contact-form h2 { font-size: 18px; margin: 0 0 4px; }
.form-label { font-size: 13px; font-weight: 600; display: block; }
.form-input {
  width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border-strong); font-size: 14px; font-family: inherit;
}
textarea.form-input { resize: vertical; }
.btn-submit {
  padding: 13px; border-radius: 10px; border: none; background: var(--green); color: white;
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.form-note { font-size: 12px; color: var(--text-muted2); margin: 0; line-height: 1.5; }
.form-note a { color: var(--green); }
.form-success {
  padding: 16px 18px; border-radius: 12px; background: var(--green-light-bg); color: var(--green-text-strong);
  font-weight: 600; font-size: 14px; display: none;
}
.form-success.show { display: block; }
.form-error {
  padding: 12px 14px; border-radius: 10px; background: oklch(93% 0.06 25); color: oklch(35% 0.12 25);
  font-weight: 600; font-size: 13px; display: none;
}
.form-error.show { display: block; }

/* Legal pages */
.legal-page { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; font-size: 15px; line-height: 1.75; color: oklch(28% 0.02 150); }
.legal-page h1 { font-size: 32px; font-weight: 800; margin: 0 0 8px; }
.legal-updated { color: var(--text-muted2); font-size: 13px; margin: 0 0 32px; }
.legal-page h2 { font-size: 19px; margin: 28px 0 10px; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.legal-page th, .legal-page td { text-align: left; padding: 10px; border: 1px solid var(--border-strong); }
.legal-page th { background: var(--green-light-bg); }
.legal-page a { color: var(--green); }

/* About page */
.about-hero { padding: 56px 48px; background: var(--green-light-bg); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.about-hero h1 { font-size: 36px; font-weight: 800; margin: 0 0 16px; }
.about-hero p { font-size: 16px; line-height: 1.7; color: var(--text-mid); margin: 0; }
.about-hero__img { border-radius: 18px; aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.about-story { padding: 64px 48px; max-width: 820px; margin: 0 auto; }
.about-story h2 { font-size: 26px; font-weight: 800; margin: 0 0 16px; }
.about-story p { font-size: 15px; line-height: 1.8; color: oklch(30% 0.02 150); margin: 0 0 16px; }
.stats-grid { padding: 0 48px 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.stat-card { padding: 26px; border-radius: 16px; text-align: center; }
.stat-card.bg-a { background: var(--blue-bg); }
.stat-card.bg-b { background: var(--gray-bg); }
.stat-card.bg-c { background: var(--green-light-bg); }
.stat-num { font-size: 30px; font-weight: 800; color: var(--green); }
.stat-label { font-size: 14px; color: var(--text-mid); margin-top: 6px; }
.values-section { padding: 16px 48px 72px; max-width: 900px; margin: 0 auto; }
.values-section h2 { font-size: 26px; font-weight: 800; margin: 0 0 20px; text-align: center; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.value-card h3 { font-size: 16px; margin: 0 0 6px; }
.value-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

@media (max-width: 720px) {
  .hero, .about-hero, .contact-grid, .product-detail { grid-template-columns: 1fr; }
  .site-header, .hero, .section, .section-tight, .page-head, .shop-layout, .contact-grid, .product-detail, .newsletter, .site-footer, .article-page, .legal-page, .cart-page, .about-story, .values-section, .stats-grid, .about-hero {
    padding-left: 20px; padding-right: 20px;
  }
  .shop-layout { flex-direction: column; }
  .shop-sidebar { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
}
