/* --- STRUCTURE DE LA PAGE --- */
.product-page {
    padding-top: 80px; /* Espace pour le header fixe */
    background-color: #fff;
}

.product-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* --- PARTIE VISUELLE (GAUCHE) --- */
.product-visual {
    flex: 1.2;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
}

.product-visual img {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Flèches de navigation */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #000;
    cursor: pointer;
    padding: 20px;
    z-index: 10;
    user-select: none;
    transition: opacity 0.3s;
}
.arrow:hover { opacity: 0.5; }
.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

/* --- PARTIE DÉTAILS (DROITE) --- */
.product-details {
    flex: 0.8;
    padding: 80px 6%;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.product-details h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
}

.description {
    line-height: 1.6;
    margin-bottom: 40px;
    color: #333;
    font-size: 1rem;
    text-align: justify;
}

/* Sélecteur de taille */
.size-box {
    border: 1px solid #000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.size-box label {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.sizes {
    display: flex;
    gap: 15px;
}

.sizes span {
    cursor: pointer;
    font-weight: bold;
    padding: 5px 10px;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
}

.sizes span:hover { color: #666; }

.sizes span.active {
    border-bottom: 2px solid #000;
}

/* Prix et Stock */
.price-stock {
    margin-bottom: 40px;
}

.price-stock .price {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 5px;
}

.price-stock .stock {
    color: #27ae60;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Bouton Ajouter au panier */
.btn-add {
    width: 100%;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: #fff;
    color: #000;
}

.cart-icon {
    width: 25px;
    filter: invert(1);
    transition: 0.3s;
}

.btn-add:hover .cart-icon {
    filter: invert(0);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 1024px) {
    .product-layout {
        flex-direction: column;
    }

    .product-visual {
        min-height: 60vh;
        padding: 40px 20px;
    }

    .product-details {
        padding: 40px 8% 120px; /* Plus de padding en bas pour le bouton fixe */
    }

    .product-details h1 {
        font-size: 2rem;
    }

    /* Bouton d'ajout fixé en bas de l'écran sur mobile */
    .btn-add {
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        border-radius: 0;
        border: none;
    }
}

@media (max-width: 480px) {
    .product-visual {
        min-height: 50vh;
    }

    .product-visual img {
        max-height: 40vh;
    }

    .arrow {
        font-size: 24px;
        padding: 10px;
    }

    .size-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}