.product-card {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-hero {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.product-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.highlight-text {
    font-size: 1.2em;
    color: rgb(0, 0, 0);
    text-align: center;
    margin-bottom: 20px;
}

.product-details {
    margin-top: 20px;
}

.product-specs {
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5em;
    color: rgb(255, 191, 0);
    margin-bottom: 10px;
}

.product-gallery {
    margin-top: 20px;
}

.product-gallery h2 {
    margin-bottom: 15px;
}

.contact-info {
    margin-top: 20px;
    font-size: 1.2em;
    text-align: center;
}

p {
    font-size: 1.1em;
    color: black;
}

.label {
    font-weight: bold;
}

/* ============================================
   Lightbox Overlay
   ============================================ */

body.lightbox-open {
    overflow: hidden;
}

body.lightbox-open > nav,
body.lightbox-open > .car-details,
body.lightbox-open > #footer {
    filter: blur(12px);
    transition: filter 0.3s ease;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.is-active {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    font-family: var(--body-font, 'Raleway', sans-serif);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
}

/* ============================================
   Lightbox Swiper
   ============================================ */
.lightbox-swiper {
    width: 100%;
    height: 100%;
}

.lightbox-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70vw;
    height: 100vh;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.lightbox-swiper .swiper-slide-active {
    opacity: 1;
}

.lightbox-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
}

/* Navigation arrows */
.lightbox-swiper .swiper-button-next.lightbox-arrow,
.lightbox-swiper .swiper-button-prev.lightbox-arrow {
    background: var(--accent-color, #eab01c);
    color: var(--white-color, #fff);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.lightbox-swiper .swiper-button-next.lightbox-arrow:hover,
.lightbox-swiper .swiper-button-prev.lightbox-arrow:hover {
    transform: scale(1.1);
    opacity: 1;
}

.lightbox-swiper .swiper-button-next.lightbox-arrow::after {
    content: '\203A';
    font-size: 24px;
    font-weight: bold;
    color: var(--white-color, #fff);
}

.lightbox-swiper .swiper-button-prev.lightbox-arrow::after {
    content: '\2039';
    font-size: 24px;
    font-weight: bold;
    color: var(--white-color, #fff);
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1399px) {
    .lightbox-swiper .swiper-slide {
        width: 75vw;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .lightbox-swiper .swiper-slide {
        width: 92vw;
        opacity: 1;
    }

    .lightbox-swiper .swiper-slide img {
        max-height: 75vh;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .lightbox-counter {
        bottom: 16px;
        font-size: 0.8rem;
    }

    .lightbox-swiper .swiper-button-next.lightbox-arrow,
    .lightbox-swiper .swiper-button-prev.lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .lightbox-swiper .swiper-button-next.lightbox-arrow::after,
    .lightbox-swiper .swiper-button-prev.lightbox-arrow::after {
        font-size: 20px;
    }
}

/* Masonry gallery layout */
.product-images {
    columns: 3;
    column-gap: 5px;
}

.product-images .gallery-item {
    break-inside: avoid;
    margin-bottom: 5px;
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
}

.product-images .gallery-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.product-images .gallery-item:hover img {
    transform: scale(1.02);
    filter: brightness(0.9);
}

/* Product not found error */
.car-not-found {
    text-align: center;
    padding: 80px 20px;
}

.car-not-found h2 {
    color: var(--accent-color, #eab01c);
    margin-bottom: 15px;
}

.car-not-found p {
    color: var(--light-text-color, #686868);
    font-size: 1.1em;
}

.car-not-found a {
    display: inline-block;
    margin-top: 20px;
}

/* Mobile-specific styles */
@media (max-width: 992px) {
    .product-images {
        columns: 2;
        column-gap: 5px;
    }
}

@media (max-width: 576px) {
    .product-images {
        columns: 2;
        column-gap: 5px;
    }

    .product-images .gallery-item img {
        max-height: 400px;
    }

    .lightbox-swiper .swiper-slide img {
        max-height: 70vh;
    }
}
