/* A single account control above, primary navigation below. */
body.premium-ui[data-page="index"]{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
.homepage-bottom-nav{position:fixed;inset:auto 0 0;z-index:50;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:2px;padding:8px max(8px,calc((100vw - 720px)/2)) max(8px,env(safe-area-inset-bottom));background:#eee4d7;border-top:1px solid #e6d4bd;box-shadow:0 -5px 22px -14px #734b2e40;transition:transform .22s ease,opacity .18s ease;transform:translateY(0);opacity:1}
.homepage-bottom-nav.is-hidden{transform:translateY(calc(100% + 8px));opacity:0;pointer-events:none}
.homepage-bottom-nav .bottom-nav-item{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:0;min-height:58px;margin:0;padding:5px 2px;border:0;border-radius:12px;background:transparent;color:#6f6458;font:600 11px/1.3 'Plus Jakarta Sans',sans-serif;text-decoration:none;cursor:pointer;box-sizing:border-box;white-space:nowrap}
.homepage-bottom-nav .bottom-nav-item>svg,.bottom-icon-wrap>svg{display:block;width:25px;height:25px;stroke-width:1.8}
.homepage-bottom-nav .bottom-nav-item.is-active{color:#9e552f;background:#f7e5d1}
.homepage-bottom-nav .bottom-nav-item:hover{background:#f7ecde;color:#9d4418}
.homepage-bottom-nav .bottom-nav-item:focus-visible{outline:3px solid #bb531b;outline-offset:-2px}
.bottom-icon-wrap{position:relative;display:block;width:25px;height:25px}
.bottom-nav-badge{position:absolute;top:-7px;right:-12px;display:grid;place-items:center;min-width:18px;height:18px;padding:1px 4px;border:2px solid #eee4d7;border-radius:12px;background:#9e552f;color:white;font:700 9px/1 sans-serif;box-sizing:border-box}
.bottom-nav-badge[hidden]{display:none!important}
body[data-page="index"] .toast{bottom:calc(96px + env(safe-area-inset-bottom));z-index:60}
body[data-page="index"] .vendor-message-toast{bottom:calc(96px + env(safe-area-inset-bottom))}
@media(max-width:360px){.homepage-bottom-nav .bottom-nav-item{font-size:10px}.homepage-bottom-nav .bottom-nav-item>svg,.bottom-icon-wrap>svg{width:23px;height:23px}}
@media(prefers-reduced-motion:reduce){.homepage-bottom-nav{transition:none}}

/* Compact product tiles; actions and descriptions live in the details dialog. */
body[data-page="index"] .product-preview{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
body[data-page="index"] .product-preview .product-photo{display:block;aspect-ratio:1.35;max-height:210px}
.product-summary{display:flex;flex-direction:column;gap:5px;padding:11px 12px}
.product-name{font-size:14px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
body[data-page="index"] .product-summary .price{font-size:14px;padding:0}
#product-dialog{background:#eee3d4;overflow-y:auto;overscroll-behavior:contain}
.product-detail-image{display:block;width:100%;max-height:300px;aspect-ratio:1.35;object-fit:cover;border-radius:13px;background:#f7e5d1}
#product-detail-vendor{margin:14px 0 6px}
#product-detail-description{font-size:14px;line-height:1.65;margin:14px 0;white-space:pre-wrap;overflow-wrap:anywhere}
#product-detail-status{margin-bottom:14px}
.product-detail-actions{display:flex;gap:10px;flex-wrap:wrap}
.product-detail-actions .orange-button{flex:1;white-space:nowrap}
@media(min-width:700px){body[data-page="index"] .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
