/* product_slider_custom.css */

/* Container: remove visual container styling */
.product-image-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    box-shadow: none;
    border: none;
}

/* Slider wrapper with max-width for desktop visibility */
.slider-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Slide images */
.product-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    touch-action: pinch-zoom;
}

/* Zoom on hover for desktop */
@media (hover: hover) {
    .product-image:hover {
        transform: scale(1.08);
        cursor: zoom-in;
    }
}

/* Image slider layout */
.slider {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
    height: auto;
}

.slide {
    min-width: 100%;
    text-align: center;
}

/* Slider nav controls */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.8rem;
    gap: 1rem;
}

.slider-nav button {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.slider-nav button:hover {
    background-color: #e0e0e0;
}

/* Slide counter */
#slideCounter {
    font-size: 0.95rem;
    color: #444;
}

/* Thumbnails */
.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    cursor: pointer;
}

.thumbnail.active img {
    border-color: #007bff;
}

/* Product name below the image */
.product-name-below {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #222;
}

/* Responsive tweaks for mobile */
@media screen and (max-width: 768px) {
    .slider-container {
        max-width: 100%;
    }

    .product-image {
        max-height: 300px;
    }

    .thumbnail img {
        width: 50px;
        height: 50px;
    }

    .slider-nav button {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    .product-name-below {
        font-size: 1rem;
    }
}

.main-content,
.product-detail-container,
.product-image-container,
.image-slider,
.slider-container,
.slider,
.slide {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
}
