:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #eef2f6;
  --text: #16202a;
  --muted: #5a6875;
  --brand: #007a3d;
  --brand-dark: #005c2e;
  --accent: #f59e0b;
  --sale: #dc2626;
  --border: #dfe5ec;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.top-bar {
  background: #102a1c;
  color: #e8f5ee;
  font-size: 13px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.divider {
  opacity: 0.4;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-right a,
.lang-switch {
  color: #e8f5ee;
  text-decoration: none;
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
}

.top-bar-right a:hover,
.lang-switch:hover {
  text-decoration: underline;
}

/* Header */
.main-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}

.brand-badge {
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 18px;
  display: inline-block;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.search-form {
  flex: 1;
  min-width: 260px;
  max-width: 540px;
  display: flex;
  border: 2px solid var(--brand);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.search-form input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.search-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
}

.search-btn:hover {
  background: var(--brand-dark);
}

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

.icon-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--surface-alt);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
}

.icon-action small {
  font-size: 11px;
  font-weight: 600;
}

.icon-action:hover {
  border-color: var(--brand);
}

.cart-btn {
  background: #e6f4ec;
  color: var(--brand-dark);
}

/* Category Nav */
.category-nav {
  border-top: 1px solid var(--border);
  background: #fafbfc;
  overflow-x: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
}

.nav-link {
  background: transparent;
  border: none;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--brand);
  color: #fff;
}

.promo-link {
  color: var(--sale);
}

.promo-link.active {
  background: var(--sale);
  color: #fff;
}

/* Hero */
.hero-section {
  padding: 28px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
}

.hero-main {
  background: linear-gradient(135deg, #0b4f2c 0%, #157347 100%);
  color: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.hero-main h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 800;
}

.hero-main p {
  color: #e6f6ed;
  max-width: 58ch;
  font-size: 15px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #16202a;
}

.btn-primary:hover {
  filter: brightness(0.96);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

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

.btn-ghost {
  background: var(--surface-alt);
  color: var(--text);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.highlight-card strong {
  font-size: 14px;
}

.highlight-card span {
  font-size: 12px;
  color: #dff2e8;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promo-banner {
  flex: 1;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.promo-warm {
  background: #fff4e5;
  border: 1px solid #fed7aa;
}

.promo-green {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  width: fit-content;
}

.badge-sale {
  background: var(--sale);
  color: #fff;
}

.badge-promo {
  background: var(--brand);
  color: #fff;
}

.badge-top {
  background: #1e293b;
  color: #fff;
}

.badge-yellow {
  background: var(--accent);
  color: #16202a;
}

.link-btn {
  background: none;
  border: none;
  color: var(--brand-dark);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-size: 14px;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Sections */
.section-block {
  padding: 28px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 800;
}

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

.quick-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.quick-cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.cat-emoji {
  font-size: 28px;
}

.quick-cat-card strong {
  font-size: 16px;
}

.quick-cat-card small {
  color: var(--muted);
  font-size: 13px;
}

/* Catalog Controls & Grid */
.catalog-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

select {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.badges-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wish-btn {
  background: var(--surface-alt);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.wish-btn.active {
  background: #fee2e2;
  color: var(--sale);
}

.product-visual {
  height: 110px;
  border-radius: 10px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.product-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.product-spec {
  font-size: 12px;
  color: var(--muted);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-dark);
}

.price-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.add-btn {
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

.add-btn:hover {
  background: var(--brand-dark);
}

/* Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 60;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--surface);
  z-index: 70;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.16);
}

.drawer-header,
.drawer-footer {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-footer {
  border-bottom: none;
  border-top: 1px solid var(--border);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: var(--surface-alt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-controls button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  cursor: pointer;
  font-weight: 700;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.total-row {
  font-size: 17px;
}

.free-tag {
  color: var(--brand-dark);
}

.full-width {
  width: 100%;
}

/* Footer */
.site-footer {
  background: #14202b;
  color: #cbd5e1;
  padding: 36px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.footer-desc {
  margin-top: 10px;
  font-size: 13px;
  max-width: 38ch;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 15px;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 24px;
  padding-top: 16px;
  font-size: 12px;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #102a1c;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 90;
  box-shadow: var(--shadow);
}

@media (max-width: 1024px) {
  .hero-grid,
  .products-grid,
  .quick-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-grid,
  .products-grid,
  .quick-cats-grid,
  .footer-grid,
  .hero-highlights {
    grid-template-columns: 1fr;
  }
}
