/* Production extensions to the reviewed V2 design system. */
@import url('./shop.css?v=20261112-7');
/* The storefront fills the device viewport; presentation framing lives in the design preview. */
:root{--shell-center:50%;--shell-width:100%;background:var(--bg)}
body{background:var(--bg)}
.app-shell{width:100%;margin:0;box-shadow:none}
#header{padding-top:env(safe-area-inset-top,0px)}
.sheet{max-width:560px}
.product-body .price-row{margin-top:10px}
.login-support{justify-content:flex-end;margin:-12px 0 4px}
.login-welcome{margin:8px 0 28px}
.login-welcome h1{margin-bottom:0}
.login-agreement{display:block;margin:12px 0 20px;line-height:1.9}
/* Order confirmation keeps buyer, goods, costs and payment together on small screens. */
[data-page="checkout"] .topbar{height:52px;padding-block:4px}
[data-page="checkout"] #main{min-height:calc(100dvh - 52px - env(safe-area-inset-top,0px));padding-bottom:calc(var(--bottom-space) + 8px)}
.checkout-content{padding:8px 12px;gap:8px}
.checkout-content .card{padding:10px 12px;border-radius:14px}
.checkout-content .row{gap:10px}
.checkout-content .address-icon{width:28px;height:32px;border-radius:9px}
.checkout-content .address-icon svg{width:18px;height:18px}
.checkout-content .address-card h3{font-size:14px;margin-bottom:2px}
.checkout-content .address-card p{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.checkout-content .address-card .muted{font-size:12px;margin-left:6px;font-weight:400}
.checkout-content .shop-label{gap:5px;margin-bottom:8px;font-size:12px;font-weight:500}
.checkout-content .shop-label svg{width:15px;height:15px}
.checkout-shop-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.checkout-delivery{color:var(--muted);font-size:11px;white-space:nowrap;flex-shrink:0}
.checkout-goods .order-items{gap:10px}
.checkout-item{align-items:flex-start}
.checkout-item .item-image{width:56px;height:56px;border-radius:8px}
.checkout-item .item-info h3{font-size:13px;line-height:1.4}
.checkout-item .item-info>.muted{font-size:11px;line-height:1.4;margin:3px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.checkout-item .item-bottom .price{font-size:17px}
.checkout-item .item-bottom>.muted{font-size:12px;margin:0}
.checkout-costs .info-line{min-height:26px;font-size:12px;gap:10px}
.checkout-costs .checkout-remarks{border-top:1px solid var(--line);margin-top:6px;padding-top:2px}
.checkout-remarks .note-field{min-height:44px;padding:8px 0;font-size:16px}
.checkout-remarks .note-field::placeholder{font-size:13px}
.checkout-content .checkout-payment{padding-block:8px}
.checkout-payment .row{min-height:36px}
.checkout-payment .alipay-mark{width:32px;height:32px;object-fit:contain;flex-shrink:0}
.checkout-payment .item-info h3{font-size:14px}
.checkout-payment .payment-status{font-size:11px}
.checkout-payment .pay-tip{margin-top:6px;padding-top:6px;font-size:11px}
.checkout-content .error-message{margin:0;padding:8px 10px}
[data-page="checkout"] .checkout-dock{min-height:68px;padding:8px 12px calc(8px + var(--safe));gap:10px}
.checkout-dock .summary{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.checkout-dock .summary-label{margin:0;line-height:1.4}
.checkout-dock .summary .price{font-size:26px}
[data-page="checkout"] .checkout-dock .primary-btn{min-height:46px;border-radius:12px;font-size:15px}
.error-message{padding:12px 14px;background:#fff0eb;border:1px solid #f4c6b7;border-radius:12px;color:#ac3516;font-size:13px;line-height:1.7;margin:12px 0}
.error-message:empty{display:none}.busy{opacity:.7;pointer-events:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.product-gallery{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;background:white}.product-gallery img{flex:0 0 100%;width:100%;height:auto;aspect-ratio:1;object-fit:contain;scroll-snap-align:start}
.detail-copy{white-space:pre-line;overflow-wrap:anywhere;font-size:14px;line-height:1.9}.detail-images{display:grid;gap:8px}.detail-images img{border-radius:12px;height:auto;object-fit:contain}.review-card{border-bottom:1px solid var(--line);padding:12px 0}.review-card:last-child{border:0}
.load-more{width:100%;margin-top:16px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-field select{width:100%;min-height:52px;padding:12px;border:1px solid #dcded4;border-radius:14px;background:#fff;font-size:15px}.checkbox-row{display:flex;align-items:center;gap:8px;min-height:48px}.checkbox-row input{width:22px;height:22px;accent-color:var(--primary)}
.address-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);margin-top:12px;padding-top:8px}.address-pick{text-align:left;width:100%;min-height:88px}.sheet-options{max-height:40dvh;overflow:auto;margin:12px 0;overscroll-behavior:contain}.sheet-options .sku-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.sku-options button{text-align:left;overflow-wrap:anywhere;font-size:12px;padding:10px}.sku-options button small{display:block;color:var(--muted);margin-top:3px}.sku-options button:disabled{opacity:.55}.sheet .primary-btn{margin-top:16px}.sheet-actions{background:var(--cream);padding-top:12px}.sheet-product-title{font-size:13px;color:var(--muted);margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.close-sheet{align-self:flex-start}
.order-actions{flex-wrap:wrap}.order-actions .primary-btn{min-height:44px;font-size:14px;padding:9px 16px}.order-items{display:grid;gap:16px}.order-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:13px}.order-heading span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-state{padding:24px 20px;background:linear-gradient(135deg,#f9e3cf,#fff6e5)}.order-state h1{font-size:24px}.order-state p{margin-top:8px;color:#7b624a;font-size:13px}.info-line .copy-btn{min-width:44px;min-height:44px;color:var(--primary)}
[data-page="order"] .bottom-action .order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;margin:0}[data-page="order"] .bottom-action .order-actions>.primary-btn,[data-page="order"] .bottom-action .order-actions>.outline-btn{width:100%;min-height:48px;border-radius:14px;font-size:14px;padding:10px 12px}[data-page="order"] .bottom-action .order-actions>:only-child{grid-column:1/-1}
.empty-state .primary-btn{margin:8px}.result-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.help-row summary{cursor:pointer;min-height:44px;font-weight:600}.help-row p{margin-top:10px}.article-list a{display:flex;justify-content:space-between;align-items:center;min-height:52px;border-bottom:1px solid var(--line)}.refund-status{font-size:13px;color:var(--primary)}.bottom-action .summary{flex:1}.tab-count{font-size:10px;background:#fce1d3;color:var(--primary);border-radius:10px;padding:0 5px;margin-left:3px}.online-note{padding:12px 16px;background:#fff1df;font-size:12px}.online-note[hidden]{display:none}.profile-stats a{font-size:13px;display:flex;align-items:center;justify-content:center;gap:6px}.profile-stats svg{width:18px}.login-content{padding-bottom:30px}.login-terms input{margin:10px 8px 0 0}.article-content{line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}.back:focus{outline-offset:-3px}
@media(max-width:359px){.field-grid{grid-template-columns:1fr}.sheet{padding-inline:16px}.order-actions .outline-btn,.order-actions .primary-btn{padding-inline:12px}.hero-sticker{display:none}}
@media(min-width:600px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.hero-image{max-width:420px}.product-gallery{max-height:min(64dvh,560px)}.product-gallery img{height:min(64dvh,560px);aspect-ratio:auto}.detail-images{justify-items:center}.detail-images img{max-width:720px}.login-content{max-width:520px;margin:0 auto}}
