/* Container flex layout */
.bike-details-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap; /* stack on small screens */
    gap: 2rem;
    margin: 2rem 0;
}

/* Flex wrapper for image + info */
.bike-details-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

/* Bike image section */
.bike-gallery {
    flex: 0 0 450px; /* fixed width */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bike-gallery .main-image {
    width: 100%;
    height: 300px; /* fixed height */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 15px #FFD70044;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bike-gallery .main-image:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px #FFD70088;
}

/* Back to inventory button */
.bike-gallery .back-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    background: #222;
    color: #FFD700;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #FFD700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bike-gallery .back-btn:hover {
    background: #FFD700;
    color: #222;
    box-shadow: 0 0 10px #FFD700;
}

/* Bike info section */
.bike-info {
    flex: 1;
    min-width: 300px;
    padding: 0 1rem;
}

.bike-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.spec-list li {
    margin-bottom: 0.5rem;
}

.bike-info .price {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bike-info .description {
    line-height: 1.6;
    font-size: 1rem;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .bike-details-flex {
        flex-direction: column;
        align-items: center;
    }

    .bike-info {
        padding: 0;
    }

    .bike-gallery {
        flex: 1 1 100%;
    }

    .bike-gallery .main-image {
        height: 250px;
    }
}
.gallery-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

