/* ========== GÉNÉRAL ========== */
.breadcrumb-section {
    padding: 5px 70px;
    margin-bottom: 10px;
}

.breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
    font-size: 1rem;
}

.breadcrumb-item a {
    color: #0a1f44;
    text-decoration: none;
    font-weight: 500;
}

.product-detail-section {
    padding: 20px 70px 40px;
}

/* ========== GALERIE IMAGES ========== */
.product-gallery {
    position: sticky;
    top: 20px;
}

.main-image-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image {
    position: relative;
    padding: 15px;
    cursor: zoom-in;
}

.main-image img.zoomable {
    width: 100%;
    height: 350px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.btn-fullscreen {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.btn-fullscreen:hover {
    background: rgba(0, 0, 0, 0.9);
}

.thumbnail-gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.thumbnail-navigation {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    flex-shrink: 0;
    transition: all 0.3s;
}

.thumbnail-navigation:hover {
    background: #0a1f44;
    color: white;
    border-color: #0a1f44;
}

.thumbnail-navigation.prev {
    margin-right: 10px;
}

.thumbnail-navigation.next {
    margin-left: 10px;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px;
    flex: 1;
    scrollbar-width: thin;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.thumbnail-item {
    flex: 0 0 auto;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s;
}

.thumbnail-item.active {
    border-color: #0a1f44;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 3px;
    background: white;
    padding: 3px;
}

.thumbnail-item:hover .thumbnail {
    opacity: 0.8;
    transform: scale(1.05);
}

.image-counter {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* ========== INFOS PRODUIT COMPACTES ========== */
.product-info-detail {
    padding-left: 30px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.brand-badge {
    background: #e8f4fd;
    color: #0a1f44;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-ref-inline {
    color: #666;
    font-size: 0.85rem;
}

.product-title-compact {
    font-size: 1.6rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.price-section-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}

.price-current-big {
    font-size: 1.8rem;
    color: #0a1f44;
    font-weight: 700;
}

.price-old-inline {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.promo-badge-inline {
    background: #ff4444;
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-status-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 1rem;
}

.stock-status-compact i {
    font-size: 1.2rem;
}

.in-stock-text {
    color: #28a745;
    font-weight: 600;
}

.out-stock-text {
    color: #dc3545;
    font-weight: 600;
}

/* ========== AJOUT PANIER MODERNE ========== */
.add-to-cart-section {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    max-width: 500px;
}

.qty-selector-modern {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.qty-btn-modern {
    background: white;
    border: none;
    width: 42px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #0a1f44;
    transition: all 0.3s;
}

.qty-btn-modern:hover {
    background: #0a1f44;
    color: white;
}

.qty-input-modern {
    width: 60px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.btn-cart-modern {
    flex: 1;
    background: linear-gradient(135deg, #0a1f44 0%, #1e3a8a 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-cart-modern:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 31, 68, 0.4);
}

.btn-cart-modern.disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    max-width: 500px;
}

.btn-cart-modern i {
    font-size: 1.2rem;
}

/* ========== DESCRIPTION COURTE EN DESSOUS ========== */
.short-desc-below {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #0a1f44;
}

.short-desc-below h4 {
    font-size: 1rem;
    color: #0a1f44;
    margin-bottom: 10px;
    font-weight: 600;
}

.short-desc-below p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ========== CATÉGORIES TAGS ========== */
.categories-tags {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.categories-tags strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 0.9rem;
}

.cat-tag {
    display: inline-block;
    background: #e8f4fd;
    color: #0a1f44;
    padding: 6px 15px;
    border-radius: 20px;
    margin: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.cat-tag:hover {
    background: #0a1f44;
    color: white;
}

/* ========== FRÉQUEMMENT ACHETÉS ENSEMBLE ========== */
.frequently-bought-section {
    padding: 50px 70px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

.section-title-left {
    font-size: 1.2rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-left i {
    color: #0a1f44;
}

.frequently-bought-container {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.products-combo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.combo-product-card {
    flex: 0 0 130px;
    height: 150px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.combo-product-card:hover {
    border-color: #0a1f44;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.combo-product-image {
    width: 100%;
    height: 100%;
}

.combo-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.plus-icon {
    font-size: 2rem;
    color: #0a1f44;
    font-weight: 700;
    flex-shrink: 0;
}

.combo-summary {
    flex: 0 0 250px;
    text-align: right;
}

.combo-prices {
    margin-bottom: 15px;
}

.combo-label {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.combo-price-current {
    font-size: 1.2rem;
    color: #0a1f44;
    font-weight: 700;
}

.combo-price-old {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
}

.btn-add-combo {
    width: 100%;
    background: #0a1f44;
    color: white;
    border: none;
    padding: 10px 2px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-combo:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.combo-details {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.combo-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.combo-check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.combo-name {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.combo-price {
    font-weight: 600;
    color: #0a1f44;
    font-size: 0.95rem;
}

.combo-old-price {
    font-size: 0.85rem;
    color: #999;
    margin-left: 8px;
}

/* ========== DESCRIPTION LONGUE CENTRÉE ========== */
.description-full-section {
    padding: 50px 70px;
    background: white;
}

.description-full-content {
    max-width: 900px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
}

.description-full-content h3 {
    font-size: 1.8rem;
    color: #0a1f44;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.description-html {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

.description-html img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.description-html h1, 
.description-html h2, 
.description-html h3, 
.description-html h4 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.description-html p {
    margin-bottom: 15px;
}

.description-html ul, 
.description-html ol {
    margin: 15px 0;
    padding-left: 25px;
}

/* ========== SECTIONS CAROUSELS - TAILLE IDENTIQUE AUX AUTRES PAGES ========== */
.related-articles-section,
.also-bought-section,
.similar-products-section-new,
.last-viewed-section-new {
    padding: 50px 70px;
}

.related-articles-section {
    background: #f8f9fa;
}

.also-bought-section {
    background: white;
}

.similar-products-section-new {
    background: #f8f9fa;
}

.last-viewed-section-new {
    background: white;
}

.section-title-centered {
    font-size: 1.6rem;
    color: #0a1f44;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title-centered i {
    color: #0a1f44;
}

/* ========== CAROUSEL ARTICLES LIÉS (GRANDES CARTES) ========== */
.carousel-container-large {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-wrapper-large {
    overflow: hidden;
}

.products-carousel-large {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
    justify-content: flex-start;
}

.product-card-large {
    flex: 0 0 calc(25% - 30px);
    min-width: calc(25% - 30px);
    height: 265px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s;
    background: transparent;
    border: #fff solid 0.2px;
}

.product-card-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-link-large {
    display: block;
    height: 100%;
    position: relative;
    text-decoration: none;
}

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

.no-img-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.no-img-large i {
    font-size: 3.5rem;
    color: #ddd;
}

.overlay-info-large {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px;
    color: white;
    z-index: 2;
}

.overlay-info-large h4 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.3;
    height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.price-large {
    font-size: 0.90rem;
    font-weight: 800;
    margin: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hover-cart-large {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: white;
    z-index: 3;
    transform: translateY(100%);
    transition: transform 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-large:hover .hover-cart-large {
    transform: translateY(0);
}

.btn-quick-cart-large {
    background: #0a1f44;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-quick-cart-large:hover {
    background: #1e3a8a;
    transform: scale(1.05);
}

/* ========== CAROUSELS NORMALES (3 autres sections) ========== */
.carousel-container-normal {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-wrapper-normal {
    overflow: hidden;
}

.products-carousel-normal {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
    justify-content: flex-start;
}

.product-card-normal {
    flex: 0 0 calc(25% - 30px);
    min-width: calc(25% - 30px);
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
}

.product-card-normal:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: #0a1f44;
}

.card-link-normal {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-normal img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #fafafa;
    padding: 15px;
}

.no-img-normal {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.no-img-normal i {
    font-size: 3rem;
    color: #ccc;
}

.info-normal {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-normal {
    font-size: 0.55rem;
    color: #777;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.info-normal h4 {
    font-size: 0.85rem;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 800;
    line-height: 1.3;
    min-height: 2.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-normal {
    font-size: 0.85rem;
    color: #0a1f44;
    font-weight: 700;
    margin-top: -8%;
}

.btn-cart-normal {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #0a1f44;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    opacity: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-card-normal:hover .btn-cart-normal {
    opacity: 1;
}

.btn-cart-normal:hover {
    background: #1e3a8a;
    transform: scale(1.1);
}

/* ========== LIGHTBOX ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #0a1f44;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: #0a1f44;
}

.lightbox-image-container {
    max-width: 80vw;
    max-height: 80vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 10px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .product-card-large {
        flex: 0 0 calc(33.333% - 27px);
        min-width: calc(33.333% - 27px);
    }
    
    .product-card-normal {
        flex: 0 0 calc(33.333% - 27px);
        min-width: calc(33.333% - 27px);
    }
}

@media (max-width: 768px) {
    /* Marges réduites mobile */
    .breadcrumb-section {
        padding: 5px 10px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    .price-normal {
    
    padding: 30px;
} 
    .product-detail-section {
        padding: 10px 10px 20px;
    }
    
    .product-info-detail {
        padding-left: 0;
        margin-top: 15px;
    }
    
    /* Image plus petite mobile */
    .main-image {
        padding: 10px;
    }
    
    .main-image img.zoomable {
        height: 250px;
    }
    
    /* Panier mobile */
    .add-to-cart-section {
        flex-direction: column;
        max-width: 100%;
    }
    
    .qty-selector-modern {
        width: 100%;
    }
    
    .btn-cart-modern.disabled {
        max-width: 100%;
    }
    
    /* Sections */
    .frequently-bought-section,
    .description-full-section,
    .related-articles-section,
    .also-bought-section,
    .similar-products-section-new,
    .last-viewed-section-new {
        padding: 30px 10px;
    }
    
    .section-title-left,
    .section-title-centered {
        font-size: 1rem;
    }
    
    .frequently-bought-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .combo-summary {
        flex: 1;
        width: 100%;
        text-align: center;
    }
    
    .description-full-content {
        padding: 25px 15px;
    }
    
    /* Carousels mobile */
    .carousel-container-large,
    .carousel-container-normal {
        padding: 0 50px;
    }
    
    .product-card-large,
    .product-card-normal {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .product-card-large {
        height: 220px;
    }
    
    .products-carousel-large,
    .products-carousel-normal {
        gap: 20px;
    }
}
/* Styles pour les liens cliquables */
.combo-product-image {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.combo-detail-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.combo-detail-item:hover {
    background-color:#52617b;
    text-decoration: none;
    color: inherit;
}

.combo-detail-item:last-child {
    border-bottom: none;
}

@media (max-width: 576px) {
    .combo-product-card {
        flex: 0 0 76px;
        height: 110px;
  
    }
     .price-normal {
    
    padding: 20px;
}
    
    .plus-icon {
        font-size: 1.5rem;
    }
    
    .product-title-compact {
        font-size: 1.2rem;
    }
    
    .price-current-big {
        font-size: 1.4rem;
    }
}