/* === Layout global === */
.product-gallery {
    display: flex;
    gap: 16px;
    max-width: 900px;
    margin: 40px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}

/* === Colonne de miniatures === */
.pg-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
}

.pg-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.pg-thumb:hover {
    transform: translateY(-1px);
}

.pg-thumb.active {
    border-color: #ff9900; /* style Amazon-ish */
}

/* === Image principale === */
.pg-main-wrapper {
    display: flex;
    gap: 16px;
}

.pg-main {
    width: 420px;
    height: 420px;
    border-radius: 6px;
    border: 1px solid #ddd;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.pg-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* === Zone de zoom (HD) === */
.pg-zoom {
    width: 420px;
    height: 420px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200% 200%; /* niveau de zoom */
    display: none; /* affiché seulement au survol */
    position: relative;
    z-index: 10; /* au-dessus des blocs voisins (ex: product_details) */
}

/* Sur petits écrans : masquer le zoom, garder seulement le carousel */
@media (max-width: 900px) {
    .product-gallery {
        flex-direction: column;
        align-items: center;
    }

    .pg-main-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .pg-zoom {
        display: none !important;
    }

    .pg-thumbs {
        flex-direction: row;
        max-height: none;
    }
}
