/* ===== PRODUIT.CSS =====
 * Styles pour les fiches produit (structure e-commerce : image + fiche marchand)
 * Téléphone Rose Belgique
 */

/* ===== FICHE PRODUIT PRINCIPALE ===== */
.product-main {
    padding: 70px 0 90px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 460px) 1fr;
    grid-template-areas:
        "gallery header"
        "gallery info";
    column-gap: 60px;
    row-gap: 0;
    align-items: start;
}

/* --- Titre / eyebrow / note : au-dessus de la photo sur mobile --- */
.product-header {
    grid-area: header;
}

/* --- Colonne image --- */
.product-gallery {
    grid-area: gallery;
    position: sticky;
    top: 120px;
}

.product-gallery-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 20, 147, 0.25);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, #ff1493, #dc143c);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(255, 20, 147, 0.5);
}

.product-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.product-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: var(--transition, all 0.3s ease);
}

.product-thumbs img:hover,
.product-thumbs img.active {
    opacity: 1;
    border-color: #ff1493;
}

/* --- Colonne fiche marchand --- */
.product-info {
    grid-area: info;
    padding-top: 5px;
}

.product-eyebrow {
    color: #ff69b4;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.product-header h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 18px;
    background: linear-gradient(45deg, #ff1493, #ff69b4, #ffb6c1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.product-rating .stars {
    color: #ffb6c1;
    letter-spacing: 2px;
}

.product-rating a {
    color: #ff69b4;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px dotted rgba(255, 105, 180, 0.5);
}

.product-rating a:hover {
    color: #ff1493;
}

.product-rating .rating-value {
    color: #ff69b4;
    font-size: 0.95rem;
}

.product-location {
    color: #ff69b4;
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    background: rgba(255, 20, 147, 0.08);
    border: 1px solid rgba(255, 20, 147, 0.3);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 25px;
}

.product-price-box .price {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ff1493;
}

.product-price-box .price-unit {
    font-size: 1.1rem;
    opacity: 0.85;
}

.product-price-box .price-note {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.75;
    text-align: right;
}

.price-phone {
    color: #ff69b4;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.product-description {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 28px;
    line-height: 1.7;
}

.product-checklist {
    list-style: none;
    margin-bottom: 32px;
    display: grid;
    gap: 12px;
}

.product-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
}

.product-checklist li::before {
    content: '✓';
    color: #ff1493;
    font-weight: bold;
    flex-shrink: 0;
}

/* --- Sélecteur d'options (variantes) --- */
.product-options {
    margin-bottom: 32px;
}

.product-options h3 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    opacity: 0.9;
}

.option-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.option-pill {
    position: relative;
}

.option-pill input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.option-pill label {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 105, 180, 0.4);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-size: 0.98rem;
    transition: var(--transition, all 0.3s ease);
}

.option-pill input:checked + label {
    background: linear-gradient(45deg, #ff1493, #dc143c);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 20, 147, 0.4);
}

.option-pill label:hover {
    border-color: #ff1493;
}

/* --- Actions (panier + appel) --- */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 25px;
}

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    border: 2px solid #ff69b4;
    padding: 18px 32px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
}

.btn-add-cart:hover {
    background: rgba(255, 105, 180, 0.15);
    transform: translateY(-3px);
}

.btn-add-cart .cart-icon {
    font-size: 1.2rem;
}

.product-actions .cta-button {
    margin: 0;
}

.product-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    opacity: 0.85;
}

/* ===== SECTIONS DÉTAIL PRODUIT ===== */
.product-detail-section {
    padding: 70px 0;
}

.product-detail-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ff1493, #ff69b4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.product-full-description {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

.product-full-description p {
    margin-bottom: 20px;
}

.product-full-description h3 {
    font-size: 1.4rem;
    margin: 34px 0 16px;
    color: #ff69b4;
}

/* ===== AVIS CLIENTS (style produit) ===== */
.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.reviews-summary .score {
    font-size: 3rem;
    font-weight: bold;
    color: #ff1493;
}

.reviews-summary .score-details .stars {
    display: block;
    color: #ffb6c1;
    letter-spacing: 3px;
    font-size: 1.2rem;
}

.reviews-summary .score-details .count {
    opacity: 0.75;
    font-size: 0.95rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.review-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 16px;
    padding: 25px;
}

.review-card .stars {
    color: #ffb6c1;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.review-card p {
    opacity: 0.9;
    margin-bottom: 14px;
}

.review-card cite {
    font-style: normal;
    font-size: 0.9rem;
    opacity: 0.65;
}

/* ===== PRODUITS SIMILAIRES ===== */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.related-product-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition, all 0.3s ease);
    text-decoration: none;
    color: #fff;
    display: block;
}

.related-product-card:hover {
    transform: translateY(-6px);
    border-color: #ff1493;
    box-shadow: 0 15px 35px rgba(255, 20, 147, 0.3);
}

.related-product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-product-card-body {
    padding: 18px 20px;
}

.related-product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.related-product-card .related-price {
    color: #ff69b4;
    font-weight: bold;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "gallery"
            "info";
        row-gap: 20px;
    }

    .product-gallery {
        position: static;
        max-width: 420px;
        margin: 0 auto;
    }

    .product-header h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .product-price-box {
        flex-wrap: wrap;
    }

    .product-price-box .price-note {
        margin-left: 0;
        text-align: left;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-add-cart, .product-actions .cta-button {
        width: 100%;
        justify-content: center;
    }
}
