:root {
  --ink: #1e2b25;
  --muted: #6f7772;
  --green: #244b3c;
  --green-2: #3d6d59;
  --sage: #dfe8df;
  --cream: #f6f2ea;
  --blush: #e8c7c0;
  --paper: #fffdfa;
  --line: #e8e5df;
  --gold: #a77c3d;
  --danger: #a4413e;
  --radius: 22px;
  --shadow: 0 16px 44px rgba(31, 52, 43, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(61,109,89,.28); outline-offset: 2px; }
.topbar { position: sticky; z-index: 30; top: 0; height: 66px; padding: 0 max(18px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,253,250,.92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(232,229,223,.75); }
.brand { display: flex; align-items: center; gap: 9px; border: 0; background: none; font-weight: 800; letter-spacing: -.02em; font-size: 18px; cursor: pointer; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50% 50% 44% 56%; font-family: Georgia, serif; }
.top-actions { display: flex; align-items: center; gap: 4px; }
.text-btn, .icon-btn { border: 0; background: transparent; cursor: pointer; border-radius: 12px; padding: 9px; font-size: 13px; font-weight: 750; }
.icon-btn { font-size: 18px; }
.cart-top { font-size: 13px; }
.badge { display: inline-grid; min-width: 19px; height: 19px; padding: 0 5px; place-items: center; border-radius: 20px; color: white; background: var(--green); font-size: 11px; }
main { min-height: calc(100vh - 136px); padding-bottom: 92px; }
.page { width: min(1160px, 100%); margin: 0 auto; padding: 24px 18px 42px; }
.hero { min-height: 550px; position: relative; display: flex; align-items: center; overflow: hidden; background: #e8e0d6 url('assets/hero.png') center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,253,250,.94) 0%, rgba(255,253,250,.75) 37%, rgba(255,253,250,0) 68%); }
.hero-copy { position: relative; z-index: 1; width: min(560px, 72%); margin-left: max(22px, calc((100% - 1124px)/2)); padding: 62px 0; }
.eyebrow { margin: 0 0 13px; color: var(--green-2); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 660px; margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; }
h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.hero-copy > p:not(.eyebrow) { max-width: 450px; color: #46544d; font-size: 17px; line-height: 1.65; }
.btn { border: 0; border-radius: 999px; padding: 13px 20px; cursor: pointer; font-weight: 800; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: white; background: var(--green); box-shadow: 0 10px 25px rgba(36,75,60,.18); }
.btn.secondary { color: var(--green); background: var(--sage); }
.btn.ghost { border: 1px solid var(--line); background: white; }
.btn.danger { color: var(--danger); background: #f9e7e4; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.trust-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.trust-strip div { padding: 18px; text-align: center; background: white; }
.trust-strip strong { display: block; font-size: 13px; }
.trust-strip span { color: var(--muted); font-size: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 30px 0 18px; }
.section-head h2 { margin-bottom: 0; }
.link-btn { border: 0; background: none; color: var(--green-2); font-weight: 800; cursor: pointer; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(35,53,45,.05); }
.product-image { position: relative; aspect-ratio: 1/1; cursor: pointer; overflow: hidden; background: #f1ede6 url('assets/catalog.png') 0 0/200% 200% no-repeat; }
.product-image.pos-1 { background-position: 100% 0; }
.product-image.pos-2 { background-position: 0 100%; }
.product-image.pos-3 { background-position: 100% 100%; }
.product-image .pill { position: absolute; left: 11px; top: 11px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 10px; font-weight: 850; }
.product-body { padding: 15px; }
.product-body h3 { min-height: 42px; margin-bottom: 8px; font-size: 15px; line-height: 1.35; }
.product-meta { color: var(--muted); font-size: 12px; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; }
.price { font-weight: 900; }
.add-btn { width: 35px; height: 35px; border: 0; border-radius: 50%; color: white; background: var(--green); cursor: pointer; font-size: 20px; }
.category-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.category-card { min-height: 160px; padding: 20px; display: flex; flex-direction: column; justify-content: end; border: 0; border-radius: var(--radius); text-align: left; cursor: pointer; background: var(--sage); }
.category-card:nth-child(2) { background: #eee5de; }
.category-card:nth-child(3) { background: #ead9d3; }
.category-card strong { font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.promo-card { margin-top: 28px; padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 22px; border-radius: 28px; color: white; background: var(--green); }
.promo-card h3 { margin-bottom: 8px; font: 500 30px Georgia, serif; }
.promo-card p { margin: 0; color: #d8e7df; }
.page-title { margin-bottom: 8px; font-size: clamp(38px, 6vw, 62px); }
.page-subtitle { color: var(--muted); max-width: 700px; }
.search-wrap { position: relative; margin: 22px 0 14px; }
.search-wrap input { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 15px 18px 15px 42px; background: white; }
.search-wrap::before { content: "⌕"; position: absolute; left: 16px; top: 11px; font-size: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.chip { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: white; cursor: pointer; font-size: 13px; }
.chip.active { color: white; border-color: var(--green); background: var(--green); }
.empty { padding: 70px 20px; text-align: center; color: var(--muted); border: 1px dashed #d7d4ce; border-radius: var(--radius); }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 24px; align-items: start; }
.cart-list, .summary-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 15px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.thumb { width: 92px; aspect-ratio: 1; border-radius: 16px; background: #f2eee7 url('assets/catalog.png') 0 0/200% 200% no-repeat; }
.thumb.pos-1 { background-position: 100% 0; }.thumb.pos-2 { background-position: 0 100%; }.thumb.pos-3 { background-position: 100% 100%; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.summary-card { position: sticky; top: 86px; padding: 20px; }
.summary-card h3 { font-size: 20px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--muted); }
.summary-line.total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: 18px; font-weight: 900; }
.coupon-entry { display: flex; gap: 8px; margin: 16px 0; }
.coupon-entry input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 11px; }
.full { width: 100%; }
.reward-hero { padding: 30px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; border-radius: 30px; color: white; background: linear-gradient(135deg,#234b3b,#47745f); }
.points { font: 500 clamp(48px, 8vw, 84px) Georgia, serif; }
.progress { height: 8px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.2); }
.progress span { display: block; width: 68%; height: 100%; background: #efd9a5; }
.coupon-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.coupon-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.coupon-value { color: var(--green); font: 500 34px Georgia, serif; }
.profile-head { padding: 26px; display: flex; align-items: center; gap: 16px; border-radius: 26px; background: var(--cream); }
.avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font: 28px Georgia, serif; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 18px 0; }
.stat { padding: 18px; text-align: center; border: 1px solid var(--line); border-radius: 18px; background: white; }
.stat strong { display: block; font-size: 22px; }
.menu-list { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; }
.menu-list button { width: 100%; padding: 17px; display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); background: white; cursor: pointer; text-align: left; }
.menu-list button:last-child { border-bottom: 0; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.detail-image { position: sticky; top: 85px; aspect-ratio: 1; border-radius: 28px; background: #f0ece6 url('assets/catalog.png') 0 0/200% 200% no-repeat; }
.detail-image.pos-1 { background-position: 100% 0; }.detail-image.pos-2 { background-position: 0 100%; }.detail-image.pos-3 { background-position: 100% 100%; }
.detail-copy { padding: 10px 0; }
.detail-copy h1 { font-size: clamp(38px,5vw,62px); }
.detail-price { margin: 18px 0; font-size: 26px; font-weight: 900; }
.option-label { margin: 24px 0 9px; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.option-row { display: flex; gap: 8px; flex-wrap: wrap; }
.option { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: white; }
.option.active { border-color: var(--green); background: var(--sage); }
.bullet-list { padding-left: 20px; color: var(--muted); line-height: 1.7; }
.form-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: white; }
.payment { display: grid; gap: 9px; }
.payment label { padding: 12px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; }
.demo-note { margin: 14px 0; padding: 12px; color: #71572e; background: #fbf1d9; border-radius: 12px; font-size: 12px; line-height: 1.5; }
.drawer-backdrop { position: fixed; z-index: 60; inset: 0; background: rgba(18,27,23,.36); }
.drawer { position: absolute; right: 0; top: 0; width: min(420px,100%); height: 100%; padding: 22px; display: flex; flex-direction: column; background: var(--paper); box-shadow: -20px 0 50px rgba(0,0,0,.12); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.chat { flex: 1; overflow-y: auto; padding: 18px 0; }
.bubble { max-width: 82%; margin: 8px 0; padding: 12px 14px; border-radius: 17px; background: var(--sage); line-height: 1.45; font-size: 14px; }
.bubble.user { margin-left: auto; color: white; background: var(--green); }
.chat-input { display: flex; gap: 8px; }
.chat-input input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 12px 15px; }
.support-fab { position: fixed; z-index: 40; right: 18px; bottom: 88px; width: 48px; height: 48px; border: 0; border-radius: 50%; color: white; background: var(--green); box-shadow: var(--shadow); font-weight: 900; cursor: pointer; }
#toast { position: fixed; z-index: 100; left: 50%; bottom: 96px; transform: translate(-50%,20px); max-width: calc(100% - 30px); padding: 12px 18px; border-radius: 999px; color: white; background: #15231d; opacity: 0; pointer-events: none; transition: .25s ease; font-size: 13px; }
#toast.show { opacity: 1; transform: translate(-50%,0); }
.bottom-nav { position: fixed; z-index: 50; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(520px, calc(100% - 24px)); height: 66px; padding: 5px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid rgba(232,229,223,.9); border-radius: 22px; background: rgba(255,253,250,.94); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.bottom-nav button { border: 0; border-radius: 16px; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; color: var(--muted); background: transparent; cursor: pointer; }
.bottom-nav button.active { color: var(--green); background: var(--sage); }
.bottom-nav span { font-size: 19px; line-height: 1; }.bottom-nav small { font-size: 10px; font-weight: 800; }
.success { padding: 80px 20px; text-align: center; }
.success-mark { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 36px; }
@media (max-width: 820px) {
  .hero { min-height: 530px; background-position: 60% center; }
  .hero::after { background: linear-gradient(90deg, rgba(255,253,250,.95), rgba(255,253,250,.72) 60%, rgba(255,253,250,.18)); }
  .hero-copy { width: 82%; margin-left: 20px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 120px; }
  .cart-layout, .checkout-layout, .detail, .reward-hero { grid-template-columns: 1fr; }
  .detail-image { position: static; }
  .summary-card { position: static; }
  .coupon-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar { height: 60px; }
  .install-btn { display: none !important; }
  .hero { min-height: 510px; background-position: 67% center; }
  .hero-copy { width: calc(100% - 40px); padding-top: 185px; }
  .hero::after { background: linear-gradient(0deg, rgba(255,253,250,.98) 0%, rgba(255,253,250,.89) 46%, rgba(255,253,250,.08) 80%); }
  h1 { font-size: 45px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { padding: 11px; }
  .product-grid { gap: 10px; }
  .product-body { padding: 12px; }
  .product-body h3 { font-size: 13px; }
  .promo-card { padding: 24px; display: block; }
  .promo-card .btn { margin-top: 18px; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .thumb { width: 70px; }
  .cart-item > strong { grid-column: 2; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
}
