/* shop.css */

.shop-section {
    padding: 100px 0;
    background-color: #1a1a1a;
    min-height: 100vh;
}

.shop-title {
    font-family: 'Teko', sans-serif;
    color: #fff;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); /* Немного увеличим мин. ширину */
    gap: 30px;
}

.vehicle-card {
    background-color: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* --- Стили для слайдера в карточке --- */
.vehicle-image-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer; /* Показываем, что можно нажать */
}

.vehicle-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* Плавное затухание */
}

.vehicle-slider-image.active {
    opacity: 1; /* Показываем активное изображение */
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}
/* --- Конец стилей для слайдера --- */


.vehicle-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vehicle-name {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.vehicle-description {
    font-family: 'Roboto Condensed', sans-serif;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
}

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.vehicle-price {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    color: #ffc107;
}

.btn-buy {
    font-family: 'Roboto Condensed', sans-serif;
    text-decoration: none;
    background-color: #ffc107;
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-buy:hover {
    background-color: #fff;
    color: #000;
}


/* --- Стили для Лайтбокса (Галереи) --- */
.lightbox {
    display: none; /* Скрыт по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: color 0.3s;
}

.lightbox-arrow:hover {
    color: #bbb;
}

.lightbox-arrow.prev {
    left: 15px;
}

.lightbox-arrow.next {
    right: 15px;
}