/* ========== BANNIÈRE CIRCUIT ========== */
.circuit-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)),
                url('https://images.unsplash.com/photo-1627398242454-45a1465c2479?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.circuit-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 102, 204, 0.05) 1px,
            rgba(0, 102, 204, 0.05) 2px
        );
    animation: circuitPulse 10s linear infinite;
}

@keyframes circuitPulse {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto 30px;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 12px 20px;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--tech-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--gold-premium);
}

.breadcrumb-item.active {
    color: var(--gold-premium);
    font-weight: 600;
}

.banner-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.product-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff, var(--tech-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.product-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== DETAILS PRODUIT ========== */
.product-details-main {
    padding: 60px 0;
    background: #0f0f1a;
}

/* Galerie produit */
.product-gallery {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.image-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: var(--tech-blue);
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Description */
.product-description-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-description-section h3 {
    color: var(--gold-premium);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.description-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Sidebar produit */
.product-sidebar {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 100px;
}

/* Badges */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.product-meta .badge {
    padding: 8px 15px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    backdrop-filter: blur(10px);
}

.featured-badge {
    background: linear-gradient(45deg, var(--gold-premium), #ffed4e);
    color: #000;
}

.category-badge {
    background: linear-gradient(45deg, var(--tech-blue), #4dabf7);
    color: white;
}

.stock-badge {
    color: white;
}

.stock-badge.out-of-stock {
    background: linear-gradient(45deg, #ff6b6b, #ff8787);
}

.stock-badge.low-stock {
    background: linear-gradient(45deg, #ff922b, #ffc078);
}

.stock-badge.in-stock {
    background: linear-gradient(45deg, #40c057, #69db7c);
}

/* Prix */
.product-price-section {
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(255, 215, 0, 0.05));
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold-premium);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.stock-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Actions */
.quantity-selector .input-group {
    width: 180px;
    margin: 0 auto;
}

.quantity-selector .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.quantity-selector .btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
}

.quantity-selector .btn:hover {
    background: rgba(0, 102, 204, 0.3);
    border-color: var(--tech-blue);
}

.product-actions .btn {
    padding: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
}

.product-actions .btn-primary {
    background: linear-gradient(45deg, var(--tech-blue), #4dabf7);
}

.product-actions .btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #0066cc);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

.product-actions .btn-outline-primary {
    border: 2px solid var(--tech-blue);
    color: var(--tech-blue);
    background: transparent;
}

.product-actions .btn-outline-primary:hover {
    background: rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.product-actions .btn-outline-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.product-actions .btn-outline-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Cartes info */
.product-info-cards {
    margin-top: 30px;
    display: grid;
    gap: 15px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--tech-blue);
    transform: translateX(5px);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(255, 215, 0, 0.05));
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--tech-blue), #4dabf7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.info-content h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

/* Produits similaires */
.related-products {
    margin-top: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.view-all {
    color: var(--tech-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--gold-premium);
    transform: translateX(5px);
}

.related-product-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-10px);
    border-color: var(--tech-blue);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.related-product-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.featured-badge-small {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold-premium);
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.related-product-info {
    padding: 20px;
}

.related-category {
    color: var(--tech-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.related-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-title a:hover {
    color: var(--gold-premium);
}

.related-price {
    color: var(--gold-premium);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-stock {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1199px) {
    .product-title {
        font-size: 2.4rem;
    }
    
    .current-price {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .product-title {
        font-size: 2rem;
    }
    
    .product-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .main-image {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .circuit-banner {
        padding: 40px 0 30px;
        background-attachment: scroll;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .product-meta {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .product-title {
        font-size: 1.6rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-actions .btn {
        padding: 12px;
        font-size: 1rem;
    }
}