:root {
    --ms-product-blue: #3483fa;
    --ms-product-blue-dark: #2968c8;
    --ms-product-green: #00a650;
    --ms-product-yellow: #2563eb;
    --ms-product-ink: #1f2937;
    --ms-product-muted: #667085;
    --ms-product-border: #e5e7eb;
    --ms-product-canvas: #f5f6f7;
}

.ms-product-page { padding-bottom: 118px; }
.ms-product-topnav {
    width: min(100% - 32px, 1240px);
    margin: 14px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ms-product-topnav__trail { min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ms-product-topnav__trail::-webkit-scrollbar { display: none; }
.ms-product-topnav a, .ms-product-topnav span { font-size: 12px; font-weight: 700; text-decoration: none; }
.ms-product-topnav__trail a { color: var(--ms-product-blue-dark); }
.ms-product-topnav__trail span { color: #98a2b3; }
.ms-product-topnav__catalog {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d8e6f8;
    border-radius: 12px;
    color: var(--ms-product-blue-dark);
    background: #f4f8ff;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}
.ms-product-topnav__catalog:hover { border-color: #a8c7f0; background: #fff; }

.ms-product-payment-box,
.ms-product-related-vertical {
    overflow: hidden;
    border: 1px solid var(--ms-product-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.ms-product-payment-box__head,
.ms-product-related-vertical__head {
    padding: 16px 18px 13px;
    border-bottom: 1px solid #eef0f3;
}
.ms-product-payment-box__head h3,
.ms-product-related-vertical__head h3 { margin: 0; color: #172033; font-size: 14px; font-weight: 900; }
.ms-product-payment-box__head p,
.ms-product-related-vertical__head p { margin: 4px 0 0; color: #667085; font-size: 10px; line-height: 1.45; }
.ms-product-payment-list { padding: 4px 18px 14px; }
.ms-product-payment-item { min-height: 51px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #f1f2f4; }
.ms-product-payment-item:last-child { border-bottom: 0; }
.ms-product-payment-item__icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 11px; color: var(--ms-product-blue-dark); background: #edf4ff; }
.ms-product-payment-item strong { display: block; color: #344054; font-size: 11px; font-weight: 850; }
.ms-product-payment-item small { display: block; margin-top: 2px; color: #98a2b3; font-size: 9px; }
.ms-product-payment-security { margin: 0 14px 14px; padding: 10px 11px; display: flex; align-items: center; gap: 9px; border-radius: 11px; color: #067647; background: #ecfdf3; font-size: 9px; font-weight: 800; }

.ms-product-related-vertical__list { padding: 5px 14px 14px; }
.ms-product-related-mini { position: relative; min-height: 92px; padding: 11px 0; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 11px; align-items: center; border-bottom: 1px solid #f0f1f3; text-decoration: none; }
.ms-product-related-mini:last-child { border-bottom: 0; }
.ms-product-related-mini__media { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border: 1px solid #eef0f3; border-radius: 12px; background: #fafbfc; }
.ms-product-related-mini__media img { width: 100%; height: 100%; padding: 7px; object-fit: contain; transition: transform .25s ease; }
.ms-product-related-mini:hover img { transform: scale(1.06); }
.ms-product-related-mini h4 { margin: 0; display: -webkit-box; overflow: hidden; color: #344054; font-size: 10.5px; font-weight: 750; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ms-product-related-mini strong { display: block; margin-top: 7px; color: #172033; font-size: 15px; font-weight: 900; }
.ms-product-related-mini small { display: block; margin-top: 3px; color: var(--ms-product-green); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.ms-product-related-vertical__all { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border-top: 1px solid #eef0f3; color: var(--ms-product-blue-dark); background: #fbfdff; font-size: 10px; font-weight: 850; text-decoration: none; }

.ms-product-market-section {
    width: min(100% - 32px, 1240px);
    margin: 24px auto 0;
    overflow: hidden;
    border: 1px solid var(--ms-product-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15,23,42,.05);
}
.ms-product-market-section__head { min-height: 74px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #eef0f3; }
.ms-product-market-section__title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.ms-product-market-section__icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ms-product-blue); background: #edf4ff; }
.ms-product-market-section__head h2 { margin: 0; color: #172033; font-size: clamp(16px, 2vw, 21px); font-weight: 900; letter-spacing: -.02em; }
.ms-product-market-section__head p { margin: 4px 0 0; color: #667085; font-size: 10px; }
.ms-product-market-section__link { flex: 0 0 auto; color: var(--ms-product-blue-dark); font-size: 10px; font-weight: 850; text-decoration: none; }
.ms-product-horizontal-scroll { padding: 16px 18px 20px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 220px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.ms-product-horizontal-scroll > * { min-width: 0; scroll-snap-align: start; }

.ms-product-category-grid { padding: 17px 18px 20px; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.ms-product-category-card { min-height: 90px; padding: 13px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid #e7e9ee; border-radius: 14px; color: #344054; background: #fff; text-align: center; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ms-product-category-card:hover { transform: translateY(-2px); border-color: #b7cff0; box-shadow: 0 9px 19px rgba(15,23,42,.07); }
.ms-product-category-card__icon { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; color: var(--ms-product-blue-dark); background: #edf4ff; }
.ms-product-category-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.ms-product-category-card strong { font-size: 10px; font-weight: 850; line-height: 1.25; }
.ms-product-category-card small { color: #98a2b3; font-size: 8px; }

.ms-version-required-note { display: none; margin-top: 7px; color: #b42318; font-size: 10px; font-weight: 750; }
.ms-version-required-note.is-visible { display: flex; align-items: center; gap: 5px; }
.sys-select.is-invalid, .ms-mobile-buybar__select.is-invalid { border-color: #f04438 !important; box-shadow: 0 0 0 3px rgba(240,68,56,.12) !important; }

@media (max-width: 1023px) {
    .ms-product-topnav { width: 100%; margin: 0; padding: 10px 12px; background: #fff; border-bottom: 1px solid #eef0f3; }
    .ms-product-topnav__trail { display: none; }
    .ms-product-topnav__catalog { width: 100%; justify-content: center; }
    .ms-product-sidebar-extra { display: none !important; }
    .ms-product-market-section { width: 100%; margin-top: 7px; border-inline: 0; border-radius: 0; box-shadow: none; }
    .ms-product-market-section__head { min-height: 64px; padding: 14px 14px 12px; }
    .ms-product-market-section__head p { display: none; }
    .ms-product-horizontal-scroll { padding: 13px 10px 16px; grid-auto-columns: minmax(158px, 46vw); gap: 9px; }
    .ms-product-category-grid { padding: 13px 10px 16px; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
    .ms-product-category-card { min-height: 82px; padding: 10px 6px; }
}

@media (max-width: 420px) {
    .ms-product-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
