/* Minimal-template storefront. All styles are scoped to the shop and its dialogs. */
.ms-page,.ms-modal{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#171717;font-size:14px;line-height:1.5}
.ms-page *,.ms-modal *{box-sizing:border-box}
.ms-page{padding:16px 0 36px;max-width:1400px;margin:0 auto}
.ms-page button,.ms-modal button{appearance:none;font:inherit;color:inherit;border:1px solid #e1e1e1;background:#fff;border-radius:8px;padding:9px 14px;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.ms-page button:hover,.ms-modal button:hover{background:#f5f5f5;border-color:#cfcfcf}
.ms-page button:active,.ms-modal button:active{transform:scale(.98)}
.ms-page button:disabled,.ms-modal button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.ms-page button:focus-visible,.ms-modal button:focus-visible,.ms-modal a:focus-visible{outline:2px solid #727272;outline-offset:3px}
.ms-page svg,.ms-modal svg{width:18px;height:18px;flex-shrink:0;vertical-align:middle}
.ms-page .ms-primary,.ms-modal .ms-primary{background:#171717;border-color:#171717;color:#fff}
.ms-page .ms-primary:hover,.ms-modal .ms-primary:hover{background:#333;border-color:#333}
.ms-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}
.ms-heading h2{margin:0;font-size:30px;font-weight:700;letter-spacing:-1px;line-height:1.3}
.ms-heading p{margin:8px 0 0;color:#737373;font-size:13px}
.ms-head-actions{display:flex;gap:8px;flex-shrink:0}
.ms-head-actions button{display:inline-flex;align-items:center;gap:7px;font-size:13px}
.ms-shopbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.ms-search{display:flex;align-items:center;gap:9px;width:360px;max-width:100%;border:1px solid #e2e2e2;border-radius:8px;padding:0 12px;background:#fff;color:#8a8a8a}
.ms-search:focus-within{outline:2px solid #dedede;outline-offset:2px}
.ms-search input{width:100%;height:40px;background:transparent;border:0;outline:none;font:inherit;color:#262626;min-width:0;box-shadow:none;padding:0}
.ms-page .ms-support-link{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;padding-right:0;color:#737373;font-size:13px;white-space:nowrap}
.ms-categories{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:22px;border-bottom:1px solid #e8e8e8}
.ms-categories button{font-size:13px;padding:7px 14px;border-color:transparent;background:#f5f5f5;color:#626262}
.ms-categories button[aria-pressed=true]{color:#fff;background:#171717;border-color:#171717}
.ms-list-caption{display:flex;align-items:center;justify-content:space-between;color:#8a8a8a;font-size:12px;margin:20px 0 14px}
.ms-count{color:#626262;font-variant-numeric:tabular-nums}
.ms-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ms-product{display:flex;flex-direction:column;background:#fff;border:1px solid #e3e3e3;border-radius:14px;padding:22px;min-width:0;transition:border-color .2s,box-shadow .2s}
.ms-product:hover{border-color:#bfbfbf;box-shadow:0 5px 20px #00000006}
.ms-product-head{display:flex;gap:14px;align-items:center;min-height:64px}
.ms-product-image{display:block;width:56px;height:56px;object-fit:cover;border-radius:12px;background:#f4f4f4;flex-shrink:0}
.ms-image-placeholder{display:grid;place-items:center;color:#777;border:1px solid #e9e9e9}
.ms-image-placeholder svg{width:25px;height:25px}
.ms-category-name{font-size:11px;color:#888;display:block;margin-bottom:4px}
.ms-product h3{font-size:15px;line-height:1.5;font-weight:600;margin:0;overflow-wrap:anywhere;letter-spacing:-.15px}
.ms-product-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0 22px;color:#888;font-size:11px;font-variant-numeric:tabular-nums}
.ms-product-meta .ms-wholesale-tag{color:#585858;background:#f5f5f5;border:1px solid #e8e8e8;border-radius:4px;padding:1px 5px;margin-left:auto}
.ms-price-row{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:auto;margin-bottom:18px}
.ms-price{white-space:nowrap;font-size:26px;font-weight:650;line-height:1.2;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.ms-price small{font-size:15px;font-weight:500;letter-spacing:0;margin-right:3px}
.ms-price>span{font-size:11px;color:#999;font-weight:400;letter-spacing:0;margin-left:6px}
.ms-page .ms-detail{display:flex;align-items:center;gap:5px;padding:4px 0;border:0;background:transparent;font-size:12px;color:#777;white-space:nowrap}
.ms-detail svg{width:14px;height:14px}
.ms-product-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #eee;padding-top:16px}
.ms-quantity{display:flex;align-items:center;gap:8px;color:#888;font-size:12px}
.ms-quantity input,.ms-checkout-quantity input{width:66px;border:1px solid #e3e3e3;border-radius:7px;background:#fff;height:36px;padding:6px 8px;font:inherit;color:#333;box-shadow:none}
.ms-product-footer .ms-primary{min-width:94px;padding:8px 15px;font-size:13px}
.ms-empty{grid-column:1/-1;text-align:center;padding:65px 20px;color:#777}
.ms-empty>svg{width:28px;height:28px;color:#aaa;margin-bottom:12px}
.ms-empty h3{font-size:16px;color:#333;font-weight:600;margin:0 0 8px}
.ms-empty p{font-size:13px;margin:0 0 18px;line-height:1.7}
.ms-skeleton{padding:22px;border:1px solid #eee;border-radius:14px;height:250px}
.ms-skeleton i,.ms-skeleton span,.ms-skeleton b{display:block;background:#f1f1f1;border-radius:6px;animation:ms-pulse 1.4s ease-in-out infinite}
.ms-skeleton i{width:56px;height:56px;margin-bottom:24px}.ms-skeleton span{height:12px;width:70%;margin-bottom:14px}.ms-skeleton span+span{width:45%}.ms-skeleton b{height:34px;margin-top:28px}
.ms-modal{position:fixed;inset:0;z-index:1090;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:24px;background:rgba(240,243,248,.22);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:1;transition:opacity .18s;animation:ms-fade .2s ease-out}
.ms-dialog{width:min(520px,100%);min-width:0;max-width:100%;max-height:calc(100dvh - 48px);display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.9);border-radius:26px;background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(250,251,253,.8));backdrop-filter:blur(28px) saturate(150%);-webkit-backdrop-filter:blur(28px) saturate(150%);box-shadow:inset 0 1px 0 #fff,0 20px 70px #20293824;overflow:hidden;animation:ms-dialog-in .24s cubic-bezier(.16,1,.3,1);transition:transform .18s}
.ms-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px 18px;flex-shrink:0}
.ms-dialog>header h3{margin:0;font-size:19px;font-weight:650;line-height:1.4;letter-spacing:-.4px;overflow-wrap:anywhere}
.ms-dialog>header button{display:grid;place-items:center;border:0;border-radius:50%;background:#eceef080;color:#777;width:30px;height:30px;padding:0;flex-shrink:0}
.ms-dialog-body{padding:0 24px 24px;overflow:auto;overscroll-behavior:contain}
.ms-dialog>footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:16px 24px;border-top:1px solid #dfe2e580;flex-shrink:0;background:#ffffff30}
.ms-dialog>footer button{border-radius:999px;padding:10px 18px;font-size:13px;min-height:40px;background:#ffffffa0}
.ms-dialog>footer .ms-primary{background:#171717}
.ms-leaving{opacity:0;pointer-events:none}.ms-leaving .ms-dialog{transform:translateY(8px) scale(.98)}
.ms-muted{font-size:13px;color:#737373;line-height:1.8;margin:0 0 16px}
.ms-description{font-size:14px;color:#525252;line-height:1.9;overflow-wrap:anywhere}
.ms-description a{color:#171717;text-decoration:underline;text-underline-offset:3px}.ms-description table{display:block;max-width:100%;overflow:auto}.ms-description pre{white-space:pre-wrap}.ms-description h1,.ms-description h2,.ms-description h3{font-size:17px;color:#222}
.ms-support-number{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #e0e0e0;border-radius:12px;padding:18px;background:#ffffff70}.ms-support-number span{font-size:12px;color:#777}.ms-support-number strong{font-size:23px;letter-spacing:.3px;font-variant-numeric:tabular-nums}
.ms-checkout-product{border-bottom:1px solid #e4e4e4;padding-bottom:18px;margin-bottom:18px}.ms-checkout-product span{display:block;color:#888;font-size:12px;margin-bottom:6px}.ms-checkout-product strong{font-size:16px;font-weight:600}
.ms-checkout-quantity{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#666;margin-bottom:22px}.ms-checkout-quantity input{width:90px;text-align:center}
.ms-tier-heading{font-size:13px;font-weight:600;margin-bottom:10px}.ms-tier-heading small{font-size:11px;font-weight:400;color:#888;margin-left:8px}
.ms-tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:24px}.ms-tiers button{text-align:left;padding:12px 10px;background:#ffffff80}.ms-tiers button[aria-pressed=true]{border-color:#222;background:#f0f0f0}.ms-tiers strong,.ms-tiers span{display:block}.ms-tiers strong{font-weight:600;font-size:13px}.ms-tiers span{color:#777;font-size:11px;margin-top:5px}
.ms-checkout-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e5e5e5;padding-top:20px}.ms-checkout-total>span{font-size:13px;color:#666}.ms-unit{display:block;color:#999;font-size:11px;margin-top:5px}.ms-total{font-size:28px;font-weight:650;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.ms-checkout-hint{font-size:11px;color:#8a8a8a;margin:16px 0 0}.ms-form-error{font-size:12px;line-height:1.7;color:#b63131;margin:10px 0 0}.ms-form-error:empty{display:none}
.ms-modal .ms-order-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:16px 0;border:0;border-bottom:1px solid #e5e5e5;border-radius:0;background:transparent}.ms-order-row>div:first-child{flex:1;min-width:0}.ms-order-row>div:nth-child(2){display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}.ms-order-row strong{font-size:13px;font-weight:550;overflow-wrap:anywhere}.ms-order-row small{display:block;margin-top:6px;font-size:11px;color:#999;overflow-wrap:anywhere}.ms-order-row>svg{color:#999;width:15px}.ms-badge{display:inline-block;padding:2px 7px;border-radius:5px;font-size:11px;border:1px solid #ddd;color:#666;background:#f5f5f5}.ms-ok{color:#2e7250;background:#eef7f0;border-color:#d5e9db}.ms-error{color:#a83939;background:#fbeded;border-color:#ecd7d7}.ms-order-page{margin-right:auto;font-size:11px;color:#888}
.ms-order-detail h4{font-size:17px;margin:14px 0 6px;font-weight:600}.ms-order-detail p{font-size:12px;color:#888;overflow-wrap:anywhere;margin:0 0 20px}.ms-code-list>div{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px;background:#ffffff70;border:1px solid #e5e5e5;border-radius:9px;margin:8px 0}.ms-code-list code{font-size:12px;overflow-wrap:anywhere;color:#333;user-select:all}.ms-code-list button{font-size:11px;padding:5px 9px;flex-shrink:0}
.ms-field{display:block;color:#666;font-size:13px}.ms-field input{width:100%;height:44px;margin-top:8px;border:1px solid #ddd;border-radius:9px;background:#ffffffb0;padding:10px 12px;color:#222;font:inherit}.ms-modal input:focus{outline:2px solid #c8c8c8;outline-offset:2px}.ms-query-result{margin-top:18px;font-size:13px;color:#777}.ms-query-result:empty{display:none}.ms-query-result dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.ms-query-result dl>div{padding:14px;background:#ffffff60;border:1px solid #e5e5e5;border-radius:10px}.ms-query-result dt{font-size:11px;font-weight:400;color:#999;margin-bottom:7px}.ms-query-result dd{margin:0;font-size:13px;color:#333;overflow-wrap:anywhere}
@keyframes ms-pulse{50%{opacity:.45}}@keyframes ms-fade{from{opacity:0}to{opacity:1}}@keyframes ms-dialog-in{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
@media(max-width:1200px){.ms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-product{padding:20px}}
@media(max-width:768px){.ms-page{padding:12px 14px 32px}.ms-heading{display:block;margin-bottom:24px}.ms-heading h2{font-size:26px}.ms-heading p{font-size:12px;line-height:1.7}.ms-head-actions{margin-top:18px}.ms-head-actions button{font-size:12px}.ms-shopbar{margin-bottom:16px}.ms-search{width:auto;flex:1;min-width:0}.ms-search input{font-size:16px}.ms-page .ms-support-link{font-size:12px;gap:3px}.ms-categories{gap:6px;padding-bottom:18px}.ms-categories button{padding:7px 11px;font-size:12px}.ms-grid{grid-template-columns:1fr;gap:12px}.ms-product{padding:20px}.ms-product h3{font-size:16px}.ms-product-image{width:58px;height:58px}.ms-product-meta{margin:16px 0 20px}.ms-quantity input{font-size:16px}.ms-price{font-size:27px}.ms-modal{padding:16px}.ms-dialog{max-height:calc(100dvh - 32px);border-radius:24px}.ms-dialog>header{padding:22px 20px 18px}.ms-dialog-body{padding:0 20px 20px}.ms-dialog>footer{padding:16px 20px}.ms-modal input{font-size:16px}.ms-tiers{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-dialog>footer button{padding:10px 16px}.ms-skeleton:nth-child(n+4){display:none}}
@media(prefers-reduced-motion:reduce){.ms-page *,.ms-modal,.ms-modal *{animation:none!important;transition:none!important}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.ms-dialog{background:#fafafa}.ms-modal{background:rgba(240,243,248,.9)}}

/* Plain white storefront dialogs. */
.ms-modal{background:rgba(20,20,20,.24);backdrop-filter:none;-webkit-backdrop-filter:none}
.ms-modal .ms-dialog{background:#fff;border:1px solid #e5e5e5;border-radius:16px;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 16px 60px rgba(0,0,0,.13)}
.ms-dialog>header button{background:#f5f5f5}
.ms-dialog>footer{background:#fff;border-top:1px solid #eee}
.ms-dialog>footer button{background:#fff;border-radius:8px}
.ms-dialog>footer .ms-primary{background:#171717}
.ms-support-number,.ms-tiers button,.ms-code-list>div,.ms-query-result dl>div{background:#fafafa}
.ms-field input{background:#fff}
/* Compact merchandise cards on desktop and mobile. */
.ms-head-actions{flex-wrap:wrap}.ms-head-actions img{width:18px;height:18px;flex-shrink:0}
.ms-heading{margin-bottom:22px}.ms-shopbar{margin-bottom:16px}.ms-categories{padding-bottom:16px}.ms-list-caption{margin:14px 0 10px}
.ms-grid{gap:12px}.ms-product{padding:14px 16px;border-radius:10px}.ms-product-head{min-height:44px;gap:10px}.ms-product-image{width:42px;height:42px;border-radius:9px}.ms-category-name{font-size:10px;margin-bottom:2px}.ms-product h3{font-size:14px;line-height:1.4}.ms-product-meta{margin:9px 0 11px;gap:8px;font-size:10px}.ms-price-row{margin-bottom:10px}.ms-price{font-size:22px}.ms-price small{font-size:13px}.ms-product-footer{padding-top:10px;gap:8px}.ms-quantity input{height:30px;width:58px;padding:4px 7px}.ms-product-footer .ms-primary{min-width:74px;padding:6px 13px;font-size:12px}.ms-skeleton{height:190px;padding:16px}.ms-skeleton i{width:42px;height:42px;margin-bottom:14px}.ms-skeleton b{margin-top:16px}
.ms-support-number{margin-top:10px;padding:15px 16px}.ms-support-number>div{min-width:0}.ms-support-number span,.ms-support-number strong{display:block}.ms-support-number strong{font-size:21px;margin-top:4px;overflow-wrap:anywhere}.ms-support-number button{font-size:12px;flex-shrink:0;padding:8px 11px}
@media(min-width:1600px){.ms-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:768px){.ms-heading{margin-bottom:18px}.ms-head-actions{gap:6px;margin-top:14px}.ms-head-actions button{padding:8px 10px;font-size:12px;gap:5px}.ms-head-actions svg,.ms-head-actions img{width:16px;height:16px}.ms-shopbar{margin-bottom:13px}.ms-search{width:100%}.ms-categories{padding-bottom:14px}.ms-grid{gap:10px}.ms-product{padding:12px 14px}.ms-product-head{min-height:42px}.ms-product-image{width:40px;height:40px}.ms-product h3{font-size:14px}.ms-product-meta{margin:8px 0 10px}.ms-price{font-size:22px}.ms-quantity input{font-size:16px;height:32px}.ms-product-footer .ms-primary{min-height:34px;min-width:78px}.ms-detail{min-height:28px}.ms-price-row{margin-bottom:9px}}
.ms-delivery-wait{padding:28px 16px;text-align:center;background:#fafafa;border:1px solid #e7e7e7;border-radius:8px}.ms-delivery-wait strong{display:block;margin:14px 0 8px;font-size:16px}.ms-delivery-wait p{font-size:14px;line-height:1.7;color:#666;margin:0 0 8px}.ms-delivery-wait small{color:#888;line-height:1.6}.ms-delivery-spinner{display:inline-block;width:28px;height:28px;border:2px solid #dedede;border-top-color:#171717;border-radius:50%;animation:ms-delivery-spin .8s linear infinite}@keyframes ms-delivery-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.ms-delivery-spinner{animation:none}}
