.shop-page { padding-top: 2rem; padding-bottom: 3rem; }
.shop-profile, .shop-products { background: #fff; overflow: hidden; margin-bottom: 2rem; }
.shop-banner { display: block; width: 100%; height: clamp(12rem, 25vw, 30rem); object-fit: cover; }
.shop-banner-empty { background: #f5f6f8; }
.shop-profile-body, .shop-products { padding: 2rem; }
.shop-heading { display: flex; align-items: center; gap: 1.5rem; }
.shop-heading h1 { margin: 0; font-size: 2.4rem; overflow-wrap: anywhere; min-width: 0; }
.shop-logo { width: 8rem; height: 8rem; object-fit: contain; flex-shrink: 0; }
.shop-description { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2rem 0; }
.shop-share { margin-top: 2rem; max-width: 64rem; }
.shop-share-controls { display: flex; gap: 1rem; align-items: stretch; }
.shop-share-controls input { min-width: 0; flex: 1; }
.shop-share-controls button { flex-shrink: 0; }
.shop-share-status { min-height: 2rem; overflow-wrap: anywhere; }
.shop-products h2 { font-size: 1.8rem; }
.shop-empty { text-align: center; padding: 4rem 1rem; }
.shop-goods-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 2rem; }
.shop-goods-card { min-width: 0; overflow-wrap: anywhere; border: 1px solid #eee; padding: 1rem; }
.shop-goods-card img { width: 100%; height: 18rem; object-fit: contain; }
.shop-goods-card h3 { font-size: 1.6rem; }
.shop-product-image { width: 100%; max-height: 32rem; object-fit: contain; }
.shop-product-detail h1 { overflow-wrap: anywhere; font-size: 2.2rem; }
.shop-specs { overflow-wrap: anywhere; margin: 2rem 0; }
.shop-product-pages { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; }
.merchantgoods-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.merchantgoods-filter input { flex: 1; min-width: 12rem; }
.merchantgoods-filter select { width: auto; }
@media only screen and (max-width: 640px) {
    .shop-page { padding-top: 1rem; }
    .shop-profile-body, .shop-products { padding: 1.5rem; }
    .shop-heading { gap: 1rem; }
    .shop-heading h1 { font-size: 2rem; }
    .shop-logo { width: 6rem; height: 6rem; }
    .shop-share-controls { flex-direction: column; }
    .shop-share-controls button { min-height: 4.4rem; }
    .shop-goods-grid { grid-template-columns: 1fr; }
    .merchantgoods-filter { align-items: stretch; flex-direction: column; }
    .merchantgoods-filter select { width: 100%; }
}

/* Public storefront only; product detail keeps its existing layout. */
.shop-storefront { --shop-border: #e4e9f0; color: #303b49; }
.shop-storefront .shop-profile, .shop-storefront .shop-section { border: 1px solid var(--shop-border); border-radius: 1rem; background: #fff; }
.shop-storefront .shop-section { padding: 2rem 2.4rem; margin-bottom: 2rem; overflow: hidden; }

/* 店铺资料：横向居中排列，文字左对齐。 */
.shop-head { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 19.6rem; padding: 3.8rem 3.2rem; }
.shop-storefront .shop-heading { flex: 0 1 auto; align-items: flex-start; gap: 2rem; min-width: 0; max-width: 64rem; }
.shop-identity-mark { display: flex; align-items: flex-start; flex-shrink: 0; gap: 1rem; margin-top: .3rem; }
.shop-vip-badge { display: inline-flex; flex-direction: column; align-items: center; flex-shrink: 0; min-width: 6rem; padding-top: .4rem; color: #7545e8; line-height: 1; }
.shop-vip-stars { display: flex; align-items: center; justify-content: center; gap: .4rem; height: 1.3rem; font-size: .8rem; }
.shop-vip-stars i:nth-child(2) { font-size: 1.2rem; }
.shop-vip-text { font-family: Arial, Helvetica, sans-serif; font-size: 2.5rem; font-style: italic; font-weight: 800; letter-spacing: -.06em; }
.shop-vip-text strong { font-size: 1.05em; font-style: inherit; font-weight: 800; }
.shop-head-info { min-width: 0; text-align: left; }
.shop-head-name { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.shop-storefront .shop-heading h1 { color: #252a35; font-size: 2.6rem; font-weight: 600; line-height: 1.3; }
.shop-verified { display: inline-flex; align-items: center; flex-shrink: 0; color: #26a065; font-size: 1.7rem; line-height: 1; }
.shop-storefront .shop-logo { width: 8rem; height: 8rem; margin: 0; padding: 0; border: 1px solid #edf0f4; border-radius: .5rem; background: #fff; object-fit: contain; }
.shop-storefront .shop-logo-empty { display: grid; place-items: center; background: #f7f8fa; color: #9aa5b5; font-size: 2.8rem; }
.shop-storefront .shop-description, .shop-storefront .shop-description-empty { max-width: 48rem; margin: .7rem 0 0; color: #858995; font-size: 1.4rem; line-height: 1.6; }
.shop-margin { margin: .5rem 0 0; font-size: 1.3rem; line-height: 1.6; }
.shop-margin-label { margin-right: .6rem; color: #e8796b; font-weight: 600; }
.shop-margin-value { display: inline-block; color: #737887; font-weight: 400; font-variant-numeric: tabular-nums; }
.shop-head .am-alert { width: 100%; max-width: 64rem; margin: 1.6rem 0 0; }

/* 标签导航行 + 右侧咨询入口 */
.shop-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; margin: 0 3.2rem; padding: 0; border-top: 1px solid #e9ecf1; }
.shop-tabs { display: flex; align-items: stretch; min-width: 0; overflow-x: auto; }
.shop-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 1.6rem 1.8rem; color: #656b77; font-size: 1.5rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.shop-tab::after { content: ''; position: absolute; right: 0; bottom: .8rem; left: 0; height: 2px; border-radius: 1px; background: transparent; }
.shop-tab:hover { color: #252a35; background: #fafbfc; }
.shop-tab-active, .shop-tab-active:hover { color: #252a35; }
.shop-tab-active::after { background: #30343d; }
.shop-storefront .shop-inquiry { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; flex-shrink: 0; max-width: 100%; min-height: 44px; margin: .8rem 0; padding: .8rem 1.4rem; border: 1px solid #dce2e9; border-radius: .5rem; background: #fff; color: #596171; box-shadow: none; font-size: 1.3rem; line-height: 1.6; white-space: normal; }
.shop-storefront .shop-inquiry:hover, .shop-storefront .shop-inquiry:focus { border-color: #aeb8c5; background: #fafbfc; color: #252a35; }
.shop-inquiry i { flex-shrink: 0; margin: 0; line-height: 1; }
.shop-storefront .shop-banner { height: clamp(12rem, 18vw, 24rem); }
.shop-storefront .shop-banner-empty { height: 8.4rem; background: radial-gradient(ellipse at 85% 10%, #ffe1d2, transparent 60%), linear-gradient(110deg, #fff6ef, #f5f7fb); }

/* 区块标题：居中 + 主色下划线（参考站样式） */
.shop-section-head { position: relative; margin-bottom: 1.6rem; text-align: center; }
.shop-section-title { display: inline-block; margin: 0; color: #303b49; font-size: 1.8rem; font-weight: 600; }
.shop-section-title span { display: inline-block; padding: 0 .4rem .9rem; border-bottom: 2px solid var(--color-main, #e22c08); }
.shop-view-all { position: absolute; top: 50%; right: 0; transform: translateY(-50%); display: inline-flex; align-items: center; gap: .2rem; min-height: 44px; color: #647080; font-size: 1.3rem; }
.shop-view-all:hover { color: var(--color-main, #e22c08); }

/* 只读提示条 */
.shop-browse-notice { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.2rem; border: 1px solid #f5dfc4; border-radius: .6rem; background: #fffaf3; color: #936426; }
.shop-browse-notice > i { flex-shrink: 0; line-height: 2.2rem; }
.shop-browse-notice p { margin: 0; font-size: 1.3rem; line-height: 1.7; overflow-wrap: anywhere; }

/* 筛选（全部商品标签页） */
.shop-storefront .merchantgoods-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem) auto; align-items: end; gap: 1.2rem; margin: 1.4rem 0 1.8rem; padding: 1.4rem; border: 1px solid var(--shop-border); border-radius: .7rem; background: #f8fafc; }
.shop-storefront .merchantgoods-filter > div { min-width: 0; }
.shop-storefront .merchantgoods-filter label { display: block; margin-bottom: .6rem; color: #647080; font-size: 1.3rem; font-weight: normal; }
.shop-storefront .merchantgoods-filter input[type="text"], .shop-storefront .merchantgoods-filter select { width: 100%; max-width: none; min-width: 0; height: 44px; padding: .8rem 1.1rem; border: 1px solid #dce3ec; border-radius: .5rem; background-color: #fff; font-size: 1.4rem; }
.shop-storefront .merchantgoods-filter button { min-height: 44px; padding: .8rem 1.8rem; border-radius: .5rem; font-size: 1.4rem; }

/* 精选横滑行（右缘渐隐提示可滚动） */
.shop-featured-row { position: relative; display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .2rem .8rem; scrollbar-width: thin; }
.shop-featured-row::after { content: ''; position: absolute; top: 0; right: 0; bottom: .8rem; width: 3.2rem; background: linear-gradient(to right, rgba(255,255,255,0), #fff); pointer-events: none; }
.shop-featured-row .shop-goods-card { flex: 0 0 21rem; scroll-snap-align: start; }

/* 商品卡片：价格在上（主色），标题两行 */
.shop-storefront .shop-goods-grid { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.4rem; }
.shop-storefront .shop-goods-card { display: flex; flex-direction: column; padding: 1rem; border: 1px solid var(--shop-border); border-radius: .8rem; background: #fff; transition: box-shadow .15s ease, border-color .15s ease; }
.shop-storefront .shop-goods-card:hover { border-color: #c8d2df; box-shadow: 0 .6rem 1.6rem rgba(35, 54, 78, .09); }
.shop-goods-link { display: flex; flex-direction: column; flex: 1; min-width: 0; color: inherit; }
.shop-goods-image { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: .5rem; background: #f6f8fa; color: #b3bfce; font-size: 3rem; }
.shop-storefront .shop-goods-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.shop-goods-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.shop-storefront .shop-goods-price { margin: 1rem 0 .4rem; color: var(--color-main, #e22c08); font-size: 1.8rem; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; }
.shop-goods-price small { font-size: 1.2rem; font-weight: normal; }
.shop-storefront .shop-goods-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; height: 3em; margin: 0; overflow: hidden; color: #303b49; font-size: 1.4rem; font-weight: 500; line-height: 1.5; }
.shop-storefront .shop-goods-inventory { margin: .8rem 0 0; color: #8a95a3; font-size: 1.2rem; line-height: 1.5; }

/* 空态与数字分页 */
.shop-storefront .shop-empty { margin-top: 1.6rem; padding: 4rem 1rem; border: 1px dashed var(--shop-border); border-radius: .8rem; color: #7a8594; }
.shop-storefront .shop-empty i { font-size: 3rem; color: #b3bfce; }
.shop-storefront .shop-empty p { margin: 1rem 0 0; }
.shop-storefront .shop-product-pages { justify-content: center; align-items: center; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }
.shop-storefront .shop-product-pages a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .8rem 1.2rem; border: 1px solid var(--shop-border); border-radius: .5rem; color: #647080; font-size: 1.4rem; }
.shop-storefront .shop-product-pages a:hover { border-color: var(--color-main, #e22c08); color: var(--color-main, #e22c08); }
.shop-storefront .shop-page-cur { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .8rem 1.2rem; border: 1px solid var(--color-main, #e22c08); border-radius: .5rem; background: var(--color-main, #e22c08); color: #fff; font-size: 1.4rem; font-weight: 600; }
.shop-storefront .shop-page-dots { padding: 0 .4rem; color: #8a95a3; }
.shop-storefront a:focus-visible, .shop-storefront button:focus-visible, .shop-storefront input:focus-visible, .shop-storefront select:focus-visible { outline: 2px solid var(--color-main, #e22c08) !important; outline-offset: 2px; }

@media only screen and (max-width: 640px) {
    .shop-head { min-height: 0; padding: 2.4rem 1.6rem; }
    .shop-storefront .shop-heading { gap: 1.2rem; width: 100%; max-width: 36rem; }
    .shop-storefront .shop-heading h1 { font-size: 2.1rem; }
    .shop-identity-mark { flex-direction: column; align-items: center; gap: .6rem; }
    .shop-vip-badge { min-width: 0; padding: 0; }
    .shop-vip-text { font-size: 2.2rem; }
    .shop-storefront .shop-logo { width: 6.4rem; height: 6.4rem; }
    .shop-identity-mark .shop-logo { order: -1; }
    .shop-verified { font-size: 1.6rem; }
    .shop-storefront .shop-description, .shop-storefront .shop-description-empty { margin-top: .5rem; font-size: 1.3rem; }
    .shop-margin { font-size: 1.2rem; }
    .shop-tabs-row { flex-wrap: wrap; gap: 0; margin: 0 1.2rem; }
    .shop-tabs { flex: 1 1 100%; }
    .shop-tab { flex: 1; min-height: 48px; padding: 1.2rem 1rem; font-size: 1.4rem; }
    .shop-storefront .shop-inquiry { width: 100%; margin: .8rem 0 1rem; }
    .shop-storefront .shop-banner-empty { height: 6rem; }
    .shop-storefront .shop-section { padding: 1.6rem 1.2rem; }
    .shop-section-head { text-align: left; }
    .shop-view-all { position: static; transform: none; margin-top: .4rem; }
    .shop-storefront .merchantgoods-filter { grid-template-columns: minmax(0, 1fr); padding: 1.2rem; gap: 1rem; }
    .shop-storefront .merchantgoods-filter input[type="text"], .shop-storefront .merchantgoods-filter select { font-size: 1.6rem; }
    .shop-featured-row .shop-goods-card { flex-basis: 16rem; }
    .shop-storefront .shop-goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .shop-storefront .shop-goods-card { padding: .8rem; }
    .shop-storefront .shop-goods-price { font-size: 1.6rem; }
}
