:root {
    --bg: #080b10;
    --panel: #0f151d;
    --panel2: #121a24;
    --text: #f7f9fb;
    --muted: #96a2b2;
    --line: #26303d;
    --green: #58ef8a;
    --green2: #26c866;
    --red: #ff7474
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(circle at 85% -5%, rgba(88, 239, 138, .12), transparent 28%), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial
}

button,
input,
select {
    font: inherit
}

button {
    cursor: pointer
}

header {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: rgba(8, 11, 16, .9);
    backdrop-filter: blur(14px);
    z-index: 10
}

.brand {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 900
}

.brand small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase
}

.mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #07100a
}

nav {
    display: flex;
    gap: 7px
}

.navbtn,
.cartbtn {
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 12px
}

.navbtn.active {
    color: var(--text)
}

.cartbtn {
    color: var(--text);
    border-color: var(--line)
}

.cartbtn b {
    display: inline-grid;
    place-items: center;
    margin-left: 5px;
    background: var(--green);
    color: #08100a;
    border-radius: 999px;
    min-width: 22px;
    height: 22px
}

main {
    max-width: 1220px;
    margin: auto;
    padding: 38px 20px 70px
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr .7fr;
    gap: 38px;
    align-items: center;
    padding: 36px 0 42px
}

.kicker {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em
}

h1 {
    font-size: 58px;
    line-height: .98;
    margin: 10px 0 18px;
    letter-spacing: -.045em
}

h2 {
    margin: 5px 0 12px
}

.hero p,
.shipping-panel p {
    color: var(--muted);
    line-height: 1.6;
    max-width: 720px
}

.searchbar {
    display: flex;
    gap: 8px;
    margin-top: 25px
}

.searchbar input,
.form-grid input,
.form-grid select {
    width: 100%;
    background: #090e14;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 11px;
    padding: 14px
}

.searchbar input {
    flex: 1
}

.searchbar button,
.wide,
.shipping-panel button {
    background: var(--green);
    border: 0;
    border-radius: 11px;
    padding: 14px 18px;
    font-weight: 900;
    color: #07100a
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px
}

.chip {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    padding: 8px 12px
}

.chip.selected {
    background: #163322;
    color: var(--green);
    border-color: #285b3b
}

.promise {
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px
}

.promise div {
    display: flex;
    gap: 15px;
    padding: 17px 4px;
    border-bottom: 1px solid var(--line)
}

.promise div:last-child {
    border: 0
}

.promise strong {
    color: var(--green);
    width: 48px
}

.promise span {
    color: var(--muted)
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 18px;
    color: var(--muted)
}

select {
    background: #0a1017;
    color: var(--text);
    border: 1px solid var(--line);
    padding: 10px;
    border-radius: 10px
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 17px;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.pic {
    aspect-ratio: 4/3;
    background: #0a0e14;
    display: grid;
    place-items: center
}

.pic img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.content {
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1
}

.badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.badge {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    padding: 5px 7px;
    border-radius: 6px;
    background: #17202b;
    color: #bec8d3
}

.badge.green {
    background: #143421;
    color: var(--green)
}

.card h3 {
    margin: 0;
    font-size: 17px
}

.meta {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5
}

.partnums {
    font-size: 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 10px 0
}

.partnums b {
    color: #dce4ec
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: auto
}

.price {
    font-size: 24px;
    font-weight: 900
}

.compare {
    text-decoration: line-through;
    color: #6e7a88;
    font-size: 12px
}

.add {
    border: 0;
    border-radius: 9px;
    background: var(--green);
    padding: 11px 12px;
    font-weight: 900;
    color: #07100a
}

.shipping-panel {
    margin-top: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: linear-gradient(90deg, #0f161e, #101b17)
}

.drawer {
    position: fixed;
    z-index: 30;
    right: 0;
    top: 0;
    width: min(470px, 100%);
    height: 100%;
    background: #0c1118;
    border-left: 1px solid var(--line);
    padding: 22px;
    box-shadow: -20px 0 70px rgba(0, 0, 0, .45);
    overflow: auto
}

.hidden {
    display: none !important
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.close {
    font-size: 29px;
    border: 0;
    background: transparent;
    color: var(--muted)
}

.cart-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px
}

.cart-item small {
    color: var(--muted)
}

.remove {
    border: 0;
    background: transparent;
    color: var(--red)
}

.summary {
    margin: 22px 0
}

.summary div {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    color: var(--muted)
}

.summary strong {
    color: var(--text)
}

.summary .total {
    font-size: 20px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 8px
}

.wide {
    width: 100%
}

.drawer>small {
    color: var(--muted);
    display: block;
    margin-top: 10px;
    line-height: 1.4
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 18px
}

.modal-card {
    width: min(720px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: #0e141c;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 23px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 16px 0
}

.span2 {
    grid-column: span 2
}

.notice {
    margin-top: 15px;
    background: #0a1017;
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 10px;
    color: var(--muted)
}

.rates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px
}

.rate {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px;
    background: #0a1017
}

.rate strong {
    display: block;
    font-size: 18px;
    margin: 5px 0
}

.rate small {
    color: var(--muted)
}

.rate button {
    width: 100%;
    margin-top: 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: 9px;
    border-radius: 8px
}

@media(max-width:850px) {
    .hero {
        grid-template-columns: 1fr
    }

    .promise {
        display: none
    }

    .grid {
        grid-template-columns: repeat(2, 1fr)
    }

    h1 {
        font-size: 46px
    }

    .rates {
        grid-template-columns: 1fr
    }

    .shipping-panel {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:560px) {
    .grid {
        grid-template-columns: 1fr
    }

    h1 {
        font-size: 40px
    }

    .navbtn {
        display: none
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .span2 {
        grid-column: auto
    }
}

.vin-box {
    margin-top: 18px;
    padding: 18px;
    background: #0f151d;
    border: 1px solid #26303d;
    border-radius: 15px;
}

.vin-title {
    color: #58ef8a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    margin-bottom: 10px;
}

.vin-searchbar {
    display: flex;
    gap: 8px;
}

.vin-searchbar input {
    flex: 1;
    background: #090e14;
    border: 1px solid #26303d;
    color: #f7f9fb;
    border-radius: 11px;
    padding: 14px;
    outline: none;
}

.vin-searchbar input:focus {
    border-color: #58ef8a;
}

.vin-searchbar button {
    background: #58ef8a;
    border: none;
    border-radius: 11px;
    padding: 14px 18px;
    font-weight: 900;
    color: #07100a;
}

.vin-card {
    margin-top: 14px;
    background: #090e14;
    border: 1px solid #26303d;
    border-radius: 12px;
    padding: 14px;
    color: #96a2b2;
    line-height: 1.6;
}

.vin-card strong {
    color: #f7f9fb;
    font-size: 17px;
}

@media(max-width: 560px) {
    .vin-searchbar {
        flex-direction: column;
    }

    .vin-searchbar button {
        width: 100%;
    }
}

.brand-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.brand-btn {
    min-height: 100px;
    padding: 16px;
    border: 1px solid #263445;
    border-radius: 14px;
    background: #101827;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

.brand-btn img {
    max-width: 130px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-btn:hover {
    transform: translateY(-2px);
    border-color: #4df28a;
}

.brand-btn.selected {
    border-color: #4df28a;
    box-shadow: 0 0 0 2px rgba(77, 242, 138, 0.15);
}

@media (max-width: 700px) {
    .brand-filters {
        grid-template-columns: repeat(2, 1fr);
    }
}