/* Shared storefront refresh. Business logic and page structure stay in their pages. */
body[data-theme="light"] {
  color-scheme: light;
  --action-color: #086dce;
  --action-gradient: linear-gradient(135deg, #0870d4, #075bb4);
  --success: #16764c;
  --danger: #c52e43;
  --warning: #946009;
  --mp-blue: #086dce;
  --mp-navy: #12345c;
  --bg: #f3f9ff;
  --surface: #fff;
  --surface-2: #edf6ff;
  --surface-3: #deeeff;
  --text: #29476a;
  --title: #12345c;
  --text-soft: #526d8b;
  --accent: #086dce;
  --accent-2: #075bb4;
  --accent-soft: #e0f1ff;
  --border: #d5e6f7;
  --border-strong: #a6ccec;
  --shadow-sm: 0 4px 16px rgba(24, 81, 145, .035);
  --shadow-md: 0 14px 36px rgba(24, 81, 145, .06);
  --shadow-lg: 0 24px 60px rgba(24, 81, 145, .12);
  background: var(--bg);
}
body[data-theme="dark"] {
  color-scheme: dark;
  --action-color: #176bd1;
  --action-gradient: linear-gradient(135deg, #176bd1, #1159b7);
  --success: #6dd6ab;
  --danger: #ff91a2;
  --warning: #ffd071;
  --shadow-lg: 0 24px 60px rgba(0, 7, 22, .4);
  --mp-blue: #78c7ff;
  --mp-navy: #e3f0ff;
  --bg: #09162c;
  --surface: #10223d;
  --surface-2: #172e4e;
  --surface-3: #203d61;
  --text: #dbeaff;
  --title: #f3f8ff;
  --text-soft: #a4bedc;
  --accent: #78c7ff;
  --accent-2: #a1d8ff;
  --accent-soft: #173b65;
  --border: #294463;
  --border-strong: #49739c;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, .12);
  background: var(--bg);
}
html { scroll-padding-top: 160px; scroll-behavior: smooth; }
body[data-theme] { color: var(--text); transition: background-color .2s ease, color .2s ease; }
body[data-theme] ::selection { background: var(--accent-soft); color: var(--title); }
body[data-theme] :is(.main-header, .categories-bar, .bottom-nav) { background: color-mix(in srgb, var(--surface) 95%, transparent); }
body[data-theme] :is(.btn, .icon-btn, .category-chip, .menu-link, .nav-item, .size, .size-option, .qty-btn, .support-widget-link) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
body[data-theme] :is(.icon-btn, .category-chip, .menu-link, .nav-item, .qty-btn) {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
body[data-theme] :is(.btn, .icon-btn, .category-chip, .qty-btn):not(:disabled):active { transform: translateY(1px); }
body[data-theme] :is(.qty-btn.plus, .send-btn) { background: var(--action-gradient); color: #fff; }
body[data-theme] .menu-link:hover { background: var(--accent-soft); color: var(--accent-2); }
body[data-theme] .menu-sidebar { right: 0; transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.75,.25,1); }
body[data-theme] .menu-sidebar.open { transform: translateX(0); }
body[data-theme] :is(.product-modal, .quick-scroll-panel) { transition: bottom .28s cubic-bezier(.2,.75,.25,1), visibility .28s; }
body[data-theme] .overlay-backdrop { transition: opacity .22s ease, visibility .22s ease; }
body[data-theme] :is(.order-status-panel, .support-popover) { animation: mp-surface-in .2s ease-out; }
@keyframes mp-surface-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
body .mp-icon { width: 21px; height: 21px; flex-shrink: 0; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body .top-strip { background: #12345c; }
body .top-strip-inner { font-weight: 400; min-height: 36px; }
body[data-theme] .main-header { background: var(--surface); border-color: var(--border); backdrop-filter: blur(16px); }
body .main-header { top: 36px; }
body .main-header-inner { min-height: 88px; }
body .brand-logo { background: #fff; border: 1px solid #d5e6f7; border-radius: 16px; padding: 5px; box-shadow: none; }
body .brand-name { color: var(--title); }
body .brand-sub { color: var(--text-soft); font-weight: 400; }
body[data-theme] :is(.header-search, .icon-btn, .account-chip, .account-pill) { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: none; }
body[data-theme] .header-search { background: var(--surface-2); border-radius: 14px; }
body[data-theme] .header-search:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
body .header-search input { color: var(--text); font-weight: 400; }
body .header-search input::placeholder { color: var(--text-soft); }
body .icon-btn { border-radius: 12px; }
body .account-chip { border-radius: 12px; font-weight: 400; }
body[data-theme] .categories-bar { background: var(--surface); border-color: var(--border); }
body .categories-row { gap: 8px; padding-block: 10px; }
body .category-chip { font-weight: 400; border-radius: 10px; padding: 7px 20px; }
body[data-theme] .category-chip { color: var(--text-soft); }
body[data-theme] .category-chip:is(:hover, .active) { background: var(--surface-2); border-color: var(--border); color: var(--accent-2); }
body .btn { border-radius: 12px; box-shadow: none; font-weight: 400; transition: background .2s, transform .2s, box-shadow .2s; }
body[data-theme] .btn { background: var(--surface); color: var(--text); border-color: var(--border); }
body[data-theme] :is(.btn-main, .search-btn, .support-widget-link) { color: #fff; background: var(--action-gradient); border-color: var(--action-color); box-shadow: none; }
body[data-theme] :is(.btn-green, .btn-success, .product-actions .btn-main, .previous-purchase-actions .btn-main, #modalAddToCartBtn) { background: var(--action-gradient); color: #fff; border-color: var(--action-color); box-shadow: none; }
body[data-theme] .btn-outline { background: transparent; color: var(--accent-2); border-color: var(--border-strong); }
body[data-theme] .btn-red { color: var(--danger); background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
body .btn:disabled { transform: none; opacity: .5; }
body :is(button, a, input, textarea, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
body :is(.input, .size, .size-option) { transition: border-color .2s, box-shadow .2s; }
body .cart-badge { background: var(--action-color); color: #fff; }

/* Bright sky-blue surfaces and navy anchors across the storefront. */
body.mp-home { --content-width: 1240px; }
body.mp-home[data-theme] .hero { margin: 24px auto 0; width: min(1240px, calc(100% - 40px)); padding: 0; border-radius: 28px; background: linear-gradient(120deg, #f5fbff, #d9efff); border: 1px solid var(--border); overflow: hidden; }
body.mp-home[data-theme="dark"] .hero { background: linear-gradient(120deg, #10223d, #163960); }
body.mp-home .hero::before { display: none; }
body.mp-home .hero-grid { grid-template-columns: 1.05fr .95fr; min-height: 480px; gap: 32px; padding: 42px; }
body.mp-home .hero-copy { padding: 0; text-align: right; }
body.mp-home[data-theme] .hero-kicker { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--accent-2); margin-bottom: 18px; font-size: .78rem; font-weight: 400; }
body.mp-home .hero-kicker::before { content: ""; width: 7px; height: 7px; background: #28a8f0; border-radius: 50%; }
body.mp-home[data-theme] .hero-title { color: var(--title); font-size: clamp(2.5rem, 4.4vw, 3.9rem); line-height: 1.45; letter-spacing: -.8px; margin-bottom: 16px; }
body.mp-home .hero-title em { font-style: normal; color: var(--accent-2); }
body.mp-home .hero-title span { font-family: "Vazirmatn-FD-NL-Regular", Tahoma, sans-serif; color: var(--text-soft); font-size: .9rem; font-weight: 400; margin-top: 12px; line-height: 1.9; }
body.mp-home[data-theme] .hero-text { color: var(--text-soft); font-size: .86rem; font-weight: 400; line-height: 2.1; max-width: 470px; margin: 0 0 24px; text-align: right; }
body.mp-home .hero-actions { justify-content: flex-start; gap: 12px; }
body.mp-home .hero-actions .btn { min-height: 48px; padding-inline: 22px; }
body.mp-home .hero-footnote { display: flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: .72rem; margin-top: 22px; }
body.mp-home .hero-visual-card { min-height: 0; width: 100%; }
body.mp-home .hero-editorial { width: 100%; position: relative; padding-block: 20px; }
body.mp-home .hero-photo-frame { background: #fff; border-radius: 110px 24px 24px 24px; padding: 16px; transform: rotate(-3deg); box-shadow: 0 22px 50px rgba(24,81,145,.1); overflow: hidden; }
body.mp-home .hero-product-photo { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: contain; transform: rotate(3deg); }
body.mp-home .hero-photo-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #12345c; padding: 12px 8px 2px; border-top: 1px solid #d5e6f7; font-size: .72rem; }
body.mp-home .hero-photo-caption strong { font-weight: 400; }
body.mp-home .hero-stamp { position: absolute; left: -12px; top: -3px; width: 86px; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 50%; background: #12345c; color: #fff; border: 5px solid #e2f2ff; font-size: .64rem; transform: rotate(-12deg); }
body.mp-home .hero-stamp .mp-icon { width: 26px; height: 26px; color: #8cdbff; }
body.mp-home .hero-delivery { position: absolute; bottom: 4px; right: -14px; background: #fff; color: #12345c; padding: 10px 16px; display: flex; gap: 10px; align-items: center; border: 1px solid #d5e6f7; border-radius: 14px; box-shadow: 0 10px 25px rgba(24,81,145,.08); font-size: .72rem; }
body.mp-home .hero-delivery .mp-icon { color: #086dce; }
body.mp-home .hero-delivery small { display: block; font-size: .64rem; color: #526d8b; }
body.mp-home .trust-row { padding: 24px 0 0; background: transparent; border: 0; margin: 0; }
body.mp-home[data-theme] .trust-grid { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 12px 20px 26px; gap: 16px; }
body.mp-home .trust-item { padding: 6px 12px; border-left: 1px solid var(--border); gap: 12px; }
body.mp-home .trust-item:last-child { border-left: 0; }
body.mp-home[data-theme] .trust-icon { background: transparent; border: 0; color: var(--accent-2); width: 36px; height: 36px; flex-shrink: 0; }
body.mp-home .trust-icon .mp-icon { width: 30px; height: 30px; stroke-width: 1.3; }
body.mp-home .trust-text strong { font-family: "Vazirmatn-FD-NL-Regular", Tahoma, sans-serif; font-weight: 400; font-size: .82rem; }
body.mp-home .trust-text span { font-weight: 400; font-size: .69rem; }
body.mp-home .section { padding: 54px 0; }
body.mp-home .section-eyebrow { color: var(--accent-2); font-size: .72rem; display: block; margin-bottom: 6px; letter-spacing: .2px; }
body.mp-home .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
body.mp-home .section-title::after { width: 36px; height: 3px; background: #28a8f0; }
body.mp-home .section-subtitle { font-size: .82rem; color: var(--text-soft); margin-top: 6px; }
body.mp-home[data-theme] #about { background: var(--surface); border-block: 1px solid var(--border); }
body.mp-home .about-layout { grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: stretch; }
body.mp-home[data-theme] .about-side { border-radius: 20px; background: var(--surface-2); box-shadow: none; border: 1px solid var(--border); padding: 28px; }
body.mp-home .about-main { background: transparent; border: 0; border-radius: 20px; padding: 28px; box-shadow: none; display: flex; flex-direction: column; justify-content: center; }
body.mp-home .about-main .about-box-title { color: var(--title); }
body.mp-home .about-main .about-text { color: var(--text-soft); opacity: 1; }
body.mp-home .about-box-title { color: var(--title); font-size: 1.3rem; margin-bottom: 12px; }
body.mp-home .about-text { font-weight: 400; color: var(--text-soft); font-size: .86rem; line-height: 2.2; }
body.mp-home .about-metrics { gap: 10px; margin-top: 22px; }
body.mp-home[data-theme] .metric { background: var(--surface); border-color: var(--border); box-shadow: none; border-radius: 12px; padding: 12px; }
body.mp-home .metric strong { font-family: "Vazirmatn-FD-NL-Regular", Tahoma, sans-serif; font-size: .82rem; font-weight: 400; }
body.mp-home .metric span { font-size: .68rem; font-weight: 400; }
body.mp-home .about-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; margin-top: 20px; color: var(--accent-2); font-size: .82rem; }
body.mp-home[data-theme] #products { background: var(--bg); }
body.mp-home[data-theme] .products-topbar { background: transparent; box-shadow: none; border-width: 0 0 1px; border-color: var(--border); border-radius: 0; padding: 0 0 18px; margin-bottom: 24px; }
body.mp-home .products-topbar-info { font-weight: 400; font-size: .82rem; }
body.mp-home .products-grid { gap: 20px; }
body.mp-home[data-theme] .product-card { background: var(--surface); border-color: var(--border); box-shadow: none; border-radius: 18px; }
body.mp-home[data-theme] .product-thumb { background: #fff; border-color: var(--border); padding: 14px; aspect-ratio: 1.28; }
body.mp-home .product-thumb img { object-fit: contain; border-radius: 8px; }
body.mp-home .product-body { padding: 18px !important; gap: 10px; }
body.mp-home .product-badge { color: var(--accent-2); background: var(--surface-2); border-color: var(--border); font-weight: 400; border-radius: 6px; }
body.mp-home .product-title { font-family: "Vazirmatn-FD-NL-Regular", Tahoma, sans-serif; font-weight: 400; font-size: 1rem; line-height: 1.9; min-height: 38px; }
body.mp-home .product-desc { font-weight: 400; font-size: .76rem; }
body.mp-home .product-meta { border-color: var(--border); }
body.mp-home .product-meta-label { color: var(--text-soft); font-weight: 400; }
body.mp-home[data-theme] .product-price { color: var(--accent-2); font-size: 1.05rem; }
body.mp-home .product-actions .btn { min-height: 44px; border-radius: 10px; }
body.mp-home .site-footer { background: #102c50; color: #d9eaff; border-top: 0; padding-top: 44px; }
body.mp-home .footer-title { color: #fff; }
body.mp-home .footer-text { color: #bfd5ed; font-weight: 400; font-size: .82rem; }
body.mp-home .contact-item { color: #d9eaff; font-weight: 400; font-size: .82rem; }
body.mp-home .copyright { color: #a9c6e6; border-color: #315174; font-size: .72rem; }
body.mp-home[data-theme] .bottom-nav { background: var(--surface); border-color: var(--border); box-shadow: 0 -4px 20px rgba(24,81,145,.04); padding-bottom: env(safe-area-inset-bottom); }
body.mp-home .nav-item { color: var(--text-soft); font-weight: 400; gap: 4px; }
body.mp-home .nav-item.active { color: var(--accent-2); }
body.mp-home .nav-icon { display: grid; place-items: center; }
body.mp-home .support-widget-link { background: var(--action-gradient); box-shadow: 0 5px 20px rgba(8,109,206,.18); animation: none; }
body.mp-home .support-widget-link::after { animation: none; }
body.mp-home .support-start-chat { background: var(--action-gradient); color: #fff; }
body.mp-home[data-theme] :is(.product-modal, .quick-scroll-panel, .menu-sidebar, .order-status-panel, .support-popover) { background: var(--surface); border-color: var(--border); }
body.mp-home[data-theme] :is(.modal-info-box, .size-box, .qs-item) { background: var(--surface-2); border-color: var(--border); }

/* Product, basket and account pages share the same components. */
body.mp-page .wrap { margin-top: 38px; }
body.mp-page .page-head { margin-bottom: 28px; }
body.mp-page .page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 8px; }
body.mp-page :is(.sub, .panel-sub, .lead) { font-weight: 400; font-size: .86rem; line-height: 2; }
body.mp-page[data-theme] :is(.panel, .media, .info, .desc-box) { background: var(--surface); color: var(--text); border-color: var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); }
body.mp-page .panel { padding: 26px; }
body.mp-page .panel-title { font-size: 1.18rem; }
body.mp-page[data-theme] :is(.input, .cart-item, .choice-note, .mini-profile, .saved-info-card, .previous-item, .size, .qty-box) { background: var(--surface-2); color: var(--text); border-color: var(--border); }
body.mp-page :is(.input, .field label, .choice-note, .summary-row, .info-line strong, .previous-meta, .desc) { font-weight: 400; }
body.mp-page .input { min-height: 50px; border-radius: 10px; }
body.mp-page .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
body.mp-page .form-grid { gap: 18px; }
body.mp-page .cart-item { padding: 20px; border-radius: 14px; }
body.mp-page .summary-total { font-weight: 700; padding-top: 20px; }
body.mp-page .summary-total #cartTotal { color: var(--accent-2); }
body.mp-page .media { padding: 20px; }
body.mp-page[data-theme] .media img { background: #fff; object-fit: contain; }
body.mp-page .info { padding: 30px; }
body.mp-page .info h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.6; }
body.mp-page[data-theme] .badge { background: var(--surface-2); border-color: var(--border); color: var(--accent-2); font-weight: 400; }
body.mp-page .sizes { gap: 12px; }
body.mp-page .size { box-shadow: none; font-weight: 400; }
body.mp-page[data-theme] .size.selected { background: var(--accent-soft); border: 2px solid var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
body.mp-page .price-row { margin-top: 24px; padding-top: 20px; }
body.mp-page .desc-box { margin-top: 28px; padding: 28px; }

/* Support keeps its existing chat layout and theme preference. */
@font-face { font-family: MPChat; src: url('../Fonts/Vazirmatn-FD-NL-Regular.woff2') format('woff2'); font-display: swap; }
body.mp-chat[data-theme] { --tg-bg: var(--bg); --tg-sidebar: var(--surface); --tg-header: var(--surface); --tg-chat-bg: var(--surface-2); --tg-primary: var(--action-color); --tg-primary-hover: var(--accent-2); --tg-text: var(--text); --tg-text-muted: var(--text-soft); --tg-border: var(--border); --msg-user-bg: var(--accent-soft); --msg-admin-bg: var(--surface); --msg-text: var(--text); --msg-meta: var(--text-soft); --msg-admin-meta: var(--text-soft); --msg-user-name: var(--accent-2); --msg-admin-name: var(--accent); }
body.mp-chat * { font-family: MPChat, Tahoma, sans-serif; }
body.mp-chat .app-container { border: 1px solid var(--tg-border); border-radius: 22px; }
body.mp-chat .chat-avatar { background: #086dce; }
body.mp-chat :is(.header-status, .back-to-list-btn) { color: var(--accent); }
body.mp-chat .new-chat-btn { background: var(--action-gradient); }
body.mp-chat .new-chat-btn:hover { filter: brightness(1.08); }
body.mp-chat .chat-input-area button:not(:disabled) { background: var(--action-gradient); }
body.mp-chat .chat-input-area button:disabled { background: var(--surface-3); color: var(--text-soft); }
body.mp-chat :is(input, textarea):focus { box-shadow: 0 0 0 3px var(--accent-soft); }
@media (hover: hover) {
  body .btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  body.mp-home[data-theme] .product-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
  body .icon-btn:hover { border-color: var(--accent); }
}
@media (min-width: 769px) and (max-width: 980px) {
  body.mp-home .main-header-inner { grid-template-columns: 44px minmax(0, 1fr) auto; }
  body.mp-home .header-search { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  body.mp-home .hero-grid { grid-template-columns: 1fr 1fr; padding: 30px; gap: 24px; min-height: 420px; }
  body.mp-home[data-theme] .hero-title { font-size: 2.6rem; }
  body.mp-home .hero-visual-card { min-height: 0; }
}
@media (max-width: 768px) {
  html { scroll-padding-top: 126px; }
  body.mp-home[data-theme] .hero { width: calc(100% - 24px); margin-top: 14px; border-radius: 20px; }
  body.mp-home .hero-grid { grid-template-columns: 1fr; padding: 26px 22px; gap: 24px; min-height: 0; }
  body.mp-home .hero-copy { text-align: right; }
  body.mp-home .hero-kicker { font-size: .72rem; margin-bottom: 12px; }
  body.mp-home[data-theme] .hero-title { font-size: clamp(2rem, 7.5vw, 2.8rem); margin-bottom: 12px; }
  body.mp-home .hero-title span { font-size: .8rem; line-height: 2; }
  body.mp-home .hero-text { font-size: .8rem; margin: 0 0 20px; }
  body.mp-home .hero-actions { flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; gap: 10px; }
  body.mp-home .hero-actions .btn { width: auto; flex: 1; padding-inline: 10px; font-size: .8rem; }
  body.mp-home .hero-footnote { margin-top: 16px; font-size: .65rem; }
  body.mp-home .hero-editorial { max-width: 360px; margin-inline: auto; padding: 8px 12px 20px; }
  body.mp-home .hero-photo-frame { border-radius: 70px 20px 20px 20px; padding: 12px; }
  body.mp-home .hero-product-photo { aspect-ratio: 1.6; }
  body.mp-home .hero-stamp { width: 70px; height: 70px; left: 0; top: -6px; font-size: .56rem; }
  body.mp-home .hero-stamp .mp-icon { width: 20px; height: 20px; }
  body.mp-home .hero-delivery { right: 0; bottom: 0; padding: 7px 12px; }
  body.mp-home .trust-row { padding-top: 12px; }
  body.mp-home .trust-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 6px; padding: 16px 12px 24px; }
  body.mp-home .trust-item { padding: 0 6px; gap: 8px; border: 0; }
  body.mp-home .trust-item:nth-child(odd) { border-left: 1px solid var(--border); }
  body.mp-home .trust-text strong { font-size: .75rem; }
  body.mp-home .trust-text span { font-size: .63rem; line-height: 1.8; }
  body.mp-home .trust-icon { width: 30px; }
  body.mp-home .section { padding: 36px 0; }
  body.mp-home .about-layout { grid-template-columns: 1fr; gap: 12px; }
  body.mp-home .about-side, body.mp-home .about-main { padding: 22px; }
  body.mp-home .about-main { padding-block: 12px; }
  body.mp-home .products-grid { gap: 12px; }
  body.mp-home .products-topbar { gap: 12px; }
  body.mp-home .products-topbar-info { font-size: .74rem; }
  body.mp-home .product-body { padding: 12px !important; gap: 8px; }
  body.mp-home .product-thumb { padding: 8px; aspect-ratio: 1.15; }
  body.mp-home .product-title { font-size: .82rem; min-height: 46px; }
  body.mp-home .product-price { font-size: .86rem; }
  body.mp-home .product-actions .btn { font-size: .72rem; padding-inline: 6px; }
  body.mp-home .site-footer { padding-bottom: 96px; }
  body.mp-page .wrap { margin-top: 24px; }
  body.mp-page .main-header { top: 0; }
  body.mp-page .main-header-inner { min-height: 68px; }
  body.mp-page .panel, body.mp-page .info, body.mp-page .desc-box { padding: 20px; }
  body.mp-page input[inputmode="numeric"] { direction: ltr; text-align: left; }
  body.mp-page .sizes { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  body.mp-page .size { padding: 12px 5px; min-width: 0; }
  body.mp-page .size span { font-size: .75rem; }
  body.mp-chat .app-container { border: 0; border-radius: 0; }
}
@media (max-width: 380px) {
  body.mp-home .hero-grid { padding: 22px 16px; }
  body.mp-home .brand-logo { display: none; }
  body.mp-home .hero-photo-caption { font-size: .64rem; }
  body.mp-page .sizes { grid-template-columns: 1fr; }
  body.mp-page .cart-item { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
