.mps-sections, .mps-product-content, .mps-preview { min-width: 0; color: #263c46; font-size: calc(15px * var(--mps-font-scale, 1)); letter-spacing: 0; }
.mps-product-service-tags { display:flex;flex-wrap:wrap;gap:8px; }.mps-product-service-tags span { padding:3px 8px;border:1px solid #d6eade;border-radius:4px;background:#f0f8f3;color:#398359;font-size:12px;overflow-wrap:anywhere; }
.mps-product-duration { display:flex;gap:14px;align-items:baseline;font-size:13px;color:#8a93a0; }.mps-product-duration strong { font-weight:500;color:#465263; }.mps-product-recharge-link { color:var(--store-accent,#2468da);font-size:14px;text-decoration:underline;text-underline-offset:3px; }
.mps-sections *, .mps-product-content *, .mps-preview *, .mps-media { box-sizing: border-box; letter-spacing: 0; }
.mps-sections[hidden], .mps-media [hidden] { display: none !important; }
.mps-band { width: 100%; margin: 0; padding: 28px 24px; border-bottom: 1px solid #e0e7e9; background: #fff; }
.mps-band-text { background: #f9fbfa; }
.mps-band-banner { padding: 0; border: 0; background: transparent; }
.mps-band-banner .mps-image { aspect-ratio: 1480 / 780; height: auto; object-fit: contain; border-radius: 8px; background: transparent; }
.mps-band-notice { padding: 12px 18px; border: 0; background: #f1f7ff; color: #507193; }
.mps-band-notice .mps-text { font-size: 12px; }
.mps-band-notice { padding: 10px 14px; border: 0; background: transparent; }
.mps-notice-bar { display:flex; align-items:center; gap:10px; min-height:42px; padding:0 12px; border:1px solid #edf0f5; border-radius:4px; background:#fff; color:#27364d; box-shadow:0 4px 14px rgb(30 55 88 / 5%); }
.mps-notice-bar > svg { flex:0 0 17px; width:17px; height:17px; color:#1677ff; }
.mps-notice-title { flex:0 0 auto; font-size:14px; }
.mps-notice-divider { width:1px; height:17px; background:#dce4ee; }
.mps-notice-text { min-width:0; overflow:hidden; color:#526176; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.mps-notice-bar > a { margin-left:auto; flex:0 0 auto; color:#a3acb8; font-size:11px; text-decoration:none; }
.mps-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.mps-band[style*="--mps-columns"] .mps-shortcuts { grid-template-columns:repeat(var(--mps-columns),minmax(0,1fr)); }
.mps-band[style*="--mps-gap"] .mps-shortcuts { gap:var(--mps-gap); }
.mps-shortcuts a { display: grid; justify-items: center; align-content: start; gap: 9px; min-width: 0; color: #495364; text-decoration: none; font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.mps-shortcut-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #edf5ff; color: #3288ef; }
.mps-shortcut-icon svg { width: 23px; height: 23px; stroke-width: 1.8; }
.mps-shortcuts a:nth-child(4n+2) .mps-shortcut-icon { background: #fff2e7; color: #e99840; }
.mps-shortcuts a:nth-child(4n+3) .mps-shortcut-icon { background: #e8f8f2; color: #24a47f; }
.mps-shortcuts a:nth-child(4n+4) .mps-shortcut-icon { background: #fff0f1; color: #e47786; }
.mps-shortcut-icon .mps-media, .mps-shortcut-icon img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; border-radius: inherit; }
.mps-shortcuts a:hover { color: var(--store-accent,#1677ff); }
.mps-preview[data-preview-channel=pc] > .mps-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 12px; }
.mps-preview[data-preview-channel=pc] > .mps-sections > .mps-band { grid-column: 1 / -1; }
.mps-preview[data-preview-channel=pc] > .mps-sections > .mps-band-banner { grid-column: auto; padding: 0; }
.mps-inner { width: min(100%, 1240px); margin-inline: auto; min-width: 0; }
.mps-heading { margin: 0 0 14px; font-size: 22px; line-height: 1.4; overflow-wrap: anywhere; }
.mps-text, .mps-product-description { margin: 0; font-size: 15px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.mps-figure { margin: 0; }
.mps-figure > a { display: block; color: inherit; }
.mps-media { position: relative; min-width: 0; }
.mps-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: scale-down; background: #f2f5f5; }
.mps-image-error { display: grid; place-items: center; min-height: 120px; margin: 0; color: #795154; background: #f6f1f1; font-size: 13px; }
.mps-caption { margin-top: 10px; color: #667a81; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.mps-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; }
.mps-links a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 6px 0; color: var(--mps-accent, #136f79); font-size: 15px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.mps-links a:hover { color: #9c4839; }
.mps-links a:focus-visible, .mps-figure a:focus-visible, .mps-preview-action:focus-visible { outline: 2px solid var(--mps-accent, #136f79); outline-offset: 3px; }
.mps-product-content { display: grid; gap: 18px; padding-block: 18px; border-block: 1px solid #e0e7e9; }
.mps-product-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.mps-product-gallery .mps-image { width: auto; max-width: 100%; height: auto; aspect-ratio: auto; max-height: 560px; margin-inline: auto; object-fit: contain; }
.mps-product-cover { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 4 / 3; object-fit: scale-down; }
.product-visual > .mps-media { width: 100%; height: 100%; }
.mps-preview { width: 100%; margin: 0 auto; background: #fff; white-space: normal; overflow-wrap: anywhere; }
.mps-preview-mobile { max-width: 420px; }
.mps-product-section { padding: 18px 0; border-top: 1px solid #dfebf3; }
.mps-product-section h3 { margin: 0 0 10px; font-size: 15px; color: #2c617c; }
.mps-product-section p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mps-preview-brand { padding: 14px 18px; border-bottom: 1px solid #e0e7e9; font-size: 15px; font-weight: 650; }
.mps-preview-announcement { margin: 0; padding: 12px 18px; color: #52685e; background: #eef6f1; font-size: 13px; white-space: pre-wrap; }
.mps-preview-intro { padding: 22px 18px; background: #f4f7f7; }
.mps-preview-title { margin: 0 0 12px; font-size: 24px; line-height: 1.4; }
.mps-preview-action { display: inline-block; margin-top: 16px; color: var(--mps-accent); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.mps-preview .mps-band { padding: 22px 18px; }
.mps-preview .mps-heading { font-size: 18px; }
.mps-preview .mps-text { font-size: 14px; }
.mps-shop-grid { display:grid;grid-template-columns:repeat(var(--mps-columns,4),minmax(0,1fr));gap:var(--mps-gap,14px); }
.mps-shop-product { min-width:0;overflow:hidden;background:#fff;border:1px solid #dbe8f3;border-radius:var(--mps-card-radius,6px);display:flex;flex-direction:column; }
.mps-shop-cover { display:grid;place-items:center;aspect-ratio:4/3;width:100%;background:#eff8ff;color:#668bab;overflow:hidden; }
.mps-shop-cover img { width:100%;height:100%;object-fit:contain; }
.mps-shop-cover svg { width:32px;height:32px;color:#38a0db; }
.mps-shop-cover span { font-size:12px; }
.mps-shop-info { min-width:0;padding:12px;display:flex;flex-direction:column;gap:9px;flex:1; }
.mps-shop-category { font-size:11px;color:#537998;overflow-wrap:anywhere; }
.mps-shop-product h3 { font-size:14px;line-height:1.5;color:#254b70;margin:0;overflow-wrap:anywhere; }
.mps-shop-product strong { color:#dc4770;font-size:17px;margin-top:auto;overflow-wrap:anywhere; }
.mps-shop-info button,.mps-shop-search button { border:0;border-radius:4px;background:var(--store-accent,var(--mps-accent,#2478ee));color:#fff;min-height:36px;padding:8px 12px;font-size:12px;cursor:pointer; }
.mps-shop-info button:disabled { cursor:default;background:#edf5fc;color:#517490; }
.mps-shop-categories { display:grid;grid-template-columns:repeat(var(--mps-columns,4),minmax(0,1fr));gap:var(--mps-gap,12px); }
.mps-shop-categories button { display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;border:1px solid #d6e8f5;border-radius:4px;background:#f3faff;color:#32658d;font-size:13px;cursor:pointer;padding:10px 14px;overflow-wrap:anywhere;text-align:left; }
.mps-shop-categories button:nth-child(3n+2) { background:#edfaf5;color:#177f6d;border-color:#d4eee6; }
.mps-shop-categories button:nth-child(3n) { background:#fff5f7;color:#b54368;border-color:#f4dfe7; }
.mps-shop-categories button svg { flex:0 0 18px;width:18px;height:18px; }
.mps-shop-categories button:disabled { cursor:default;opacity:1; }
.mps-band-categories,
.mps-band-product_grid { padding:20px 24px 24px; border-bottom:0; background:transparent; }
.mps-band-categories .mps-heading,
.mps-band-product_grid .mps-heading { display:flex; align-items:center; min-height:38px; margin:0 0 16px; padding:0 14px 0 12px; border-left:4px solid var(--mps-accent,#1677ff); border-radius:2px 0 0 2px; background:linear-gradient(90deg,rgb(237 246 255 / 84%),rgb(237 246 255 / 28%) 52%,transparent); color:#20364f; font-size:20px; font-weight:700; }
.mps-band-categories .mps-shop-categories { display:flex; flex-wrap:wrap; gap:12px; }
.mps-band-categories .mps-shop-categories button { width:auto; min-width:88px; min-height:38px; padding:0 16px; border:1px solid #e6ebf2; border-radius:4px; background:#fff; color:#526176; box-shadow:0 2px 8px rgb(42 68 98 / 4%); }
.mps-band-categories .mps-shop-categories button:first-child,
.mps-band-categories .mps-shop-categories button:hover { border-color:var(--mps-accent,#1677ff); background:var(--mps-accent,#1677ff); color:#fff; }
.mps-band-product_grid .mps-shop-grid { gap:16px; }
.mps-band-product_grid .mps-shop-status { display:grid; place-items:center; min-height:58px; margin:0; padding:12px; border:1px dashed #d9e3ee; background:rgb(248 251 255 / 72%); color:#8a9caf; }
.mps-shop-search { display:flex;gap:8px;max-width:760px;margin:auto; }
.mps-shop-search input { flex:1;min-width:0;border:1px solid #bbd8ef;border-radius:4px;background:#fff;padding:10px 14px;font-size:14px;color:#325575; }
.mps-shop-search input:disabled { color:#52728d;background:#f7fbff; }
.mps-shop-search button { flex-shrink:0;min-width:64px; }
.mps-shop-status { font-size:13px;color:#537594;line-height:1.6;margin:16px 0;overflow-wrap:anywhere; }
.mps-shop-status.is-error { color:#ad3656; }
.mps-commerce-slot .mps-shop-gate { display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;padding:22px 12px;text-align:center; }
.mps-commerce-slot .mps-shop-gate .mps-shop-status { flex-basis:100%;min-height:0;margin:0;padding:0;border:0;background:none; }
.mps-shop-gate button { min-height:40px;padding:8px 16px;border:1px solid #c8d4e4;border-radius:6px;background:#fff;color:#2563a8;cursor:pointer; }
.mps-commerce-slot > button { min-height:36px;border:1px solid #abcdea;background:#fff;color:#2269b7;padding:8px 14px;margin-right:8px;border-radius:4px;cursor:pointer; }
body[data-app="mall-mobile"] .mps-shop-grid,.mps-preview-mobile .mps-shop-grid,body[data-app="mall-mobile"] .mps-shop-categories,.mps-preview-mobile .mps-shop-categories { grid-template-columns:repeat(min(var(--mps-columns,2),2),minmax(0,1fr)); }
body[data-app="mall-mobile"] .mps-band, .mps-preview-mobile .mps-band { padding: 22px 20px; }
body[data-app="mall-mobile"] .mps-heading { font-size: 19px; }
@media (max-width: 680px) {
  .mps-shop-grid,.mps-shop-categories { grid-template-columns:repeat(min(var(--mps-columns,2),2),minmax(0,1fr)); }
  .mps-shop-categories button { padding:8px;font-size:12px; }
  .mps-band-categories,.mps-band-product_grid { padding:18px 14px 20px; }
  .mps-band-categories .mps-heading,.mps-band-product_grid .mps-heading { margin-bottom:14px; font-size:19px; }
  .mps-band-categories .mps-shop-categories { gap:8px; }
  .mps-band-categories .mps-shop-categories button { min-width:0; padding:0 13px; font-size:12px; }
  .mps-shop-info { padding:10px; }
  .mps-band { padding: 22px 20px; }
  .mps-heading { font-size: 19px; }
  .mps-links { gap: 0 22px; }
  .mps-product-description { font-size: 14px; }
}

/* Template regions use their own width so editor thumbnails and dialogs reflow correctly. */
.mps-sections[data-layout-variant] { container-type:inline-size; container-name:mps-region; }
.mps-sections[data-layout-variant] > .mps-band { min-width:0; }
.mps-sections [hidden],.mps-preview [hidden],body[data-app^="mall-"] [hidden] { display:none !important; }
.mps-sections .mps-heading { font-size:20px; line-height:1.5; }
.mps-sections :is(a,button,input):focus-visible { outline:2px solid var(--mps-accent,#2563eb); outline-offset:3px; }
.mps-sections :is(button,a) { min-height:44px; }
.mps-sections :is(button,a):active { opacity:.8; }
.mps-preview .mps-sections[data-layout-variant] { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; padding:16px; }
.mps-sections[data-layout-variant]:not([data-layout-variant=default]) > .mps-band-banner { grid-column:1 / -1; }
.mps-sections[data-layout-variant] .mps-band-showcase,
.mps-sections[data-layout-variant] .mps-band-carousel { padding:0; background:transparent; border:0; }
.mps-showcase { display:grid; grid-template-columns:176px minmax(0,1fr) 216px; gap:16px; align-items:stretch; }
.mps-showcase[data-categories=false] { grid-template-columns:minmax(0,1fr) 216px; }
.mps-showcase[data-member=false] { grid-template-columns:176px minmax(0,1fr); }
.mps-showcase[data-member=false][data-categories=false] { grid-template-columns:minmax(0,1fr); }
.mps-showcase > * { min-width:0; }
.mps-showcase-categories { padding:16px 12px; background:#fff; max-height:440px; overflow:auto; }
.mps-showcase-categories h3 { display:flex; align-items:center; min-height:36px; margin:0 0 14px; padding:0 10px; border-left:3px solid var(--mps-accent,#1677ff); border-radius:2px 0 0 2px; background:linear-gradient(90deg,rgb(237 246 255 / 84%),rgb(237 246 255 / 28%) 52%,transparent); color:#20364f; font-size:15px; font-weight:700; }
.mps-showcase-categories .mps-shop-categories { grid-template-columns:minmax(0,1fr); gap:4px; }
.mps-showcase-categories .mps-shop-categories button { border:0; background:#fff; color:#475569; padding:8px; }
.mps-showcase-categories .mps-shop-categories button:hover { background:#eef5fd; }
.mps-carousel { position:relative; align-self:start; overflow:hidden; min-width:0; background:#fff; }
.mps-carousel-track { aspect-ratio:1480 / 780; position:relative; }
.mps-carousel-slide { position:absolute; inset:0; }
.mps-carousel-slide > a,.mps-carousel-slide .mps-media { display:block; height:100%; }
.mps-carousel-slide .mps-image { width:100%; height:100%; aspect-ratio:auto; object-fit:contain; background:#fff; }
.mps-carousel-controls { display:flex; align-items:center; justify-content:center; gap:8px; padding:4px 8px; background:#fff; color:#4b5563; font-size:12px; }
.mps-carousel-controls button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:4px; color:#475569; background:#f3f5f7; cursor:pointer; }
.mps-carousel-controls button:hover { color:#1557b0; background:#e8f1fd; }
.mps-carousel-controls svg { width:18px; height:18px; }
.mps-carousel-controls span { min-width:48px; text-align:center; font-variant-numeric:tabular-nums; }
.mps-member-panel { display:flex; flex-direction:column; align-items:center; gap:12px; padding:20px 16px; background:#fff; text-align:center; min-width:0; }
.mps-member-panel > svg { width:36px; height:36px; padding:6px; box-sizing:content-box; color:#346aab; background:#eaf3fd; border-radius:50%; }
.mps-member-panel h3 { font-size:14px; margin:0; }
.mps-member-panel p { font-size:13px; line-height:1.65; margin:0; color:#64748b; overflow-wrap:anywhere; }
.mps-member-name { font-size:15px; line-height:1.6; overflow-wrap:anywhere; }
.mps-member-account { display:flex; align-items:center; justify-content:center; width:100%; padding:8px 12px; background:var(--mps-accent,#2563eb); color:#fff; border-radius:4px; text-decoration:none; font-size:13px; overflow-wrap:anywhere; }
.mps-member-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:8px; padding-top:14px; border-top:1px solid #e6ebef; }
.mps-member-links a { display:grid; justify-items:center; gap:8px; text-decoration:none; color:#475569; font-size:12px; overflow-wrap:anywhere; }
.mps-member-links .mps-shortcut-icon { width:32px; height:32px; background:transparent; color:#376995; border-radius:4px; }
.mps-member-links strong { font-weight:400; }
.mps-member-links svg { width:20px; height:20px; }
.mps-service-grid { display:grid; grid-template-columns:repeat(var(--mps-columns,4),minmax(0,1fr)); gap:var(--mps-gap,16px); }
.mps-service-grid a { display:flex; align-items:center; gap:14px; padding:16px; border:1px solid #e1e7ed; border-radius:6px; min-width:0; color:#354052; background:#f7fafd; text-decoration:none; }
.mps-service-grid a:nth-child(4n+2) { background:#fff5f5; }
.mps-service-grid a:nth-child(4n+3) { background:#eff8f3; }
.mps-service-grid a:nth-child(4n) { background:#faf7ee; }
.mps-service-grid a:hover { border-color:var(--mps-accent,#2563eb); }
.mps-service-label { display:grid; gap:6px; min-width:0; overflow-wrap:anywhere; }
.mps-service-label strong { font-size:14px; font-weight:600; line-height:1.5; }
.mps-service-label > span { color:#64748b; font-size:12px; line-height:1.6; }
.mps-service-grid .mps-shortcut-icon { flex:0 0 40px; width:40px; height:40px; border-radius:6px; }
.mps-promo-grid { display:grid; grid-template-columns:repeat(var(--mps-columns,2),minmax(0,1fr)); gap:var(--mps-gap,16px); }
.mps-promo-grid a { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:center; gap:14px; min-width:0; padding:18px; border:1px solid #dce7f4; border-radius:10px; background:linear-gradient(135deg,#f5faff,#fff); color:#284b6d; text-decoration:none; }
.mps-promo-grid a:nth-child(3n+2) { background:linear-gradient(135deg,#fff8ef,#fff); border-color:#f2dfc6; }
.mps-promo-grid a:nth-child(3n) { background:linear-gradient(135deg,#effbf7,#fff); border-color:#d5eee5; }
.mps-promo-grid a:hover { border-color:var(--mps-accent,#2563eb); transform:translateY(-1px); }
.mps-promo-grid .mps-shortcut-icon { width:44px; height:44px; border-radius:10px; }
.mps-band-promo_grid[data-promo-source="catalog"] { padding:12px 10px 14px; border:2px solid #f25a5a; border-radius:4px; background:#fff; }
.mps-promo-heading { display:flex; align-items:center; gap:8px; min-height:32px; margin:0 0 12px; padding:0; }
.mps-promo-heading h2 { margin:0; color:#17233e; font-size:18px; line-height:1.4; }
.mps-promo-badge { display:inline-flex; align-items:center; min-height:22px; padding:2px 8px; border-radius:6px; background:#ff9f1c; color:#fff; font-size:11px; font-weight:650; }
.mps-band-promo_grid[data-promo-source="catalog"] .mps-shop-grid { --mps-gap:10px; }
.mps-stats-grid { display:grid; grid-template-columns:repeat(var(--mps-columns,3),minmax(0,1fr)); gap:var(--mps-gap,14px); }
.mps-stat-card { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:center; column-gap:10px; padding:18px; border:1px solid #e0eaf3; border-radius:10px; background:#fff; }
.mps-stat-card > svg { grid-row:1 / span 3; width:25px; height:25px; padding:8px; box-sizing:content-box; border-radius:9px; color:var(--mps-accent,#2563eb); background:#edf5ff; }
.mps-stat-card:nth-child(3n+2) > svg { color:#e38a2f; background:#fff3e2; }
.mps-stat-card:nth-child(3n) > svg { color:#1d9a78; background:#e8f8f2; }
.mps-stat-value { color:#233f5c; font-size:22px; line-height:1.2; }
.mps-stat-label { color:#4d6682; font-size:13px; }
.mps-stat-card small { color:#8a9caf; font-size:11px; }
.mps-benefits-grid { display:grid; grid-template-columns:repeat(var(--mps-columns,3),minmax(0,1fr)); gap:var(--mps-gap,14px); }
.mps-benefit-card { display:flex; align-items:flex-start; gap:12px; min-width:0; padding:18px; border:1px solid #e2eaf2; border-radius:10px; background:#fff; }
.mps-benefit-card > svg { flex:0 0 23px; width:23px; height:23px; padding:8px; border-radius:9px; color:#2563eb; background:#edf5ff; }
.mps-benefit-card:nth-child(3n+2) > svg { color:#df8a32; background:#fff3e2; }
.mps-benefit-card:nth-child(3n) > svg { color:#1c9a77; background:#e7f8f0; }
.mps-benefit-copy { display:grid; gap:6px; min-width:0; }
.mps-benefit-copy strong { color:#294866; font-size:14px; }
.mps-benefit-copy p { margin:0; color:#71869b; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.mps-faq-list { display:grid; gap:10px; }
.mps-faq-item { border:1px solid #e1e9f2; border-radius:8px; background:#fff; }
.mps-faq-question { display:flex; align-items:center; gap:10px; min-height:48px; padding:0 16px; color:#2d4e6d; font-size:14px; cursor:pointer; list-style:none; }
.mps-faq-question::-webkit-details-marker { display:none; }
.mps-faq-question svg { width:18px; height:18px; color:var(--mps-accent,#2563eb); }
.mps-faq-item > p { margin:0; padding:0 16px 16px 44px; color:#71869b; font-size:13px; line-height:1.7; }
.mps-sections .mps-shortcut-icon { border-radius:6px; }
.mps-sections .mps-shop-info button,.mps-sections .mps-shop-search button { min-height:44px; }
.mps-commerce-slot[data-layout=list] .mps-shop-categories { grid-template-columns:minmax(0,1fr); }
.mps-commerce-slot[data-layout=matrix] > .mps-shop-categories { grid-template-columns:repeat(var(--mps-columns,6),minmax(0,1fr)); }
.mps-commerce-slot[data-layout=matrix] > .mps-shop-categories button { flex-direction:column; justify-content:center; text-align:center; min-height:76px; padding:12px 8px; }
.mps-showcase-categories .mps-commerce-slot[data-layout=matrix] > .mps-shop-categories { grid-template-columns:minmax(0,1fr); }
.mps-showcase-categories .mps-commerce-slot[data-layout=matrix] > .mps-shop-categories button { flex-direction:row; justify-content:flex-start; text-align:left; min-height:44px; }
.mps-commerce-slot[data-layout=rail] .mps-shop-categories { display:flex; overflow:auto; padding:4px 2px; }
.mps-commerce-slot[data-layout=rail] .mps-shop-categories button { flex-shrink:0; }
.mps-shop-grid[data-layout=list] { grid-template-columns:minmax(0,1fr) !important; }
.mps-shop-grid[data-layout=list] .mps-shop-product { display:grid; grid-template-columns:96px minmax(0,1fr); }
.mps-shop-grid[data-layout=list] .mps-shop-cover { height:100%; min-height:100px; aspect-ratio:auto; }
.mps-shop-grid[data-layout=list] .mps-shop-info { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
.mps-shop-grid[data-layout=list] .mps-shop-category { grid-column:1 / -1; }
.mps-shop-grid[data-layout=list] .mps-shop-info strong { margin:0; }
.mps-shop-grid[data-layout=list] .mps-shop-info button { grid-column:2; }
.mps-shop-grid[data-layout=rail] { display:grid; grid-template-columns:none !important; grid-auto-flow:column; grid-auto-columns:minmax(164px,22%); overflow:auto; padding-bottom:8px; scroll-snap-type:x proximity; }
.mps-shop-grid[data-layout=rail] .mps-shop-product { scroll-snap-align:start; }
.mps-preview-brand { display:flex; align-items:center; gap:10px; min-height:60px; }
.mps-preview-brand .mps-media { width:32px; flex:0 0 32px; }
.mps-preview-brand img { width:32px; height:32px; aspect-ratio:1; object-fit:contain; background:transparent; }
.mps-preview[data-thumbnail=true] { max-width:none; pointer-events:none; }
.mps-preview[data-preview-channel=mobile] { max-width:390px; }
.mps-preview[data-page-type=bottom-nav] .mps-shortcuts { grid-template-columns:repeat(5,minmax(0,1fr)); }
.mps-preview[data-layout-variant=catalog] .mps-band { padding:16px; }

/* 首屏分类为短行；独立分类在下方单独覆盖历史矩阵布局。 */
.mps-showcase-categories .mps-commerce-slot[data-layout=matrix] > .mps-shop-categories {
  grid-template-columns:minmax(0,1fr);
  gap:4px;
}
.mps-showcase-categories .mps-commerce-slot[data-layout=matrix] > .mps-shop-categories button {
  align-items:center;
  justify-content:flex-start;
  flex-direction:row;
  min-width:0;
  min-height:38px;
  padding:7px 9px;
  border:0;
  border-left:2px solid transparent;
  border-radius:4px;
  background:transparent;
  color:#52677d;
  font-size:11px;
  line-height:1.35;
  text-align:left;
}
.mps-showcase-categories .mps-commerce-slot[data-layout=matrix] > .mps-shop-categories button:hover,
.mps-showcase-categories .mps-commerce-slot[data-layout=matrix] > .mps-shop-categories button:first-child {
  border-left-color:var(--mps-accent,#1677ff);
  background:#edf5ff;
  color:var(--mps-accent,#1677ff);
}
.mps-showcase-categories .mps-commerce-slot[data-layout=matrix] > .mps-shop-categories button svg {
  flex:0 0 18px;
  width:18px;
  height:18px;
}
.mps-band-categories .mps-commerce-slot > .mps-shop-categories {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:8px;
}
.mps-band-categories .mps-commerce-slot > .mps-shop-categories button {
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:auto;
  max-width:100%;
  min-width:0;
  min-height:36px;
  padding:7px 14px;
  border-radius:4px;
  box-shadow:none;
  font-size:13px;
  line-height:20px;
  text-align:left;
  white-space:normal;
  overflow-wrap:anywhere;
}
.mps-preview[data-layout-variant=lifestyle] .mps-band-banner .mps-image { max-height:360px; object-fit:contain; }
.mps-thumbnail-skeleton { display:grid; grid-template-columns:repeat(var(--mps-columns,4),minmax(0,1fr)); gap:12px; padding-block:8px; }
.mps-thumbnail-skeleton span { display:block; aspect-ratio:4/3; background:#e5ebf1; border:12px solid #f8fafc; border-bottom-width:30px; border-radius:4px; }
.mps-thumbnail-skeleton[data-kind=categories] span { aspect-ratio:1.5; border:8px solid #f3f7fa; }
.mps-thumbnail-skeleton[data-kind=search] { grid-template-columns:minmax(0,1fr); }
.mps-thumbnail-skeleton[data-kind=search] span { height:44px; aspect-ratio:auto; border:1px solid #dbe4ed; background:#f8fafc; }
.mps-showcase-categories .mps-thumbnail-skeleton { grid-template-columns:minmax(0,1fr); gap:8px; }
.mps-showcase-categories .mps-thumbnail-skeleton span { height:30px; aspect-ratio:auto; border:0; }
.mps-route-notice { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px; margin:0 auto 16px; max-width:var(--store-body-width,1200px); color:#694c25; background:#fff8e9; font-size:13px; }
.mps-route-notice button { min-height:44px; padding:8px 12px; border:1px solid #bda87f; border-radius:4px; background:#fff; color:#694c25; cursor:pointer; }
.mps-essential-nav { display:flex; gap:16px; justify-content:center; padding:8px 16px; background:#fff; flex-wrap:wrap; }
.mps-essential-nav a { display:flex; align-items:center; gap:6px; min-height:44px; color:#275ea3; text-decoration:none; font-size:13px; }
.mps-essential-nav svg { width:18px; height:18px; }
body[data-app=mall-pc] #storeContent > [data-mall-page-sections],
body[data-app=mall-pc] .catalog-shell,
body[data-app=mall-pc] .store-intro { max-width:var(--store-body-width,1200px); width:calc(100% - 32px); }
body[data-app=mall-pc] .mps-desktop-bottom { position:static; display:flex; justify-content:center; gap:28px; padding:16px; background:#fff; }
body[data-app=mall-pc] .mps-desktop-bottom a { display:flex; gap:8px; align-items:center; min-height:44px; color:#475569; text-decoration:none; }
body[data-app=mall-pc] .mps-desktop-bottom svg { width:20px; height:20px; }
body[data-app=mall-mobile] .bottom-nav { grid-template-columns:repeat(var(--mps-nav-count,5),minmax(0,1fr)); }
body[data-app=mall-mobile] .bottom-nav a { min-height:44px; overflow-wrap:anywhere; font-size:11px; }
body[data-app=mall-mobile] .bottom-nav span { text-align:center; line-height:1.4; }
body[data-app=mall-mobile] [data-mall-page-sections] { max-width:100%; }
body[data-app=mall-mobile] .mps-route-notice { flex-wrap:wrap; }
body[data-layout-variant=catalog] .catalog-main .product-card { border-radius:4px; }
@container mps-region (max-width:780px) {
  .mps-showcase,.mps-showcase[data-categories=false],.mps-showcase[data-member=false] { grid-template-columns:minmax(0,1fr); gap:12px; }
  .mps-showcase .mps-carousel { grid-row:1; }
  .mps-showcase-categories { max-height:none; padding:14px; }
  .mps-showcase-categories .mps-commerce-slot[data-layout=matrix] > .mps-shop-categories { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .mps-showcase-categories .mps-commerce-slot[data-layout=matrix] > .mps-shop-categories button { flex-direction:column; text-align:center; justify-content:center; }
  .mps-service-grid { grid-template-columns:repeat(min(var(--mps-columns,2),2),minmax(0,1fr)); gap:12px; }
  .mps-promo-grid,.mps-stats-grid,.mps-benefits-grid { grid-template-columns:repeat(min(var(--mps-columns,2),2),minmax(0,1fr)); gap:12px; }
  .mps-promo-grid a,.mps-stat-card,.mps-benefit-card { padding:14px; }
  .mps-service-grid a { flex-direction:column; align-items:flex-start; padding:14px; }
  .mps-member-panel { display:grid; grid-template-columns:48px minmax(0,1fr); text-align:left; align-items:center; gap:10px; }
  .mps-member-panel > p,.mps-member-links,.mps-member-account { grid-column:1 / -1; }
  .mps-member-links { text-align:center; }
  .mps-commerce-slot[data-layout=matrix] > .mps-shop-categories { grid-template-columns:repeat(min(var(--mps-columns,4),4),minmax(0,1fr)); }
  .mps-shop-grid:not([data-layout=list]):not([data-layout=rail]) { grid-template-columns:repeat(min(var(--mps-columns,2),2),minmax(0,1fr)); }
  .mps-sections .mps-band { padding:16px 12px; }
  .mps-sections .mps-band-carousel,.mps-sections .mps-band-showcase { padding:0; }
  .mps-thumbnail-skeleton { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mps-showcase-categories .mps-thumbnail-skeleton { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .mps-shortcuts { gap:12px; }
}

.mps-member-links .mps-service-label strong { font-size:12px; font-weight:400; }
.mps-sections[data-layout-variant=lifestyle][data-page-type=home] { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:16px; }
.mps-sections[data-layout-variant=lifestyle][data-page-type=home] > .mps-band-banner { grid-column:1; align-self:start; }
.mps-sections[data-layout-variant=lifestyle][data-page-type=home] > .mps-band-service_grid { grid-column:2; grid-row:1; padding:20px 16px; }
.mps-sections[data-layout-variant=lifestyle][data-page-type=home] > .mps-band-service_grid .mps-service-grid a { flex-direction:column; align-items:flex-start; }
.mps-sections[data-layout-variant=lifestyle][data-page-type=home] > :not(.mps-band-banner):not(.mps-band-service_grid) { grid-column:1 / -1; }
.mps-preview[data-layout-variant=lifestyle] .mps-band-banner .mps-image { max-height:none; }
body[data-app=mall-pc][data-product-display-mode=list] #products .product-card { grid-template-rows:auto; min-height:120px; }
body[data-app=mall-mobile][data-product-display-mode=list] #products .product-card { grid-template-rows:auto; }
body[data-app=mall-pc] #storeContent > [data-mall-page-sections] { margin-top:20px; }
body[data-app=mall-pc] .store-footer nav a { display:inline-flex; align-items:center; gap:6px; min-height:44px; }
body[data-app=mall-pc] .store-footer nav svg { width:16px; height:16px; flex-shrink:0; }
body[data-app=mall-mobile] .mps-sections[data-layout-variant=lifestyle][data-page-type=home],
.mps-preview-mobile .mps-sections[data-layout-variant=lifestyle][data-page-type=home] { grid-template-columns:minmax(0,1fr); }
body[data-app=mall-mobile] .mps-sections[data-layout-variant=lifestyle][data-page-type=home] > .mps-band-service_grid,
.mps-preview-mobile .mps-sections[data-layout-variant=lifestyle][data-page-type=home] > .mps-band-service_grid { grid-column:1; grid-row:auto; }

/* 目录没有商品时只保留紧凑的状态提示，避免空组件撑开首页。 */
.mps-band-promo_grid:has(.mps-commerce-slot > .mps-shop-status),
.mps-band-categories:has(.mps-commerce-slot > .mps-shop-status),
.mps-band-product_grid:has(.mps-commerce-slot > .mps-shop-status) {
  padding-top: 10px;
  padding-bottom: 12px;
}
.mps-band-promo_grid:has(.mps-commerce-slot > .mps-shop-status) .mps-promo-heading,
.mps-band-categories:has(.mps-commerce-slot > .mps-shop-status) .mps-heading,
.mps-band-product_grid:has(.mps-commerce-slot > .mps-shop-status) .mps-heading { margin-bottom: 6px; }
.mps-band-promo_grid:has(.mps-commerce-slot > .mps-shop-status) .mps-shop-status,
.mps-band-categories:has(.mps-commerce-slot > .mps-shop-status) .mps-shop-status,
.mps-band-product_grid:has(.mps-commerce-slot > .mps-shop-status) .mps-shop-status {
  min-height: 30px;
  margin: 0;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: #8a9caf;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}
@container mps-region (max-width: 780px) {
  .mps-band-promo_grid:has(.mps-commerce-slot > .mps-shop-status),
  .mps-band-categories:has(.mps-commerce-slot > .mps-shop-status),
  .mps-band-product_grid:has(.mps-commerce-slot > .mps-shop-status) {
    padding-top: 8px;
    padding-bottom: 10px;
  }
}

/* 优势保障采用开放式服务栏，避免白底卡片堆叠占用首屏空间。 */
.mps-band-benefits,
.mps-sections .mps-band-benefits,
.mps-preview-mobile .mps-band-benefits,
body[data-app=mall-mobile] .mps-band-benefits {
  padding: 30px 24px 34px;
  border: 0;
  background: transparent;
}
.mps-band-benefits .mps-inner { max-width: 1080px; }
.mps-band-benefits .mps-heading {
  margin: 0 0 22px;
  color: #20364f;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.mps-band-benefits .mps-heading::after {
  display: block;
  width: 34px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--mps-accent, #2563eb);
  content: "";
}
.mps-band-benefits .mps-benefits-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}
.mps-band-benefits .mps-benefit-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 12px 28px;
  border: 0;
  border-right: 1px solid rgb(133 160 188 / 24%);
  border-radius: 0;
  background: transparent;
  transition: transform 180ms ease;
}
.mps-band-benefits .mps-benefit-card:last-child { border-right: 0; }
.mps-band-benefits .mps-benefit-card::after {
  position: absolute;
  right: 28px;
  bottom: 0;
  left: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--mps-accent, #2563eb);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity 180ms ease, transform 180ms ease;
}
.mps-band-benefits .mps-benefit-card:hover { transform: translateY(-3px); }
.mps-band-benefits .mps-benefit-card:hover::after { opacity: .9; transform: scaleX(1); }
.mps-band-benefits .mps-benefit-card > svg {
  width: 24px;
  height: 24px;
  padding: 12px;
  border: 1px solid rgb(37 99 235 / 18%);
  border-radius: 50%;
  color: #2563eb;
  background: rgb(237 245 255 / 82%);
  box-shadow: 0 8px 18px rgb(37 99 235 / 12%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.mps-band-benefits .mps-benefit-card:nth-child(2) > svg {
  border-color: rgb(223 138 50 / 20%);
  color: #df8a32;
  background: rgb(255 243 226 / 86%);
  box-shadow: 0 8px 18px rgb(223 138 50 / 12%);
}
.mps-band-benefits .mps-benefit-card:nth-child(3) > svg {
  border-color: rgb(28 154 119 / 20%);
  color: #1c9a77;
  background: rgb(231 248 240 / 86%);
  box-shadow: 0 8px 18px rgb(28 154 119 / 12%);
}
.mps-band-benefits .mps-benefit-card:hover > svg {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 22px rgb(37 99 235 / 18%);
}
.mps-band-benefits .mps-benefit-copy { gap: 5px; }
.mps-band-benefits .mps-benefit-copy strong {
  color: #20364f;
  font-size: 15px;
  line-height: 1.4;
}
.mps-band-benefits .mps-benefit-copy p {
  color: #70839a;
  font-size: 12px;
  line-height: 1.55;
}
@media (prefers-reduced-motion: reduce) {
  .mps-band-benefits .mps-benefit-card,
  .mps-band-benefits .mps-benefit-card::after,
  .mps-band-benefits .mps-benefit-card > svg { transition: none; }
}
@container mps-region (max-width: 780px) {
  .mps-band-benefits,
  .mps-sections .mps-band-benefits,
  .mps-preview-mobile .mps-band-benefits,
  body[data-app=mall-mobile] .mps-band-benefits { padding: 24px 14px 28px; }
  .mps-band-benefits .mps-heading { margin-bottom: 16px; font-size: 18px; }
  .mps-band-benefits .mps-benefits-grid { grid-template-columns: minmax(0, 1fr); }
  .mps-band-benefits .mps-benefit-card {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 70px;
    padding: 12px 10px;
    border-right: 0;
    border-bottom: 1px solid rgb(133 160 188 / 22%);
  }
  .mps-band-benefits .mps-benefit-card:last-child { border-bottom: 0; }
  .mps-band-benefits .mps-benefit-card::after { right: 10px; bottom: 0; left: 10px; }
}
.mps-preview .mps-sections { gap:var(--mps-section-gap,16px); }
.mps-preview .mps-band:not(.mps-band-banner):not(.mps-band-carousel):not(.mps-band-showcase) { border-radius:var(--mps-card-radius,8px); }
.mps-preview[data-button-style=outline] .mps-shop-info button,.mps-preview[data-button-style=outline] .mps-shop-search button,.mps-preview[data-button-style=outline] .mps-member-account { background:#fff; color:var(--mps-accent,#2563eb); border:1px solid var(--mps-accent,#2563eb); }
.mps-preview[data-button-style=soft] .mps-shop-info button,.mps-preview[data-button-style=soft] .mps-shop-search button,.mps-preview[data-button-style=soft] .mps-member-account { background:#edf5ff; color:var(--mps-accent,#2563eb); }
@container mps-region (max-width:780px) {
  .mps-member-panel > h3 { grid-column:1 / -1; }
}
@media (max-width:780px) {
  body[data-app=mall-pc] #storeContent > .mps-sections[data-layout-variant=lifestyle][data-page-type=home] { grid-template-columns:minmax(0,1fr); }
  body[data-app=mall-pc] #storeContent > .mps-sections[data-layout-variant=lifestyle][data-page-type=home] > .mps-band-service_grid { grid-column:1; grid-row:auto; }
}

[data-mall-page-decoration] { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; margin-bottom:20px; }
body[data-app=mall-mobile] .mps-mobile-header-links { display:flex; gap:20px; padding:8px 14px; overflow:auto; background:#fff; }
body[data-app=mall-mobile] .mps-mobile-header-links a { display:flex; align-items:center; gap:6px; min-height:44px; flex-shrink:0; color:#475569; text-decoration:none; font-size:13px; }
body[data-app=mall-mobile] .mps-mobile-header-links svg { width:18px; height:18px; }
body[data-app=mall-mobile] .mps-mobile-footer { display:grid; gap:12px; padding:20px 14px; border-top:1px solid #e1e7ed; background:#fff; color:#526174; font-size:12px; }
body[data-app=mall-mobile] .mps-mobile-footer p { margin:8px 0 0; overflow-wrap:anywhere; }
body[data-app=mall-mobile] .mps-mobile-footer nav { display:flex; flex-wrap:wrap; gap:8px 20px; }
body[data-app=mall-mobile] .mps-mobile-footer a { display:flex; align-items:center; gap:6px; min-height:44px; color:#475569; text-decoration:none; }
body[data-app=mall-mobile] .mps-mobile-footer svg { width:16px; height:16px; }
/* Product tiles share their detail entry; stock and pricing remain server-owned. */
body[data-app] .store-product-tile.product-card,
.mps-sections .store-product-tile.mps-shop-product {
  display:flex;flex-direction:column;min-width:0;min-height:0;
  padding:0;border:0;border-radius:0;background:#fff;box-shadow:none;
  overflow:visible;transform:none;
}
body[data-app] .store-product-tile.product-card:hover,
.mps-sections .store-product-tile.mps-shop-product:hover { border:0;box-shadow:none;transform:none; }
body[data-app] .store-product-tile > .product-visual,
.mps-sections .store-product-tile > .mps-shop-cover {
  display:grid;place-items:center;flex:none;box-sizing:border-box;width:100%;height:auto;
  min-height:0;max-height:none;aspect-ratio:1;border:0;border-radius:0;padding:0;margin:0;
  overflow:hidden;background:#f5f6f8;color:#7a8797;cursor:pointer;font:inherit;
}
body[data-app] .store-product-tile > .product-visual img,
.mps-sections .store-product-tile > .mps-shop-cover img {
  display:block;width:100%;height:100%;min-height:0;padding:0;object-fit:contain;
}
body[data-app] .store-product-tile > .product-body,
.mps-sections .store-product-tile > .mps-shop-info {
  display:flex!important;flex:1;flex-direction:column;gap:0;min-width:0;padding:10px 0 0;
}
body[data-app] .store-product-tile h3,
.mps-sections .store-product-tile h3 {
  margin:0;min-width:0;font-size:14px;line-height:22px;font-weight:400;
}
body[data-app] .store-product-tile button.store-product-title,
.mps-sections .store-product-tile button.store-product-title {
  display:flex;align-items:flex-start;box-sizing:border-box;width:100%;min-height:44px;max-height:44px;
  padding:0;margin:0;border:0;border-radius:0;background:transparent;color:#424851;
  font:inherit;line-height:22px;text-align:left;overflow:hidden;overflow-wrap:anywhere;
  cursor:pointer;
}
body[data-app] .store-product-tile .store-product-title > span,
.mps-sections .store-product-tile .store-product-title > span {
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;
}
body[data-app="mall-mobile"] .mobile-catalog .store-product-tile.product-card h3 { padding-right:48px; }
body[data-app] .store-product-tile .store-product-meta,
.mps-sections .store-product-tile .store-product-meta {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:4px 8px;width:100%;min-width:0;margin:12px 0 0;padding:0;
}
body[data-app] .store-product-tile .store-product-meta strong,
.mps-sections .store-product-tile .store-product-meta strong {
  min-width:0;margin:0;color:#ff4d4f;font-size:22px;font-weight:400;
  line-height:32px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;
}
body[data-app] .store-product-tile .store-product-buy,
.mps-sections .store-product-tile .store-product-buy {
  flex:none;width:auto;min-height:28px;box-sizing:border-box;padding:3px 12px;
  margin:0 0 0 auto;border:1px solid var(--store-accent,var(--mps-accent,#2478ee));
  border-radius:16px;background:#fff;color:var(--store-accent,var(--mps-accent,#2478ee));
  font:inherit;font-size:12px;line-height:20px;white-space:nowrap;cursor:pointer;
}
body[data-app] .store-product-tile .store-product-buy:hover:not(:disabled),
.mps-sections .store-product-tile .store-product-buy:hover:not(:disabled) {
  background:var(--store-accent,var(--mps-accent,#2478ee));color:#fff;
}
body[data-app] .store-product-tile .store-product-buy:disabled,
.mps-sections .store-product-tile .store-product-buy:disabled {
  border-color:#d8dde5;background:#f7f8fa;color:#89929f;cursor:default;
}
body[data-app] .store-product-tile button:focus-visible,
.mps-sections .store-product-tile button:focus-visible {
  outline:2px solid var(--store-accent,var(--mps-accent,#2478ee));outline-offset:3px;
}
body[data-app] .store-product-tile :is(.product-label,.product-body > p,.product-identifiers) { display:none; }
body[data-product-display-mode=list] .store-product-tile.product-card,
.mps-sections .mps-shop-grid[data-layout=list] .store-product-tile.mps-shop-product {
  display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid #edf0f3;
}
body[data-product-display-mode=list] .store-product-tile > .product-body,
.mps-sections .mps-shop-grid[data-layout=list] .store-product-tile > .mps-shop-info { padding:0; }
body[data-product-display-mode=list] .store-product-tile .store-product-meta,
.mps-sections .mps-shop-grid[data-layout=list] .store-product-tile .store-product-meta { margin-top:auto; }
@media (max-width:600px) {
  body[data-app] .store-product-tile .store-product-meta,
  .mps-sections .store-product-tile .store-product-meta { gap:2px 4px;margin-top:8px; }
  body[data-app] .store-product-tile .store-product-meta strong,
  .mps-sections .store-product-tile .store-product-meta strong { font-size:18px;white-space:normal; }
  body[data-app] .store-product-tile .store-product-buy,
  .mps-sections .store-product-tile .store-product-buy { min-height:36px;padding:4px 8px;font-size:11px; }
  body[data-app] .store-product-tile h3,
  .mps-sections .store-product-tile h3 { font-size:13px; }
}
@media (max-width:360px) {
  body[data-app] .store-product-tile .store-product-meta strong,
  .mps-sections .store-product-tile .store-product-meta strong { font-size:14px; }
  body[data-app] .store-product-tile .store-product-buy,
  .mps-sections .store-product-tile .store-product-buy { padding-right:3px;padding-left:3px;font-size:10px; }
}

/* Mobile product facts remain visible while cards keep a two-column home
   layout. The list layout switches to one compact row without horizontal
   overflow at 320px. */
body[data-app="mall-mobile"] .mps-sections .mps-product-facts,
body[data-app="mall-mobile"] .mps-sections .store-product-identifiers,
body[data-app="mall-mobile"] .mobile-catalog .product-identifiers {
  display:flex !important;
  flex-wrap:wrap;
  align-items:center;
  gap:3px 6px;
  min-width:0;
  margin:0;
  color:#708095;
  font-size:10px;
  line-height:1.5;
}
body[data-app="mall-mobile"] .mps-sections .mps-product-facts > span,
body[data-app="mall-mobile"] .mps-sections .store-product-identifiers > span,
body[data-app="mall-mobile"] .mobile-catalog .product-identifiers > span {
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}
body[data-app="mall-mobile"] .mps-sections .mps-product-facts .store-product-stock.is-empty,
body[data-app="mall-mobile"] .mobile-catalog .product-stock.is-empty { color:#b44b55; }
body[data-app="mall-mobile"] .mps-sections .mps-product-facts .product-service-tag,
body[data-app="mall-mobile"] .mobile-catalog .product-service-tag { color:#3d8061; }
body[data-app="mall-mobile"] .mps-sections .mps-shop-actions,
body[data-app="mall-mobile"] .mobile-catalog .product-actions {
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
  align-items:center;
  gap:5px;
  min-width:0;
  margin-top:8px;
  padding:0;
}
body[data-app="mall-mobile"] .mps-sections .price-and-limit,
body[data-app="mall-mobile"] .mobile-catalog .price-and-limit {
  display:flex;
  position:relative;
  min-width:0;
  min-height:32px;
  grid-column:1;
  align-items:flex-start;
  flex-direction:column;
  justify-content:center;
  gap:0;
  margin:0;
}
body[data-app="mall-mobile"] .mps-sections .price-and-limit > strong,
body[data-app="mall-mobile"] .mobile-catalog .price-and-limit > strong {
  min-width:0;
  margin:0;
  color:#e46650;
  font-size:15px;
  line-height:1.25;
  overflow-wrap:anywhere;
}
body[data-app="mall-mobile"] .mps-sections .price-and-limit > strong,
body[data-app="mall-mobile"] .mobile-catalog .price-and-limit > strong {
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}
body[data-app="mall-mobile"] .mps-sections .mps-product-limits,
body[data-app="mall-mobile"] .mobile-catalog .mps-product-limits {
  display:block !important;
  position:static;
  color:#7f8a99;
  font-size:9px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
body[data-app="mall-mobile"] .mps-sections .mps-shop-actions > .mf-toggle-wrap,
body[data-app="mall-mobile"] .mobile-catalog .product-actions > .mf-toggle-wrap {
  display:flex;
  position:static;
  grid-column:2;
  grid-row:1;
  flex-wrap:wrap;
  width:34px;
  max-width:34px;
  min-width:34px;
  align-items:center;
  justify-content:center;
}
body[data-app="mall-mobile"] .mps-sections .mps-shop-actions .mf-toggle,
body[data-app="mall-mobile"] .mobile-catalog .product-actions .mf-toggle {
  width:32px;
  height:32px;
  min-height:32px;
  padding:0;
}
body[data-app="mall-mobile"] .mps-sections .mps-shop-actions .mf-retry,
body[data-app="mall-mobile"] .mobile-catalog .product-actions .mf-retry { max-width:100%; min-width:0; padding:2px; font-size:9px; overflow-wrap:anywhere; }
body[data-app="mall-mobile"] .mps-sections .mps-shop-actions .store-product-buy,
body[data-app="mall-mobile"] .mobile-catalog .product-actions .store-product-buy {
  width:100%;
  grid-column:1 / -1;
  min-width:0;
  min-height:36px;
  margin:0;
  padding:4px 5px;
  border-radius:4px;
  font-size:10px;
  line-height:20px;
  white-space:normal;
}
body[data-app="mall-mobile"] .mps-sections .mps-shop-info .store-product-title,
body[data-app="mall-mobile"] .mobile-catalog .store-product-title { padding-right:0; }
body[data-app="mall-mobile"] .mobile-catalog .store-product-tile.product-card h3 { padding-right:0; }
body[data-app="mall-mobile"][data-product-show-stock="false"] :is(.store-product-stock,.product-stock) { display:none; }
body[data-app="mall-mobile"] .mps-sections[data-template-id="mobile-home-modern"] .mps-shop-actions { margin:0 10px 10px; }
body[data-app="mall-mobile"] .mps-sections .mps-shop-product,
body[data-app="mall-mobile"] .mobile-catalog .store-product-tile.product-card { min-width:0; overflow:hidden; }
body[data-app="mall-mobile"] .mps-sections .mps-shop-grid[data-layout="list"] {
  grid-template-columns:minmax(0,1fr) !important;
  gap:0;
}
body[data-app="mall-mobile"] .mps-sections .mps-shop-grid[data-layout="list"] .mps-shop-product {
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  align-items:start;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #e9eef3;
}
body[data-app="mall-mobile"] .mps-sections .mps-shop-grid[data-layout="list"] .mps-shop-cover {
  width:88px;
  height:88px;
  min-height:88px;
  aspect-ratio:1;
}
body[data-app="mall-mobile"] .mps-sections .mps-shop-grid[data-layout="list"] .mps-shop-info { padding:0; }
body[data-app="mall-mobile"] .mps-sections .mps-shop-grid[data-layout="list"] .mps-shop-actions { grid-column:2; }
@media (max-width:360px) {
  body[data-app="mall-mobile"] .mobile-catalog .product-list { gap:7px; }
  body[data-app="mall-mobile"] .mobile-catalog .product-card > .product-body { padding:8px; }
  body[data-app="mall-mobile"] .mobile-catalog .product-actions { grid-template-columns:minmax(0,1fr) 30px; gap:3px; }
  body[data-app="mall-mobile"] .mobile-catalog .product-actions .mf-toggle-wrap { width:30px; max-width:30px; min-width:30px; }
  body[data-app="mall-mobile"] .mobile-catalog .product-actions .mf-toggle { width:28px; height:28px; min-height:28px; }
  body[data-app="mall-mobile"] .mobile-catalog .product-actions .store-product-buy { padding-right:2px; padding-left:2px; font-size:9px; }
  body[data-app="mall-mobile"] .mobile-catalog .price-and-limit > strong { font-size:13px; }
}
