*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#F4F4F2;color:#141414;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px}
[hidden]{display:none!important}
button,input{font-family:inherit}
.app{max-width:560px;margin:0 auto;min-height:100vh;background:#F4F4F2}
h1,h2,p{margin:0}
.muted{font-size:13px;color:#5C5C58;line-height:1.45}
.center{text-align:center}
.big{font-size:20px;font-weight:800}
.semi{font-weight:600}

/* shop header */
.shop-head{background:#fff;padding:22px 20px 16px;border-bottom:1px solid #E6E6E3;display:flex;flex-direction:column;gap:14px}
.brand{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand-text{min-width:0}
.brand{width:100%}
.logo{width:68px;height:68px;flex:0 0 auto;margin-left:auto;border-radius:50%;box-shadow:0 1px 6px rgba(0,0,0,.14)}
.mark{width:40px;height:40px;border-radius:10px;background:#00AE42;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.brand h1{font-size:22px;font-weight:800;letter-spacing:-.02em}
.sub{font-size:13px;color:#5C5C58;margin-top:2px}
.brand h1+.sub{margin-top:4px}
.sub.note{font-size:12px;color:#8A8A85;margin-top:1px}
.tip{font-size:clamp(12px,3.6vw,14px);color:#3D3D3A;background:#EEF8F1;border-radius:10px;padding:10px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* sticky filters */
.filters{position:sticky;top:0;z-index:10;background:rgba(244,244,242,.97);border-bottom:1px solid #E6E6E3;padding:8px 10px;display:flex;flex-direction:column;gap:6px;box-shadow:0 4px 12px rgba(0,0,0,.05)}
.type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.sub-grid{display:grid;gap:4px}
.fin{white-space:nowrap;height:34px;padding:0 1px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;background:#fff;color:#00602A;border:1px solid #BFE3CB}
.fin[aria-pressed="true"]{background:#00843A;color:#fff;border-color:#00843A;font-weight:700}
.seg{display:flex;gap:4px;background:#EDEDEA;border-radius:10px;padding:3px;align-self:flex-start}
.seg button{height:34px;padding:0 12px;border:0;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;background:transparent;color:#4A4A46}
.seg button[aria-pressed="true"]{background:#fff;color:#141414;font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.chip{white-space:nowrap;height:40px;padding:0 4px;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;background:#fff;color:#3D3D3A;border:1px solid #D6D6D2}
.chip[aria-pressed="true"]{background:#141414;color:#fff;border-color:#141414;font-weight:700}

/* grid + cards */
main{padding:12px 10px 110px}
.status{font-size:15px;color:#3D3D3A;text-align:center}
.status:empty{display:none}
.status .btn{margin-top:12px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.card-btn{background:#fff;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 2px rgba(0,0,0,.06),0 6px 16px rgba(0,0,0,.08)}
.card-main{background:transparent;border:0;padding:0;margin:0;text-align:left;cursor:pointer;display:flex;flex-direction:column;flex:1 1 auto;font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.card-main:focus-visible,.quick:focus-visible{outline:3px solid #00843A;outline-offset:-3px}
.quick{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;flex:0 0 auto}
.quick.add{background:#00843A;border:0}
.quick.remove{background:#FFF5F4;border:1px solid #F1C7C2}
.card-top{padding:8px 8px 7px;display:flex;flex-direction:column;gap:1px}
.type{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5C5C58}
.color{font-size:16px;font-weight:700;line-height:1.2}
.pill{display:inline-block;font-size:11px;font-weight:700;border-radius:999px;padding:4px 9px;background:#141414;color:#fff;white-space:nowrap}
.pill.refill{background:#FFF4E0;color:#6B3A00;border:1px solid #E8C48A;padding:3px 8px}
.pill-row{padding-top:6px}
.pic{position:relative;aspect-ratio:1/1;background:#F1F1F1;overflow:hidden}
.pic .swatch{position:absolute;inset:22%;border-radius:50%;box-shadow:inset 0 -6px 12px rgba(0,0,0,.18)}
.pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.badge{position:absolute;top:8px;right:8px;background:#00843A;color:#fff;font-size:12px;font-weight:700;border-radius:999px;padding:4px 9px}
.overlay{position:absolute;inset:0;background:rgba(255,255,255,.88);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-shadow:inset 0 0 0 3px #00843A;text-align:center;padding:0 10px}
.overlay .plus{width:48px;height:48px;border-radius:50%;background:#00843A;display:flex;align-items:center;justify-content:center}
.overlay span{font-size:14px;font-weight:700;color:#00602A}
.overlay span.full{color:#3D3D3A}
.price-row{padding:10px 12px 12px;display:flex;align-items:baseline;justify-content:space-between}
.price{font-size:18px;font-weight:800}

/* sticky bottom bar */
.cartbar{position:fixed;left:0;right:0;bottom:0;z-index:10;max-width:560px;margin:0 auto;background:#fff;border-top:1px solid #E6E6E3;padding:14px 16px calc(16px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 -6px 18px rgba(0,0,0,.06)}
.toast{position:fixed;left:16px;right:16px;bottom:96px;z-index:11;max-width:528px;margin:0 auto;background:#141414;color:#fff;border-radius:12px;padding:12px 14px;font-size:14px;font-weight:600;text-align:center}

/* buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:12px;font-size:16px;font-weight:700;cursor:pointer;text-decoration:none;border:0}
.btn.primary{background:#00843A;color:#fff}
.btn.outline{background:#fff;color:#00602A;border:2px solid #00843A}
.btn.ghost{background:transparent;color:#00602A}
.btn.messenger{background:#0866FF;color:#fff;margin-top:8px}
.btn.tall{height:54px;font-size:17px;width:100%}
.btn[disabled]{opacity:.6;cursor:wait}
.icon-btn{width:44px;height:44px;border:0;background:transparent;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}

/* review */
.bar-head{background:#fff;padding:18px 16px;border-bottom:1px solid #E6E6E3;display:flex;align-items:center;gap:8px;position:sticky;top:0;z-index:10}
.bar-head h1{font-size:20px;font-weight:800}
.stack{padding:16px;display:flex;flex-direction:column;gap:14px}
.card{background:#fff;border-radius:14px;box-shadow:0 1px 2px rgba(0,0,0,.06),0 6px 16px rgba(0,0,0,.08)}
.card.pad{padding:16px;display:flex;flex-direction:column;gap:12px}
.card.pad-x{padding:6px 16px}
.card h2{font-size:16px;font-weight:700}
.line{display:flex;align-items:center;gap:12px;padding:14px;border-bottom:1px solid #EEEEEB}
.thumb{flex:0 0 auto;width:52px;height:52px;border-radius:10px;position:relative;overflow:hidden;background:#F1F1F1}
.thumb.small{width:32px;height:32px;border-radius:8px}
.thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thumb .swatch{position:absolute;inset:18%;border-radius:50%}
.line-info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.line-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:15px;font-weight:700}
.stepper{display:flex;align-items:center;gap:4px}
.stepper button{width:44px;height:44px;border-radius:10px;border:1px solid #DADAD6;background:#fff;font-size:20px;color:#141414;cursor:pointer}
.stepper button:disabled{background:#F2F2F0;color:#9A9A96;cursor:not-allowed}
.stepper span{min-width:22px;text-align:center;font-weight:700}
.total-row{padding:14px;display:flex;justify-content:space-between;align-items:baseline;font-size:15px;font-weight:600;color:#3D3D3A}
.card.pad-x .total-row{padding:12px 0}
.total-row strong{font-size:22px;font-weight:800;color:#141414}
.warn{background:#FFF4E0;border:1px solid #E8C48A;border-radius:14px;padding:14px 16px;display:flex;gap:12px}
.warn svg{flex:0 0 auto;margin-top:1px}
.warn strong{display:block;font-size:15px;color:#6B3A00;margin-bottom:4px}
.warn p{font-size:14px;color:#3D3D3A;line-height:1.5}
.warn-small{margin:10px 0 0;font-size:13px;color:#6B3A00;background:#FFF4E0;border-radius:8px;padding:8px 10px;line-height:1.45}
label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#3D3D3A}
input{height:46px;border:1px solid #CFCFCB;border-radius:10px;padding:0 12px;font-size:16px;color:#141414;background:#fff}
input:focus{outline:2px solid #00843A;outline-offset:1px}
input[aria-invalid="true"]{border-color:#B42318}
.error{font-size:14px;font-weight:600;color:#B42318}
.actions{display:flex;flex-direction:column;gap:10px;padding:4px 0 24px}
.pickup-pill{font-size:13px;font-weight:600;color:#3D3D3A;text-align:center;background:#fff;border:1px solid #E0E0DC;border-radius:10px;padding:10px 12px}

/* done */
.done{align-items:center;text-align:center;padding-top:56px;padding-bottom:40px}
.done > *{align-self:stretch}
.done .check{align-self:center;width:72px;height:72px;border-radius:50%;background:#00843A;display:flex;align-items:center;justify-content:center}
.done h1{font-size:26px;font-weight:800}
.lead{font-size:16px;color:#3D3D3A;line-height:1.5}
#paidBox{display:flex;flex-direction:column;gap:14px}
#paidBox .card{text-align:left}
.kv{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;font-weight:600;color:#3D3D3A}
.kv strong{color:#141414;font-size:15px}
.kv strong.big{font-size:20px}
.good{background:#EEF8F1;border:1px solid #BFE3CB;border-radius:14px;padding:16px;display:flex;gap:12px;text-align:left}
.good svg{flex:0 0 auto}
.good strong{display:block;font-size:16px;color:#00602A;margin-bottom:4px}
.good p{font-size:14px;color:#3D3D3A;line-height:1.5}
.done-line{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #EEEEEB;font-size:14px;text-align:left}
.done-line .dl-name{flex:1 1 auto}
.js-venmo-name{white-space:nowrap}

/* compact 3-wide cards */
.card-top .type{font-size:9.5px;letter-spacing:.05em}
.card-top .color{font-size:13px}
.card-top .pill-row{padding-top:4px}
.card-btn .pic{margin-top:auto}
.card-top .pill{font-size:10px;padding:3px 7px}
.card-top .pill.refill{padding:2px 6px}
.card-btn .badge{top:5px;right:5px;font-size:11px;padding:3px 7px}
.card-btn .overlay{gap:5px;padding:0 6px}
.card-btn .overlay .plus{width:36px;height:36px}
.card-btn .overlay span{font-size:12px;line-height:1.25}
.card-btn .price-row{padding:4px 6px 6px 8px;align-items:center}
.card-btn .price{font-size:15px}
.shop-head .seg{margin:0}

/* pickup / delivery */
.seg.wide{align-self:stretch}
.seg.wide button{flex:1 1 0;height:40px;font-size:15px}
.stack0{display:flex;flex-direction:column;gap:10px}
.zip-result{font-size:14px;font-weight:600;color:#3D3D3A;min-height:0}
.zip-result:empty{display:none}
.zip-result.ok{color:#00602A}
.zip-result.no{color:#B42318}
.fee-row{display:flex;justify-content:space-between;padding:12px 14px 0;font-size:14px;color:#3D3D3A}
.card.pad-x .fee-row{padding:10px 0 0}
.seg button[aria-disabled="true"]{color:#9A9A96;cursor:not-allowed}
.opt{font-weight:500;color:#5C5C58}
.type-info{background:#fff;border:1px solid #BFE3CB;border-left-width:1px;border-radius:12px;padding:12px 14px;margin-bottom:12px;display:flex;flex-direction:column;gap:4px}
.type-info strong{font-size:16px;font-weight:800;color:#00602A}
.type-info p{margin:0;font-size:14px;color:#3D3D3A;line-height:1.45}
.type-info .fine{font-size:12px;color:#5C5C58}
.type-info a{font-size:14px;font-weight:700;color:#0866FF;margin-top:2px}

/* spool filter + color sort row */
.tools{display:flex;gap:8px;align-items:stretch}
.tools .seg{align-self:auto;flex:0 0 auto}
.sortbtn{margin-left:auto;flex:0 0 auto;width:52px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid #D6D6D2;background:#fff;cursor:pointer;padding:0}
.sortbtn[aria-pressed="true"]{border-color:#141414;box-shadow:inset 0 0 0 1px #141414}
.seg.off{opacity:.45}
.seg.off button{cursor:default}
.hint{font-size:12px;color:#8A8A85;margin-top:-6px}
