:root {
    --background-color: #000;
    --background-color-lighter: #1f1f1f;
    --brand-color: #f3b408;
    --text-color: #fff;
    --text-color-muted: #dfdfdf;

    /** Base colors */
    --clr-dark-a0: #000000;
    --clr-light-a0: #ffffff;

    /** Theme primary colors */
    --clr-primary-a0: #f3b408;
    --clr-primary-a10: #ffdb3c;
    --clr-primary-a20: #ffe05b;
    --clr-primary-a30: #ffe475;
    --clr-primary-a40: #ffe88d;
    --clr-primary-a50: #ffeda4;
    --clr-primary-a60: #fff1bb;
    --clr-primary-a70: #fff6d2;
    --clr-primary-a80: #fffae8;

    /** Theme surface colors */
    --clr-surface-a0: #121212;
    --clr-surface-a10: #282828;
    --clr-surface-a20: #3f3f3f;
    --clr-surface-a30: #575757;
    --clr-surface-a40: #717171;
    --clr-surface-a50: #8b8b8b;
    --clr-surface-a60: #a7a7a7;
    --clr-surface-a70: #c4c4c4;

    /** Theme tonal surface colors */
    --clr-surface-tonal-a0: #272317;
    --clr-surface-tonal-a10: #3c382c;
    --clr-surface-tonal-a20: #514d43;
    --clr-surface-tonal-a30: #68645b;
    --clr-surface-tonal-a40: #7f7c74;
    --clr-surface-tonal-a50: #98958e;
    --clr-surface-tonal-a60: #b0aea9;
    --clr-surface-tonal-a70: #cac9c5;

    /** Success colors */
    --clr-success-a0: #22946e;
    --clr-success-a10: #47d5a6;
    --clr-success-a20: #9ae8ce;

    /** Warning colors */
    --clr-warning-a0: #a87a2a;
    --clr-warning-a10: #d7ac61;
    --clr-warning-a20: #ecd7b2;

    /** Danger colors */
    --clr-danger-a0: #9c2121;
    --clr-danger-a10: #d94a4a;
    --clr-danger-a20: #eb9e9e;

    /** Info colors */
    --clr-info-a0: #21498a;
    --clr-info-a10: #4077d1;
    --clr-info-a20: #92b2e5;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.pi-1 {
    padding-inline: 1rem;
}





.main-content {
    height: calc(100vh - 4rem - 75px);
    width: 100%;
    padding-inline: 1rem;
    display: flex;
    gap: 2rem;
}

.main-content .img {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 60%;
    min-height: 0;
    /* flex yüksekliği düzgün çalışsın */
}

.main-content .img .main-img {
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
    flex-grow: 1;
    /* kalan alanı kapla */
    height: 0;
    object-position: bottom;
    /* flex’in yüksekliği hesaplaması için */
    min-height: 0;
}

.main-content .img .images {
    /*
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    min-height: 130px;
    flex-shrink: 0;
     küçülmesin */
    width: 100%;
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}

.img .images::-webkit-scrollbar {
    display: none;
}

.img .images .image {
    flex: 0 0 auto;
    width: 130px;
    /* Görsel genişliği */
    height: 100px;
    /* Görsel yüksekliği */
    border-radius: 6px;
    background-color: purple;
    scroll-snap-align: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.main-content .img .active {
    border: 3px solid var(--clr-primary-a0);
}

.images .image img {
    user-drag: none;
    /* Safari */
    -webkit-user-drag: none;
    /* Chrome, Safari */
    -moz-user-drag: none;
    /* Firefox */
    -ms-user-drag: none;
}

.main-content .img .images .image {
    overflow: hidden;
    border-radius: 6px;

    background-color: purple;
}

.img .images .image img {
    height: 100%;
    width: 100%;
}

.main-content .car-details {
    width: 40%;
}

.main-content .car-details .details {
    padding: 0px;
}

.main-content .car-details {
    color: #000;
}

.main-content .car-details .title {
    font-size: 1.9rem;
    font-weight: 500;
}

.arac-description {
    text-align: center;
}

img{
}



.mt-3 {
    margin-top: 3rem;
}
.mt-1{
    margin-top: 1rem;
}



.arac-description {
    background-color: var(--bg-light);
    margin-top: 3rem;
    padding-block: 2rem;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.other-cars {
    gap: 2rem;
    margin-inline: 2rem;
    display: grid;
    margin-top: 1rem;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-bottom: 3rem;
}

.sub-title {
    margin-inline: 2rem;
    margin-top: 5rem;
    font-size: 2rem;
    font-weight: bold;
}

.arac-description .title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.details-title {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    padding-bottom: 0.5rem;
}

.row-details {
    border-radius: 12px;
    text-align: left;
    width: 100%;
    border-color: collapse;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #000;
}

.row-details tr:last-child th {
    border-bottom: none;
}

.row-details tr th {
    border-bottom: 1px solid #000;
    padding: 12px 12px;
}

.row-details tr{
    color: #fff;
    background-color: var(--primary-color);
}
.row-details tr:nth-child(odd) {
    background-color: var(--secondary-color);
}

.row tr:last-child {
    border-bottom: none !important;
}

.row-details tr th:first-child {
    font-weight: 700;
    /* kalın */
    width: 40%;
}

.row-details tr th:last-child {
    font-weight: 400;
    /* ince */
    width: 60%;

}

.car .buy-button {
    margin-top: 1rem;
    height: 50px;
    width: calc(100% - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 1rem;
    margin-inline: 1rem;
    background: linear-gradient(180deg, var(--clr-primary-a0), var(--clr-primary-a20));
    color: var(--clr-dark-a0);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
}

.d-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    flex: 1;
}

.d-container .photos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.photos .active {
    border: 2px solid var(--clr-primary-a0);
}

.d-container .photos .photo {
    aspect-ratio: 3/2;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.d-container .name {
    margin-top: 1rem;
    font-size: 1.6rem;
}

.d-container .desc {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.d-container .incele-btn {
    margin-top: auto;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
    display: block;
    justify-self: flex-end;
    align-self: flex-end;
    width: 100%;
    font-size: 1.3rem;

    background: linear-gradient(180deg, var(--clr-primary-a0), var(--clr-primary-a20));
    color: var(--clr-dark-a0);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
}


.dropdown-button {
    border-radius: 12px;
    height: 50px;
    position: relative;
    width: fit-content;
    background-color: var(--clr-surface-a0);
    color: #fff;
    cursor: pointer;
}

.dropdown-button:hover {
    background-color: var(--clr-surface-a10);
}

.dropdown-button.show {
    border-radius: 12px 12px 0 0;
    background-color: var(--clr-surface-a10);
}

.mt-1 {
    margin-top: 1rem;
}

.dropdown-button .visual {
    padding: 6px 12px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.dropdown-button .dropdown .dropdown-search {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-search i {
    font-size: 2rem;
    padding: 6px;
    border-right: 1px solid #fff;
}

.dropdown-button .dropdown .dropdown-search input {
    height: 40px;
    flex-grow: 1;
    border-radius: 0 0 6px 6px;
    background-color: var(--clr-surface-a20);
    cursor: pointer;
    color: #fff;
    padding-left: 3px;
    border: none;
    outline: none;
}

.dropdown-button .dropdown {
    z-index: 1;
    height: fit-content;
    display: flex;
    position: inherit;
    opacity: 0;
    flex-direction: column;
    pointer-events: none;
    background-color: var(--clr-surface-a20);
}

.dropdown-button .dropdown:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-button.show .dropdown {
    pointer-events: all;
    opacity: 1;
}

.dropdown-button .dropdown .dropdown-item {
    border-top: 2px solid #fff;
    padding: 6px 12px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.1s ease all;
    width: 100%;
}

.dropdown-button .dropdown .dropdown-item:hover {
    border-radius: 0 0 12px 12px;

    background-color: var(--clr-surface-a10);
}



@keyframes scroll {
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}
body{
    color: #000 !important;
}

.car {
    background-color: var(--clr-surface-a10);
    border-radius: 12px;
    box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.1),
        /* 2. shadow ring 👇 */
        0 0 0 1px hsla(230, 13%, 9%, 0.075),
        /* 3. multiple soft shadows 👇 */
        0 0.3px 0.4px hsla(230, 13%, 9%, 0.02),
        0 0.9px 1.5px hsla(230, 13%, 9%, 0.045),
        0 3.5px 6px hsla(230, 13%, 9%, 0.09);
    overflow: hidden;
}

.car .img {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
}

.car .row {
    color: var(--text-color);
    margin-top: 1rem;
    display: flex;
    padding-inline: 1rem;
    flex-direction: column;
}

.car .row .name {
    font-size: 1.4rem;
}

.car .row .price {
    margin-top: 6px;
    color: var(--text-color-muted);
}

.h-container {
    text-align: center;
    color: #000;
    margin-block: 3rem;
}

.top-image {
    background-color: red;
    width: 100%;
    height: 375px;
    position: relative;
    margin-top: 75px;
}

.top-image img {
    position: absolute;
    top: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.top-image .overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.6;
    z-index: 1;
}

.top-image h1 {
    font-size: 3rem;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.adresler .adres {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.adresler .adres a {
    color: var(--text-color);
    text-decoration: none;
}

.adresler .adres .icon {
    background-color: var(--text-color);
    border-radius: 100%;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-dark-a0);
}

.icon span {
    font-size: 1rem !important;

}



@media (max-width:980px) {

    .search-bar {
        margin-block: 3rem !important;
    }

    .img .images {
        height: auto !important;
        grid-template-columns: 1fr 1fr 1fr !important;
    }

    nav .links {
        display: none;
    }

    .container {
        padding-inline: 1rem;
    }

    .main-content {
        height: auto;
        flex-direction: column;
        padding-inline: 0rem !important;
    }

    .main-content .img {
        aspect-ratio: 4 / 3 !important;
        width: 100%;
    }

    .main-content .car-details {
        width: 100%;
    }

    .main-content .img {
        min-height: 575px;
        aspect-ratio: unset;
    }

    .other-cars {
        grid-template-columns: 1fr;
    }

    .featured-car {
        grid-template-columns: 1fr;
    }

    .cars-container {
        grid-template-columns: 1fr;
    }

    .d-container .details {
        grid-template-columns: 1fr 1fr !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }




}