:root {
    --product-primary: #ffd700;
    --product-secondary: #2c3e50;
    --product-success: #27ae60;
    --product-error: #e74c3c;
    --product-warning: #f39c12;
    --product-info: #3498db;
    --product-light: #f8f9fa;
    --product-dark: #2c3e50;
    --product-border: #ecf0f1;
    --product-shadow: 0 8px 25px rgba(0,0,0,0.08);
    --product-shadow-hover: 0 15px 35px rgba(0,0,0,0.12);
    --product-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --product-border-radius: 16px;
}

/* SECTION PRINCIPALE PRODUIT */
.modern-product-page {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 80vh;
}

.product-hero {
    background: white;
    border-radius: var(--product-border-radius);
    box-shadow: var(--product-shadow);
    margin-bottom: 3rem;
    overflow: hidden;
    position: relative;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* GALERIE D'IMAGES MODERNE */
.product-gallery-section {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.main-image-container {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--product-shadow);
    margin-bottom: 1rem;
    cursor: zoom-in;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--product-transition);
}

.main-image-container:hover .main-product-image {
    transform: scale(1.05);
}

.image-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.product-badge {
    background: var(--product-primary);
    color: var(--product-dark);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--product-shadow);
}

.zoom-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* GALERIE DE MINIATURES */
.image-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--product-transition);
    flex-shrink: 0;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--product-primary);
    transform: scale(1.05);
}

/* INFORMATIONS PRODUIT */
.product-info-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--product-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* NOTATION MODERNE */
.product-rating-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--product-light);
    border-radius: 12px;
}

.stars-container {
    display: flex;
    gap: 0.25rem;
}

.star-filled { color: #ffd700; }
.star-half { color: #ffd700; }
.star-empty { color: #ddd; }

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rating-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--product-dark);
}

.rating-text {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* PRIX MODERNE */
.price-section {
    margin-bottom: 2rem;
}

.main-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--product-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-currency {
    font-size: 1.5rem;
    opacity: 0.7;
}

.price-note {
    color: #27ae60;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.savings-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* CARACTÉRISTIQUES HIGHLIGHT */
.key-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-highlight {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--product-border);
    text-align: center;
    transition: var(--product-transition);
}

.feature-highlight:hover {
    transform: translateY(-2px);
    box-shadow: var(--product-shadow-hover);
}

.feature-icon {
    font-size: 2rem;
    color: var(--product-primary);
    margin-bottom: 0.75rem;
}

.feature-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

.feature-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--product-dark);
}

/* ACTIONS PRODUIT MODERNES */
.product-actions-modern {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--product-border);
    margin-bottom: 2rem;
}

.quantity-section {
    margin-bottom: 2rem;
}

.quantity-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--product-dark);
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--product-light);
    border-radius: 12px;
    padding: 0.5rem;
    width: fit-content;
}

.qty-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--product-transition);
    font-weight: 600;
    color: var(--product-dark);
}

.qty-btn:hover {
    background: var(--product-primary);
    transform: scale(1.1);
}

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0.5rem;
}

/* BOUTONS D'ACTION PREMIUM */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--product-primary), #f1c40f);
    color: var(--product-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--product-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--product-shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-primary-modern:hover::before {
    left: 100%;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--product-shadow-hover);
}

.btn-secondary-modern {
    background: var(--product-secondary);
    color: white;
    border: 2px solid var(--product-secondary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--product-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-secondary-modern:hover {
    background: transparent;
    color: var(--product-secondary);
    transform: translateY(-3px);
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-outline-modern {
    background: transparent;
    color: var(--product-dark);
    border: 2px solid var(--product-border);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--product-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-outline-modern:hover {
    border-color: var(--product-primary);
    background: var(--product-primary);
    color: var(--product-dark);
    transform: translateY(-2px);
}

/* INFORMATIONS DE LIVRAISON */
.delivery-info-modern {
    background: linear-gradient(135deg, #e8f6f3, #f0f9ff);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--product-success);
    margin-bottom: 2rem;
}

.delivery-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--product-dark);
    margin-bottom: 1rem;
}

.delivery-countries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.country-tag {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--product-border);
}

.delivery-details {
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.5;
}

/* ONGLETS MODERNES */
.modern-tabs-section {
    background: white;
    border-radius: var(--product-border-radius);
    box-shadow: var(--product-shadow);
    margin-bottom: 3rem;
    overflow: hidden;
}

.modern-tab-buttons {
    display: flex;
    background: var(--product-light);
    border-bottom: 1px solid var(--product-border);
}

.modern-tab-btn {
    flex: 1;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
    transition: var(--product-transition);
    border-bottom: 3px solid transparent;
}

.modern-tab-btn.active {
    background: white;
    color: var(--product-dark);
    border-bottom-color: var(--product-primary);
}

.modern-tab-btn:hover {
    background: white;
    color: var(--product-dark);
}

.modern-tab-content {
    padding: 2rem;
    display: none;
    animation: fadeInUp 0.3s ease;
}

.modern-tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SPÉCIFICATIONS MODERNES */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: var(--product-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--product-border);
}

.spec-label {
    font-weight: 600;
    color: var(--product-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-value {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* AVIS CLIENTS MODERNES */
.reviews-section {
    padding: 2rem 0;
}

.review-form-modern {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--product-border);
    margin-top: 2rem;
}

.star-rating-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star-input {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--product-transition);
}

.star-input:hover,
.star-input.active {
    color: #ffd700;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--product-dark);
}

.form-input-modern,
.form-textarea-modern {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--product-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--product-transition);
}

.form-input-modern:focus,
.form-textarea-modern:focus {
    outline: none;
    border-color: var(--product-primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* PRODUITS SIMILAIRES MODERNES */
.related-products-modern {
    padding: 4rem 0;
    background: var(--product-light);
}

.section-title-modern {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--product-dark);
    margin-bottom: 3rem;
}

.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--product-shadow);
    transition: var(--product-transition);
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--product-shadow-hover);
}

.product-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--product-transition);
}

.product-card-modern:hover .product-card-image img {
    transform: scale(1.1);
}

.product-card-content {
    padding: 1.5rem;
}

.product-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--product-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--product-secondary);
    margin-bottom: 1rem;
}

.product-card-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-card-primary {
    flex: 1;
    background: var(--product-primary);
    color: var(--product-dark);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--product-transition);
    text-decoration: none;
    text-align: center;
}

.btn-card-primary:hover {
    background: #f1c40f;
    transform: translateY(-2px);
}

.btn-card-secondary {
    background: var(--product-light);
    color: var(--product-dark);
    border: 1px solid var(--product-border);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--product-transition);
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-card-secondary:hover {
    background: var(--product-secondary);
    color: white;
}

/* MODAL ZOOM D'IMAGE */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content-image {
    position: relative;
    width: 90%;
    height: 90%;
    margin: 5% auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .main-price {
        font-size: 2.2rem;
    }
    
    .modern-tab-buttons {
        flex-wrap: wrap;
    }
    
    .modern-tab-btn {
        flex: none;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .modern-product-page {
        padding: 1rem 0;
    }
    
    .product-hero {
        margin-bottom: 2rem;
    }
    
    .product-gallery-section,
    .product-info-section {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .main-price {
        font-size: 2rem;
    }
    
    .key-features {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        gap: 0.75rem;
    }
    
    .contact-actions {
        grid-template-columns: 1fr;
    }
    
    .modern-tab-buttons {
        flex-direction: column;
    }
    
    .modern-tab-btn {
        text-align: left;
        border-bottom: 1px solid var(--product-border);
        border-radius: 0;
    }
    
    .modern-tab-btn.active {
        border-left: 4px solid var(--product-primary);
        border-bottom: 1px solid var(--product-border);
    }
    
    .products-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .product-gallery-section,
    .product-info-section {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .main-price {
        font-size: 1.8rem;
    }
    
    .modern-tab-content {
        padding: 1.5rem;
    }
    
    .products-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ANIMATIONS ET TRANSITIONS */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-gallery-section {
    animation: slideInFromLeft 0.6s ease;
}

.product-info-section {
    animation: slideInFromRight 0.6s ease;
}

/* OPTIMISATIONS PERFORMANCES */
.product-card-modern,
.feature-highlight,
.btn-primary-modern {
    will-change: transform;
}

/* ACCESSIBILITÉ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* FOCUS VISIBLE POUR ACCESSIBILITÉ */
.btn-primary-modern:focus-visible,
.btn-secondary-modern:focus-visible,
.btn-outline-modern:focus-visible {
    outline: 2px solid var(--product-primary);
    outline-offset: 2px;
}