﻿

.btn-whatsapp {
    background: #25D366;
    border: 1px solid #25D366;
    color: #fff !important;
    width: 82px;
    padding: 5px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 11px;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.2;
}

    .btn-whatsapp:hover {
        background: #1ebe5d;
        border-color: #1ebe5d;
        color: #fff !important;
    }


.results-search-wrap {
    margin-bottom: 35px;
}

.results-table .actions-cell {
    min-width: 115px;
    text-align: center;
}

    .results-table .actions-cell .btn {
        width: 90px;
        padding: 6px 8px;
        white-space: nowrap;
    }

.results-search-form {
    display: flex;
    direction: rtl;
    width: 100%;
    gap: 10px;
    background: transparent;
}

    .results-search-form .block-finder__form-control {
        height: 46px;
        background: #fff;
        border: 1px solid #ddd;
        flex: 1;
        min-width: 0;
    }

    .results-search-form .block-finder__form-control--button {
        flex: 0 0 120px;
        border: none;
        background: #0d6efd;
        color: #fff;
        font-weight: bold;
    }

    .results-search-form input,
    .results-search-form select {
        width: 100%;
        height: 100%;
        border: 0;
        padding: 0 18px;
        background: #fff;
        outline: none;
    }

.parts-category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 22px;
    margin-top: 35px;
    margin-bottom: 35px;
    direction: rtl;
}

.parts-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 175px;
    padding: 18px 12px 14px;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    color: #222;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: .2s ease;
}

    .parts-category-card img {
        width: 115px;
        height: 105px;
        object-fit: contain;
        display: block;
    }

    .parts-category-card span {
        display: block;
        width: 100%;
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.35;
        color: #333;
    }

    .parts-category-card:hover {
        border-color: #0d6efd;
        box-shadow: 0 8px 22px rgba(13,110,253,.18);
        transform: translateY(-3px);
    }

        .parts-category-card:hover span {
            color: #0d6efd;
        }

@media (max-width: 1200px) {
    .parts-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .parts-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .parts-category-card {
        min-height: 160px;
    }

        .parts-category-card img {
            width: 100px;
            height: 95px;
        }
}

.results-table th,
.results-table td {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.search-title-box {
    background: #d9f0f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

.car-details-row {
    display: none;
}

.car-details-box {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 18px;
    text-align: right;
}

.car-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.car-detail-item {
    background: white;
    border: 1px solid #e1e1e1;
    padding: 10px;
    border-radius: 4px;
}

.car-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .car-images img {
        width: 130px;
        height: 95px;
        object-fit: cover;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

.no-image {
    width: 130px;
    height: 95px;
    border: 1px dashed #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #fff;
}

.btn-request {
    background: #0d6efd;
    border: 1px solid #0d6efd;
    color: #fff !important;
    width: 90px;
    padding: 6px 8px;
    border-radius: 4px;
    text-decoration: none;
}

    .btn-request:hover {
        background: #0dcaf0;
        border-color: #0dcaf0;
        color: #fff !important;
    }


.mobile-results-cards {
    display: none;
}

.mobile-part-card {
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.mobile-part-card__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.mobile-part-card__sku {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.mobile-part-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    line-height: 1.35;
}

.mobile-part-card__price {
    font-size: 16px;
    font-weight: 800;
    color: #0d6efd;
    white-space: nowrap;
}

.mobile-part-card__vehicle {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
}

.mobile-part-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
}

    .mobile-part-card__actions .btn,
    .mobile-part-card__actions form,
    .mobile-part-card__actions button,
    .mobile-part-card__actions a {
        width: 100%;
        font-size: 12px;
        white-space: nowrap;
    }

.mobile-part-card__details {
    display: none;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    line-height: 1.9;
    color: #333;
}

@media (max-width: 768px) {
    .mobile-results-cards {
        display: block;
        padding: 12px;
    }

    .card-body > .table-responsive {
        display: none;
    }

    .parts-category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .parts-category-card {
        min-height: 92px;
        padding: 8px 4px;
        border-radius: 10px;
    }

        .parts-category-card img {
            width: 48px;
            height: 42px;
        }

        .parts-category-card span {
            margin-top: 6px;
            font-size: 10px;
            line-height: 1.2;
        }

    .pagination .page-item:first-child,
    .pagination .page-item:last-child,
    .pagination .page-item.disabled .page-link {
        display: none;
    }

    .pagination .page-link {
        padding: 6px 9px;
        font-size: 13px;
    }
}

.tg-results-mobile-cards {
    padding: 12px;
}

.tg-mobile-part-card {
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.tg-mobile-part-card__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.tg-mobile-part-card__sku {
    font-size: 12px;
    color: #666;
}

.tg-mobile-part-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.tg-mobile-part-card__price {
    font-size: 16px;
    font-weight: 800;
    color: #0d6efd;
    white-space: nowrap;
}

.tg-mobile-part-card__vehicle {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
}

.tg-mobile-part-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
}

    .tg-mobile-part-card__actions .btn,
    .tg-mobile-part-card__actions form {
        width: 100%;
    }

.tg-mobile-part-card__details {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    line-height: 1.9;
}

/* ===========================
   Results Search - Mobile
=========================== */

@media (max-width:768px) {

    .results-search-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

        .results-search-form .block-finder__form-control {
            width: 100%;
            height: 48px;
            margin: 0;
        }

        .results-search-form .block-finder__form-control--button {
            width: 100%;
            flex: unset;
        }

        .results-search-form input,
        .results-search-form select {
            width: 100%;
            height: 48px;
            font-size: 15px;
            padding: 0 14px;
        }

    .results-search-wrap {
        margin-bottom: 20px;
    }
}


.tg-mobile-part-card__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tg-mobile-part-card__image {
    width: 120px;
    flex-shrink: 0;
}

    .tg-mobile-part-card__image img {
        width: 120px;
        height: 90px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #ddd;
    }

.tg-mobile-part-card__info {
    flex: 1;
}

.tg-mobile-no-image {
    width: 120px;
    height: 90px;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #888;
    border-radius: 8px;
}