.market-page{background:#f5f8fd;color:#102746;font-size:15px;line-height:1.55}.page-header{padding:16px max(20px,calc((100vw - 1220px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border-bottom:1px solid #dfe7f3}.page-header nav{display:flex;align-items:center;gap:22px;font-size:14px}.page-header a,.market-page a{text-decoration:none}.page-header .primary{color:white}.page-wrap{max-width:1220px;margin:auto;padding:26px 20px 50px;min-height:65vh}.page-breadcrumb{display:flex;gap:12px;color:#61738e;font-size:14px;margin-bottom:20px}.full-listing{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:26px}.page-gallery,.page-description,.page-product-summary,.page-seller-card{background:#fff;border:1px solid #dfe7f3;border-radius:16px;padding:24px;margin-bottom:20px}.page-gallery img{width:100%;max-height:540px;object-fit:contain}.page-gallery.product-gallery .gallery-large{height:450px}.page-description h2,.page-seller-card h2{font-size:20px;line-height:1.35;margin:0 0 14px}.page-description>p,.store-description{white-space:pre-line;overflow-wrap:anywhere}.page-product-summary h1{font-size:29px;line-height:1.3;margin:18px 0}.page-price{font-size:30px;font-weight:750;color:#102746;margin:15px 0}.page-price small{font-size:15px;font-weight:500}.page-seller-card{display:grid;gap:15px}.page-seller-card a{text-align:center;display:block}.seller-identity{display:flex;gap:15px;align-items:center;min-width:0}.seller-identity h2,.seller-identity h1{overflow-wrap:anywhere;margin:0 0 4px}.seller-identity p{margin:0}.store-logo,.store-initial{height:54px;width:54px;border-radius:13px;object-fit:cover;flex-shrink:0}.store-initial{display:grid;place-items:center;background:#e9f0ff;color:#1d4ed8;font-size:26px;font-weight:700}.store-logo.large,.store-initial.large{height:80px;width:80px;border:3px solid white;box-shadow:0 2px 8px #12356712}.buying-note{font-size:13px;color:#61738e}.spec-table th{text-align:left;font-weight:500;color:#61738e}.spec-table th,.spec-table td{padding:12px 8px;vertical-align:top;overflow-wrap:anywhere}.store-cover{background:#fff;border:1px solid #dfe7f3;border-radius:18px;overflow:hidden;margin-bottom:28px}.store-banner{display:block;width:100%;height:230px;object-fit:cover}.store-banner-empty{background:linear-gradient(115deg,var(--store-accent),#0d264c)}.store-profile{padding:24px}.store-profile h1{font-size:28px;line-height:1.3}.store-tagline{font-size:17px;font-weight:600;color:var(--store-accent)}.store-socials{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.store-socials>a,.store-socials>button{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border:1px solid #dbe5f5;border-radius:9px;font-size:13px;color:var(--store-accent)}.store-description{margin-top:20px;max-width:850px}.store-catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.store-catalog-heading h2{font-size:23px}.store-catalog-heading h2 span{font-size:13px;color:#61738e;font-weight:400}.store-catalog-heading form{display:flex;gap:8px}.store-catalog-heading input{padding:10px 12px;border:1px solid #dbe5f5;border-radius:9px;background:white;font:inherit;min-width:0}.store-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.store-product{border:1px solid #dfe7f3;border-radius:14px;background:white;overflow:hidden}.store-product a{color:inherit;display:block}.store-product-photo{background:#eef3fb;height:190px}.store-product-photo img{width:100%;height:100%;object-fit:contain}.store-product-info{padding:15px}.store-product-info h3{font-size:16px;line-height:1.4;margin:8px 0;overflow-wrap:anywhere}.store-product-info>p{font-weight:700;font-size:20px;margin:10px 0}.store-product-info small{font-size:12px;font-weight:400}.store-product-info>span{font-size:12px;color:#61738e}.store-empty{grid-column:1/-1;padding:40px;text-align:center;background:#fff;border:1px dashed #dbe5f5;border-radius:12px}#store-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin:24px 0}.page-footer{display:flex;justify-content:space-between;gap:20px;padding:25px max(20px,calc((100vw - 1180px)/2));background:white;border-top:1px solid #dfe7f3;color:#61738e;font-size:13px}#page-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 18px;border-radius:10px;background:#102746;color:white;display:none;max-width:90%;z-index:50}#page-toast.visible{display:block}.page-error{text-align:center;padding:70px 20px}.page-error h1{font-size:24px}.page-error a{display:inline-flex;margin-top:24px}.page-loading{padding:80px;text-align:center}.store-editor{font-size:14px;line-height:1.5}.store-editor .form-field{display:grid;gap:7px;margin-bottom:18px;font-size:14px}.store-editor input:not([type=color]),.store-editor textarea{width:100%;min-width:0;padding:11px 12px;font:inherit;border:1px solid #cddbf1;border-radius:9px}.store-editor textarea{min-height:110px;resize:vertical}.store-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.store-editor .full{grid-column:1/-1}.store-editor-preview{width:100%;height:110px;object-fit:contain;background:#f5f8fd;border:1px dashed #ccd9ed;border-radius:10px;margin-bottom:8px}.store-editor input[type=file]{padding:10px;font-size:13px}.store-editor-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.store-editor-links{padding:18px;background:#f3f7ff;border-radius:12px;margin-top:24px}.store-editor-links a,.store-editor-links button{display:inline-flex;margin:8px 8px 0 0;align-items:center}.store-editor-links p{overflow-wrap:anywhere}.store-editor .form-error{color:#bc3131;min-height:20px}.store-upload-status{font-size:13px;color:#61738e}#modal.product-dialog{overflow:hidden;padding:0;display:flex;flex-direction:column;max-height:min(90dvh,920px)}#modal.product-dialog:not([open]){display:none}#modal.product-dialog>.modal-header{flex:0 0 auto}#modal.product-dialog>#modal-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a8bad6 transparent;padding:20px 24px 24px;scrollbar-gutter:stable}#modal.product-dialog .detail-actions{display:flex;flex-wrap:wrap;gap:10px}#modal.product-dialog .detail-actions>a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:44px}#modal.product-dialog .detail-description{white-space:pre-line;font-size:14px;line-height:1.65}#modal.product-dialog .spec-table{font-size:14px}.product-preview-note{font-size:12px;line-height:1.5;color:#61738e;margin-top:16px}
@media(max-width:760px){.page-header{padding:13px 16px;gap:12px}.page-header .brand{font-size:25px}.page-header nav{gap:12px;font-size:12px}.page-header nav>a:first-child{display:none}.page-header .primary{padding:8px 10px;font-size:12px;min-height:40px}.page-wrap{padding:18px 16px 30px}.page-breadcrumb{font-size:12px;margin-bottom:14px}.full-listing{display:flex;flex-direction:column;gap:0}.full-listing>section{display:contents}.full-listing>aside{display:contents}.page-gallery{order:0;padding:12px}.page-product-summary{order:1}.page-seller-card{order:2}.page-description{order:3}.buying-note{order:4}.page-gallery.product-gallery .gallery-large{height:300px}.page-gallery img{max-height:340px}.page-product-summary,.page-description,.page-seller-card{padding:18px;margin-bottom:15px}.page-product-summary h1{font-size:24px}.page-price{font-size:28px}.page-description h2{font-size:19px}.page-description p{font-size:15px}.store-banner{height:145px}.store-profile{padding:18px}.store-logo.large,.store-initial.large{height:62px;width:62px}.store-profile h1{font-size:23px}.store-tagline{font-size:15px}.store-profile .muted{font-size:13px}.store-socials{gap:8px;margin-top:16px}.store-socials>a,.store-socials>button{font-size:12px;padding:8px 10px}.store-description{font-size:14px}.store-catalog-heading{display:block}.store-catalog-heading h2{font-size:21px;margin-bottom:15px}.store-catalog-heading form{width:100%}.store-catalog-heading input{font-size:16px;width:100%}.store-catalog-heading .primary{min-height:44px;font-size:13px}.store-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.store-product-photo{height:150px}.store-product-info{padding:12px}.store-product-info h3{font-size:14px}.store-product-info>p{font-size:18px;line-height:1.4;overflow-wrap:anywhere}.store-product-info small{font-size:11px}.store-product-info>span{font-size:11px}.page-footer{padding:20px 16px;font-size:12px}.store-editor-grid{grid-template-columns:1fr}.store-editor input:not([type=color]),.store-editor textarea{font-size:16px}.store-editor-actions>*{flex:1;text-align:center}.store-editor-links a,.store-editor-links button{min-height:44px}#modal.product-dialog{max-height:var(--modal-viewport-height,100dvh)}#modal.product-dialog>#modal-content{padding:16px 18px 24px}#modal.product-dialog .detail-actions{display:grid;grid-template-columns:1fr 1fr}#modal.product-dialog .detail-actions>a:first-child{grid-column:1/-1}#modal.product-dialog .detail-actions>*{font-size:13px;padding:10px;min-height:44px}#modal.product-dialog .detail h3{font-size:23px}#modal.product-dialog .detail .price{font-size:27px}.spec-table{table-layout:fixed;width:100%;font-size:14px}.spec-table th,.spec-table td{width:50%;padding:10px 6px}}

/* Keep the preview header fixed and scroll only its content. */
body:has(#modal[open]){overflow:hidden}
.store-banner-empty{height:110px}
@media(max-width:760px){.store-banner-empty{height:80px}}

/* Seller-owned storefront navigation, with no marketplace exit links. */
.shop-home{display:flex;align-items:center;gap:10px;min-width:0;color:#102746;font-size:20px;font-weight:700;line-height:1.2}
.shop-home>img{width:40px;height:40px;object-fit:cover;border-radius:9px;flex-shrink:0}
.shop-home>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shop-home small{display:block;font-size:11px;font-weight:400;color:#61738e;margin-top:4px}
.shop-home-button{flex-shrink:0;min-height:40px;padding:8px 13px;border:1px solid #dbe5f5;border-radius:9px;background:#fff;color:#1d4ed8;font-size:13px;font-weight:600}
@media(max-width:760px){.store-only .page-header{gap:12px}.shop-home{font-size:18px}.shop-home-button{font-size:12px;padding:8px 10px}.store-only .page-wrap{padding-top:16px}.store-only .page-footer{font-size:11px}}
.store-chat-binding{display:grid;gap:8px;padding:14px;background:white;border:1px solid #dbe5f5;border-radius:10px;margin-top:12px}.store-chat-binding>span{font-size:12px;color:#61738e}.shop-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.shop-header-actions .primary{font-size:13px;min-height:40px;padding:8px 12px}.market-page #modal #close-modal{height:40px;width:40px;border-radius:8px;background:#f3f7ff;font-size:24px;flex-shrink:0}
@media(max-width:760px){.shop-header-actions .primary{font-size:12px;padding:8px}.shop-header-actions{gap:6px}}

/* Public stores have a visible catalog exit; channel Mini Apps remain seller scoped. */
.store-only .page-header .shop-home{flex:1}.shop-catalog-exit{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;white-space:nowrap;min-height:44px}.shop-exit-mobile{display:none}@media(max-width:760px){.store-only .page-header{gap:8px;padding:12px}.store-only .shop-home{font-size:16px}.shop-exit-desktop{display:none}.shop-exit-mobile{display:inline}.shop-catalog-exit{font-size:12px;padding:8px 10px}.store-only .page-header .notice-bell{flex:0 0 42px}}


/* Storefront and editor share the seller's accent and cover treatment. */
.shop-profile-v2{overflow:hidden;border:1px solid #dbe5f3;border-radius:22px;background:#fff;box-shadow:0 12px 32px #142b5610}
.shop-profile-v2 .shop-cover-art,.shop-editor-preview-cover{position:relative;isolation:isolate;background:radial-gradient(ellipse at 78% 19%,var(--store-accent,var(--shop-color,#1d4ed8)) 0,transparent 58%),linear-gradient(120deg,#0e2142,#1a315e 60%,#0c1e3d);overflow:hidden}
.shop-profile-v2 .shop-cover-art{height:clamp(126px,20vw,248px)}
.shop-cover-grid,.shop-editor-preview-cover::before{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(115deg,transparent 0 28px,#dbeafe14 29px 30px,transparent 31px 50px);mask-image:linear-gradient(100deg,transparent 14%,#000 75%)}
.shop-editor-preview-cover::before{content:""}
.shop-cover-art:has(img) .shop-cover-grid,.shop-editor-preview-cover:has(img:not([hidden]))::before{display:none}
.shop-cover-art img,.shop-editor-preview-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.shop-profile-inner{display:grid;grid-template-columns:92px minmax(0,1fr) auto;column-gap:20px;row-gap:15px;padding:23px 28px 26px;align-items:start}
.shop-avatar{width:92px;height:92px;margin-top:-50px;z-index:1;display:grid;place-items:center;overflow:hidden;border:4px solid #fff;border-radius:22px;background:#eaf0ff;box-shadow:0 5px 18px #122c6028;color:#1a3e96;font-size:27px;font-weight:800;letter-spacing:-.05em}
.shop-avatar img,.shop-editor-avatar img{width:100%;height:100%;object-fit:cover}
.shop-identity{min-width:0}
.shop-identity h1{margin:0;color:#101f3b;font-size:clamp(25px,3.2vw,42px);line-height:1.12;letter-spacing:-.038em;overflow-wrap:anywhere}
.shop-tagline{margin:7px 0 0;color:#485e7c;font-size:15px;overflow-wrap:anywhere}
.shop-profile-meta{display:flex;flex-wrap:wrap;gap:5px 14px;margin-top:11px;color:#526783;font-size:13px}
.shop-profile-meta>span{overflow-wrap:anywhere}
.shop-profile-meta strong{color:#152c51}
.shop-profile-actions{display:grid;justify-items:end;gap:9px}
.shop-contact{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;font-weight:750;white-space:nowrap}
.shop-profile-links{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.shop-profile-links>a,.shop-profile-links>button{background:#f3f7ff;border:1px solid #dce7fb;border-radius:8px;display:inline-flex;align-items:center;gap:4px;min-height:37px;padding:6px 10px;color:#25436d;font:inherit;font-size:12px;cursor:pointer}
.shop-profile-links>a:hover,.shop-profile-links>button:hover{background:#e9f0ff;color:#163a88}
.shop-about{grid-column:2/-1;border-top:1px solid #e6edf7;padding:12px 0 0;color:#334c70;min-width:0}
.shop-about summary{cursor:pointer;width:fit-content;font-weight:750;font-size:14px}
.shop-about p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0;font-size:14px;max-width:75ch}

.shop-catalog{margin-top:32px}
.shop-catalog-title{display:flex;gap:10px;align-items:center;margin-bottom:13px}
.shop-catalog-title h2{margin:0;color:#101f3b;font-size:clamp(21px,2.5vw,28px);letter-spacing:-.02em}
.shop-catalog-title output{display:grid;place-items:center;min-width:30px;height:28px;padding:0 7px;background:#e8effd;color:#24467e;border-radius:8px;font-size:13px;font-weight:750}
.shop-filters{display:grid;grid-template-columns:1fr 1.4fr;gap:14px;align-items:end;padding:15px 16px;margin-bottom:16px;border:1px solid #dbe5f3;border-radius:14px;background:#fff}
.shop-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.shop-filter-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px}
.shop-filters label{display:grid;gap:5px;min-width:0;color:#354d71;font-size:12px;font-weight:700}
.shop-filters input,.shop-filters select{width:100%;min-height:44px;min-width:0;padding:0 10px;border:1px solid #d6e2f4;border-radius:8px;background:#fff;color:#132b4c;font:inherit;font-size:14px;font-weight:500}
.shop-filters button.primary{min-height:44px;padding-inline:12px;white-space:nowrap}
#store-products{scroll-margin-top:14px}
.shop-catalog .store-products{gap:14px}
.shop-catalog .shop-product{border-radius:14px;box-shadow:0 3px 14px #14336109}
.shop-catalog .shop-product>a{display:flex;height:100%;flex-direction:column;color:inherit}
.shop-catalog .shop-product:hover{border-color:#a9bde9;box-shadow:0 7px 18px #14336119}
.shop-catalog .store-product-photo{position:relative;display:grid;place-items:center;aspect-ratio:4/3;height:auto;background:#edf2f8;overflow:hidden}
.shop-catalog .store-product-photo img{height:100%;width:100%;object-fit:contain}
.shop-condition{position:absolute;top:8px;left:8px;background:#fff;color:#345072;padding:3px 6px;border-radius:5px;font-size:11px;font-weight:700}
.shop-catalog .store-product-info{display:grid;align-content:start;gap:5px;padding:12px 13px}
.shop-catalog .store-product-info h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:2.7em;max-height:2.7em;margin:0;line-height:1.35;overflow:hidden;overflow-wrap:anywhere}
.shop-catalog .store-product-info>p{margin:0;font-size:clamp(15px,1.7vw,21px)}
.shop-catalog .store-product-info>span{color:#556b87;font-size:12px}
.shop-catalog .store-empty{grid-column:1/-1;display:grid;justify-items:center;gap:12px;padding:32px 16px;border:1px dashed #cdd9ed;border-radius:12px;color:#526783;text-align:center}
.shop-catalog #store-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:17px}
.shop-editor-preview{margin-bottom:18px;border:1px solid #dbe5f3;background:#fff;border-radius:15px;overflow:hidden}
.shop-editor-preview-cover{height:112px}
.shop-editor-preview-info{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px 14px}
.shop-editor-avatar{display:grid;place-items:center;position:relative;width:56px;height:56px;margin-top:-29px;border-radius:13px;border:3px solid #fff;background:#eaf0ff;color:#1a3e96;font-size:21px;font-weight:800;overflow:hidden;box-shadow:0 2px 9px #10274622}
.shop-editor-preview-info strong,.shop-editor-preview-info p{overflow-wrap:anywhere}
.shop-editor-preview-info p{margin:4px 0 0;color:#526783;font-size:13px}
.shop-preview-label{color:#506889;font-size:11px}
.shop-editor-v2 [data-store-preview][hidden],.shop-editor-v2 [data-shop-initial][hidden]{display:none}
.shop-upload{padding:11px;background:#f6f9ff;border:1px solid #e5edf8;border-radius:9px}
.shop-upload input{max-width:100%;min-width:0}
.shop-colors,.shop-colors>label,.shop-swatches{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.shop-colors{margin-top:13px;font-size:13px;color:#30496e}
.shop-colors input[type=color]{width:42px;height:38px;min-height:0;padding:3px;border-radius:8px;border:1px solid #d4e1f4;background:#fff}
.shop-swatches button{width:36px;height:36px;border-radius:9px;border:2px solid transparent;background:var(--swatch);cursor:pointer}
.shop-swatches button[aria-pressed=true]{border-color:#fff;outline:2px solid #25467b;outline-offset:1px}
.shop-editor-v2 .editor-section h4{margin:0 0 13px}
@media(max-width:900px){.shop-filters{grid-template-columns:1fr;gap:10px}}
@media(max-width:650px){
 .shop-profile-v2{border-radius:15px}
 .shop-profile-inner{grid-template-columns:58px minmax(0,1fr);gap:10px;padding:13px 13px 16px}
 .shop-avatar{width:58px;height:58px;margin-top:-31px;border-width:3px;border-radius:14px;font-size:20px}
 .shop-identity h1{font-size:22px}
 .shop-tagline{font-size:13px;margin-top:4px}
 .shop-profile-meta{margin-top:6px;gap:4px 8px;font-size:12px}
 .shop-profile-actions,.shop-about{grid-column:1/-1}
 .shop-profile-actions{justify-items:stretch;gap:6px}
 .shop-profile-links{justify-content:start}
 .shop-about{padding-top:9px}
 .shop-cover-art{height:110px!important}
 .shop-catalog{margin-top:22px}
 .shop-filters{padding:10px;gap:9px}
 .shop-filter-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 .shop-filters input,.shop-filters select{font-size:16px}
 .shop-catalog .store-products{gap:8px}
 .shop-catalog .store-product-info{padding:8px}
 .shop-catalog .store-product-info h3{font-size:14px}
 .shop-catalog .store-product-info>p{font-size:16px}
 .shop-condition{top:5px;left:5px;font-size:10px}
 .shop-editor-preview-info{grid-template-columns:48px minmax(0,1fr);padding:10px}
 .shop-editor-avatar{width:48px;height:48px}
 .shop-preview-label{grid-column:2}
 .shop-editor-preview-cover{height:88px}
 .shop-swatches button{width:40px;height:40px}
}
