:root{--green:#438f2d;--ink:#11151d;--muted:#646970}*{box-sizing:border-box}body{margin:0;background:#fbfbfb;color:var(--ink);font:16px system-ui,"PingFang SC","Microsoft YaHei",sans-serif}button,input{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit}a{color:inherit;text-decoration:none}.wrap{width:min(91%,1400px);margin:auto}header{background:#fff}.top{min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:8px;color:#194b14;white-space:nowrap}.brand span{font-size:40px}.brand b{font-size:26px;letter-spacing:1px}.brand small{display:block;font-size:12px;letter-spacing:2px}nav{display:flex;gap:26px;white-space:nowrap}nav button{padding:23px 4px;position:relative;font-weight:650}nav .active{color:var(--green)}nav .active:after{content:"";position:absolute;bottom:8px;left:4px;right:4px;height:4px;background:var(--green);border-radius:4px}#search{display:flex;border:1px solid #b9dda9;border-radius:30px;overflow:hidden;min-width:140px}#search input{width:100%;min-width:0;border:0;background:transparent;padding:9px 15px}#search button,.green{background:var(--green);color:white;border-radius:30px;padding:9px 20px}#account,#basket{white-space:nowrap}#count{background:#f64b35;color:#fff;border-radius:20px;padding:2px 7px;font-size:12px}.hero{min-height:359px;background:linear-gradient(90deg,#d5f4ee 0%,#c3eaf7 29%,transparent 58%),url(assets/hero.jpg) right center/auto 100% no-repeat,#c3eaf7}.hero-copy{padding:36px 0 85px clamp(0px,10vw,160px)}.tag{display:inline-block;background:linear-gradient(90deg,#ff7937,#ffc63f);color:white;padding:5px 13px;border-radius:30px;font-weight:bold}h1{margin:7px 0 0;font-size:clamp(36px,4.4vw,68px);color:#214f13;letter-spacing:.04em}.hero p{color:#164d3e;font-size:clamp(16px,2vw,25px);margin:0 0 20px}.hero .green{font-size:20px;padding:11px 33px}.benefits{position:relative;margin-top:-32px;border-radius:18px;background:white;display:grid;grid-template-columns:repeat(4,1fr);padding:15px;box-shadow:0 8px 20px #0001}.benefits div{display:flex;align-items:center;justify-content:center;gap:16px}.benefits i{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#f1f7ed;color:var(--green);font:36px system-ui}.benefits b{font-size:18px}.benefits small{display:block;color:var(--muted);margin-top:3px}#categories{display:grid;grid-template-columns:repeat(9,1fr);gap:14px;margin:24px 0 35px}#categories button{background:#f5f4f3;border-radius:18px;padding:9px 3px 15px;white-space:nowrap}#categories .active{background:#e8f5d8;color:#22541a;font-weight:bold}.fruit-icon{display:grid;place-items:center;height:65px;font-size:43px}.section-head{display:flex;align-items:center;gap:20px;margin-bottom:22px}.section-head h2{margin:0;border-left:7px solid var(--green);padding-left:15px;font-size:30px}.section-head span,footer{color:var(--muted)}.section-head button{margin-left:auto;color:#427b35;white-space:nowrap}#products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px}.card{position:relative;background:white;border-radius:15px;overflow:hidden;box-shadow:0 1px 5px #0002}.card img,.placeholder{width:100%;aspect-ratio:1.69;object-fit:cover;display:block}.placeholder{display:grid;place-items:center;font-size:70px;background:#edf4e6}.card-body{padding:10px 13px}.card h3{font-size:17px;margin:0}.card p{color:var(--muted);margin:4px 0}.price{display:flex;align-items:center;gap:10px}.price strong{font-size:25px;color:#f44332}.price del{font-size:14px;color:#83848b}.add{margin-left:auto;background:var(--green);color:white;border-radius:100%;width:39px;height:39px}.badge{position:absolute;right:0;top:0;background:#f45742;color:white;padding:4px 12px;border-radius:0 0 0 14px}footer{padding:30px 0;text-align:center}dialog{border:0;border-radius:18px;width:min(92vw,510px);padding:25px;box-shadow:0 15px 60px #0004}dialog::backdrop{background:#17231377}.close{float:right;font-size:25px}.cart-row{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #eee}.cart-row b{flex:1}.cart-row button{background:#edf4e6;border-radius:6px;padding:3px 9px}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#22491e;color:white;padding:9px 20px;border-radius:25px;pointer-events:none}#notice:empty{display:none}@media(max-width:1100px){nav{gap:8px}.top{gap:8px}#products{gap:13px}}@media(max-width:760px){.top{flex-wrap:wrap;padding:10px 0}nav{order:1;width:100%;overflow:auto;justify-content:space-between}nav button{padding:10px 4px}.brand b{font-size:19px}.brand span{font-size:29px}#search{flex:1}#account{font-size:13px}.hero{min-height:280px;background-size:auto 100%;background-image:linear-gradient(90deg,#d9f4f2 0%,#d9f4f2d9 43%,transparent 100%),url(assets/hero.jpg)}.hero-copy{padding:31px 0 65px}.benefits{grid-template-columns:1fr 1fr;gap:14px}.benefits div{justify-content:flex-start;gap:8px}.benefits i{width:35px;height:35px;font-size:24px}.benefits b{font-size:15px}#categories{display:flex;overflow:auto;margin-bottom:22px}#categories button{min-width:90px}#products{grid-template-columns:repeat(2,minmax(0,1fr))}.section-head{gap:8px}.section-head h2{font-size:23px}.section-head span{display:none}}

.hero{position:relative;--banner-image:url(assets/hero.jpg);background-image:linear-gradient(90deg,#d5f4ee 0%,#c3eaf7 29%,transparent 58%),var(--banner-image)}
.hero[hidden]+main .benefits{margin-top:20px}
#banner-controls{position:absolute;bottom:52px;left:50%;transform:translateX(-50%);display:flex;gap:8px}
#banner-controls button{width:12px;height:12px;padding:0;border-radius:50%;background:white}
#banner-controls [aria-pressed="true"]{background:var(--green);outline:1px solid white}
.fruit-icon img{width:85%;height:62px;object-fit:contain}
#login-qr{display:block;margin:auto}#login-qr[hidden]{display:none}
#order-form label{display:grid;gap:4px;margin:10px 0}
#order-form input,#order-form textarea{width:100%;font:inherit;border:1px solid #c5cfc2;border-radius:7px;padding:8px}
#order-error{color:#b3271d}.order-summary{padding:12px 0;border-bottom:1px solid #ddd}
.order-summary small{display:block;overflow-wrap:anywhere}.order-summary p{margin:4px 0}
@media(max-width:760px){.hero{background-image:linear-gradient(90deg,#d9f4f2 0%,#d9f4f2d9 43%,transparent 100%),var(--banner-image)}}
#account{display:inline-flex;align-items:center;gap:6px;max-width:160px;overflow:hidden}
#account img{width:28px;height:28px;border-radius:50%}
#cart-page{max-width:840px;margin:30px auto}#cart-lines{background:white;padding:clamp(12px,4vw,32px);border-radius:16px;margin-top:12px}
.cart-photo{width:68px;height:52px;display:grid;place-items:center}.cart-photo img{width:100%;height:100%;object-fit:cover;border-radius:8px}
#order-form select{width:100%;font:inherit;border:1px solid #c5cfc2;border-radius:7px;padding:8px}

body > header{position:sticky;top:0;z-index:12;box-shadow:0 2px 14px #1b3a1810}
#catalog{scroll-margin-top:85px}
.card .price{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:0 6px;align-items:center}
.card .price strong{font-size:clamp(17px,1.7vw,25px);white-space:nowrap}
.card .price del{grid-column:1;grid-row:2;white-space:nowrap}
.card .add{display:grid;place-items:center;grid-column:2;grid-row:1/span 2;width:38px;height:38px;padding:0;margin:0;background:#e8f4e1;color:#30751f;border:1px solid #cfe5c4}
.card .add:hover{background:#438f2d;color:#fff}
#cart-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(100%,460px);height:100dvh;max-height:none;max-width:none;border-radius:22px 0 0 22px;padding:0}
#cart-drawer[open]{display:flex;flex-direction:column}
.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:16px 22px;border-bottom:1px solid #e8eee5}
.drawer-head h2{margin:0;font-size:22px}
#cart-lines{display:flex;flex:1;min-height:0;flex-direction:column;margin:0;padding:0}
.cart-list{flex:1;overflow:auto;padding:4px 20px}.cart-list .cart-row{gap:12px;padding:16px 0}
.cart-list input,.cart-footer input{accent-color:var(--green);width:17px;height:17px}
.cart-list .cart-photo{flex:none;width:70px;height:64px;background:#f3f7ef;border-radius:9px}
.cart-item{min-width:0;flex:1}.cart-item b,.cart-item strong{display:block}.cart-item strong{color:#b73524;margin:3px 0}
.stepper{display:flex;align-items:center;gap:9px;font-size:14px}.stepper .remove{background:none;color:#676f65;margin-left:auto}
.cart-footer{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:14px 16px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #e8eee5}
.cart-footer strong{display:block;color:#b73524}.cart-footer label{white-space:nowrap}.cart-footer .green:disabled{opacity:.5;cursor:default}
.cart-empty{text-align:center;padding:52px 16px;color:#526250}.cart-empty span{font-size:38px}.cart-empty h3{margin:12px 0 4px}
.profile-hero{display:flex;align-items:center;gap:14px;background:#edf6e8;border-radius:15px;padding:20px;margin:18px 0 14px}
.profile-hero img,.profile-avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;background:#fff;display:grid;place-items:center;font-size:27px}
.profile-hero h2{margin:4px 0 0;font-size:22px;overflow-wrap:anywhere}
.profile-hero small,.profile-address p{color:#536750}.profile-address,.profile-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.profile-address{border:1px solid #e5eee0;padding:13px;border-radius:12px}.profile-address p{margin:4px 0 0;overflow-wrap:anywhere}.profile-address button{white-space:nowrap;color:#316d26}
.profile-heading{margin-top:14px}.profile-heading h3{margin:0}.profile-heading button{color:#65705f}
.order-summary{background:#f6f8f4;border:0;border-radius:10px;margin-top:9px;padding:12px}
@media(max-width:760px){#catalog{scroll-margin-top:130px}.card-body{padding:8px}.card .price{grid-template-columns:minmax(0,1fr) 30px;gap:0 3px}.card .add{width:30px;height:32px}.card .add svg{width:17px}.card .price del{font-size:12px}#cart-drawer{border-radius:0}}
.loyalty-links,.referral-stats{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.loyalty-links button,.referral-stats span{background:#edf6e8;color:#285b20;padding:8px 12px;border-radius:10px}
.referral-share{display:grid;justify-items:center;gap:8px;background:#f3f8ee;border-radius:12px;padding:14px;margin:12px 0}
.referral-share label{width:100%;display:grid;gap:4px}.referral-share input{width:100%;font:inherit;padding:7px;border:1px solid #b6c9b0;border-radius:6px}
#panel{max-height:85dvh;overflow:auto}

.hero[hidden], #storefront[hidden], #lucky-page[hidden]{display:none}
#lucky-page{padding-block:24px}
#lucky-page .section-head{flex-wrap:wrap}
.lucky-prize{display:flex;gap:18px;flex-wrap:wrap;align-items:flex-start}
.lucky-prize img{width:min(100%,180px);height:140px;object-fit:cover;border-radius:10px}
#lucky-page article p{white-space:pre-line;overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:920px){
  .top{flex-wrap:wrap;padding:10px 0}
  .top nav{order:1;width:100%;justify-content:space-between}
  .top nav button{padding:10px 4px}
  .top #search{flex:1}
}

.stock-warning{color:#a62923}#cart-stock-error:empty{display:none}button:disabled{cursor:not-allowed}
