/* Customer storefront, modelled on the approved two-column phone preview. */
body:not(.manager-site) { --shop-green:#00835f; --green:#007956; --paper:#f7f9fa; --line:#e1e7e9; --mute:#536271; background:var(--paper); }
body:not(.manager-site) .mast { background:var(--shop-green); color:#fff; border:0; }
body:not(.manager-site) .mast-inner { max-width:860px; height:57px; padding:0 16px; }
body:not(.manager-site) .identity { font-size:20px; letter-spacing:.015em; }
body:not(.manager-site) .identity .mark, body:not(.manager-site) .account::before { display:none; }
body:not(.manager-site) .account { color:#fff; background:transparent; border:1px solid #ffffff70; border-radius:20px; min-height:40px; }
body:not(.manager-site) .nav-inner { margin:auto; max-width:860px; height:56px; }
body:not(.manager-site) .nav-inner button { flex:1; flex-direction:column; gap:2px; min-height:50px; font-size:12px; color:#526473; background:transparent; }
body:not(.manager-site) .nav-inner .on { color:var(--green); }
body:not(.manager-site) .nav-inner .on svg { stroke-width:2.2; }
body:not(.manager-site) .primary { background:var(--green); color:white; }
body:not(.manager-site) .profile-card, body:not(.manager-site) .auth-card:has(form)>header { background:var(--shop-green); color:white; }
body:not(.manager-site) .auth-card .pantry-art { display:none; }
body:not(.manager-site) .auth-card:has(form)>header { min-height:0; padding:24px; }
body[data-page=shop] { height:100vh; height:100dvh; display:flex; flex-direction:column; }
body[data-page=shop] .mast { flex:none; }
body[data-page=shop] #main { display:flex; flex-direction:column; flex:1; min-height:0; width:100%; max-width:860px; padding:0; margin:0 auto; background:#fff; }
body[data-page=shop] #nav { position:static; flex:none; }
.shop-search { flex:none; background:var(--shop-green); padding:0 14px 13px; border-radius:0 0 20px 20px; }
.shop-search .search { display:flex; gap:8px; width:100%; margin:0; min-height:42px; padding:0 14px; color:#5b6d78; background:white; border:1px solid transparent; border-radius:24px; }
.shop-search .search:focus-within { outline:2px solid #162f45; }
.shop-search .search input { width:100%; min-width:0; min-height:42px; margin:0; background:transparent; border:0; outline:0; color:#1e293b; font-size:15px; }
body[data-page=shop] .catalog { display:grid; grid-template-columns:clamp(76px,16vw,116px) minmax(0,1fr); align-items:stretch; gap:0; flex:1; min-height:0; margin:6px 0 0; }
.catalog .cats { position:static; display:flex; flex-direction:column; gap:0; overflow-y:auto; overflow-x:hidden; margin:0; padding:0 0 84px; background:#f0f5f8; border-right:1px solid var(--line); border-radius:0; }
.catalog .cats button { position:relative; display:flex; flex-direction:column; align-items:center; gap:3px; width:100%; min-height:64px; padding:9px 5px; white-space:normal; overflow-wrap:anywhere; border:0; border-radius:0; color:#495868; background:transparent; font-size:13px; }
.catalog .cats .on { background:white; color:var(--green); }
.catalog .cats .on::before { display:block; background:var(--green); }
.category-icon { font-size:21px; line-height:1.25; }
.catalog .shelf { overflow:auto; overscroll-behavior:contain; padding:0 10px 12px; }
body[data-page=shop]:has(#cartbar:not([hidden])) .shelf { padding-bottom:88px; }
.shelf .shelf-heading { display:flex; gap:7px; align-items:center; justify-content:flex-start; padding:1px 0; min-height:43px; }
.shelf .shelf-heading h2 { font-size:15px; margin:0; color:#263846; overflow-wrap:anywhere; }
.shelf .shelf-heading small { font-size:11px; white-space:nowrap; }
.shelf-ranking { display:inline-flex; align-items:center; justify-content:center; gap:3px; align-self:center; min-height:42px; padding:0 3px; margin-left:auto; background:transparent; color:var(--green); font-size:12px; white-space:nowrap; }
.shelf-ranking .ui-icon { width:15px; height:15px; }
.shelf .products { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.shelf .product { display:grid; grid-template-columns:clamp(52px,15vw,78px) minmax(0,1fr); align-items:start; gap:2px 10px; padding:9px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:none; }
.shelf-photo { grid-column:1; grid-row:1 / span 2; align-self:start; display:grid; place-items:center; width:100%; aspect-ratio:0.88; background:#f0f5f5; border-radius:9px; overflow:hidden; font-size:29px; }
.shelf-photo img { width:100%; height:100%; object-fit:cover; }
.shelf .details h3 { font-size:15px; line-height:1.35; color:#1d2a34; }
.shelf .product .sub, .stock-info-line { display:block; color:#576674; font-size:11px; line-height:1.4; margin:2px 0 0; overflow-wrap:anywhere; }
.shelf .product .buy-line { grid-column:2; display:flex; flex-wrap:wrap; align-items:center; gap:0 4px; }
.shelf .product .price { font-size:17px; color:#ba2751; }
.shelf .product .price small { font-size:10px; color:#626e79; }
.shelf .product .step { display:flex; margin:0 0 0 auto; }
.shelf .product .step button { display:grid; place-items:center; width:44px; min-width:44px; height:44px; border:0; background:transparent; color:var(--green); border-radius:50%; font-size:20px; }
.shelf .product .step button:not(.sold-out) { position:relative; isolation:isolate; }
.shelf .product .step button:not(.sold-out)::before { content:''; position:absolute; z-index:-1; inset:6px; border-radius:50%; border:1px solid var(--green); }
.shelf .product .step [data-act=plus]:not(.sold-out) { color:#fff; }
.shelf .product .step [data-act=plus]:not(.sold-out)::before { background:var(--green); }
.shelf .product .step button[hidden] { display:none; }
#cartbar .bar { width:min(calc(100% - 20px),836px); margin:0; bottom:calc(62px + env(safe-area-inset-bottom)); border-radius:30px; border:0; background:#202c38; }
#cartbar .bar button:not(.bag-summary) { background:#9ae8c3; color:#103629; border-radius:24px; }
@media(min-width:700px){ .shelf .products { grid-template-columns:repeat(2,minmax(0,1fr)); } .catalog .shelf { padding-inline:16px; } }
@media(max-width:359px){body[data-page=shop] .catalog { grid-template-columns:63px minmax(0,1fr); } .catalog .shelf { padding-inline:6px; } .shelf .product { grid-template-columns:46px minmax(0,1fr); gap:2px 6px; padding:7px; } }
.account-summary { display:grid; gap:4px; margin:4px 0 16px; overflow-wrap:anywhere; }
.account-summary small, #profile-mail-status { color:var(--mute); }
.account-settings { display:grid; gap:7px; }
.account-settings button { text-align:left; background:#f0f4f2; color:var(--ink); }
.account-settings button:last-child { margin-top:8px; color:#8a362c; }
.customer-row,.directory-actions,.support-actions,.record-figures { display:flex; gap:10px; }
.customer-row { justify-content:space-between; align-items:center; }
.customer-row > div:first-child,.record-fields dd,.record-order { min-width:0; overflow-wrap:anywhere; }
.directory-actions,.support-actions { flex-wrap:wrap; }
.customer-file h3 { margin:16px 0 8px; }
.record-fields { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:6px 14px; margin:10px 0 16px; font-size:14px; }
.record-fields dt,.record-figures small,.record-order small,.record-events small { color:var(--mute); }
.record-fields dd { margin:0; }
.record-figures { display:grid; grid-template-columns:1fr 1fr; }
.record-figures div { background:#f0f4f3; border-radius:8px; padding:8px 12px; }
.record-figures b,.record-figures small,.record-events small { display:block; }
.record-order,.record-events li { padding:12px 0; border-top:1px solid var(--line); }
.record-order .lines { margin:7px 0; }
.record-events { padding:0; list-style:none; }
#support-reset p { overflow-wrap:anywhere; }
@media(max-width:520px){ .directory-actions { flex-direction:column; flex-shrink:0; } }
.order-customer { background:transparent; color:#215b61; text-align:left; padding-inline:0; overflow-wrap:anywhere; }
