/* V1STORE dark theme: geometry retained; colors use theme.css tokens. */
body:not(.admin){overflow-x:hidden}
body:not(.admin) .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body:not(.admin) .prod{display:flex;flex-direction:column;aspect-ratio:.92/1;min-height:0;border:1px solid var(--border);border-radius:18px;overflow:hidden;background:var(--bg-main);box-shadow:0 7px 22px rgba(15,23,42,.06)}
body:not(.admin) .prodimg{flex:0 0 43%;aspect-ratio:auto;height:auto;min-height:0;background:var(--bg-main);position:relative;display:grid;place-items:center}
body:not(.admin) .prodimg img{width:100%;height:100%;object-fit:cover}
body:not(.admin) .prod-fallback{font:800 30px/1 "Space Grotesk";color:var(--text-main)}
body:not(.admin) .prodbody{padding:10px 11px 11px;display:flex;flex-direction:column;min-height:0;overflow:hidden}
body:not(.admin) .prodcat{font-size:10px;line-height:1.2;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(.admin) .prod h3{font-size:14px;line-height:1.2;margin:3px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body:not(.admin) .proddesc{font-size:10px;line-height:1.3;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body:not(.admin) .prod-price{min-height:0;margin-top:auto;padding-top:6px}
body:not(.admin) .price{font-size:16px;line-height:1.15}
body:not(.admin) .prod-price s{font-size:9px}
body:not(.admin) .prod-actions{grid-template-columns:1fr 1fr;gap:6px;margin-top:7px}
body:not(.admin) .prod-actions .btn{min-height:34px;height:34px;padding:5px 7px;font-size:11px;border-radius:9px}
body:not(.admin) .chips{gap:4px;margin-top:6px;min-height:20px;overflow:hidden}
body:not(.admin) .chip{font-size:9px;padding:4px 7px;white-space:nowrap}
body:not(.admin) .pill{top:8px;left:8px;font-size:9px;padding:6px 8px}
body:not(.admin) .customer-track-card{max-width:760px;margin:10px auto 18px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;padding:11px 13px;min-height:0}
body:not(.admin) .customer-track-icon{width:34px;height:34px;border-radius:9px}
body:not(.admin) .customer-track-icon svg{width:18px;height:18px}
body:not(.admin) .customer-track-title{font-size:14px}
body:not(.admin) .customer-track-copy p{font-size:11px;margin:2px 0 0;line-height:1.3}
body:not(.admin) .customer-track-action{width:auto;grid-column:auto;min-height:34px;height:34px;padding:6px 11px;font-size:11px;border-radius:9px;margin:0}
body:not(.admin) .payment-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body:not(.admin) .payment-choice{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:10px;min-height:118px;border-radius:14px;text-align:left}
body:not(.admin) .payment-choice img{width:100%;height:56px;object-fit:contain;border-radius:9px;background:var(--bg-main);border:1px solid var(--border)}
body:not(.admin) .payment-choice b{font-size:13px}
body:not(.admin) .payment-choice small{font-size:10px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body:not(.admin) .payment-check{position:absolute;right:8px;top:8px}
body:not(.admin) .payment-image-wrap{margin:12px 0}
body:not(.admin) .payment-method-image{width:min(100%,280px);max-height:220px;object-fit:contain}
@media(max-width:900px){body:not(.admin) .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media(max-width:700px){body:not(.admin) .wrap{padding-left:14px;padding-right:14px}
body:not(.admin) .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body:not(.admin) .prod{aspect-ratio:.88/1;border-radius:15px}
body:not(.admin) .prodimg{flex-basis:42%}
body:not(.admin) .prodbody{padding:8px 9px 9px}
body:not(.admin) .prod h3{font-size:13px}
body:not(.admin) .price{font-size:15px}
body:not(.admin) .prod-actions .btn{height:32px;min-height:32px;font-size:10px}
body:not(.admin) .customer-track-card{grid-template-columns:32px minmax(0,1fr);padding:10px;margin:8px 12px 14px}
body:not(.admin) .customer-track-action{grid-column:1/-1;width:100%}
body:not(.admin) .payment-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body:not(.admin) .payment-choice{min-height:112px}
}
@media(max-width:360px){body:not(.admin) .prod{aspect-ratio:.84/1}
body:not(.admin) .prod h3{font-size:12px}
body:not(.admin) .prod-actions{gap:4px}
body:not(.admin) .prod-actions .btn{font-size:9px;padding:4px}
}
.v1-server-login{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--bg-card);box-sizing:border-box}
.v1-server-login-card{width:min(420px,100%);background:var(--bg-card);border:1px solid var(--border);border-radius:20px;padding:28px;box-shadow:0 18px 60px rgba(15,23,42,.10);box-sizing:border-box}
.v1-server-login-brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.v1-server-login-brand img{width:44px;height:44px;object-fit:contain}
.v1-server-login-brand strong{display:block;font-size:18px}
.v1-server-login-brand span{display:block;color:var(--text-secondary);font-size:13px;margin-top:2px}
.v1-server-login-card label{display:block;font-size:13px;font-weight:700;margin:12px 0 6px}
.v1-server-login-card input{width:100%;height:44px;border:1px solid var(--border);border-radius:12px;padding:0 12px;box-sizing:border-box;background:var(--bg-input);color:var(--text-main)}
.v1-server-login-card input:focus{outline:0;border-color:var(--accent-border);box-shadow:0 0 0 3px rgba(229,38,49,.10)}
#v1-customer-auth{display:inline-flex;margin-left:8px}
.v1-server-login-card .btn{min-height:44px}
@media(max-width:720px){.v1-server-login{padding:16px}
.v1-server-login-card{padding:22px;border-radius:18px}
#v1-customer-auth{margin-left:0}
.navlinks{flex-wrap:wrap}
}
/* V1STORE IMAGE/PAYMENT FIX — no architecture change */
body:not(.admin) .prod{display:flex;flex-direction:column;aspect-ratio:auto;min-height:0}
body:not(.admin) .prodimg{flex:0 0 auto;width:100%;aspect-ratio:1/1;height:auto;min-height:0;max-height:none;overflow:hidden;background:var(--bg-main);display:block;position:relative}
body:not(.admin) .prodimg img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
body:not(.admin) .prodimg .prod-fallback{width:100%;height:100%;display:grid;place-items:center}
body:not(.admin) .prodbody{flex:1 1 auto;min-width:0}
.payment-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.payment-choice{user-select:none;-webkit-tap-highlight-color:transparent;min-height:76px}
.payment-choice[aria-checked="true"]{border-color:var(--primary);box-shadow:0 0 0 2px rgba(229,38,49,.12)}
.payment-choice img{object-fit:contain;background:var(--bg-card);border:1px solid var(--v1-line)}
.payment-choice .payment-check{flex:0 0 18px}
.payment-image-wrap{width:100%;display:flex;justify-content:center;align-items:center}
.payment-method-image{display:block;width:min(100%,360px);max-width:100%;height:auto;max-height:320px;object-fit:contain}
.checkout-product-thumb{width:64px;height:64px;flex:0 0 64px;border-radius:12px;object-fit:cover;object-position:center;background:var(--bg-card);border:1px solid var(--v1-line);display:block}
.checkout-product-row{display:flex;align-items:center;gap:12px;margin:10px 0;padding:10px;border:1px solid var(--v1-line);border-radius:14px;background:var(--bg-card)}
.checkout-product-meta{min-width:0;flex:1}
.checkout-product-meta b,.checkout-product-meta span{display:block;overflow-wrap:anywhere}
@media(max-width:760px){body:not(.admin) .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body:not(.admin) .prodimg{aspect-ratio:1/1}
.payment-choice-grid{grid-template-columns:1fr;gap:8px}
.payment-choice{grid-template-columns:64px minmax(0,1fr) 22px;min-height:78px;padding:10px}
.payment-choice img{width:64px;height:48px}
.payment-method-image{max-height:260px}
.checkout-product-thumb{width:58px;height:58px;flex-basis:58px}
}
#v1-customer-tracking-card{position:relative}
body.admin-open #v1-customer-tracking-card{display:none}
@media(max-width:700px){#v1-customer-tracking-card{margin:12px;padding:15px}
#v1-customer-tracking-card .btn{width:100%;margin-top:8px}
#v1-customer-track-btn{width:auto}
}
/* V1STORE PRODUCT CARDS — COMPACT SQUARE / MOBILE FIRST */
.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.prod{border:1px solid var(--v1-line);border-radius:16px;overflow:hidden;min-width:0;background:var(--bg-card);box-shadow:0 7px 22px rgba(15,23,42,.06)}
.prodimg{position:relative;aspect-ratio:1/1;height:auto;min-height:0;overflow:hidden;background:var(--bg-card)}
.prodimg img{width:100%;height:100%;object-fit:cover;display:block}
.prod-fallback{width:100%;height:100%;display:grid;place-items:center;color:var(--text-main);font:700 28px/1 "Space Grotesk"}
.prodbody{padding:10px 11px 11px;min-width:0}
.prodbody .prodcat{font-size:9px;line-height:1.2;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 3px}
.prodbody .prodname{font-size:14px;line-height:1.22;font-weight:700;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px;color:var(--ink)}
.prod-price{min-height:36px;display:flex;align-items:flex-end;gap:5px;flex-wrap:wrap;margin:0}
.prod-price .price{font-size:16px;line-height:1.1;font-weight:800;color:var(--primary)}
.prod-price s{font-size:9px;line-height:1.1}
.prod-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
.prod-actions .btn{min-height:34px;height:34px;padding:6px 7px;font-size:11px;border-radius:9px;white-space:nowrap}
.prod .chips{display:flex;gap:4px;margin:7px 0 0;max-height:22px;overflow:hidden}
.prod .chip{font-size:9px;padding:3px 6px;white-space:nowrap}
.prod .pill{left:7px;top:7px;padding:4px 7px;font-size:9px;z-index:2}
@media(max-width:1100px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.prod{border-radius:14px}
.prodimg{aspect-ratio:1/0.92}
.prodbody{padding:9px}
.prodbody .prodname{font-size:13px;min-height:32px}
.prod-price .price{font-size:15px}
.prod-actions{gap:5px}
.prod-actions .btn{min-height:32px;height:32px;font-size:10px;padding:5px 4px}
.prod .chip{font-size:8px;padding:3px 5px}
}
@media(max-width:360px){.grid{gap:8px}
.prodbody{padding:8px}
.prodbody .prodname{font-size:12px;min-height:30px}
.prod-price .price{font-size:14px}
.prod-actions .btn{font-size:9px}
}
