/* ============================================
   PRODUCT PAGE STYLES
   ============================================ */

/* Variables - DESIGN SYSTEM TIC DONE OFFICIEL */
:root {
    /* Couleurs du logo */
    --primary-color: #ff8c1f;  /* Orange "TIC" */
    --primary-dark: #ea580c;
    --secondary-color: #2563eb;  /* Bleu "DONE" */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Layout */
.product-page-wrapper {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

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

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    color: var(--gray-400);
    font-size: 1.25rem;
}

.breadcrumb-list a {
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

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

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: 1.2fr 1fr 0.8fr;
    }
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 1rem;
}

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

.main-image-container {
    position: relative;
    aspect-ratio: 1;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--gray-100);
}

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

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

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--gray-50);
}

/* Image Badges */
.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.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.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, #2563eb 0%, #1e40af 100%);
    color: white;
}

/* Image Actions */
.image-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.main-image-container:hover .image-actions {
    opacity: 1;
}

.action-btn {
    width: 3rem;
    height: 3rem;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

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

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

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

.action-zoom:hover {
    background: #f3e8ff;
    color: #a855f7;
}

/* Share Menu */
.share-menu {
    position: absolute;
    top: 0;
    right: 3.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border: 2px solid var(--gray-100);
    z-index: 50;
    min-width: 180px;
}

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

.share-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
}

.share-item:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s;
    z-index: 10;
}

.main-image-container:hover .nav-btn {
    opacity: 1;
}

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

.nav-prev {
    left: 1rem;
}

.nav-next {
    right: 1rem;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

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

/* Product Info */
.product-info {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.category-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.category-link:hover {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    transform: translateY(-2px);
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Product Meta */
.product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

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

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

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

.star-filled {
    color: #fbbf24;
}

.star-empty {
    color: var(--gray-300);
}

.rating-text {
    font-weight: 600;
    color: var(--gray-700);
}

.meta-divider {
    color: var(--gray-300);
    font-size: 1.25rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Product Pricing - DESIGN TIC DONE */
.product-pricing {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fed7aa;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ff8c1f 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-currency {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-600);
    position: relative;
    z-index: 1;
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.shipping-free {
    color: var(--success-color);
    font-weight: 700;
}

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

.stock-available,
.stock-unavailable {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

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

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

/* Purchase Form */
.purchase-form {
    margin-bottom: 1.5rem;
}

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

.quantity-label {
    display: block;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

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

.qty-btn {
    width: 3rem;
    height: 3rem;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
}

.qty-input {
    width: 5rem;
    height: 3rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    border: 2px solid var(--gray-300);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.quantity-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-left: 0.5rem;
}

/* Action Buttons - DESIGN TIC DONE */
.action-buttons {
    display: flex;
    gap: 1rem;
}

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

.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-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #eff6ff;
    border-color: #1e40af;
    color: #1e40af;
    transform: translateY(-2px);
}

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

.btn-block {
    width: 100%;
}

/* Product Guarantees */
.product-guarantees {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 1rem;
}

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

.guarantee-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.guarantee-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .image-actions {
        opacity: 1;
    }

    .nav-btn {
        opacity: 1;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Continue in next file... */

