/* ========================================
   PAGE DÉTAILS PRODUIT - DESIGN MODERNE
   ======================================== */

/* ========================================
   CONTENEUR PRINCIPAL
   ======================================== */
.product-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ========================================
   SECTION PRINCIPALE - LAYOUT
   ======================================== */
.product-main-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* ========================================
   GALERIE IMAGES - GAUCHE
   ======================================== */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container #main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: default;
}

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

/* ZOOM ACTIVÉ */
.main-image-container.zoom-active {
    cursor: move;
    overflow: hidden;
}

.main-image-container.zoom-active #main-image {
    transform: scale(2.5);
    cursor: move;
}

/* ACTIONS SUR IMAGE */
.image-actions {
    position: absolute;
    bottom: 0px; 
    display: flex;
    flex-direction: inherit;
    gap: 10px;
    z-index: 10;
    width: 100%;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    background: #f8f8f8;
    opacity: 0.7;

}

.image-action-btn {
    /*width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/



    width: 45px;
    height: 45px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    


}

.image-action-btn:hover .btn-wishlist-top {
    color: var(--primary);
    transform: scale(1.1);
}

.image-action-btn:hover .btn-zoom {
    color: var(--primary);
    transform: scale(1.1);
}

 
.image-action-btn i {
    font-size: 18px;
    color: var(--dark);
}

.btn-wishlist-top.active {
    color: var(--secondary);
}

 

/* BADGE PROMO */
.promo-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(198, 0, 19, 0.3);
}

/* MINIATURES */
.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
}

.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.thumbnail:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(254, 195, 65, 0.3);
}

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

/* BOUTON ZOOM */
.btn-zoom {
    background: rgba(255, 255, 255, 0.95) !important;
}

 

/* ========================================
   MODAL IMAGE
   ======================================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 120px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.modal-image-container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

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

.modal-counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    z-index: 10001;
}

.modal-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    max-width: 90%;
    overflow-x: auto;
    z-index: 10001;
}

.modal-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.modal-thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.6;
}

.modal-thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 0 20px var(--primary);
}

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

/* ========================================
   COULEURS IMAGES
   ======================================== */
.color-options-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.color-option-image {
    position: relative;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    background: #fff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 100px;
}

.color-option-image:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(254, 195, 65, 0.3);
}

.color-option-image.active {
    border-color: var(--primary);
    background: var(--light-bg);
    box-shadow: 0 4px 12px rgba(254, 195, 65, 0.4);
}

.color-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.color-image-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.color-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.color-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    line-height: 1.2;
}

.color-option-image.active .color-name {
    color: var(--primary);
}

.thumbnail-color-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* ========================================
   INFORMATIONS PRODUIT - DROITE
   ======================================== */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-header {
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 20px;
}

.product-category-link {
    display: inline-block;
    color: var(--secondary);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.product-category-link:hover {
    color: var(--primary);
}

.product-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

.product-rating-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars-display {
    color: var(--primary);
    font-size: 18px;
    letter-spacing: 2px;
}

.stars-display i {
    color: #fec341;
}

.stars-display .far {
    color: #e0e0e0;
}

.rating-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.reviews-count {
    color: #666;
    font-size: 14px;
}

.reviews-count a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.reviews-count a:hover {
    text-decoration: underline;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.availability-status.in-stock {
    color: var(--success);
}

.availability-status.out-of-stock {
    color: var(--secondary);
}

.availability-status i {
    font-size: 16px;
}

/* ========================================
   PRIX
   ======================================== */
.product-pricing {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--primary);
}

.price-row {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}
 

 
  
 


 

 

 
.discount-badge {
    background: var(--secondary);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.price-info {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-info i {
    color: var(--primary);
}

/* ========================================
   DESCRIPTION COURTE
   ======================================== */
.product-short-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.product-short-description ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.product-short-description li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.product-short-description li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 16px;
}

/* ========================================
   OPTIONS PRODUIT
   ======================================== */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-label i {
    color: var(--primary);
    font-size: 16px;
}

.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 45px;
    height: 45px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-option:hover,
.color-option.active {
    border-color: var(--dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-option.active::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    min-width: 50px;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: 600;
    color: #666;
    background: #fff;
}

.size-option:hover,
.size-option.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 195, 65, 0.3);
}

.size-option.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--light-bg);
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: var(--dark);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover:not(:disabled) {
    background: var(--primary);
    color: var(--dark);
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--dark);
    outline: none;
}

.stock-info {
    font-size: 13px;
    color: #666;
}

.stock-info strong {
    color: var(--secondary);
}

/* ========================================
   BOUTONS D'ACTION
   ======================================== */
.product-actions-main {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-add-to-cart {
    flex: 2;
    min-width: 200px;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--secondary) 0%, #a00010 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(198, 0, 19, 0.3);
}

.btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 0, 19, 0.4);
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-add-to-cart i {
    font-size: 20px;
}

.btn-buy-now {
    flex: 2;
    min-width: 200px;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #e5b039 100%);
    color: var(--dark);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(254, 195, 65, 0.3);
}

.btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(254, 195, 65, 0.4);
}

.btn-buy-now i {
    font-size: 20px;
}

.btn-wishlist {
    flex: 0;
    width: 55px;
    height: 55px;
    padding: 0;
    background: #fff;
    color: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(198, 0, 19, 0.3);
}

.btn-wishlist.active {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

/* ========================================
   INFORMATIONS SUPPLÉMENTAIRES
   ======================================== */
.product-extra-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary) 0%, #e5b039 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 20px;
    color: var(--dark);
}

.info-text {
    flex: 1;
}

.info-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 3px;
}

.info-text span {
    font-size: 12px;
    color: #666;
}

/* ========================================
   PARTAGE SOCIAL
   ======================================== */
.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #fff;
    font-size: 16px;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.instagram {
     background: linear-gradient(
        45deg,
        #f58529,
        #feda77,
        #dd2a7b,
        #8134af,
        #515bd4
    );
}


/* Base commune à tous les boutons de partage */
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-inline-end: 6px;
}

.share-btn i {
    color: inherit;
}

/* Facebook (exemple, au cas où) */
.share-btn.facebook {
    background: #1877f2;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.4);
}
.share-btn.facebook:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* WhatsApp */
.share-btn.whatsapp {
    background: #25d366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}
.share-btn.whatsapp:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* X (Twitter) */
.share-btn.x {
    background: #000000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.share-btn.x:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* LinkedIn */
.share-btn.linkedin {
    background: #0a66c2;
    box-shadow: 0 4px 10px rgba(10, 102, 194, 0.4);
}
.share-btn.linkedin:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Telegram */
.share-btn.telegram {
    background: #229ed9;
    box-shadow: 0 4px 10px rgba(34, 158, 217, 0.4);
}
.share-btn.telegram:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}



.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ONGLETS PRODUIT - NOUVEAUX NOMS
   ======================================== */
.detail-tabs-wrapper {
    margin-top: 50px;
}

.detail-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 3px solid #f0f0f0;
    overflow-x: auto;
}

.detail-tab-btn {
    padding: 18px 35px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    margin-bottom: -3px;
}

.detail-tab-btn:hover {
    color: var(--primary);
}

.detail-tab-btn.current {
    color: var(--dark);
    border-bottom-color: var(--primary);
    background: #f8f9fa;
}

.detail-tab-btn i {
    margin-right: 8px;
}

.detail-tabs-body {
    padding: 25px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    min-height: 200px;
}

.detail-tabs-body-avis {
    padding: 25px;
    background: #fff;
    border: 1px solid #f0f0f0; 
    border-radius: 12px;
    min-height: 200px;
    margin-top: 20px;
}

/* Panneaux de contenu */
.detail-panel {
    display: none;
}

.detail-panel.visible {
    display: block;
}

.detail-panel-avis {
    display: block;
}

/* Description complète */
.full-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.full-description h3 {
    font-size: 22px;
    color: var(--dark);
    margin: 25px 0 15px;
    font-weight: bold;
}

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

.full-description li {
    margin: 8px 0;
}

.full-description p {
    margin: 15px 0;
}

/* Spécifications */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 15px;
    font-size: 14px;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--dark);
    width: 30%;
    background: #f8f9fa;
}

.specs-table td:last-child {
    color: #666;
}

/* Avis clients */
.reviews-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reviews-overview {
    display: flex;
    gap: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.rating-score {
    text-align: center;
}

.rating-number-big {
    font-size: 64px;
    font-weight: bold;
    color: var(--dark);
    line-height: 1;
}

.rating-stars-big {
    color: var(--primary);
    font-size: 24px;
    margin: 10px 0;
}

.rating-count-text {
    font-size: 14px;
    color: #666;
}

.rating-bars {
    flex: 1;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.bar-label {
    font-size: 14px;
    font-weight: 600;
    min-width: 60px;
    color: var(--dark);
}

.bar-track {
    flex: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.bar-count {
    font-size: 13px;
    color: #666;
    min-width: 40px;
}

/* Liste des avis */
.reviews-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-card {
    padding: 25px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}

.review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 3px;
}

.review-time {
    font-size: 12px;
    color: #999;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars-icons {
    color: var(--primary);
    font-size: 16px;
}

.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #e8f5e9;
    color: var(--success);
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.verified-tag i {
    font-size: 12px;
}

.review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.review-buttons {
    display: flex;
    gap: 20px;
}

.review-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.review-btn:hover {
    background: var(--light-bg);
    border-color: var(--primary);
    color: var(--dark);
}

.review-btn i {
    font-size: 14px;
}

.empty-reviews {
    text-align: center;
    color: #999;
    padding: 40px;
}

/* Bouton d'ajout d'avis */
.btn-add-review {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #e5b039 100%);
    color: var(--dark);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-add-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 195, 65, 0.4);
}

/* ========================================
   PRODUITS SIMILAIRES
   ======================================== */
.related-products-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid var(--light-bg);
}

.section-title-related {
    font-size: 28px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title-related::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

/* ========================================
   NOTIFICATION FAVORIS
   ======================================== */
.favoris-notification {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99999;
    white-space: nowrap;
}

.favoris-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.favoris-notification.added   { border-left: 4px solid #4caf50; color: #4caf50; }
.favoris-notification.removed { border-left: 4px solid #ff9800; color: #ff9800; }
.favoris-notification.error   { border-left: 4px solid #f44336; color: #f44336; }

/* ========================================
   RESPONSIVE - TABLETTE
   ======================================== */
@media (max-width: 1024px) {
    .product-main-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-image-container {
        height: 400px;
    }

    .product-title {
        font-size: 26px;
    }

     

    .product-extra-info {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .product-details-container {
        padding: 20px 15px;
    }

    .main-image-container {
        height: 300px;
    }

    .promo-badge {
        font-size: 12px;
        padding: 6px 15px;
    }

    .image-actions {
        gap: 8px;
    }

    .image-action-btn {
        width: 35px;
        height: 35px;
    }

    .image-action-btn i {
        font-size: 16px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-title {
        font-size: 22px;
    }

     

    .original-price {
        font-size: 20px;
    }

    .product-actions-main {
        flex-direction: column;
    }

    .btn-add-to-cart,
    .btn-buy-now {
        width: 100%;
        min-width: auto;
    }

    .btn-wishlist {
        width: 100%;
        height: 50px;
    }

    .product-extra-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-tab-btn {
        padding: 15px 20px;
        font-size: 14px;
    }

    .reviews-overview {
        flex-direction: column;
        gap: 20px;
    }

    .specs-table td:first-child {
        width: 40%;
    }

    .specs-table td {
        padding: 12px;
        font-size: 13px;
    }

    .section-title-related {
        font-size: 22px;
    }

    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modal-thumbnail {
        width: 50px;
        height: 50px;
    }

    .modal-counter {
        font-size: 14px;
        padding: 8px 15px;
    }

    .color-options-images {
        gap: 10px;
    }

    .color-option-image {
        max-width: 80px;
        padding: 6px;
    }

    .color-image-wrapper {
        width: 65px;
        height: 65px;
    }

    .color-name {
        font-size: 11px;
    }

    .color-badge {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-add-to-cart.added {
    animation: pulse 0.5s ease;
}

/* ========================================
   SUPPORT RTL (ARABE)
   ======================================== */
[dir="rtl"] .product-main-section {
    direction: rtl;
}

[dir="rtl"] .promo-badge {
    left: auto;
    right: 15px;
}

[dir="rtl"] .image-actions {
    right: auto;
    left: 15px;
}

[dir="rtl"] .product-short-description li {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .product-short-description li:before {
    left: auto;
    right: 0;
}

[dir="rtl"] .detail-tab-btn i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .specs-table td:first-child {
    text-align: right;
}

[dir="rtl"] .reviewer-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .review-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .color-badge {
    right: auto;
    left: 5px;
}

[dir="rtl"] .thumbnail-color-badge {
    right: auto;
    left: 5px;
}

[dir="rtl"] .favoris-notification {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 3px solid var(--success);
}

[dir="rtl"] .favoris-notification.removed {
    border-right-color: #ff9800;
}

[dir="rtl"] .favoris-notification.error {
    border-right-color: var(--secondary);
}



  /* ============================================
   SEARCH RESULTS PAGE
   ============================================ */

    .search-section {
        padding: 30px 0 60px;
        background: var(--light-bg);
        min-height: 70vh;
    }

    /* Breadcrumb */
    .breadcrumb-section {
        margin-bottom: 25px;
    }

    .breadcrumb-content h1 {
        font-size: 24px;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 8px;
    }

    .breadcrumb-content nav {
        font-size: 14px;
        color: #666;
    }

    .breadcrumb-content nav a {
        color: var(--secondary);
        text-decoration: none;
    }

    .breadcrumb-content nav .separator {
        margin: 0 8px;
        color: #999;
    }

    /* Search Summary */
    .search-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        background: #fff;
        padding: 20px 25px;
        border-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .search-info p {
        margin: 0;
        font-size: 15px;
        color: #555;
    }

    .search-term {
        color: var(--secondary);
        font-weight: 600;
    }

    /* Search Box Inline */
    .search-box-inline {
        display: flex;
        border: 2px solid var(--border);
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    .search-box-inline input {
        border: none;
        padding: 10px 15px;
        font-size: 14px;
        min-width: 200px;
        outline: none;
    }

    .search-box-inline select {
        border: none;
        border-left: 1px solid var(--border);
        padding: 10px 15px;
        font-size: 14px;
        background: var(--light-bg);
        cursor: pointer;
        outline: none;
    }

    .search-box-inline button {
        border: none;
        background: var(--primary);
        color: var(--dark);
        padding: 10px 18px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .search-box-inline button:hover {
        background: #e5b039;
    }

    /* Active Filters */
    .active-filters {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 5px;
    }

    .filters-label {
        font-size: 14px;
        color: #666;
        font-weight: 500;
    }

    .filter-tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        background: var(--light-bg);
        border: 1px solid var(--border);
        border-radius: 20px;
        font-size: 13px;
        color: var(--dark);
        text-decoration: none;
        transition: all 0.3s;
    }

    .filter-tag:hover {
        background: var(--secondary);
        color: #fff;
        border-color: var(--secondary);
    }

    .filter-tag i {
        font-size: 10px;
    }

    .clear-all {
        font-size: 13px;
        color: var(--secondary);
        text-decoration: none;
        margin-left: 10px;
    }

    .clear-all:hover {
        text-decoration: underline;
    }

    /* Section Header */
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .section-title {
        font-size: 22px;
        font-weight: 700;
        color: var(--dark);
        margin: 0;
    }

    /* Sort Options */
    .sort-options {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .sort-options label {
        font-size: 14px;
        color: #666;
    }

    .sort-options select {
        padding: 8px 15px;
        border: 1px solid var(--border);
        border-radius: 6px;
        font-size: 14px;
        background: #fff;
        cursor: pointer;
        outline: none;
    }

    /* Products Grid */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 25px;
    }

    /* No Results */
    .no-results {
        grid-column: 1 / -1;
        text-align: center;
        padding: 60px 20px;
        background: #fff;
        border-radius: 12px;
    }

    .no-results-icon {
        width: 80px;
        height: 80px;
        background: var(--light-bg);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
    }

    .no-results-icon i {
        font-size: 32px;
        color: #999;
    }

    .no-results h3 {
        font-size: 20px;
        color: var(--dark);
        margin-bottom: 10px;
    }

    .no-results p {
        font-size: 15px;
        color: #666;
        margin-bottom: 25px;
    }

    .btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 25px;
        background: var(--secondary);
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s;
    }
    .checkout-step-actions{
        margin-top: 15px
    }

    .btn-primary:hover {
        background: #a00010;
    }

    /* Pagination */
    .pagination-wrapper {
        margin-top: 40px;
        display: flex;
        justify-content: center;
    }

    /* ============================================
   RESPONSIVE
   ============================================ */

    @media (max-width: 1024px) {
        .products-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 768px) {
        .products-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .search-summary {
            flex-direction: column;
            align-items: stretch;
        }

        .search-box-inline {
            flex-direction: column;
        }

        .search-box-inline input,
        .search-box-inline select {
            min-width: 100%;
            border-left: none;
            border-top: 1px solid var(--border);
        }

        .section-header {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    @media (max-width: 480px) {
        .products-grid { 
            grid-template-columns: repeat(1, 1fr);
        }

        .breadcrumb-content h1 {
            font-size: 20px;
        }
    }

    /* ============================================
   RTL SUPPORT
   ============================================ */
 

    html[dir="rtl"] .search-box-inline select {
        border-left: none;
        border-right: 1px solid var(--border);
    }
 

    html[dir="rtl"] .clear-all {
        margin-left: 0;
        margin-right: 10px;
    }
 
/* Chrome, Safari, Edge, Opera */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.quantity-input[type=number] {
    -moz-appearance: textfield;
}


.double-slider-wrapper {
    position: relative;
    width: 100%;
    height: 24px;
    margin-top: 10px;
}

/* TRACK global */
.double-slider-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 2px;
    background: #d0d0d0;
    z-index: 1; /* derrière les thumbs */
}

/* Les deux range superposés */
.double-slider-wrapper input[type="range"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    outline: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2; /* au-dessus du track */
}

/* Track interne des range transparent */
.double-slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}
.double-slider-wrapper input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
}

/* THUMB : cercle plein */
.double-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f9a825;
    border: 3px solid #ffffff;
    box-shadow: 0 0 4px rgba(0,0,0,0.25);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 3;       /* au-dessus du track + input */
    margin-top: -7px; /* centre le rond sur la barre */
}
.double-slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f9a825;
    border: 3px solid #ffffff;
    box-shadow: 0 0 4px rgba(0,0,0,0.25);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 3;
}

/* Ordre normal en LTR : -10% */
.product-badge
.promo-badge {
    display: inline-flex;
    gap: 2px;
    direction: ltr;
}

/* En arabe : %10- */
html[lang="ar"] .product-badge {
    direction: rtl;               /* inverse visuellement l'ordre des enfants */
}




/* ========================================
   CORRECTION RESPONSIVE OPTION COULEURS
   ======================================== */
@media (max-width: 768px) {
    /* 1. Permet le défilement horizontal ou un alignement propre */
    .color-options-images {
        display: flex;
        gap: 12px;
        overflow-x: auto; /* Permet de scroller horizontalement si beaucoup de couleurs */
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    /* 2. Redimensionnement propre des cartes d'options */
    .color-option-image {
        min-width: 75px;   /* Garantit une taille minimale stable */
        max-width: 80px;
        flex-shrink: 0;    /* Empêche la déformation dans la liste */
        padding: 6px;
    }

    .color-image-wrapper {
        width: 100%;
        height: 60px;
    }

    /* 3. Empêche le texte de casser l'affichage */
    .color-name {
        font-size: 11px;
        word-break: break-word;     /* Casse les mots trop longs */
        display: -webkit-box;
        -webkit-line-clamp: 2;      /* Limite le texte à 2 lignes maximum */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;    /* Ajoute "..." si le texte est tronqué */
    }
}