/* ============================================
   PAGE PRODUIT - STYLE TICDONE AMÉLIORÉ
   Cohérent avec la page d'accueil
   ============================================ */

/* Breadcrumb moderne */
.breadcrumb-nav {
    margin-bottom: 2rem;
    animation: slideDown 0.5s ease-out;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #d1d5db;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.breadcrumb-list a {
    color: #6b7280;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: #ff8c1f;
}

/* Grille produit avec effet 3D */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr 1fr 400px;
        grid-template-rows: auto auto;
    }
    
    .product-gallery-section {
        grid-column: 1;
        grid-row: 1 / 3;
    }
    
    .product-info-section {
        grid-column: 2;
        grid-row: 1;
    }
    
    .product-seller-section {
        grid-column: 3;
        grid-row: 1 / 3;
    }
}

/* Section galerie avec animations */
.product-gallery-section {
    animation: slideInLeft 0.6s ease-out;
}

.product-info-section {
    animation: slideInRight 0.6s ease-out 0.2s backwards;
}

.product-seller-section {
    animation: slideInRight 0.6s ease-out 0.4s backwards;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Badges animés */
.animated-badge {
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Prix avec effet souligné */
.price-highlight {
    position: relative;
    display: inline-block;
}

.price-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff8c1f, #ea580c);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.5s backwards;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Boutons avec effet ripple */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-enhanced:active::before {
    width: 300px;
    height: 300px;
}

/* Tabs avec animations */
.tab-content {
    animation: fadeInUp 0.4s ease-out;
}

/* Section header moderne */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
}

/* Texte gradient animé */
.text-gradient-animated {
    background: linear-gradient(90deg, #ff8c1f, #ea580c, #2563eb, #1e5ba8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Grille produits similaires */
.products-grid {
    display: grid;
    gap: 1.5rem;
}

.product-grid-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Section produits similaires */
.related-products-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Alerts modernes */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.5s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Modal zoom image */
.image-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.image-zoom-modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

#zoomedImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.zoom-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .breadcrumb-list {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Effet hover sur les cartes produits */
.product-card {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.product-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Bouton "Voir tout" avec style moderne */
.section-link {
    position: relative;
    overflow: hidden;
}

.section-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 31, 0.2), transparent);
    transition: left 0.5s ease;
}

.section-link:hover::before {
    left: 100%;
}

/* Animation fadeIn générale */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.product-detail-hero {
    animation: fadeIn 0.6s ease-out;
}

/* Effet de chargement skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}


