.b-goods-f__title {
justify-content: center;
padding-right: 10px;
padding-left: 10px;
}


.b-goods-f__media {
    background: transparent;
}

.b-goods-f__main {
    flex-direction: column !important;
}

.b-goods-f__sidebar {
    justify-content: center !important;
}

.b-goods-f:not(.b-goods-f_row) .b-goods-f__list-item {
    font-size: 14px !important;
}



.car-card-clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card-clickable:hover {
    transform: scale(1.05);
    z-index: 10;
}

.car-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-modal.show {
    display: block;
    opacity: 1;
}

.car-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.car-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.car-modal.show .car-modal-container {
    transform: translateY(0);
}

.car-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.car-modal-close:hover {
    background: #e74c3c;
    transform: rotate(90deg);
}

.car-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
}

.car-modal-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.car-modal-image {
    flex: 0 0 300px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.car-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.car-modal-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.car-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.car-modal-price {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
}

.car-modal-body {
    padding: 0 10px;
}

.car-detail-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.car-detail-heading {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.car-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.car-detail-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.car-detail-list li:last-child {
    border-bottom: none;
}

.car-detail-list li strong {
    color: #555;
    font-weight: 600;
    flex: 0 0 150px;
}

.car-detail-list li span {
    color: #2c3e50;
    text-align: right;
    flex: 1;
}

.car-detail-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.car-detail-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
}

.car-detail-links .btn i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .car-modal-container {
        width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
    }
    
    .car-modal-header {
        flex-direction: column;
    }
    
    .car-modal-image {
        flex: 1 1 100%;
        height: 250px;
    }
    
    .car-modal-title {
        font-size: 22px;
    }
    
    .car-modal-price {
        font-size: 26px;
    }
    
    .car-detail-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .car-detail-list li strong {
        flex: none;
        margin-bottom: 5px;
    }
    
    .car-detail-list li span {
        text-align: left;
    }
}

.car-modal-content::-webkit-scrollbar {
    width: 8px;
}

.car-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.car-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.car-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}