:root {
  --bg: #f7f8f4;
  --surface: #fff;
  --ink: #1b2825;
  --muted: #75807b;
  --line: #e7eae5;
  --green: #16735d;
  --green-dark: #115642;
  --mint: #e6f2e9;
  --lime: #d6ef8a;
  --shadow: 0 24px 70px #172d241a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px "DM Sans", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #67b99f;
  outline-offset: 3px;
}
.store-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  background: #ffffffed;
  backdrop-filter: blur(16px);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 19px Manrope, sans-serif; }
.logo-mark { color: var(--green); font-size: 19px; }
.header-actions { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); color: #4b5953; font-weight: 600; }
.header-actions > a:hover { color: var(--green); }
.header-actions > .pos-link { color: var(--green); font-weight: 700; }
.cart-button, .primary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.cart-button:hover, .primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.cart-count { display: inline-grid; min-width: 22px; height: 22px; place-items: center; border-radius: 99px; background: #ffffff30; font-size: 12px; }
.demo-banner { padding: 10px 16px; background: #eef4e4; color: #526842; text-align: center; font-size: 12px; font-weight: 600; }
.demo-banner span { margin-right: 5px; color: #729334; }
.hero {
  position: relative;
  display: grid;
  max-width: 1320px;
  min-height: 520px;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  margin: 0 auto;
  padding: 62px clamp(24px, 7vw, 96px) 68px;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
.hero h1, h2 { font-family: Manrope, "DM Sans", sans-serif; }
.hero h1 { margin: 17px 0; font-size: clamp(42px, 5.3vw, 70px); line-height: 1.07; letter-spacing: -3.5px; }
.hero h1 span { color: var(--green); }
.hero p { max-width: 490px; margin: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-cta { padding: 14px 20px; }
.hero-trust { display: flex; align-items: center; gap: 9px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.hero-trust span:first-child { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 800; }
.hero-art { position: relative; min-height: 380px; }
.hero-art::before { position: absolute; inset: 6% 7% 6% 5%; border-radius: 48% 52% 45% 55%; background: #e8efe3; content: ""; transform: rotate(-8deg); }
.art-orbit { position: absolute; z-index: 1; border: 1px solid #cbd9c8; border-radius: 50%; }
.orbit-one { inset: 3% 14% 7% 3%; transform: rotate(19deg); }
.orbit-two { inset: 10% 6% 0 15%; transform: rotate(-23deg); }
.art-product { position: absolute; z-index: 2; display: grid; place-items: center; box-shadow: var(--shadow); }
.art-bag { top: 18%; left: 33%; width: 180px; height: 210px; border: 8px solid #f6ecd2; border-radius: 28px 28px 45px 45px; background: #dbaa62; color: #fffbef; font-size: 72px; transform: rotate(-8deg); }
.art-fruit { top: 13%; right: 16%; width: 110px; height: 110px; border-radius: 50%; background: #b7ca6b; color: #69863e; font-size: 60px; }
.art-box { bottom: 14%; left: 19%; width: 112px; height: 112px; border-radius: 23px; background: #e18b6a; color: #fff0e8; font-size: 58px; transform: rotate(12deg); }
.art-note { position: absolute; z-index: 3; right: 6%; bottom: 10%; display: grid; gap: 5px; min-width: 172px; padding: 17px 20px; border: 1px solid #fff; border-radius: 14px; background: #ffffffed; box-shadow: var(--shadow); }
.art-note span, .art-note small { color: var(--muted); font-size: 11px; }
.art-note b { font: 700 15px Manrope, sans-serif; }
.art-spark { position: absolute; z-index: 3; color: #a5bf58; font-size: 30px; }
.spark-one { top: 9%; left: 20%; }
.spark-two { right: 9%; bottom: 40%; font-size: 22px; }
.benefits { display: grid; max-width: 1140px; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 auto 78px; padding: 0 22px; }
.benefits article { display: flex; min-height: 92px; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.benefit-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 13px; background: var(--mint); color: var(--green); font-size: 22px; }
.benefits b, .benefits small { display: block; }
.benefits b { font-size: 14px; }
.benefits small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.catalog-section { max-width: 1280px; margin: 0 auto; padding: 0 22px 76px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 8px 0 5px; font-size: 32px; letter-spacing: -.7px; }
.section-head p { margin: 0; color: var(--muted); }
.search-wrap { display: flex; width: min(340px, 100%); min-height: 47px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.search-wrap span { font-size: 21px; }
.search-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.categories { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 3px 1px 20px; }
#category-list { display: flex; gap: 8px; }
.category { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: #58655f; padding: 9px 15px; font-size: 13px; font-weight: 600; }
.category:hover, .category.active { border-color: var(--green); background: var(--green); color: #fff; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; min-height: 324px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-image { position: relative; display: grid; height: 170px; place-items: center; overflow: hidden; background: linear-gradient(140deg, #e9f0e7, #f6f2e6); color: #74927e; font-size: 50px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder { display: grid; width: 84px; height: 84px; place-items: center; border-radius: 25px; background: #fff9; color: var(--green); font-size: 38px; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 15px; }
.product-category { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.product-name { font: 700 15px Manrope, sans-serif; line-height: 1.4; }
.product-description { min-height: 34px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.product-price { color: var(--green); font: 800 18px Manrope, sans-serif; }
.stock-label { color: var(--muted); font-size: 10px; }
.add { border: 1px solid #d8e9df; border-radius: 8px; background: #eff6ef; color: var(--green-dark); padding: 8px 11px; font-size: 12px; font-weight: 700; }
.add:hover { border-color: var(--green); background: var(--green); color: white; }
.add:disabled, .primary:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.loading, .empty { grid-column: 1 / -1; padding: 55px 20px; color: var(--muted); text-align: center; }
.store-footer { display: flex; min-height: 90px; align-items: center; justify-content: space-between; gap: 14px; padding: 20px clamp(20px, 6vw, 88px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.cart-drawer { position: fixed; z-index: 9; top: 0; right: 0; bottom: 0; width: min(440px, 100%); overflow: auto; padding: 25px; background: var(--surface); box-shadow: var(--shadow); transform: translateX(105%); transition: transform .25s ease; }
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-head h2 { margin: 4px 0 0; font-size: 25px; }
.close { border: 0; background: transparent; color: var(--muted); font-size: 29px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-line-name { font-weight: 700; }
.cart-line small { display: block; margin-top: 4px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.summary { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; color: #59665f; }
.total { display: flex; justify-content: space-between; margin: 12px 0; color: var(--ink); font: 800 20px Manrope, sans-serif; }
.total strong { color: var(--green); }
.wide { width: 100%; margin-top: 13px; }
.secure-note { color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
#overlay { position: fixed; z-index: 8; inset: 0; display: none; background: #1b28258c; }
#overlay.show { display: block; }
.modal { position: fixed; z-index: 12; inset: 0; display: grid; place-items: center; padding: 16px; background: #1b28258c; }
.modal.hidden { display: none; }
.modal-card { width: min(510px, 100%); max-height: 94vh; overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.modal-card form { display: grid; gap: 9px; margin-top: 17px; }
.modal-card label { margin-top: 3px; color: #536159; font-size: 12px; font-weight: 700; }
.modal-card label span { color: var(--muted); font-weight: 400; }
.modal-card input, .modal-card select, .modal-card textarea { width: 100%; min-height: 45px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fcfdfa; color: var(--ink); }
.modal-card textarea { min-height: 72px; resize: vertical; }
.hint { color: var(--muted); line-height: 1.55; }
.success-box { margin-top: 16px; padding: 15px; border: 1px solid #b7ddc5; border-radius: 11px; background: #edf8ef; color: #285b41; line-height: 1.55; }
.success-box strong { display: block; font-size: 17px; }
#toast { position: fixed; z-index: 20; right: 20px; bottom: 20px; display: none; max-width: calc(100% - 40px); padding: 14px 17px; border-radius: 10px; background: #253b32; color: white; box-shadow: var(--shadow); }
@media (max-width: 940px) {
  .hero { min-height: 460px; grid-template-columns: 1fr .8fr; padding-top: 48px; }
  .hero-art { min-height: 320px; }
  .art-bag { left: 26%; width: 150px; height: 180px; }
  .art-fruit { right: 10%; width: 85px; height: 85px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits { margin-bottom: 60px; }
}
@media (max-width: 680px) {
  .store-header { height: 66px; padding: 0 17px; }
  .logo { font-size: 16px; }
  .header-actions { gap: 12px; }
  .header-actions > a:not(.pos-link) { display: none; }
  .header-actions > .pos-link { display: inline; font-size: 11px; white-space: nowrap; }
  .cart-button { min-height: 41px; padding: 8px 11px; font-size: 13px; }
  .demo-banner { font-size: 10px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 5px; padding: 46px 22px 35px; }
  .hero h1 { font-size: clamp(39px, 10vw, 58px); letter-spacing: -2.2px; }
  .hero p { font-size: 14px; }
  .hero-art { min-height: 275px; max-width: 420px; width: 100%; margin: 0 auto; }
  .art-bag { top: 12%; left: 31%; width: 130px; height: 155px; font-size: 58px; }
  .art-fruit { top: 10%; right: 12%; width: 74px; height: 74px; font-size: 44px; }
  .art-box { bottom: 10%; left: 18%; width: 85px; height: 85px; font-size: 44px; }
  .art-note { right: 3%; bottom: 7%; min-width: 143px; padding: 12px 14px; }
  .benefits { grid-template-columns: 1fr; gap: 8px; margin-bottom: 48px; padding: 0 17px; }
  .benefits article { min-height: 72px; }
  .catalog-section { padding: 0 17px 50px; }
  .section-head { display: block; }
  .section-head h2 { font-size: 27px; }
  .search-wrap { width: 100%; margin-top: 17px; }
  .categories { margin-right: -17px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product { min-height: 295px; border-radius: 12px; }
  .product-image { height: 125px; }
  .product-body { gap: 6px; padding: 11px; }
  .product-name { font-size: 13px; }
  .product-description { min-height: 34px; font-size: 11px; }
  .product-price { font-size: 15px; }
  .stock-label { display: none; }
  .add { padding: 7px 8px; font-size: 11px; }
  .store-footer { align-items: flex-start; flex-direction: column; padding: 20px 18px; }
  .modal { align-items: end; padding: 0; }
  .modal-card { max-height: 92vh; padding: 21px 17px; border-radius: 20px 20px 0 0; }
  .cart-drawer { padding: 20px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
