/* ============================================
   PRODUCT-BASE.CSS - Code commun pages produits
   Dépendances : core.css, components.css
   Utilisé par : katagami, kit-katagami, peinture, racle, spatule, porte-racle
   ============================================ */

/* ==========================================
   LAYOUT DE BASE
   ========================================== */

body {
    background: #ffffff;
}

.product-page {
    padding: 48px 0 80px;
    background: #ffffff;
}

.product-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 60px;
    align-items: center;
}

/* ==========================================
   GALERIE PHOTOS - GLASSMORPHISM
   ========================================== */

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
}

.product-gallery__main {
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);

}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dots de navigation - Glassmorphism */
.product-gallery__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    padding: 8px 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.product-gallery__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.product-gallery__dot.active {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.3);
}

.product-gallery__dot:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* ==========================================
   MINIATURES - GLASSMORPHISM
   ========================================== */

.product-gallery__thumbnails {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.product-gallery__thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(200, 200, 200, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-gallery__thumbnail:hover {
    border-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.product-gallery__thumbnail.active {
    border-color: rgba(0, 0, 0, 0.4);
}

.product-gallery__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   INFO PRODUIT - CENTRÉ
   ========================================== */

.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.product-info__title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.product-info__title-brand {
    font-weight: 400;
    font-style: italic;
}

.product-info__subtitle {
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.product-info__title-weight {
    font-size: var(--font-size-4xl);
    font-weight: 400; 
    font-style: italic;  
}

/* =================================================
   BADGES - GLASSMORPHISM (en savoir +, FAQ, Tarifs)
   ================================================= */

.product-badges {
    display: flex;
    gap: 10px;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.product-badge {
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #1a1a1a;
}

.product-badge:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: var(--glass-border-hover);
}

/* ============================================
   SÉLECTEUR DE QUANTITÉ - GLASSMORPHISM COMMUN
   ============================================ */

.product-quantity {
    margin-bottom: 20px;
    width: 100%;
}

.product-quantity__label {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-align: center;
    display: block;
}

.product-quantity__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.product-quantity__btn {
    width: 50px;
    height: 50px;
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.product-quantity__btn:first-child {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    border-right: 1px solid var(--glass-border);
}

.product-quantity__btn:last-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    border-left: 1px solid var(--glass-border);
}

.product-quantity__btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.product-quantity__btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.product-quantity__input {
    width: 70px;
    height: 50px;
    text-align: center;
    font-size: var(--font-size-base);
    font-weight: 600;
    border: 1px solid var(--glass-border);
    border-radius: 0;
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #1a1a1a;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
}

.product-quantity__input::-webkit-outer-spin-button,
.product-quantity__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-quantity__input[type=number] {
    -moz-appearance: textfield;
}

/* ==========================================
   BOUTON AJOUTER AU PANIER - GLASSMORPHISM NOIR
   ========================================== */

.product-add-to-cart {
    width: 100%;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 32px;
    border-radius: var(--radius-3xl);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-sm);
}

.product-add-to-cart:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.product-add-to-cart:active {
    transform: translateY(-1px);
}

.product-add-to-cart:disabled {
    background: rgba(211, 215, 214, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(102, 102, 102, 0.8);
    border: 1px solid rgba(211, 215, 214, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ==========================================
   STOCK INFO - ANIMATION PULSE
   ========================================== */

.product-stock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    width: 100%;
}

.product-stock__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ECC71;
    flex-shrink: 0;
    position: relative;
}

.product-stock__dot::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ECC71;
    top: 0;
    left: 0;
    animation: stock-pulse 1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
}

@keyframes stock-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.product-stock strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* ==========================================
   PAIEMENT SÉCURISÉ
   ========================================== */

.product-payment-info {
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    display: inline-block;
}

.product-payment-info:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: var(--glass-border-hover);
}

.product-payment-info span {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}

/* ==========================================
   MODAL PAIEMENT
   ========================================== */

/* Contenu de la modal */
.modal-payment-content {
    max-width: 500px;
    padding: 24px;
    text-align: center;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payment-methods img {
    height: 32px;
    width: auto;
}

.payment-shipping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.payment-shipping-icon {
    width: 18px;
    height: 18px;
}

.payment-close-btn {
    width: 100%;
    border-radius: 9999px;
    padding: 14px 32px;
}

.modal-payment-content .modal-close {
    display: none;
}

/* ==========================================
   MODAL INFOS (générique pour tous produits)
   ========================================== */

.modal-infos-content {
    max-width: 1100px;
}

.modal-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.modal-photo {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    color: #fff;
}

.modal-photo-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-photo-overlay p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.modal-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.modal-block {
    background: #ececec;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: left;
}

.modal-block-icon {
    width: 24px;
    height: 24px;
    margin-bottom: var(--spacing-sm);
}

.modal-block h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.modal-block p {
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

/* ==========================================
   RESPONSIVE - TABLETTE
   ========================================== */

@media (max-width: 768px) {
    .product-page {
        padding: 80px 0 50px;
    }
    
    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .product-gallery__thumbnails {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        justify-content: center;
    }
    
    .product-gallery__thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .product-info {
        align-items: center;
        text-align: center;
    }
    
    .product-info__title {
        font-size: 1.5rem;
    }
    .product-info__title-weight {
        font-size: 1.5rem;
    }
}
    
    .modal-photos {
        grid-template-columns: 1fr;
    }
    
    .modal-blocks {
        grid-template-columns: 1fr;
    }

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 480px) {
    .product-container {
        padding: 0 var(--spacing-sm);
    }
    
    .product-badges {
        flex-wrap: wrap;
    }
    
    /* Stock info - plus petit sur mobile */
    .product-stock {
        font-size: 0.8rem; /* Plus petit */
        margin-bottom: 12px;
    }
    
    .product-stock__dot {
        width: 6px;  /* Plus petit (était 8px) */
        height: 6px;
    }
    
    .product-stock__dot::after {
        width: 6px;
        height: 6px;
    }
    
    /* Paiement sécurisé - plus petit sur mobile */
    .product-payment-info {
        font-size: 0.8rem; /* Plus petit */
        padding: 8px 12px; /* Padding réduit */
    }

/* ==========================================
       MODAL PAIEMENT - MARGES ET BOUTON ARRONDI
       ========================================== */
    
    .modal-payment-content {
        padding: 20px; /* Mobile encore plus compact */
        margin: 30px;
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
    }

    /* Titre de la modal plus petit sur mobile */
    .modal-payment-content .modal-title {
        font-size: 1.5rem; /* 20px au lieu de 2rem/32px */
        margin-bottom: 16px;
    }
    
    /* Bouton fermer totalement arrondi */
    .payment-close-btn {
        border-radius: 9999px;
        padding: 14px 32px;
    }
}