﻿

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    direction: rtl;
    font-family: tahoma;
    background: #f7f7f7;
 
}

.product-tabs {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
}

/* Header */

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ececec;
}

.tab-btn {
    flex: 1;
    border: none;
    background: none;
    cursor: pointer;
    padding: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    position: relative;
    transition: .3s;
}

    .tab-btn:hover {
        background: #fafafa;
    }

    .tab-btn.active {
        color: #111;
    }

        .tab-btn.active::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 3px;
            background: #f5b400;
        }

/* Content */

.tabs-content {
    padding: 18px;
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Description */

.description-box {
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 20px;
}

    .description-box h4 {
        margin-bottom: 15px;
    }

    .description-box p {
        line-height: 2;
        color: #444;
        margin-bottom: 20px;
    }

    .description-box ul {
        list-style: none;
    }

    .description-box li {
        margin-bottom: 12px;
        position: relative;
        padding-right: 28px;
    }

        .description-box li::before {
            content: "✓";
            position: absolute;
            right: 0;
            color: #1fb955;
            font-weight: bold;
        }

/* Table */

.specs-table {
    width: 100%;
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
}

    .row:nth-child(even) {
        background: #f7f7f7;
    }

    .row span:first-child {
        font-weight: 700;
    }

/* Other Tabs */

.simple-content {
    padding: 20px;
}

    .simple-content h3 {
        margin-bottom: 15px;
    }

.faq-item,
.review {
    margin-bottom: 15px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 10px;
}

@media(max-width:768px) {

    .tabs-header {
        overflow: auto;
    }

    .tab-btn {
        min-width: 150px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}


.compatible-cars {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 12px;
    max-width: 90%;
    direction:rtl
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

    .section-header h3 {
        font-size: 22px;
        color: #222;
        font-weight: 700;
    }

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
}

.car-card {
    background: white;
    border: 1px solid #ececec;
    border-radius: 12px;
    min-height: 95px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: .25s;
}

    .car-card:hover {
        border-color: #d7d7d7;
        box-shadow: 0 4px 10px rgba(0,0,0,.05);
    }

.car-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 5px;
}

.car-info p {
    font-size: 13px;
    color: #444;
}

.car-image {
    position: relative;
}

    .car-image img {
        width: 110px;
        height: auto;
        object-fit: contain;
    }

.check {
    position: absolute;
    bottom: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #18b74f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

@media(max-width:768px) {

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .car-card {
        min-height: 85px;
    }

    .car-image img {
        width: 90px;
    }

    .car-info h4 {
        font-size: 22px;
    }
}

.khz {
    font-size: 23px;
    padding-bottom: 18px;
}

.product-container {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    border-radius: 16px;
    display: flex;
    gap: 30px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    direction:rtl
}

.gallery {
    flex: 1.2;
}

.main-image {
    height: 420px;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.thumbs {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    overflow-x: overlay;
}

.thumb {
    width: 85px;
    height: 85px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
    transition: .3s;
}

    .thumb.active,
    .thumb:hover {
        border: 2px solid #ffb300;
    }

.info {
    flex: 0.9;
}

    .info h1 {
        font-size: 25px;
        margin-bottom: 0;
    }

.subtitle {
    color: #666;
    line-height: 2;
}

.brand {
    margin-top: 20px;
    color: #444;
}

.rating {
    margin-top: 15px;
    color: #f6b100;
    font-size: 22px;
}

    .rating span {
        color: #666;
        font-size: 14px;
    }

.price-box {
    margin-top: 15px;
    display: flex;
}

.old-price {
    text-decoration: line-through;
    color: #999;
}

.discount {
    display: inline-block;
    background: #ff4d4d;
    color: #fff;
    padding: 0 10px;
    border-radius: 6px;
}

.price {
    font-size: 20px;
    color: #138f3e;
    font-weight: 700;
    display: block;
}

.shipping {
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 5px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

.buy-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: #ffc107 !important;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.consult-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border: 2px solid #28a745 !important;
    color: darkgreen !important;
}

.features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
    color: #555;
    font-size: 14px;
}

@media(max-width:900px) {

    .product-container {
        flex-direction: column;
    }

    .info h1 {
        font-size: 28px;
    }

    .price {
        font-size: 20px;
    }
}


small, .small {
    font-size: 0.875em;
    color: darkgreen;
}



