/* quickhome (2026-11-18): quick-commerce style home. Everything is under .qh-* so old pages are not touched. */
:root{--qh-accent:#4F46E5;--qh-add:#16A34A;--qh-add-soft:#F0FDF4;--qh-ink:#111827;--qh-muted:#6B7280;--qh-line:#E5E7EB;--qh-off:#2563EB}
.qh-wrap{max-width:1200px;margin:0 auto;padding:0 16px}
#qh-strip{background:linear-gradient(160deg,#4F46E5 0%,#7C3AED 100%);color:#fff;padding:12px 0 14px;margin-bottom:12px}
.qh-eta{display:flex;flex-direction:column;line-height:1.2}
.qh-eta small{font-size:11px;font-weight:600;letter-spacing:.3px;text-transform:uppercase;opacity:.85}
.qh-eta b{font-size:19px;font-weight:700}
.qh-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.qh-chip{font-size:11.5px;background:rgba(255,255,255,.16);padding:4px 10px;border-radius:20px;white-space:nowrap}
.qh-chip.qh-green{background:rgba(22,163,74,.85)}
.qh-chip.qh-red{background:rgba(220,38,38,.9)}
#qh-home{padding-bottom:84px}
.qh-sec{padding:14px 0 2px}
.qh-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.qh-h h2{font-size:17px;font-weight:700;color:var(--qh-ink);margin:0}
.qh-h a{font-size:13px;font-weight:600;color:var(--qh-add);text-decoration:none;white-space:nowrap}
.qh-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 8px;margin-top:12px}
@media(min-width:700px){.qh-grid{grid-template-columns:repeat(6,1fr)}}
@media(min-width:1000px){.qh-grid{grid-template-columns:repeat(8,1fr)}}
.qh-cat{text-align:center;font-size:11.5px;font-weight:500;line-height:1.25;color:var(--qh-ink);text-decoration:none}
.qh-cat:hover{color:var(--qh-accent)}
.qh-ic{aspect-ratio:1;border-radius:16px;background:#EEF4FF;display:grid;place-items:center;margin-bottom:6px;overflow:hidden;font-size:24px;font-weight:700;color:var(--qh-accent)}
.qh-ic img{width:80%;height:80%;object-fit:contain}
.qh-c1 .qh-ic{background:#FEF3C7;color:#B45309}.qh-c2 .qh-ic{background:#DCFCE7;color:#15803D}.qh-c3 .qh-ic{background:#FCE7F3;color:#BE185D}
.qh-cn{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.qh-more{margin-top:12px;width:100%;border:1px solid var(--qh-line);background:#fff;border-radius:12px;padding:10px;font-weight:600;font-size:13px;color:var(--qh-accent)}
.qh-rail{display:flex;gap:10px;overflow-x:auto;margin-top:12px;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.qh-rail::-webkit-scrollbar{display:none}
.qh-p{flex:0 0 146px;border:1px solid var(--qh-line);border-radius:14px;padding:8px;display:flex;flex-direction:column;background:#fff;position:relative}
.qh-im{height:108px;border-radius:10px;background:#F8FAFC;display:grid;place-items:center;overflow:hidden;text-decoration:none}
.qh-im img{max-width:90%;max-height:100px;object-fit:contain}
.qh-im span{font-size:32px;font-weight:700;color:#CBD5E1}
.qh-off{position:absolute;top:0;left:10px;z-index:1;background:var(--qh-off);color:#fff;font-size:10px;font-weight:700;padding:4px 6px 5px;border-radius:0 0 6px 6px;line-height:1.1;text-align:center}
.qh-time{margin-top:8px;font-size:9.5px;font-weight:600;background:#F3F4F6;border-radius:5px;padding:2px 6px;align-self:flex-start;color:#374151}
.qh-nm{font-size:12.5px;font-weight:600;line-height:1.3;margin-top:6px;height:33px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--qh-ink);text-decoration:none}
.qh-sz{font-size:11px;color:var(--qh-muted);margin-top:2px;min-height:15px}
.qh-pr{display:flex;align-items:flex-end;justify-content:space-between;gap:4px;margin-top:auto;padding-top:8px}
.qh-pr b{font-size:13px;display:block;color:var(--qh-ink)}
.qh-pr s,.qh-optrow s{font-size:11px;color:var(--qh-muted)}
.qh-add{border:1.5px solid var(--qh-add);color:var(--qh-add);background:var(--qh-add-soft);font-weight:700;font-size:12px;border-radius:8px;padding:6px 12px;cursor:pointer;line-height:1.1;display:flex;flex-direction:column;align-items:center}
.qh-add small{font-size:8.5px;font-weight:600}
.qh-step{display:flex;align-items:center;background:var(--qh-add);color:#fff;border-radius:8px;font-weight:700;font-size:13px}
.qh-step button{background:none;border:0;color:#fff;font-weight:700;font-size:16px;padding:3px 9px;cursor:pointer;line-height:1.2}
.qh-step span{min-width:12px;text-align:center}
.qh-btn .d-none{display:none!important}
#qh-bar{position:fixed;left:50%;transform:translate(-50%,140%);bottom:12px;z-index:1040;width:calc(100% - 24px);max-width:560px;background:var(--qh-add);color:#fff;border-radius:14px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;box-shadow:0 10px 25px rgba(22,163,74,.35);transition:transform .25s;cursor:pointer}
#qh-bar.qh-show{transform:translate(-50%,0)}
#qh-bar small{display:block;font-size:11px;opacity:.92}
#qh-bar b{font-size:15px}
#qh-bar span{font-weight:700;white-space:nowrap}
.qh-sheet{position:fixed;inset:0;z-index:1060}
.qh-sheet-bg{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.qh-sheet-box{position:absolute;left:0;right:0;bottom:0;max-width:560px;margin:0 auto;background:#fff;border-radius:18px 18px 0 0;padding:14px 16px 24px;max-height:70vh;overflow:auto}
.qh-sheet-h{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.qh-x{border:0;background:#F3F4F6;border-radius:50%;width:32px;height:32px;font-size:14px}
.qh-optrow{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-top:1px solid var(--qh-line)}
.qh-offt{font-size:10px;font-weight:700;color:var(--qh-off)}
.qh-again{background:linear-gradient(180deg,#F0FDF4 0%,#fff 100%)}
.qh-again-btn{margin-top:10px;width:100%;border:0;border-radius:12px;padding:11px 12px;background:var(--qh-add);color:#fff;font-weight:700;font-size:13.5px;box-shadow:0 6px 16px rgba(22,163,74,.25)}
.qh-active{display:flex;align-items:center;gap:12px;margin-top:12px;padding:12px 14px;border-radius:14px;background:#EEF2FF;border:1px solid #C7D2FE;color:var(--qh-ink);text-decoration:none}
.qh-active b{display:block;font-size:14px}
.qh-active small{font-size:12px;color:var(--qh-muted)}
.qh-active-ic{font-size:24px}
.qh-active-go{margin-left:auto;font-size:22px;color:var(--qh-accent);font-weight:700}
/* homev2 (2026-11-20): address + distance, department tabs, collections, offers, grouped sub-categories, bottom bar */
.qh-toprow{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.qh-km{font-size:11.5px;font-weight:700;background:rgba(255,255,255,.2);border-radius:20px;padding:4px 10px;white-space:nowrap;margin-top:4px}
.qh-addr{display:block;max-width:100%;margin-top:6px;background:none;border:0;padding:0;color:#fff;font-size:13px;font-weight:600;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.95;cursor:pointer}
.qh-tabs{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid var(--qh-line)}
.qh-tabrow{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding-top:6px;padding-bottom:0}
.qh-tabrow::-webkit-scrollbar{display:none}
.qh-tab{flex:none;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11.5px;font-weight:600;color:var(--qh-muted);padding:4px 8px 8px;border-bottom:3px solid transparent;min-width:62px;max-width:96px;cursor:pointer}
.qh-tab .qh-ti{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;overflow:hidden;font-size:18px}
.qh-tab .qh-ti img{width:100%;height:100%;object-fit:contain}
.qh-tab{width:76px}.qh-tl{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.qh-tab.on{color:var(--qh-ink);border-bottom-color:var(--qh-accent)}
.qh-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px}
@media(min-width:700px){.qh-cols{grid-template-columns:repeat(4,minmax(0,1fr))}}
.qh-col{border:0;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:6px;text-align:left;min-height:118px;cursor:pointer;color:var(--qh-ink)}
.qh-colt b{display:block;font-size:13.5px;line-height:1.2}.qh-colt small{font-size:11px;color:#4B5563}
.qh-colim{display:flex;gap:6px;margin-top:auto}.qh-colim img{width:44px;height:44px;object-fit:contain;background:#fff;border-radius:10px;padding:3px}
.qh-offer{background:linear-gradient(180deg,color-mix(in srgb,var(--qh-accent) 12%,#fff),#fff 70%);margin-top:6px}
.qh-offgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.qh-deal{grid-row:span 2;background:#fff;border-radius:14px;padding:8px;text-decoration:none;color:var(--qh-ink);display:flex;flex-direction:column;border:1px solid var(--qh-line)}
.qh-deal small{font-size:10px;font-weight:700;color:var(--qh-accent);text-transform:uppercase}
.qh-deal img{width:100%;height:96px;object-fit:contain;margin:4px 0}
.qh-dn{font-size:12px;font-weight:600;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.qh-dp{margin-top:auto;padding-top:4px}.qh-dp s{font-size:11px;color:var(--qh-muted);margin-right:4px}.qh-dp b{font-size:16px;color:var(--qh-add)}
.qh-otile{background:var(--qh-accent);color:#fff;border-radius:14px;padding:8px;text-decoration:none;position:relative;overflow:hidden;min-height:88px;display:flex;flex-direction:column}
.qh-otile small{font-size:10px;opacity:.9}.qh-otile b{font-size:15px;line-height:1.1}.qh-otile span{font-size:11px;font-weight:600;margin-top:2px;max-width:70%}
.qh-otile img{position:absolute;right:-6px;bottom:-6px;width:52px;height:52px;object-fit:contain;background:#fff;border-radius:12px;padding:3px}
@media(min-width:700px){.qh-offgrid{grid-template-columns:repeat(5,minmax(0,1fr))}.qh-deal{grid-row:auto}}
.qh-sgrid .qh-ic{background:var(--qh-catbg,#EEF4FF)}
#qh-nav{position:fixed;left:0;right:0;bottom:0;z-index:1045;background:#fff;border-top:1px solid var(--qh-line);display:flex;justify-content:space-around;padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
#qh-nav>*{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:1px;font-size:11px;font-weight:600;color:var(--qh-muted);text-decoration:none;cursor:pointer}
#qh-nav span{font-size:19px;line-height:1.2;filter:grayscale(1);opacity:.75}
#qh-nav .on{color:var(--qh-ink)}#qh-nav .on span{filter:none;opacity:1}
body.qh-has-nav #qh-bar{bottom:72px}
body.qh-has-nav #qh-home{padding-bottom:150px}
body.qh-has-nav footer{padding-bottom:70px}
.qh-bim{width:38px;height:38px;border-radius:50%;background:#fff;display:grid;place-items:center;overflow:hidden;flex:none}
.qh-bim img{width:82%;height:82%;object-fit:contain}
#qh-mic{border:0;background:none;font-size:18px;padding:0 8px;cursor:pointer}
#qh-mic.on{animation:qhmic 1s infinite}@keyframes qhmic{50%{opacity:.3}}

/* uifix (2026-11-20): small UI fixes */
.qh-tab{width:78px;max-width:none}
.qh-tl{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.2;min-height:2.4em;font-size:11px}
@media(min-width:700px){.qh-tab{width:96px}}
.qh-colim:empty{display:none}.qh-colim{overflow:hidden}.qh-colim img{background:#fff;flex:none}
.qh-col{min-height:96px}
.qh-dph{display:grid;place-items:center;height:96px;font-size:40px;margin:4px 0;background:#FFF7ED;border-radius:10px}
@media(min-width:900px){#qh-nav{left:50%;right:auto;transform:translateX(-50%);width:560px;border:1px solid var(--qh-line);border-bottom:0;border-radius:16px 16px 0 0}}
#qh-strip .qh-addr{max-width:min(100%,560px)}
