.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.5rem}
.shop-card{display:flex;flex-direction:column;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--r);overflow:hidden;transition:all var(--dur) var(--ease)}
.shop-card:hover{box-shadow:var(--sh-md);transform:translateY(-3px)}
.shop-card-media{position:relative;display:block;aspect-ratio:1/1;background:var(--bg-3);overflow:hidden}
.shop-card-media img,.shop-product-media img,.shop-cart-img img{width:100%;height:100%;object-fit:contain;background:#fff}
.shop-noimg{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:2.4rem;color:var(--brand-light);opacity:.5}
.shop-flag{position:absolute;top:.6rem;left:.6rem;padding:.2rem .6rem;border-radius:var(--r-pill);background:#111;color:#fff;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.shop-flag-sale{background:var(--danger)}
.shop-card-body{display:flex;flex-direction:column;gap:.6rem;padding:1rem 1.1rem 1.2rem;flex:1}
.shop-card-body h3{font-size:1rem;font-weight:700;line-height:1.3}
.shop-card-body h3 a:hover{color:var(--brand)}
.shop-card-body form,.shop-card-body>.btn{margin-top:auto}
.shop-card-body .btn{width:100%}
.shop-price{font-weight:800;color:var(--txt)}
.shop-price s{margin-left:.4rem;font-weight:500;color:var(--txt-3);font-size:.85em}
.shop-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem;color:var(--txt-3);font-size:.9rem}
.shop-sort{display:flex;flex-wrap:wrap;gap:.5rem}
.shop-h1{font-size:clamp(1.7rem,3.5vw,2.4rem);font-weight:800;margin-bottom:1.5rem}
.shop-h2{font-size:1.15rem;margin:1.75rem 0 .6rem}
.shop-crumb{justify-content:flex-start}
.shop-product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3rem);align-items:start}
.shop-product-media{aspect-ratio:1/1;border-radius:var(--r);overflow:hidden;background:var(--bg-3);border:1px solid var(--border-subtle)}
.shop-product-info h1{font-size:clamp(1.6rem,3.2vw,2.3rem);font-weight:800;margin-bottom:.8rem}
.shop-product-price{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;font-size:1.4rem;margin-bottom:1rem}
.shop-product-summary{color:var(--txt-2);margin-bottom:1.25rem}
.shop-stock{font-size:.75rem;font-weight:700;padding:.2rem .7rem;border-radius:var(--r-pill)}
.shop-stock-ok{background:rgba(30,142,90,.12);color:var(--success)}
.shop-stock-low{background:rgba(183,121,31,.14);color:var(--warn)}
.shop-stock-out{background:rgba(192,57,43,.12);color:var(--danger)}
.shop-buy{display:flex;flex-wrap:wrap;gap:.75rem;align-items:stretch;margin-bottom:1rem}
.shop-qty{width:84px;padding:.7rem .6rem;text-align:center;background:var(--bg-card);border:1.5px solid var(--border);border-radius:var(--r-sm);font:inherit;color:var(--txt)}
.shop-note{font-size:.85rem;color:var(--txt-3);margin-top:.75rem}
.shop-note i{color:var(--brand-light);margin-right:.35rem}
.shop-desc{max-width:72ch;margin:3rem auto 0}
.shop-cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:2rem;align-items:start}
.shop-cart-row{display:grid;grid-template-columns:72px minmax(0,1fr) 84px 110px 40px;gap:1rem;align-items:center;padding:1rem 0;border-bottom:1px solid var(--border-subtle)}
.shop-cart-img{width:72px;height:72px;border-radius:var(--r-sm);overflow:hidden;background:var(--bg-3)}
.shop-cart-info{display:flex;flex-direction:column;min-width:0}
.shop-cart-name{font-weight:700;overflow-wrap:anywhere}
.shop-cart-name:hover{color:var(--brand)}
.shop-cart-unit{font-size:.85rem;color:var(--txt-3)}
.shop-cart-total{text-align:right}
.shop-remove{width:40px;height:40px;border-radius:50%;color:var(--txt-3)}
.shop-remove:hover{color:var(--danger);background:var(--bg-2)}
.shop-cart-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.75rem;margin-top:1.25rem}
.shop-summary{background:var(--bg-1);border:1px solid var(--border);border-radius:var(--r);padding:1.5rem;position:sticky;top:calc(var(--nav-h) + 1rem)}
.shop-summary h2{font-size:1.1rem;margin-bottom:1rem}
.shop-sum-row,.shop-sum-item{display:flex;justify-content:space-between;gap:1rem;padding:.4rem 0;font-size:.92rem}
.shop-sum-item{color:var(--txt-2)}
.shop-sum-total{border-top:1px solid var(--border);margin-top:.5rem;padding-top:.8rem;font-weight:800;font-size:1.1rem}
.shop-block{display:flex;width:100%;margin-top:1rem}
.shop-form h2{font-size:1.2rem;margin:0 0 1rem}
.shop-form h2:not(:first-of-type){margin-top:1.75rem}
.shop-form .field input[type=tel]{width:100%;padding:.75rem 1rem;background:var(--bg-card);border:1.5px solid var(--border);border-radius:var(--r-sm);font:inherit;color:var(--txt)}
.shop-two{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.shop-methods{display:grid;gap:.6rem}
.shop-method,.shop-check{display:flex;align-items:center;gap:.7rem;padding:.85rem 1rem;border:1.5px solid var(--border);border-radius:var(--r-sm);background:var(--bg-card);cursor:pointer;font-weight:600}
.shop-check{margin-bottom:.6rem}
.shop-method:has(input:checked){border-color:var(--brand);background:var(--brand-dim)}
.shop-badges{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:1.25rem}
.shop-when{font-size:.85rem;color:var(--txt-3)}
.shop-status{display:inline-flex;padding:.25rem .75rem;border-radius:var(--r-pill);font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:var(--bg-2);color:var(--txt-2)}
.shop-status-processing,.shop-status-shipped{background:var(--brand-dim);color:var(--brand)}
.shop-status-delivered,.shop-pay-paid{background:rgba(30,142,90,.12);color:var(--success)}
.shop-status-cancelled{background:rgba(192,57,43,.12);color:var(--danger)}
.shop-status-pending,.shop-pay-unpaid{background:rgba(183,121,31,.14);color:var(--warn)}
.shop-paybox{background:var(--bg-1);border:1px solid var(--border);border-radius:var(--r);padding:1.1rem 1.25rem;margin-bottom:1.5rem}
.shop-paybox p+p,.shop-paybox p+.btn{margin-top:.6rem}
.shop-order-items{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--r);padding:1rem 1.25rem}
.shop-addr{line-height:1.8;overflow-wrap:anywhere}
.shop-admin .field input[type=text],.shop-admin .field select,.shop-admin .field textarea,.shop-admin .field input[type=password]{width:100%;padding:.7rem .9rem;background:var(--bg-1);border:1.5px solid var(--border);border-radius:var(--r-sm);font:inherit;color:var(--txt)}
.shop-admin form{padding:1rem 1.25rem}
.shop-admin>header+p,.shop-admin>.shop-order-items,.shop-admin>.shop-addr,.shop-admin>.shop-h2,.shop-admin>p{margin-left:1.25rem;margin-right:1.25rem}
.shop-admin-row{display:flex;align-items:center;gap:1rem;color:inherit}
.shop-admin-main{flex:1;min-width:0}
.shop-admin-main small{display:block;color:var(--txt-3)}
.shop-admin-thumb{width:48px;height:48px;border-radius:8px;overflow:hidden;background:var(--bg-3);flex:none}
.shop-admin-thumb img,.shop-admin-photo img{width:100%;height:100%;object-fit:cover}
.shop-admin-photo{display:flex;align-items:center;gap:1rem;margin-bottom:.6rem}
.shop-admin-photo img{width:96px;height:96px;border-radius:8px}
.shop-admin-actions{display:flex;gap:.4rem}
.shop-admin-actions form{padding:0}
.shop-admin-forms{padding:0 .25rem}
.shop-inline{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.shop-inline select{padding:.5rem .8rem;border:1.5px solid var(--border);border-radius:var(--r-sm);background:var(--bg-1);color:var(--txt);font:inherit}
@media (max-width:900px){.shop-product,.shop-cart-layout{grid-template-columns:1fr}.shop-summary{position:static}}
@media (max-width:640px){.shop-cart-row{grid-template-columns:64px minmax(0,1fr) 40px;grid-template-areas:"i n r" "i q t"}.shop-cart-img{grid-area:i;width:64px;height:64px}.shop-cart-info{grid-area:n}.shop-remove{grid-area:r}.shop-cart-row .shop-qty{grid-area:q;width:84px}.shop-cart-total{grid-area:t}.shop-two{grid-template-columns:1fr}.shop-grid{grid-template-columns:repeat(2,1fr);gap:1rem}.shop-admin-row{flex-wrap:wrap}}
.shop-product-media{aspect-ratio:auto;border:0;background:none;overflow:visible}
.shop-main{aspect-ratio:1/1;border-radius:var(--r);overflow:hidden;background:var(--bg-3);border:1px solid var(--border-subtle)}
.shop-main img{width:100%;height:100%;object-fit:cover}
.shop-thumbs{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.75rem}
.shop-thumb{width:68px;height:68px;border-radius:var(--r-sm);overflow:hidden;border:2px solid transparent;background:var(--bg-3);padding:0}
.shop-thumb.active{border-color:var(--brand)}
.shop-thumb img{width:100%;height:100%;object-fit:cover}
.shop-grid{gap:clamp(1rem,2.4vw,1.75rem)}
.shop-card{border-radius:calc(var(--r)*1.25);border-color:var(--border-subtle);box-shadow:0 1px 2px rgba(0,0,0,.04)}
.shop-card:hover{transform:translateY(-4px);box-shadow:var(--sh-md)}
.shop-card-media img{transition:transform .5s var(--ease)}
.shop-card:hover .shop-card-media img{transform:scale(1.06)}
.shop-card-body h3{font-size:.98rem;font-weight:650;letter-spacing:-.005em}
.shop-price{font-variant-numeric:tabular-nums;font-size:1.02rem}
.shop-flag{border-radius:6px;padding:.25rem .55rem;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.shop-flag-out{background:#374151}
.shop-flag-low{background:var(--warn);color:#fff}
.shop-save{display:inline-block;padding:.2rem .6rem;border-radius:var(--r-pill);background:var(--danger);color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.02em}
.shop-trust{border-block:1px solid var(--border-subtle);background:var(--bg-1)}
.shop-trust ul{list-style:none;margin:0;padding:1rem 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.shop-trust li{display:flex;align-items:center;gap:.8rem;font-size:.88rem;color:var(--txt-2)}
.shop-trust li i{width:2.4rem;height:2.4rem;display:grid;place-items:center;border-radius:50%;background:var(--brand-dim);color:var(--brand);flex:none}
.shop-trust li span{display:flex;flex-direction:column;line-height:1.35}
.shop-trust li strong{color:var(--txt);font-size:.92rem}
.shop-trust li a{color:var(--brand);font-weight:600}
.shop-stepper{display:inline-flex;align-items:stretch;border:1.5px solid var(--border);border-radius:var(--r-sm);background:var(--bg-card);overflow:hidden}
.shop-stepper button{width:2.4rem;border:0;background:transparent;color:var(--txt);font-size:1.15rem;cursor:pointer}
.shop-stepper button:hover{background:var(--bg-2)}
.shop-stepper .shop-qty{width:3.2rem;border:0;border-radius:0;padding:.7rem 0;-moz-appearance:textfield;appearance:textfield}
.shop-stepper .shop-qty::-webkit-outer-spin-button,.shop-stepper .shop-qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.shop-cart-row .shop-stepper{justify-self:start}
.shop-cart-row{grid-template-columns:72px minmax(0,1fr) auto 110px 40px}
.shop-assure{list-style:none;margin:1rem 0 0;padding:1rem 0 0;border-top:1px solid var(--border-subtle);display:grid;gap:.55rem;font-size:.88rem;color:var(--txt-2)}
.shop-assure i{color:var(--brand);width:1.2rem;margin-right:.35rem}
.shop-assure a{color:var(--brand);font-weight:600}
.shop-progress{height:8px;border-radius:99px;background:var(--bg-3);overflow:hidden;margin-top:1rem}
.shop-progress span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--brand),var(--brand-light));transition:width .4s var(--ease)}
.shop-note-ok{color:var(--success);font-weight:600}
.shop-note-ok i{color:var(--success)}
.shop-summary{border-radius:calc(var(--r)*1.25);box-shadow:var(--sh-sm)}
.shop-buy .btn-lg{flex:1;min-width:12rem;justify-content:center}
.shop-sticky{display:none}
:where(.shop-card a,.shop-stepper button,.shop-thumb,.shop-remove,.shop-buy .btn):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (max-width:900px){.shop-trust ul{grid-template-columns:1fr;gap:.6rem}}
@media (max-width:640px){.shop-cart-row{grid-template-columns:64px minmax(0,1fr) 40px}.shop-trust li i{width:2rem;height:2rem}
.shop-sticky{position:fixed;left:0;right:0;bottom:0;z-index:80;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.7rem 1rem calc(.7rem + env(safe-area-inset-bottom,0px));background:var(--bg-card);border-top:1px solid var(--border);box-shadow:0 -8px 24px rgba(0,0,0,.12)}
.shop-sticky-info{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.shop-sticky-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}
.shop-sticky-info span{font-weight:800}
.theme-fab{bottom:5rem}}
@media (prefers-reduced-motion:reduce){.shop-card,.shop-card-media img,.shop-progress span{transition:none}.shop-card:hover{transform:none}.shop-card:hover .shop-card-media img{transform:none}}
.shop-brand{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--txt-3)}
.shop-brand-lg{margin:0 0 .35rem;font-size:.8rem}
.shop-meta{display:flex;flex-wrap:wrap;gap:.4rem 1rem;margin:-.3rem 0 .9rem;font-size:.82rem;color:var(--txt-3)}
.shop-specs{max-width:72ch;margin:2.5rem auto 0}
.shop-specs h2{font-size:1.2rem;margin-bottom:1rem}
.shop-specs dl{margin:0;border:1px solid var(--border-subtle);border-radius:var(--r);overflow:hidden}
.shop-specs dl>div{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:1rem;padding:.7rem 1rem}
.shop-specs dl>div:nth-child(odd){background:var(--bg-1)}
.shop-specs dt{font-weight:650;color:var(--txt-2)}
.shop-specs dd{margin:0;overflow-wrap:anywhere}
.shop-specs ul{margin:1rem 0 0;padding-left:1.2rem;color:var(--txt-2)}
.shop-attrs{border:1px solid var(--border);border-radius:var(--r);padding:1rem 1.25rem;margin:0 0 1.25rem}
.shop-attrs legend{padding:0 .5rem;font-weight:700}
.shop-attrs select{width:100%;padding:.7rem .9rem;background:var(--bg-1);border:1.5px solid var(--border);border-radius:var(--r-sm);font:inherit;color:var(--txt)}
.shop-attrs .field input[type=text]{width:100%}
@media (max-width:640px){.shop-specs dl>div{grid-template-columns:1fr;gap:.2rem}}
.shop-coupon{display:flex;gap:.5rem;margin-top:1rem}
.shop-coupon input[type=text]{flex:1;min-width:0;padding:.6rem .8rem;border:1.5px solid var(--border);border-radius:var(--r-sm);background:var(--bg-card);color:var(--txt);font:inherit;text-transform:uppercase}
.shop-coupon .shop-note{margin:0}
.shop-sum-discount{color:var(--success);font-weight:600}
.shop-note-err{color:var(--danger)}
.shop-link{border:0;background:none;padding:0;color:var(--brand);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}

.shop-variant-field{flex:1 1 100%;display:grid;gap:.35rem}
.shop-variant-field label{font-weight:600}
.shop-variant-field select{padding:.7rem .8rem;background:var(--bg-card);border:1.5px solid var(--border);border-radius:var(--r-sm);font:inherit;color:var(--txt)}
.shop-cart-variant{display:block;font-size:.85rem;color:var(--txt-muted,inherit);opacity:.8}
.shop-variant-head,.shop-variant-row{display:grid;grid-template-columns:2fr 1.2fr 1fr 1fr 1.6fr;gap:.5rem;margin-bottom:.5rem}
.shop-variant-head{font-size:.8rem;font-weight:600;opacity:.75}
.shop-variant-row input{min-width:0;width:100%}
.shop-hint{font-size:.85rem;opacity:.8;margin:0 0 .75rem}
.shop-variant-photo{display:grid;gap:.35rem;min-width:0;align-content:start}.shop-variant-photo img{width:56px;height:56px;object-fit:cover;border-radius:var(--r-sm)}.shop-variant-photo label{font-size:.8rem}
@media (max-width:640px){.shop-variant-head{display:none}.shop-variant-row{grid-template-columns:1fr 1fr}.shop-variant-photo{grid-column:1/-1}}
.shop-card{position:relative}
.shop-wish{margin:0}
.shop-card>.shop-wish{position:absolute;top:.6rem;right:.6rem;z-index:3}
.shop-wish-btn{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--bg-card);border:1px solid var(--border);color:var(--txt-3);box-shadow:var(--sh-sm);transition:all var(--dur) var(--ease)}
.shop-wish-btn:hover{color:var(--danger);border-color:var(--danger);transform:scale(1.08)}
.shop-wish-btn.is-on{color:var(--danger);border-color:var(--danger)}
.shop-wish-lg .shop-wish-btn{width:auto;height:auto;border-radius:var(--r-pill);padding:.6rem 1.2rem;gap:.55rem;font-size:.9rem;font-weight:600;box-shadow:none}
.shop-wish-row{margin-bottom:1rem}
.shop-save-addr{display:flex;align-items:center;gap:.55rem;font-size:.9rem;margin:-.25rem 0 1.1rem}
.shop-card-media,.shop-main,.shop-cart-img{background:var(--bg-card,#fff)}
.shop-card-media img,.shop-main img,.shop-cart-img img{display:block;width:100%;height:100%;object-fit:var(--shop-img-fit,cover);object-position:center;background:transparent}
.shop-main{display:flex;align-items:center;justify-content:center}
.shop-thumb img{display:block}
@media(max-width:640px){.shop-card-body{padding:.8rem .85rem 1rem}.shop-card-body h3{font-size:.92rem}}

html{-webkit-text-size-adjust:100%}
@media(max-width:640px){
body{overflow-x:hidden}
.shop-block input,.shop-block select,.shop-block textarea,.shop-qty,.shop-toolbar select,.shop-coupon input{font-size:16px;min-height:48px}
.btn,.shop-buy .btn,.shop-cart-actions .btn,.shop-check .btn{min-height:50px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.shop-stepper button{min-width:48px;min-height:48px}
.shop-remove,.shop-wish-btn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.shop-toolbar{flex-direction:column;align-items:stretch;gap:.75rem}
.shop-toolbar form,.shop-toolbar select{width:100%}
.shop-grid{gap:.75rem}
.shop-product{gap:1rem}
.shop-main{border-radius:var(--r-sm,8px)}
.shop-thumbs{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:.25rem;scrollbar-width:none}
.shop-thumbs::-webkit-scrollbar{display:none}
.shop-thumbs>*{flex:0 0 64px;scroll-snap-align:start}
.shop-cart-row .shop-qty{width:96px}
.shop-summary,.shop-paybox,.shop-check{padding-left:1rem;padding-right:1rem}
.shop-sticky{padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right))}
.shop-sticky .btn{min-width:130px;margin-top:0}
body:has(.shop-sticky){padding-bottom:calc(5rem + env(safe-area-inset-bottom,0px))}
.shop-crumb{overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.shop-crumb::-webkit-scrollbar{display:none}
.shop-order-items,.shop-specs{overflow-x:auto}
}
@media(max-width:360px){.shop-grid{grid-template-columns:1fr}}
@media(hover:none){.shop-card:hover{transform:none}.shop-card:hover .shop-card-media img{transform:none}}

.shop-product{grid-template-columns:minmax(0,480px) minmax(0,1fr)}
.shop-product-media{min-width:0;max-width:480px;width:100%}
@media(max-width:900px){.shop-product{grid-template-columns:minmax(0,1fr)}.shop-product-media{max-width:420px;margin-inline:auto}}
@media(hover:none){html body .shop-card:hover{transform:none}html body .shop-card:hover .shop-card-media img{transform:none}}

@media(max-width:640px){
.cat-filter{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-inline:-1rem;padding:.15rem 1rem .4rem;margin-bottom:1.25rem}
.cat-filter::-webkit-scrollbar,.shop-sort::-webkit-scrollbar{display:none}
.cat-pill{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:.4rem 1rem;font-size:.82rem}
.shop-sort{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-inline:-1rem;padding:.15rem 1rem}
}

html body .btn{min-height:46px;line-height:1.25;gap:.55rem;text-align:center;-webkit-appearance:none;appearance:none;user-select:none;-webkit-tap-highlight-color:transparent;transition-property:transform,box-shadow,background,background-position,color,border-color,filter;transition-duration:.22s;transition-timing-function:ease}
html body .btn.btn-sm{min-height:40px}
html body .btn.btn-lg{min-height:52px}
html body .btn i,html body .btn svg{flex:none;font-size:.95em;line-height:1}
html body .btn:active:not(:disabled){transform:translateY(1px) scale(.98)}
html body .btn:disabled,html body .btn[aria-disabled=true]{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none;filter:grayscale(.25)}
html body .btn:focus-visible,html body .shop-stepper button:focus-visible,html body .shop-remove:focus-visible,html body .shop-method:focus-within{outline:3px solid var(--brand-dim,rgba(28,126,255,.35));outline-offset:2px}
html body .btn.is-loading{position:relative;pointer-events:none;color:transparent}
html body .btn.is-loading::after{content:"";position:absolute;width:1.15rem;height:1.15rem;border-radius:50%;border:2px solid #fff;border-right-color:transparent;animation:pl-spin .7s linear infinite}
@keyframes pl-spin{to{transform:rotate(360deg)}}

html body .shop-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));align-items:stretch}
html body .shop-card{height:100%;min-width:0}
html body .shop-card-media{flex:none}
html body .shop-card-media img{width:100%;height:100%;object-fit:cover}
html body .shop-card-body{gap:.5rem;min-width:0}
html body .shop-card-body h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em;overflow-wrap:anywhere}
html body .shop-card-body .shop-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:.15rem .5rem;font-weight:800;margin-top:auto}
html body .shop-card-body .shop-price s{font-weight:500;font-size:.85em;opacity:.6}
html body .shop-card-body>.btn,html body .shop-card-body form{margin-top:.35rem}
html body .shop-card-body form .btn{width:100%}
html body .shop-flag{z-index:2;white-space:nowrap}

html body .shop-toolbar{align-items:center}
html body .shop-toolbar select,html body .shop-sort select{min-height:44px;max-width:100%}
html body .shop-sort>a,html body .shop-sort>button{flex:none;display:inline-flex;align-items:center;min-height:40px;padding:0 1rem;white-space:nowrap}

html body .shop-product{align-items:start}
html body .shop-product-media{position:sticky;top:calc(var(--nav-h,70px) + 1rem)}
html body .shop-product-price{font-weight:800}
html body .shop-buy{align-items:center;gap:.75rem}
html body .shop-buy .shop-stepper{flex:none}
html body .shop-buy .btn-lg{flex:1 1 12rem;min-width:0}
html body .shop-stepper{min-height:48px;align-items:center}
html body .shop-stepper button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;touch-action:manipulation}
html body .shop-stepper .shop-qty{text-align:center;min-height:44px;padding:0;font-weight:700}
html body .shop-thumbs{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}
html body .shop-thumb{flex:none;width:64px;height:64px;padding:0;overflow:hidden}
html body .shop-thumb img{width:100%;height:100%;object-fit:cover}
html body .shop-trust li{min-width:0}
html body .shop-specs dl>div{gap:1rem}

html body .shop-cart-row{align-items:center}
html body .shop-cart-name{overflow-wrap:anywhere;font-weight:700}
html body .shop-cart-total{font-weight:800;text-align:right;white-space:nowrap}
html body .shop-remove{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;padding:0}
html body .shop-cart-actions{align-items:center}
html body .shop-cart-actions .btn{flex:0 1 auto}
html body .shop-summary .btn{width:100%;margin-top:.75rem}
html body .shop-sum-row,html body .shop-sum-item{display:flex;justify-content:space-between;gap:1rem;align-items:baseline}
html body .shop-sum-total{display:flex;justify-content:space-between;gap:1rem;font-weight:800;font-size:1.1rem;padding-top:.75rem;margin-top:.5rem;border-top:1px solid var(--border-subtle)}
html body .shop-coupon{display:flex;gap:.5rem;align-items:stretch}
html body .shop-coupon input[type=text]{flex:1;min-width:0;min-height:46px}
html body .shop-coupon .btn{flex:none;margin-top:0;width:auto}

html body .shop-form .field input,html body .shop-form .field select,html body .shop-form .field textarea{min-height:48px;font-size:16px}
html body .shop-method,html body .shop-check{display:flex;align-items:center;gap:.75rem;min-height:56px;padding:.8rem 1rem;cursor:pointer}
html body .shop-method input,html body .shop-check input{flex:none;width:1.15rem;height:1.15rem;accent-color:var(--brand)}
html body .shop-method:hover{border-color:var(--brand)}
html body .shop-status{display:inline-flex;align-items:center;white-space:nowrap}

html body .shop-sticky{box-shadow:0 -8px 24px rgba(15,23,42,.12)}
html body .shop-sticky .btn{flex:none;min-height:46px}

@media (max-width:860px){
html body .shop-product-media{position:static}
html body .shop-buy{flex-direction:row}
}
@media (max-width:640px){
html body .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
html body .shop-card-body{padding:.75rem .75rem .9rem}
html body .shop-card-body h3{font-size:.9rem}
html body .shop-card-body .btn{font-size:.82rem;padding-left:.6rem;padding-right:.6rem;white-space:normal}
html body .shop-buy .btn-lg{flex:1 1 100%}
html body .shop-buy .shop-stepper{flex:1 1 100%;justify-content:space-between}
html body .shop-buy .shop-stepper .shop-qty{flex:1}
html body .shop-cart-actions{flex-direction:column;align-items:stretch}
html body .shop-cart-actions .btn{width:100%}
html body .shop-cart-total{grid-area:t;text-align:right}
html body .shop-coupon{flex-direction:column}
html body .shop-coupon .btn{width:100%}
html body .shop-thumb{width:56px;height:56px}
}
@media (max-width:340px){html body .shop-grid{grid-template-columns:1fr}}
@media (min-width:641px) and (max-width:900px){html body .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (hover:none){html body .btn:hover{transform:none}html body .shop-card:hover{transform:none}}

/* Phones: the sort buttons are a swipeable row inside the screen, not a row that pushes the page wider */
@media(max-width:640px){
html body .shop-toolbar{align-items:stretch;min-width:0}
html body .shop-toolbar>span:first-child{text-align:left}
html body .shop-sort{display:flex;min-width:0;max-width:calc(100% + 2rem);overflow-x:auto}
}
