:root {
  --green: #16a34a;
  --green-light: #f0fdf4;
  --green-dark: #15803d;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── Navbar ──────────────────────────────────────────────────────────────────── */

.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.nav-logo .icon { font-size: 26px; }

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

.nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s;
}

.nav-link:hover { color: var(--text); background: var(--bg); }
.nav-link.active { color: var(--green); background: var(--green-light); }

.nav-cta {
  background: var(--green);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
  margin-left: 8px;
}

.nav-cta:hover { background: var(--green-dark); color: #fff; }

.lang-switcher {
  display: flex;
  gap: 3px;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  background: var(--bg);
}

.lang-btn {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all .15s;
  color: var(--muted);
}

.lang-btn.active {
  background: var(--green);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle svg { display: block; width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, #0f2027 0%, #1a3a2a 50%, #16a34a 100%);
  color: #fff;
  padding: 90px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner { max-width: 680px; margin: 0 auto; position: relative; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero h1 span { color: #86efac; }

.hero p { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 32px; }

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-hero-primary {
  background: #fff;
  color: var(--green);
  padding: 13px 28px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 15px;
  transition: all .15s;
}

.btn-hero-primary:hover { background: #f0fdf4; }

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  padding: 13px 28px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  transition: all .15s;
}

.btn-hero-outline:hover { background: rgba(255,255,255,.08); }

/* ── Section ─────────────────────────────────────────────────────────────────── */

.section { padding: 72px 24px; }
.section-bg { background: var(--bg); }

.container { max-width: 1180px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.section-header p { color: var(--muted); font-size: 16px; max-width: 500px; margin: 0 auto; }

/* ── Category cards ──────────────────────────────────────────────────────────── */

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }

.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.08);
  transform: translateY(-2px);
}

.cat-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.cat-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cat-count { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Product cards ───────────────────────────────────────────────────────────── */

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

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

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.product-img {
  height: 180px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.product-body { padding: 16px; }
.product-cat { font-size: 11px; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.product-name { font-size: 16px; font-weight: 700; margin: 4px 0 6px; line-height: 1.3; }
.product-desc { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.product-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price { font-size: 17px; font-weight: 700; color: var(--green); }
.product-unit { font-size: 12px; color: var(--muted); }

.btn-order {
  background: var(--green);
  color: #fff;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}

.btn-order:hover { background: var(--green-dark); }

/* ── Filters ─────────────────────────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  color: var(--muted);
  background: #fff;
}

.filter-chip:hover { border-color: var(--green); color: var(--green); }
.filter-chip.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ── Search bar ──────────────────────────────────────────────────────────────── */

.pub-search {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin-bottom: 28px;
}

.pub-search input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  outline: none;
}

.pub-search input:focus { border-color: var(--green); }

.pub-search button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Product detail ──────────────────────────────────────────────────────────── */

.detail-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }

.detail-img {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 16px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  border: 1px solid var(--border);
}

.detail-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

.detail-cat { font-size: 12px; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }

.detail-title { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }

.detail-composition {
  display: inline-block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.detail-price { font-size: 32px; font-weight: 800; color: var(--green); margin-bottom: 20px; }
.detail-price span { font-size: 16px; color: var(--muted); font-weight: 400; }

.detail-meta { display: flex; gap: 24px; margin-bottom: 24px; }
.detail-meta-item { display: flex; flex-direction: column; gap: 2px; }
.detail-meta-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.detail-meta-value { font-size: 15px; font-weight: 600; }

.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }

.tab-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}

.tab-btn.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }

.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── Order form ──────────────────────────────────────────────────────────────── */

.order-section { background: var(--bg); padding: 60px 24px; }

.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.order-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.order-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
label { font-size: 13px; font-weight: 600; }

.form-control {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .15s;
  font-family: inherit;
  width: 100%;
}

.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.1); }

select.form-control { cursor: pointer; }

textarea.form-control { min-height: 80px; resize: vertical; }

.submit-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background .15s;
  margin-top: 8px;
}

.submit-btn:hover { background: var(--green-dark); }

/* ── Success page ────────────────────────────────────────────────────────────── */

.success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.success-card {
  text-align: center;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.success-icon { font-size: 64px; display: block; margin-bottom: 16px; }
.success-card h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.success-card p { color: var(--muted); margin-bottom: 24px; }
.success-num { font-size: 20px; font-weight: 700; color: var(--green); }

/* ── Features ────────────────────────────────────────────────────────────────── */

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

.feature-card {
  text-align: center;
  padding: 28px 20px;
}

.feature-icon { font-size: 40px; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */

footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

.footer-brand { }
.footer-brand .logo { font-size: 20px; font-weight: 700; color: #f1f5f9; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; }

.footer-links h4 { color: #f1f5f9; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13.5px; color: #94a3b8; transition: color .15s; }
.footer-links a:hover { color: #f1f5f9; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

/* ── Utils ───────────────────────────────────────────────────────────────────── */

.text-green { color: var(--green); }
.text-muted { color: var(--muted); }
.fw-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .nav-toggle { display: flex; }

  .nav-inner {
    position: relative;
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
  }

  .nav-links.open { display: flex; }

  .nav-link {
    padding: 12px 14px;
  }

  .lang-switcher {
    margin: 8px 0;
    align-self: flex-start;
  }

  .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
}
