:root {
  color-scheme: light;
  --page: #f5f6f3;
  --surface: #ffffff;
  --ink: #171a17;
  --graphite: #20241f;
  --muted: #7d827b;
  --line: #e8ebe5;
  --lime: #c9f31d;
  --lime-dark: #a4ca05;
  --success: #4a851c;
  --danger: #bb4141;
}

* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.app-shell {
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(13px, env(safe-area-inset-top)) 18px calc(105px + env(safe-area-inset-bottom));
}
.topbar, .brand, .brand-copy, .topbar-actions, .delivery-pill, .section-heading,
.product-price-row, .quantity-control, .cart-line, .subsection-heading,
.promo-row, .total-line, .bottom-dock, .delivery-note, .profile-header {
  display: flex;
  align-items: center;
}
.topbar { justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.brand { gap: 9px; color: var(--ink); text-decoration: none; }
.brand-mark, .profile-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--graphite);
  color: var(--lime);
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.08em;
}
.brand-copy { align-items: flex-start; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.brand-copy small, .section-kicker { color: #777e74; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.topbar-actions { gap: 7px; }
.delivery-pill {
  gap: 5px;
  padding: 8px 9px;
  border: 1px solid #e6eadf;
  border-radius: 999px;
  background: var(--surface);
  color: #3a4037;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.delivery-pill i { width: 7px; height: 7px; border-radius: 50%; background: #88be0a; box-shadow: 0 0 0 3px #eff7d9; }
.language-toggle {
  width: 39px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
}

.page { display: none; animation: page-in .22s ease-out; }
.page.active { display: block; }
@keyframes page-in { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.hero-carousel { margin-bottom: 14px; }
.hero-slide {
  position: relative;
  min-height: 225px;
  overflow: hidden;
  padding: 27px 22px 23px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 86% 22%, rgba(201, 243, 29, .23), transparent 31%),
    linear-gradient(112deg, #171b18 8%, #242a23 100%);
  color: white;
  transition: background .3s ease;
}
.hero-slide::after {
  position: absolute;
  right: -70px;
  bottom: -134px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(201, 243, 29, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(201,243,29,.025), 0 0 0 50px rgba(201,243,29,.025);
  content: "";
}
.hero-copy { position: relative; z-index: 1; max-width: 70%; }
.hero-eyebrow { color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: .17em; }
.hero-copy h1 { margin: 12px 0 8px; font-size: clamp(26px, 7vw, 37px); font-weight: 900; letter-spacing: -.055em; line-height: 1.03; }
.hero-copy p { max-width: 250px; margin: 0; color: #c5cbc1; font-size: 11px; line-height: 1.5; }
.hero-cta {
  min-height: 34px;
  margin-top: 17px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: #171a14;
  font-size: 10px;
  font-weight: 900;
}
.hero-art { position: absolute; top: 0; right: 0; width: 42%; height: 100%; color: var(--lime); }
.hero-art b { position: absolute; top: 74px; right: 23px; font-size: 44px; font-style: italic; font-weight: 950; letter-spacing: -.12em; transform: rotate(-12deg); opacity: .9; }
.hero-art i { position: absolute; right: 19px; bottom: 17px; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .15em; }
.hero-orbit { position: absolute; top: 34px; right: -25px; width: 155px; height: 155px; border: 1px solid rgba(201,243,29,.54); border-radius: 50%; transform: rotate(-28deg) scaleX(.7); }
.hero-orbit::after { position: absolute; inset: 18px; border: 1px solid rgba(201,243,29,.26); border-radius: 50%; content: ""; }
.hero-dots { display: flex; justify-content: center; gap: 5px; padding-top: 9px; }
.hero-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: #d3d8cd; }
.hero-dot.active { width: 18px; background: #222820; }
.delivery-note {
  gap: 10px;
  margin: 0 0 24px;
  padding: 11px 13px;
  border: 1px solid #e7eadf;
  border-radius: 14px;
  background: #fff;
}
.delivery-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #f1f8dc; color: #608000; font-size: 17px; font-weight: 900; }
.delivery-note div { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.delivery-note strong { font-size: 10px; }
.delivery-note small { color: var(--muted); font-size: 9px; }
.delivery-check { color: #75a10a; font-size: 16px; font-weight: 900; }

.content-section { margin: 22px 0; }
.section-heading { justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.section-heading h2, .page-heading h1, .profile-header h1 { margin: 5px 0 0; font-size: 23px; font-weight: 900; letter-spacing: -.045em; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: #526526; font-size: 10px; font-weight: 800; white-space: nowrap; }
.count-label { color: #858b82; font-size: 10px; font-weight: 700; }
.category-list { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 5px; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-chip {
  display: flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #e7eae4;
  border-radius: 13px;
  background: white;
  color: #4d534b;
  font-size: 10px;
  font-weight: 750;
  transition: .15s ease;
}
.category-chip span { color: #7e9d26; font-size: 13px; }
.category-chip.active { border-color: #222720; background: #222720; color: white; }
.category-chip.active span { color: var(--lime); }
.search-box {
  display: flex;
  height: 47px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #e6e9e3;
  border-radius: 13px;
  background: white;
  color: #737b70;
}
.search-box > span { font-size: 23px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #a1a69d; }
.search-box button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #f0f2ed; color: #60665e; font-size: 16px; }
.page-heading { padding: 7px 0 17px; }
.page-heading p { max-width: 400px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.page-heading h1 { font-size: 29px; }
.compact-heading { margin-top: 18px; }
.compact-heading h2 { font-size: 16px; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid #e7eae4; border-radius: 16px; background: white; box-shadow: 0 4px 14px rgba(30,40,25,.025); }
.product-image-wrap { position: relative; aspect-ratio: 1 / .86; overflow: hidden; background: linear-gradient(140deg, #eef1ea, #dfe5da); }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image { transform: scale(1.035); }
.image-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #718338; font-size: 31px; font-weight: 900; }
.product-tag { position: absolute; top: 8px; left: 8px; padding: 5px 7px; border-radius: 7px; background: rgba(25,29,23,.88); color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.favorite-button { position: absolute; top: 7px; right: 7px; display: grid; width: 29px; height: 29px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #4d5548; font-size: 17px; }
.favorite-button.active { color: #df4853; }
.product-body { padding: 10px 10px 11px; }
.product-name { display: -webkit-box; min-height: 34px; overflow: hidden; margin: 0; font-size: 11px; font-weight: 850; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-description { display: -webkit-box; min-height: 27px; overflow: hidden; margin: 4px 0 7px; color: #858b82; font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-weight { margin: 0 0 7px; color: #6b7168; font-size: 9px; font-weight: 650; }
.flavor-select { width: 100%; height: 30px; margin: 0 0 8px; padding: 0 7px; border: 1px solid #e8ebe5; border-radius: 8px; background: #fafbf9; color: #485044; font-size: 9px; }
.product-price-row { justify-content: space-between; gap: 5px; align-items: flex-end; }
.price-stack { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.product-price { color: #171a17; font-size: 12px; font-weight: 900; white-space: nowrap; }
.product-old-price { color: #999e96; font-size: 9px; text-decoration: line-through; white-space: nowrap; }
.add-button, .quantity-control button {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: #17200a;
  font-size: 19px;
  font-weight: 700;
}
.quantity-control { gap: 6px; }
.quantity-control button { width: 27px; height: 27px; border: 1px solid #e3e8d9; background: #f5f8eb; font-size: 15px; }
.quantity-control span { min-width: 11px; text-align: center; font-size: 11px; font-weight: 800; }
.empty-state, .empty-panel { padding: 31px 15px; border: 1px dashed #dfe4da; border-radius: 15px; color: #80877d; text-align: center; font-size: 12px; }

.cart-items { display: grid; gap: 9px; }
.cart-line { gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.cart-line-image { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; background: #edf0e9; }
.cart-line-copy { flex: 1; min-width: 0; }
.cart-line-copy strong { display: block; overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-copy small { display: block; margin-top: 4px; color: #7c8378; font-size: 9px; }
.cart-line-copy b { display: block; margin-top: 4px; font-size: 10px; }
.checkout-panel { margin-top: 15px; padding: 15px; border: 1px solid #e6eae2; border-radius: 17px; background: white; }
.subsection-heading { justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.subsection-heading h2 { margin: 0; font-size: 14px; font-weight: 850; }
.subsection-heading > span { color: #7b9d1c; font-weight: 800; }
.promo-row { gap: 7px; }
.promo-row input, .field-label input, .field-label textarea, .save-address-row input {
  width: 100%;
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid #e4e8e0;
  border-radius: 10px;
  outline: 0;
  background: #fafbf9;
  color: var(--ink);
  font-size: 11px;
}
.promo-row input:focus, .field-label input:focus, .field-label textarea:focus, .save-address-row input:focus { border-color: #9abb28; }
.secondary-button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: #eaf5c8; color: #36460b; font-size: 10px; font-weight: 850; white-space: nowrap; }
.inline-feedback { min-height: 12px; margin: 5px 1px 9px; color: var(--success); font-size: 9px; }
.delivery-heading { margin-top: 8px; }
.small-tag { padding: 5px 7px; border-radius: 7px; background: #f2f7e3; color: #687e2b !important; font-size: 8px; font-weight: 800; }
.field-label { display: grid; gap: 6px; margin-top: 10px; color: #535a50; font-size: 10px; font-weight: 750; }
.field-label textarea { resize: vertical; }
.saved-addresses { display: flex; gap: 6px; overflow-x: auto; padding-top: 7px; }
.address-chip { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #e5e9e1; border-radius: 9px; background: #fff; color: #596052; font-size: 9px; }
.location-button { display: flex; width: 100%; min-height: 39px; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; border: 1px solid #dfe7cf; border-radius: 10px; background: #f6f9ed; color: #445521; font-size: 10px; font-weight: 800; }
.location-button span:first-child { font-size: 17px; }
.location-status { min-height: 12px; margin: 5px 1px 0; color: #727a6e; font-size: 9px; }
.cart-total-card { display: grid; gap: 9px; margin: 14px 0 12px; padding: 12px 0; border-top: 1px solid #edf0eb; border-bottom: 1px solid #edf0eb; }
.cart-total-card > div { display: flex; justify-content: space-between; color: #777e73; font-size: 10px; }
.cart-total-card strong { color: var(--ink); font-weight: 800; }
.cart-total-card .discount-row strong { color: #5d8a11; }
.cart-total-card .grand-total { color: var(--ink); font-size: 12px; font-weight: 850; }
.cart-total-card .grand-total strong { font-size: 16px; }
.primary-button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 15px; border: 0; border-radius: 12px; background: var(--lime); color: #171a13; font-size: 12px; font-weight: 900; }
.primary-button b { font-size: 18px; }
.primary-button:disabled { opacity: .5; cursor: not-allowed; }
.secure-note { margin: 9px 0 0; color: #83897f; text-align: center; font-size: 9px; }
.secure-note span:first-child { color: #83a51e; }

.segmented-control { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 2px 0 14px; padding: 4px; border-radius: 12px; background: #e9ece6; }
.order-tab { min-height: 34px; border: 0; border-radius: 9px; background: transparent; color: #70776d; font-size: 10px; font-weight: 800; }
.order-tab.active { background: white; color: #20251f; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.orders-list { display: grid; gap: 10px; }
.order-card { padding: 14px; border: 1px solid #e5e9e1; border-radius: 15px; background: white; }
.order-card-head { display: flex; justify-content: space-between; gap: 8px; }
.order-card-head strong { font-size: 12px; }
.order-card-head small { display: block; margin-top: 4px; color: #858b82; font-size: 9px; }
.order-status { align-self: flex-start; padding: 6px 8px; border-radius: 8px; background: #eef6d8; color: #546f12; font-size: 9px; font-weight: 850; }
.order-status.completed { background: #edf0ed; color: #62685f; }
.order-items { display: grid; gap: 5px; margin: 12px 0; padding: 10px 0; border-top: 1px solid #eff1ed; border-bottom: 1px solid #eff1ed; }
.order-item { display: flex; justify-content: space-between; gap: 8px; color: #676e64; font-size: 9px; }
.order-item span:last-child { white-space: nowrap; }
.order-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 13px 0; }
.progress-step { position: relative; padding-top: 13px; color: #969c92; text-align: center; font-size: 7px; line-height: 1.3; }
.progress-step::before { position: absolute; top: 0; left: 50%; width: 7px; height: 7px; border: 1px solid #d1d6cc; border-radius: 50%; background: white; content: ""; transform: translateX(-50%); }
.progress-step::after { position: absolute; top: 3px; left: calc(50% + 6px); width: calc(100% - 10px); height: 1px; background: #e3e7df; content: ""; }
.progress-step:last-child::after { display: none; }
.progress-step.done { color: #526d13; }
.progress-step.done::before { border-color: #a6ca2c; background: var(--lime); }
.progress-step.done::after { background: #b6d84b; }
.repeat-button { min-height: 34px; padding: 0 11px; border: 1px solid #e1e7d8; border-radius: 9px; background: #f8faF4; color: #485529; font-size: 9px; font-weight: 850; }

.profile-header { gap: 12px; margin: 8px 0 16px; }
.profile-avatar { width: 49px; height: 49px; border-radius: 16px; font-size: 26px; }
.profile-header h1 { margin-top: 3px; font-size: 23px; }
.profile-header p { margin: 3px 0 0; color: #81877e; font-size: 10px; }
.profile-card { margin-bottom: 11px; padding: 14px; border: 1px solid #e6eae3; border-radius: 15px; background: white; }
.profile-card .product-grid { margin-top: 10px; }
.profile-address-list { display: grid; gap: 6px; margin-bottom: 8px; }
.profile-address { display: flex; justify-content: space-between; gap: 8px; padding: 8px 9px; border-radius: 9px; background: #f7f9f4; color: #50574c; font-size: 9px; }
.profile-address button { border: 0; background: transparent; color: #858b82; font-size: 14px; }
.save-address-row { display: flex; gap: 7px; }
.icon-action { width: 40px; flex: 0 0 auto; border: 0; border-radius: 10px; background: var(--lime); font-size: 20px; font-weight: 800; }
.promo-list { display: grid; gap: 7px; }
.promo-code-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px dashed #d6e5a8; border-radius: 10px; background: #fbfdf6; }
.promo-code-card strong { font-size: 11px; letter-spacing: .08em; }
.promo-code-card small { display: block; margin-top: 3px; color: #79816f; font-size: 9px; }
.promo-code-card button { padding: 6px 8px; border: 0; border-radius: 7px; background: #eaf5c8; color: #4b601a; font-size: 8px; font-weight: 850; }
.language-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.language-options button { min-height: 35px; border: 1px solid #e7eae4; border-radius: 9px; background: #fff; color: #5e655a; font-size: 9px; font-weight: 800; }
.language-options button.active { border-color: #a5c72b; background: #f2f8df; color: #394b0d; }
.muted-copy { color: #878e82; font-size: 10px; }

.bottom-dock {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px calc(11px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(245,246,243,0), rgba(245,246,243,.95) 24%);
}
.bottom-nav {
  display: grid;
  width: min(100%, 620px);
  min-height: 62px;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 4px 5px;
  border-radius: 19px;
  background: #1d211d;
  box-shadow: 0 8px 25px rgba(26,31,24,.2);
}
.nav-button { display: flex; min-width: 0; height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 13px; background: transparent; color: #aeb4aa; }
.nav-button.active { color: var(--lime); }
.nav-icon { position: relative; font-size: 18px; line-height: 1; }
.nav-button small { overflow: hidden; max-width: 100%; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { position: absolute; top: -4px; right: -8px; width: 7px; height: 7px; border: 1px solid #1d211d; border-radius: 50%; background: var(--lime); }
.profile-nav { display: grid; width: 50px; height: 50px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 50%; background: var(--lime); color: #20251d; box-shadow: 0 6px 18px rgba(34,40,29,.18); }
.profile-nav span { font-size: 19px; font-style: italic; font-weight: 950; }
.profile-nav.active { outline: 3px solid rgba(109,139,17,.23); }
.toast { position: fixed; z-index: 10; right: 20px; bottom: calc(91px + env(safe-area-inset-bottom)); left: 20px; width: fit-content; max-width: calc(100% - 40px); margin: auto; padding: 10px 14px; transform: translateY(10px); border-radius: 11px; background: #20251f; color: white; font-size: 11px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.preview-badge { position: fixed; z-index: 6; top: 6px; right: 6px; padding: 5px 8px; border-radius: 9px; background: #222720; color: var(--lime); font-size: 8px; }

@media (min-width: 600px) {
  .app-shell { padding-right: 28px; padding-left: 28px; }
  .hero-slide { min-height: 250px; padding: 34px; }
  .hero-art b { top: 81px; right: 46px; font-size: 55px; }
  .hero-orbit { right: 4px; width: 185px; height: 185px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .product-image-wrap { aspect-ratio: 1 / .92; }
  .product-body { padding: 12px; }
  .product-name { font-size: 12px; }
}
@media (max-width: 370px) {
  .app-shell { padding-right: 13px; padding-left: 13px; }
  .delivery-pill { padding: 7px; font-size: 8px; }
  .category-list { margin-right: -13px; margin-left: -13px; padding-right: 13px; padding-left: 13px; }
  .product-body { padding: 8px; }
  .product-price { font-size: 10px; }
  .product-description { font-size: 8px; }
  .profile-nav { width: 46px; height: 46px; }
  .bottom-dock { gap: 6px; padding-right: 11px; padding-left: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
