﻿.mw-home {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--mw-dark-2);
}

    .mw-home .mw-search-box,
    .mw-home .mw-sidebar-card,
    .mw-home .mw-side-ad,
    .mw-home .mw-map,
    .mw-home .mw-split,
    .mw-home .mw-card {
        max-width: 100%;
    }

.mw-center {
    text-align: center;
}

.mw-hero-wrap {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    isolation: isolate;
}

    .mw-hero-wrap::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(1200px 520px at 20% 20%, rgba(227,6,19,.14), transparent 55%), linear-gradient(90deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.58) 42%, rgba(0,0,0,.40) 78%, rgba(0,0,0,.25) 100%);
        pointer-events: none;
        z-index: 0;
    }

.mw-hero {
    position: relative;
    z-index: 2;
    padding: 54px 0 44px;
    min-height: 560px;
}

.mw-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: start;
    padding-top: 18px;
}

.mw-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 64px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-shadow: 0 14px 35px rgba(0,0,0,.35);
}

.mw-hero p {
    margin: 0 0 26px;
    color: rgba(255,255,255,.86);
    max-width: 540px;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 600;
    text-shadow: 0 12px 26px rgba(0,0,0,.35);
}

.mw-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 360px;
    max-width: 100%;
}

.mw-btn {
    border: 0;
    border-radius: 4px;
    padding: 16px 18px;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    font-size: 14px;
    transition: all .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
    overflow: hidden;
    outline: none;
}

    .mw-btn::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
        transform: translateX(-140%);
        transition: transform .45s ease;
        pointer-events: none;
    }

    .mw-btn:hover::before {
        transform: translateX(140%);
    }

.mw-btn-red {
    background: var(--mw-red);
    color: #fff;
    box-shadow: 0 14px 30px rgba(227,6,19,.28), 0 12px 26px rgba(0,0,0,.22);
}

    .mw-btn-red:hover {
        filter: brightness(1.06);
        transform: translateY(-2px);
        box-shadow: 0 18px 44px rgba(227,6,19,.32), 0 12px 26px rgba(0,0,0,.24);
    }

    .mw-btn-red:focus {
        box-shadow: var(--mw-glow-red), 0 18px 44px rgba(227,6,19,.32);
    }

.mw-btn-gray {
    background: rgba(255,255,255,.58);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.14);
}

    .mw-btn-gray:hover {
        background: rgba(255,255,255,.66);
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(0,0,0,.22);
    }

    .mw-btn-gray:focus {
        box-shadow: var(--mw-glow-white);
    }

.mw-hero-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 16px;
}

.mw-hero-card {
    background: rgba(11,20,35,.92);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    padding: 20px 22px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .9px;
    font-weight: 700;
    box-shadow: var(--mw-shadow-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .mw-hero-card::after {
        content: "";
        position: absolute;
        left: -20%;
        top: -30%;
        width: 60%;
        height: 160%;
        background: linear-gradient(90deg, rgba(227,6,19,.14), transparent);
        transform: rotate(18deg);
        opacity: .35;
    }

.mw-search-float {
    position: relative;
    z-index: 3;
    padding: 0 0 56px;
    margin-top: -18px;
}

.mw-search-box {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(10,15,24,.10);
    box-shadow: 0 18px 46px rgba(0,0,0,.25);
    position: relative;
    overflow: hidden;
}

    .mw-search-box::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--mw-red), rgba(227,6,19,.15), transparent);
    }

.mw-search-inner {
    padding: 18px 22px;
}

.mw-search-top {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    align-items: center;
    gap: 10px;
}

.mw-search-label {
    color: var(--mw-red);
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 900;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
}

    .mw-search-label.right {
        justify-content: flex-end;
        text-align: right;
        padding-left: 0;
        padding-right: 10px;
    }

.mw-types {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 28px;
    padding: 0 10px;
}

.mw-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: .92;
    transition: transform .18s ease, opacity .18s ease;
    user-select: none;
}

    .mw-type:hover {
        transform: translateY(-2px);
        opacity: 1;
    }

    .mw-type img {
        height: 28px;
        width: auto;
        display: block;
        filter: grayscale(1) contrast(1.12);
        opacity: .95;
    }

    .mw-type span {
        font-size: 10px;
        color: #676767;
        letter-spacing: .9px;
        text-transform: uppercase;
        font-weight: 900;
    }

.mw-search-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    padding-left: 10px;
}

.mw-tabs {
    display: inline-flex;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    overflow: hidden;
    background: #f7f7f7;
    box-shadow: 0 10px 20px rgba(10,15,24,.06);
}

.mw-tab {
    min-width: 84px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    font-weight: 700;
    color: #7b7b7b;
    font-size: 13px;
    transition: all .15s ease;
}

    .mw-tab.active {
        background: #fff;
        color: #353535;
        box-shadow: inset 0 -2px 0 rgba(0,0,0,.06);
    }

.mw-select {
    min-width: 180px;
    height: 42px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    background: #fff;
}

    .mw-select:hover {
        transform: translateY(-1px);
    }

    .mw-select:focus {
        border-color: rgba(227,6,19,.55);
        box-shadow: var(--mw-glow-red);
    }

.mw-search-actions {
    margin-left: auto;
    padding-right: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mw-pill {
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(227,6,19,.22);
    background: rgba(227,6,19,.08);
    color: #6a0c11;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .18s ease;
    user-select: none;
    white-space: nowrap;
}

    .mw-pill:hover {
        background: rgba(227,6,19,.12);
        border-color: rgba(227,6,19,.35);
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(227,6,19,.10);
    }

.mw-section {
    padding: 62px 0;
    background: #fff;
    position: relative;
    z-index: 5;
}

.mw-title-wrap {
    display: flex;
    justify-content: center;
}

.mw-section-title {
    text-align: center;
    margin: 0;
    color: #111;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 42px;
    position: relative;
    display: inline-block;
    padding: 0 18px;
}

    .mw-section-title::before,
    .mw-section-title::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 28px;
        height: 4px;
        background: var(--mw-red);
        transform: translateY(-50%);
    }

    .mw-section-title::before {
        left: -36px;
    }

    .mw-section-title::after {
        right: -36px;
    }

.mw-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 200px;
    margin-top: 38px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--mw-shadow-card);
}

    .mw-split .mw-left {
        background: var(--mw-red);
        color: #fff;
        padding: 42px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .mw-split .mw-right {
        background: #5a5a5a;
        color: #fff;
        padding: 42px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .mw-split h3 {
        margin: 0;
        text-transform: uppercase;
        font-weight: 900;
        letter-spacing: 1px;
        font-size: 14px;
        opacity: .96;
    }

    .mw-split h2 {
        margin: 8px 0 16px;
        font-weight: 900;
        font-size: 44px;
        letter-spacing: 1px;
        text-transform: uppercase;
        line-height: 1.02;
    }

.mw-outline-btn {
    border: 1px solid rgba(255,255,255,.72);
    color: #fff;
    background: transparent;
    padding: 9px 16px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
    border-radius: 4px;
    transition: all .18s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

    .mw-outline-btn:hover {
        background: rgba(255,255,255,.12);
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(0,0,0,.18);
    }

.mw-inventory {
    padding: 70px 0 18px;
    background: #fff;
}

    .mw-inventory h2 {
        margin: 0;
        text-align: center;
        text-transform: uppercase;
        font-weight: 300;
        font-size: 44px;
        letter-spacing: 1px;
        position: relative;
        display: inline-block;
        padding: 0 22px;
    }

        .mw-inventory h2::before,
        .mw-inventory h2::after {
            content: "";
            position: absolute;
            top: 50%;
            width: 22px;
            height: 4px;
            background: var(--mw-red);
            transform: translateY(-50%);
        }

        .mw-inventory h2::before {
            left: -34px;
        }

        .mw-inventory h2::after {
            right: -34px;
        }

    .mw-inventory p {
        margin: 10px auto 0;
        text-align: center;
        max-width: 720px;
        color: #666;
        line-height: 1.7;
        font-size: 14px;
        font-weight: 500;
    }

.mw-inv-list {
    background: #F5F7FB;
    padding: 26px 0 64px;
}

.mw-inv-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: start;
}

.mw-sidebar-card {
    background: #fff;
    border: 1px solid rgba(10,15,24,.08);
    border-radius: 12px;
    box-shadow: var(--mw-shadow-card);
    overflow: hidden;
}

.mw-side-ad {
    background: #5a5a5a;
    border: 1px solid rgba(227,6,19,.14);
    border-radius: 14px;
    box-shadow: var(--mw-shadow-card);
    padding: 18px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mw-ad-title {
    font-size: 14px;
    font-weight: 950;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.25;
}

.mw-ad-btn {
    background: var(--mw-red);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 900;
    transition: all .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 14px 24px rgba(227,6,19,.22);
    outline: none;
}

    .mw-ad-btn:hover {
        transform: translateY(-2px);
        background: #b80610;
        box-shadow: 0 14px 24px rgba(227,6,19,.22);
    }

.mw-side-icon {
    font-size: 40px;
    color: var(--mw-red);
    opacity: .85;
}

.mw-side-top {
    padding: 18px 16px;
    background: linear-gradient(135deg, rgba(227,6,19,.08), rgba(11,20,35,.02));
    border-bottom: 1px solid rgba(10,15,24,.06);
}

.mw-side-title {
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 12px;
    color: #233;
    margin-bottom: 6px;
}

.mw-side-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.mw-mini-btn {
    border: 1px solid rgba(10,15,24,.10);
    background: #fff;
    color: #2a3340;
    font-weight: 900;
    font-size: 12px;
    border-radius: 999px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .18s ease;
    cursor: pointer;
    user-select: none;
}

    .mw-mini-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(227,6,19,.22);
        box-shadow: 0 14px 24px rgba(10,15,24,.08);
    }

.mw-side-body {
    padding: 12px 10px 14px;
}

.mw-acc-item {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(10,15,24,.08);
    margin: 8px 6px;
    overflow: hidden;
}

.mw-acc-head {
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 950;
    color: #2a3340;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease;
}

    .mw-acc-head:hover {
        background: rgba(10,15,24,.03);
    }

    .mw-acc-head i {
        transition: transform .18s ease;
    }

    .mw-acc-head.open i {
        transform: rotate(180deg);
    }

.mw-acc-body {
    display: none;
    padding: 10px 12px 12px;
    border-top: 1px dashed rgba(10,15,24,.12);
}

    .mw-acc-body.mw-open {
        display: block;
    }

.mw-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mw-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #2a3340;
    user-select: none;
}

    .mw-check input {
        width: 18px;
        height: 18px;
        accent-color: var(--mw-red);
        cursor: pointer;
    }

    .mw-check small {
        color: #6b7684;
        font-weight: 900;
        margin-left: auto;
    }

.mw-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mw-count {
    font-weight: 950;
    color: #2a3340;
    letter-spacing: .2px;
}

.mw-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(10,15,24,.08);
    border-radius: 999px;
    padding: 8px 10px;
    box-shadow: var(--mw-shadow-card);
}

    .mw-sort i {
        opacity: .8;
    }

    .mw-sort select {
        border: 0;
        outline: none;
        font-weight: 900;
        font-size: 13px;
        background: transparent;
        color: #2a3340;
        cursor: pointer;
    }

.mw-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mw-card {
    background: #fff;
    border: 1px solid rgba(10,15,24,.08);
    border-radius: 14px;
    box-shadow: var(--mw-shadow-card);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
    cursor: pointer;
}

    .mw-card:hover {
        transform: translateY(-4px);
        border-color: rgba(227,6,19,.18);
        box-shadow: 0 18px 40px rgba(10,15,24,.14);
    }

.mw-card-media {
    position: relative;
    height: 170px;
    background: radial-gradient(900px 220px at 30% 20%, rgba(227,6,19,.14), transparent 55%), linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.06));
    overflow: hidden;
}

    .mw-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: saturate(1.05) contrast(1.02);
        transform: scale(1.02);
    }

.mw-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,.94);
    color: var(--mw-red);
    font-weight: 950;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(10,15,24,.10);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mw-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .18s ease;
}

.mw-card:hover .mw-heart {
    background: rgba(227,6,19,.22);
    border-color: rgba(227,6,19,.28);
    box-shadow: var(--mw-glow-white);
}

.mw-heart.active {
    background: rgba(227,6,19,.80) !important;
    border-color: rgba(227,6,19,.65) !important;
    color: #fff !important;
}

.mw-card-body {
    padding: 14px 14px 12px;
}

.mw-car-title {
    font-weight: 950;
    color: #1e2a36;
    font-size: 14px;
    margin: 0 0 6px;
    letter-spacing: .2px;
}

.mw-car-sub {
    color: #6b7684;
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-price-label {
    color: #6b7684;
    font-size: 12px;
    font-weight: 900;
}

.mw-price {
    color: #111;
    font-weight: 950;
    font-size: 26px;
    letter-spacing: .3px;
    margin: 2px 0 4px;
}

.mw-loc {
    border-top: 1px solid rgba(10,15,24,.08);
    padding: 10px 14px;
    color: #6b7684;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mw-empty {
    background: #fff;
    border: 1px dashed rgba(10,15,24,.18);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--mw-shadow-card);
    color: #2a3340;
    font-weight: 900;
    display: none;
}

    .mw-empty small {
        color: #6b7684;
        font-weight: 800;
        display: block;
        margin-top: 6px;
    }

.mw-showrooms {
    background: #6a6a6a;
    color: #fff;
    padding: 60px 0 54px;
}

    .mw-showrooms h2 {
        margin: 0;
        text-align: center;
        text-transform: uppercase;
        font-weight: 300;
        font-size: 44px;
        letter-spacing: 1px;
        position: relative;
        display: inline-block;
        padding: 0 22px;
    }

        .mw-showrooms h2::before,
        .mw-showrooms h2::after {
            content: "";
            position: absolute;
            top: 50%;
            width: 22px;
            height: 4px;
            background: var(--mw-red);
            transform: translateY(-50%);
        }

        .mw-showrooms h2::before {
            left: -34px;
        }

        .mw-showrooms h2::after {
            right: -34px;
        }

    .mw-showrooms p {
        margin: 10px auto 24px;
        text-align: center;
        max-width: 760px;
        color: rgba(255,255,255,.88);
        line-height: 1.7;
        font-size: 14px;
        font-weight: 500;
    }

.mw-map {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--mw-shadow-soft);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
}

    .mw-map iframe {
        width: 100%;
        height: 360px;
        border: 0;
        display: block;
    }

.mw-recent {
    margin-top: 28px;
}

.mw-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
}

.mw-recent-sub {
    color: #6b7684;
    font-weight: 800;
    font-size: 13px;
}

.mw-recent-nav {
    display: flex;
    gap: 10px;
}

.mw-rbtn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(10,15,24,.10);
    background: #fff;
    box-shadow: var(--mw-shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
}

    .mw-rbtn:hover {
        transform: translateY(-2px);
        border-color: rgba(227,6,19,.20);
    }

.mw-recent-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 4);
    gap: 12px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding-bottom: 6px;
}

.mw-rCard {
    background: #fff;
    border: 1px solid rgba(10,15,24,.08);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .mw-rCard:hover {
        transform: translateY(-4px);
        border-color: rgba(227,6,19,.18);
        box-shadow: 0 18px 40px rgba(10,15,24,.14);
    }

.mw-rMedia {
    height: 140px;
    overflow: hidden;
    background: #111;
}

    .mw-rMedia img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.mw-rBody {
    padding: 12px;
}

.mw-rTitle {
    font-weight: 950;
    color: #1e2a36;
    font-size: 13px;
    margin: 0 0 4px;
}

.mw-rMeta {
    color: #6b7684;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-rPrice {
    margin-top: 8px;
    font-weight: 950;
    color: #111;
    font-size: 18px;
}

.mw-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.68);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: opacity .22s ease, visibility 0s linear .22s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

    .mw-modal.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity .22s ease, visibility 0s;
    }

.mw-modal-card {
    width: min(1180px, calc(100vw - 28px));
    margin: 0 auto;
    align-self: flex-start;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0,0,0,.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 36px);
    transform: translateY(12px) scale(.985);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .22s ease;
    will-change: transform, opacity;
}

.mw-modal.show .mw-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mw-modal.closing {
    opacity: 0;
    transition: opacity .18s ease;
}

    .mw-modal.closing .mw-modal-card {
        transform: translateY(10px) scale(.99);
        opacity: 0;
        transition: transform .18s ease, opacity .18s ease;
    }

.mw-modal-top {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(10,15,24,.08);
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
}

.mw-modal-title {
    font-weight: 950;
    letter-spacing: .2px;
    margin: 0;
    font-size: 16px;
    color: #111;
}

.mw-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(10,15,24,.10);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s ease;
    flex: 0 0 42px;
}

    .mw-modal-close:hover {
        transform: translateY(-2px);
        border-color: rgba(227,6,19,.20);
    }

.mw-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.mw-mGallery,
.mw-mInfo {
    min-width: 0;
}

.mw-mGallery {
    padding: 18px;
    border-right: 1px solid rgba(10,15,24,.08);
}

.mw-mMain {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: clamp(340px, 58vh, 560px);
    background: #111;
}

    .mw-mMain img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.mw-mNav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

    .mw-mNav button {
        pointer-events: auto;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,.35);
        background: rgba(255,255,255,.18);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #fff;
        cursor: pointer;
        transition: all .18s ease;
    }

        .mw-mNav button:hover {
            background: rgba(227,6,19,.28);
            border-color: rgba(227,6,19,.35);
            transform: translateY(-2px);
        }

.mw-mThumbs {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

    .mw-mThumbs::-webkit-scrollbar {
        height: 8px;
    }

.mw-mThumb {
    width: 92px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 auto;
    border: 2px solid transparent;
    cursor: pointer;
}

    .mw-mThumb.active {
        border-color: rgba(227,6,19,.85);
    }

    .mw-mThumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.mw-mInfo {
    padding: 18px;
}

.mw-mPrice {
    font-weight: 950;
    font-size: 32px;
    margin: 2px 0 6px;
    color: #111;
}

.mw-mBadges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 14px;
}

.mw-mActions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.mw-mBtn {
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 950;
    cursor: pointer;
    transition: all .18s ease;
}

    .mw-mBtn.primary {
        background: var(--mw-red);
        color: #fff;
        box-shadow: 0 14px 30px rgba(227,6,19,.22);
    }

        .mw-mBtn.primary:hover {
            transform: translateY(-2px);
            filter: brightness(1.05);
        }

    .mw-mBtn.ghost {
        background: #fff;
        border: 1px solid rgba(10,15,24,.10);
        color: #2a3340;
    }

        .mw-mBtn.ghost:hover {
            transform: translateY(-2px);
            border-color: rgba(227,6,19,.20);
        }

@media (max-width: 992px) {
    .mw-modal {
        padding: 14px;
    }

    .mw-modal-card {
        width: 100%;
        border-radius: 16px;
    }

    .mw-modal-body {
        grid-template-columns: 1fr;
    }

    .mw-mGallery {
        border-right: 0;
        border-bottom: 1px solid rgba(10,15,24,.08);
    }

    .mw-mMain {
        height: clamp(280px, 52vw, 420px);
    }
}

@media (max-width: 560px) {
    .mw-modal {
        padding: 8px;
    }

    .mw-modal-card {
        width: calc(100vw - 8px);
        max-height: calc(100vh - 16px);
        border-radius: 16px;
    }

    .mw-modal-top {
        padding: 12px;
    }

    .mw-modal-title {
        font-size: 14px;
        line-height: 1.35;
        padding-right: 8px;
    }

    .mw-modal-close {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .mw-mGallery,
    .mw-mInfo {
        padding: 12px;
    }

    .mw-mMain {
        height: clamp(220px, 58vw, 300px);
        border-radius: 14px;
    }

    .mw-mThumb {
        width: 78px;
        height: 56px;
    }

    .mw-mPrice {
        font-size: 28px;
    }

    .mw-mBadges {
        gap: 8px;
    }

    .mw-chip {
        font-size: 11px;
        padding: 7px 10px;
    }

    .mw-mActions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mw-mBtn {
        width: 100%;
        display: inline-flex;
        justify-content: center;
    }
}

.mw-mGallery {
    padding: 16px;
    border-right: 1px solid rgba(10,15,24,.08);
}

.mw-mMain {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 420px;
    background: #111;
}

    .mw-mMain img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.mw-mNav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

    .mw-mNav button {
        pointer-events: auto;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,.35);
        background: rgba(255,255,255,.18);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #fff;
        cursor: pointer;
        transition: all .18s ease;
    }

        .mw-mNav button:hover {
            background: rgba(227,6,19,.28);
            border-color: rgba(227,6,19,.35);
            transform: translateY(-2px);
        }

.mw-mThumbs {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-bottom: 6px;
}

    .mw-mThumbs::-webkit-scrollbar {
        height: 8px;
    }

.mw-mThumb {
    width: 92px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 auto;
    border: 2px solid transparent;
    cursor: pointer;
}

    .mw-mThumb.active {
        border-color: rgba(227,6,19,.85);
    }

    .mw-mThumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.mw-mInfo {
    padding: 16px;
}

.mw-mPrice {
    font-weight: 950;
    font-size: 32px;
    margin: 2px 0 6px;
    color: #111;
}

.mw-mBadges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 14px;
}

.mw-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(10,15,24,.10);
    background: #fff;
    font-weight: 900;
    font-size: 12px;
    color: #2a3340;
    box-shadow: var(--mw-shadow-card);
}

.mw-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.mw-spec {
    border: 1px solid rgba(10,15,24,.08);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}

    .mw-spec small {
        display: block;
        color: #6b7684;
        font-weight: 900;
        letter-spacing: .2px;
    }

    .mw-spec div {
        margin-top: 4px;
        font-weight: 950;
        color: #111;
    }

.mw-mActions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.mw-mBtn {
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 950;
    cursor: pointer;
    transition: all .18s ease;
}

    .mw-mBtn.primary {
        background: var(--mw-red);
        color: #fff;
        box-shadow: 0 14px 30px rgba(227,6,19,.22);
    }

        .mw-mBtn.primary:hover {
            transform: translateY(-2px);
            filter: brightness(1.05);
        }

    .mw-mBtn.ghost {
        background: #fff;
        border: 1px solid rgba(10,15,24,.10);
        color: #2a3340;
    }

        .mw-mBtn.ghost:hover {
            transform: translateY(-2px);
            border-color: rgba(227,6,19,.20);
        }

.mw-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.mw-pagebtn {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(10,15,24,.10);
    background: #fff;
    font-weight: 950;
    cursor: pointer;
    box-shadow: var(--mw-shadow-card);
    transition: all .18s ease;
}

    .mw-pagebtn:hover {
        transform: translateY(-2px);
        border-color: rgba(227,6,19,.20);
    }

    .mw-pagebtn.active {
        background: rgba(227,6,19,.10);
        border-color: rgba(227,6,19,.30);
        color: #6a0c11;
    }

    .mw-pagebtn:disabled {
        opacity: .45;
        cursor: not-allowed;
        transform: none;
    }

.mw-home [data-aos] {
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .mw-home [data-aos] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .mw-btn,
    .mw-card,
    .mw-type,
    .mw-outline-btn,
    .mw-ad-btn,
    .mw-mini-btn,
    .mw-modal,
    .mw-modal-card {
        transition: none !important;
    }
}

@media (max-width: 1200px) {
    .mw-hero h1 {
        font-size: 56px;
    }

    .mw-search-top {
        grid-template-columns: 210px 1fr 210px;
    }
}

@media (max-width: 992px) {
    .mw-hero-grid {
        grid-template-columns: 1fr;
    }

    .mw-hero-cards {
        max-width: 560px;
    }

    .mw-search-top {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mw-search-label.right {
        justify-content: flex-start;
        text-align: left;
        padding-right: 0;
    }

    .mw-search-row {
        padding-left: 0;
    }

    .mw-search-label {
        padding-left: 0;
    }

    .mw-search-actions {
        margin-left: 0;
        padding-right: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .mw-inv-grid {
        grid-template-columns: 1fr;
    }

    .mw-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mw-recent-track {
        grid-auto-columns: calc((100% - 12px) / 2);
    }

    .mw-modal-body {
        grid-template-columns: 1fr;
    }

    .mw-mGallery {
        border-right: 0;
        border-bottom: 1px solid rgba(10,15,24,.08);
    }
}

@media (max-width: 768px) {
    .mw-hero h1 {
        font-size: 40px;
    }

    .mw-cta {
        width: 100%;
    }

    .mw-split {
        grid-template-columns: 1fr;
    }

    .mw-section-title {
        font-size: 32px;
    }

    .mw-inventory h2,
    .mw-showrooms h2 {
        font-size: 34px;
    }

    .mw-cards {
        grid-template-columns: 1fr;
    }

    .mw-types {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .mw-recent-track {
        grid-auto-columns: 100%;
    }

    .mw-mMain {
        height: 300px;
    }

    .mw-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .mw-search-row {
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
    }

    .mw-tabs {
        width: 100%;
    }

    .mw-tab {
        flex: 1;
        min-width: 0;
    }

    .mw-select {
        min-width: 100%;
        width: 100%;
    }

    .mw-search-actions {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
        justify-content: center;
    }

    .mw-pill {
        width: 100%;
        justify-content: center;
    }

    .mw-search-inner {
        padding: 16px 14px;
    }
}
