* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-2: #eef1ea;
  --text: #182019;
  --muted: #6c756e;
  --primary: #1c6d3f;
  --primary-dark: #11532e;
  --primary-soft: #e8f4ec;
  --accent: #f3b53f;
  --border: #e0e4de;
  --danger: #ba4343;
  --shadow: 0 16px 45px rgba(21, 38, 27, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(224, 228, 222, .9);
}

.topbar-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(280px, 560px) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-weight: 950;
  letter-spacing: -.04em;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: .98rem;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .73rem;
}

.desktop-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 48px;
  padding: 0 14px;
}

.search-icon {
  color: var(--muted);
  font-size: 1.2rem;
  transform: rotate(-15deg);
}

.desktop-search input,
.mobile-search input {
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
  color: var(--text);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.header-link {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.header-cart {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 850;
}

.header-cart b {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: .72rem;
}

.mobile-search-wrap {
  display: none;
}

.promo-section {
  padding: 30px 0 14px;
}

.promo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .6fr);
  gap: 16px;
}

.promo-card {
  border-radius: 26px;
  overflow: hidden;
}

.promo-main {
  min-height: 330px;
  padding: 34px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) .7fr;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(circle at 92% 13%, rgba(255,255,255,.85), transparent 25%),
    linear-gradient(135deg, #dcefdc 0%, #eff3d8 50%, #f6e7b8 100%);
  box-shadow: var(--shadow);
}

.promo-kicker,
.section-kicker {
  display: inline-block;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.promo-main h1 {
  max-width: 680px;
  margin: 10px 0 12px;
  font-size: clamp(2.6rem, 5.7vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.promo-main p {
  max-width: 580px;
  margin: 0;
  color: #536158;
  font-size: 1rem;
}

.primary-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  padding: 0 17px;
  font-weight: 900;
  cursor: pointer;
}

.promo-main .primary-btn {
  margin-top: 22px;
}

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

.promo-visual {
  display: grid;
  place-items: center;
  height: 100%;
}

.promo-visual span {
  font-size: clamp(7rem, 13vw, 10.5rem);
  filter: drop-shadow(0 16px 15px rgba(67,76,53,.12));
  transform: rotate(-6deg);
}

.promo-small {
  padding: 28px;
  background: #16301f;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-small .promo-kicker {
  color: #93d5a8;
}

.promo-small strong {
  margin-top: 8px;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.promo-small p {
  color: #b8c7bc;
  margin: 12px 0 20px;
}

.text-link {
  color: #fff;
  font-weight: 850;
}

.category-section {
  padding: 34px 0 12px;
}

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

.section-row h2,
.contact-section h2 {
  margin: 3px 0 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -.045em;
  line-height: 1;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.category-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 15px 12px;
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.category-card:hover {
  transform: translateY(-2px);
}

.category-card.active {
  background: var(--primary-soft);
  border-color: #bcd9c5;
}

.category-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 1.35rem;
}

.category-card.active .category-icon {
  background: #d7eadc;
}

.category-card strong {
  display: block;
  margin-top: 10px;
  font-size: .84rem;
  line-height: 1.25;
}

.products-section {
  padding: 42px 0 72px;
}

.products-heading {
  margin-bottom: 20px;
}

.products-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-summary {
  color: var(--muted);
  font-size: .84rem;
}

#sortSelect {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  padding: 0 11px;
  outline: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: transform .17s ease, box-shadow .17s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 34px rgba(21, 38, 27, .07);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .88;
  overflow: hidden;
  background: linear-gradient(145deg, #f1f4ee, #f8f3e8);
}

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

.product-emoji {
  font-size: 4.4rem;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  font-size: .66rem;
  font-weight: 900;
}

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px;
}

.product-category {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}

.product-name {
  margin: 4px 0 1px;
  font-size: .95rem;
  line-height: 1.25;
  min-height: 2.36em;
}

.product-unit {
  color: var(--muted);
  font-size: .75rem;
}

.product-action-row {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 7px;
}

.product-price {
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: -.035em;
}

.add-mini {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-size: 1.28rem;
  font-weight: 900;
  cursor: pointer;
}

.add-mini:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.card-qty {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: 11px;
  background: var(--primary-soft);
}

.card-qty button {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 900;
}

.card-qty strong {
  min-width: 19px;
  text-align: center;
  font-size: .84rem;
}

.empty-state {
  padding: 50px 20px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  text-align: center;
  background: rgba(255,255,255,.52);
}

.empty-icon {
  font-size: 2rem;
}

.empty-state h3 {
  margin: 8px 0 4px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.benefits-section {
  padding: 0 0 72px;
}

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

.benefit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}

.benefit-card > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  font-size: 1.3rem;
}

.benefit-card strong,
.benefit-card small {
  display: block;
}

.benefit-card small {
  margin-top: 2px;
  color: var(--muted);
}

.contact-section {
  padding: 66px 0;
  background: #14261a;
  color: #fff;
}

.light {
  color: #92d4a7;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 32px;
}

.contact-copy p {
  max-width: 610px;
  color: #b4c0b7;
}

.contact-card {
  padding: 21px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  background: rgba(255,255,255,.07);
}

.contact-line {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.contact-line span,
.contact-line strong {
  display: block;
}

.contact-line span {
  color: #a6b6aa;
  font-size: .78rem;
}

.contact-line strong {
  margin-top: 3px;
}

.full {
  width: 100%;
}

footer {
  padding: 23px 0;
  background: #0e1811;
  color: #89968c;
  font-size: .82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8,14,10,.55);
}

.cart-drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: -22px 0 60px rgba(8,14,10,.18);
  transform: translateX(104%);
  transition: transform .22s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

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

.cart-kicker {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  font-weight: 850;
}

.cart-head h2 {
  margin: 2px 0 0;
  letter-spacing: -.04em;
}

.round-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 13px 22px;
}

.cart-empty {
  padding: 46px 12px;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-media {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 1.5rem;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.2;
}

.cart-item-price {
  margin-top: 3px;
  color: var(--muted);
  font-size: .73rem;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cart-qty button {
  width: 29px;
  height: 29px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.cart-foot {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--border);
}

.total-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.15rem;
}

.cart-foot p {
  color: var(--muted);
  font-size: .76rem;
}

.danger-link {
  display: block;
  margin: 11px auto 0;
  border: 0;
  background: none;
  color: var(--danger);
  cursor: pointer;
}

.mobile-cart-button {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 80;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border-radius: 999px;
  background: #14261a;
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hidden {
  display: none !important;
}

@media (max-width: 1050px) {
  .topbar-inner {
    grid-template-columns: auto 1fr auto;
  }

  .category-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 74px;
  }

  .topbar-inner {
    min-height: 66px;
    grid-template-columns: 1fr auto;
  }

  .desktop-search,
  .header-link,
  .header-cart {
    display: none;
  }

  .mobile-search-wrap {
    display: block;
    padding: 10px 0 0;
  }

  .mobile-search {
    min-height: 46px;
    background: var(--surface);
  }

  .promo-section {
    padding-top: 12px;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .promo-small {
    display: none;
  }

  .promo-main {
    min-height: 270px;
    padding: 28px;
    grid-template-columns: 1fr .45fr;
  }

  .promo-main h1 {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .promo-main p {
    font-size: .92rem;
  }

  .promo-visual span {
    font-size: 6rem;
  }

  .category-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .category-strip::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    min-width: 112px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    max-width: 560px;
  }

  .mobile-cart-button {
    position: fixed;
    z-index: 40;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 54px;
    border: 0;
    border-radius: 15px;
    padding: 0 16px;
    background: var(--text);
    color: #fff;
    box-shadow: 0 13px 38px rgba(12,19,14,.23);
    cursor: pointer;
    font-weight: 850;
  }

  .mobile-cart-button b {
    color: var(--accent);
  }

  .toast {
    bottom: 82px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .promo-main {
    min-height: 255px;
    padding: 23px;
    grid-template-columns: 1fr;
  }

  .promo-visual {
    display: none;
  }

  .promo-main .primary-btn {
    margin-top: 18px;
  }

  .section-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .products-tools {
    width: 100%;
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .product-media {
    aspect-ratio: 1 / .9;
  }

  .product-emoji {
    font-size: 3.7rem;
  }

  .product-content {
    padding: 10px;
  }

  .product-name {
    font-size: .88rem;
  }

  .product-price {
    font-size: 1rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 385px) {
  .product-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .add-mini,
  .card-qty {
    width: 100%;
  }

  .card-qty {
    justify-content: space-between;
  }
}
