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

/* ===== GALERIE PRODUIT ===== */
.product-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    margin-bottom: 1rem;
}

.main-image-container {
    position: relative;
    aspect-ratio: 1;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-image-container:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.5s ease;
}

.main-image:hover {
    transform: scale(1.05);
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* Badges sur l'image */
.image-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.badge-featured {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-free-shipping {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

/* Actions overlay */
.image-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.action-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action-favorite:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.action-share:hover {
    color: #3b82f6;
    border-color: #3b82f6;
}

.action-zoom:hover {
    color: #8b5cf6;
    border-color: #8b5cf6;
}

/* Menu partage */
.share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    min-width: 150px;
    z-index: 20;
    animation: slideDown 0.3s ease-out;
}

.share-menu.hidden {
    display: none;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.share-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

/* Navigation images */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.nav-prev {
    left: 1rem;
}

.nav-next {
    right: 1rem;
}

/* Miniatures */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
    border-color: #ff8c1f;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 140, 31, 0.3);
}

.thumbnail.active {
    border-color: #ff8c1f;
    box-shadow: 0 4px 12px rgba(255, 140, 31, 0.4);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== INFO PRODUIT ===== */
.product-info {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-category {
    margin-bottom: 0.75rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: linear-gradient(135deg, #ff8c1f 0%, #ea580c 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 31, 0.3);
}

.product-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Space Grotesk', sans-serif;
}

/* Meta info */
.product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    width: 1.25rem;
    height: 1.25rem;
}

.star-filled {
    color: #fbbf24;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.star-empty {
    color: #d1d5db;
}

.rating-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.meta-divider {
    color: #d1d5db;
    font-weight: bold;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Prix */
.product-pricing {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 3px solid #ff8c1f;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.product-pricing::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff8c1f, #ea580c, #ff8c1f);
    background-size: 300% 300%;
    border-radius: 16px;
    z-index: -1;
    animation: gradientRotate 4s ease infinite;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ea580c;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
}

.price-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: #9a3412;
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.shipping-free {
    color: #059669;
    font-weight: 600;
}

/* Stock */
.product-stock {
    margin-bottom: 1.5rem;
}

.stock-available,
.stock-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

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

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

/* Formulaire d'achat */
.purchase-form {
    margin-bottom: 1.5rem;
}

.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    border-color: #ff8c1f;
    color: #ff8c1f;
    transform: scale(1.1);
}

.qty-input {
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #1f2937;
}

.qty-input:focus {
    outline: none;
    border-color: #ff8c1f;
}

.quantity-hint {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::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:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff8c1f 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 140, 31, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 31, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #ff8c1f;
    border-color: #ff8c1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #fff7ed;
    border-color: #ea580c;
    color: #ea580c;
    box-shadow: 0 4px 12px rgba(255, 140, 31, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
}

/* Garanties */
.product-guarantees {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    border: 2px solid #86efac;
}

.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.guarantee-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.125rem;
}

.guarantee-desc {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* ===== CARTE VENDEUR ===== */
.seller-card {
    background: var(--seller-card-bg, white);
    border: 1px solid var(--seller-card-border, rgba(226, 232, 240, 0.92));
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--seller-card-shadow, 0 10px 30px rgba(0, 0, 0, 0.1));
    position: sticky;
    top: 1rem;
    overflow: hidden;
}

.seller-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--seller-card-glow, radial-gradient(circle at top right, rgba(255, 140, 31, 0.12), transparent 36%));
    pointer-events: none;
}

.seller-card > * {
    position: relative;
    z-index: 1;
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--seller-card-divider, #f3f4f6);
}

.seller-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--seller-card-accent, #ff8c1f);
    box-shadow: var(--seller-card-avatar-shadow, 0 4px 12px rgba(255, 140, 31, 0.3));
    object-fit: cover;
}

.seller-info {
    flex: 1;
}

.seller-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--seller-card-text, #1f2937);
    margin-bottom: 0.25rem;
}

.seller-joined {
    font-size: 0.8125rem;
    color: var(--seller-card-muted, #6b7280);
}

.seller-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge-verified {
    background: var(--seller-card-badge-verified-bg, linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%));
    color: var(--seller-card-badge-verified-text, #1e40af);
}

.badge-top {
    background: var(--seller-card-badge-top-bg, linear-gradient(135deg, #fef3c7 0%, #fde68a 100%));
    color: var(--seller-card-badge-top-text, #92400e);
}

.seller-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--seller-card-surface, #f9fafb);
    border-radius: 12px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--seller-card-accent-strong, #ff8c1f);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--seller-card-muted, #6b7280);
}

.seller-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-block {
    width: 100%;
}

.seller-performance {
    padding: 1rem;
    background: var(--seller-card-performance-bg, linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%));
    border-radius: 12px;
    margin-bottom: 1rem;
}

.performance-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--seller-card-text, #1f2937);
    margin-bottom: 0.75rem;
}

.performance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.performance-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--seller-card-text, #374151);
}

.performance-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--seller-card-performance-value, #059669);
}

.seller-protection {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--seller-card-protection-bg, linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%));
    border-radius: 12px;
}

.protection-icon {
    flex-shrink: 0;
}

.seller-card .protection-icon svg {
    color: var(--seller-card-protection-icon, #3b82f6);
}

.protection-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--seller-card-text, #1f2937);
    margin-bottom: 0.25rem;
}

.protection-text {
    font-size: 0.8125rem;
    color: var(--seller-card-muted, #6b7280);
}

.seller-card .btn-primary {
    background: linear-gradient(135deg, var(--seller-card-accent, #ff8c1f) 0%, var(--seller-card-accent-strong, #ea580c) 100%);
    color: white;
    box-shadow: var(--seller-card-button-shadow, 0 4px 12px rgba(255, 140, 31, 0.3));
}

.seller-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--seller-card-accent-strong, #ea580c) 0%, var(--seller-card-accent, #ff8c1f) 100%);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
}

.seller-card .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--seller-card-accent-strong, #ea580c);
    border-color: var(--seller-card-accent, #ff8c1f);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.seller-card .btn-secondary:hover {
    background: var(--seller-card-accent-soft, #fff7ed);
    border-color: var(--seller-card-accent-strong, #ea580c);
    color: var(--seller-card-accent-strong, #ea580c);
}

/* Responsive */
@media (max-width: 1024px) {
    .seller-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .action-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}

