.product-hero {
    position: relative;
    background: url("../images/bg_region.jpg") center/cover no-repeat;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-top: -100px;
    height: 190px;
}

.product-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 55%);
    z-index: 1;
}
.product-hero-content{
    position: relative;
    z-index: 2;
    color: white;
    padding-top: 20px;
}
/* Breadcrumb */
.breadcrumb-nav {
    background: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.5rem;
}

/* Main Content */
/* .product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0rem;
    margin-bottom: 4rem;
} */
 .product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0rem;
    margin-bottom: 4rem;
    background: white !important;
    margin-top: -80px;
    z-index: 15;
    position: relative;
    padding: 30px;
    border-radius: 5px;
 }
/* Product Images */
.product-images {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.detail-image-wrapper {
    /*background: linear-gradient(180deg, #ea866a9e, #a74c32);*/
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    position: relative;
    overflow: hidden;
    width: 650px;
    border: 2px solid #d5d5d5;
}

.detail-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" opacity="0.1"/><circle cx="80" cy="80" r="20" opacity="0.1"/></svg>');
    opacity: 0.3;
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-thumb {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--primary-color);
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.3rem;
    padding-top: 0.3rem;
    border-bottom: 2px solid #f0f0f0;
}

.product-rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.product-rating-count {
    color: #999;
    font-size: 0.9rem;
}

/* Price Section */
.product-pricing {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-unit {
    color: #999;
    font-size: 1.5rem;
    font-weight: 600;
    padding-top: 10px;
    padding-left: 5px;
}

/* Description */
.product-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-btn {
    min-width: 150px;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.product-btn-primary {
    background: var(--primary-color);
    color: white;
}

.product-btn-primary:hover {
    background: #c05e2a;
    transform: translateY(-2px);
}

.product-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.product-btn-secondary:hover {
    background: #f9f9f9;
}

.product-btn-success {
    background: white;
    color: green;
    border: 2px solid green;
}

.product-btn-success:hover {
    background: rgb(52, 112, 52);
    color: white;
}
/* ==========================================
    PRODUITS SIMILAIRES - SLIDER
    ========================================== */

.similar-products-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.similar-products-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

 .detail-content {
        display: flex;
        gap: 30px;
        margin: 20px;
        flex-wrap: wrap;
    }

    .detail-image-wrapper {
        position: relative;
        max-width: 500px;
        height: 400px;
        overflow: hidden;
        border-radius: 5px;
    }

    .detail-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .prev-btn, .next-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        border: none;
        padding: 5px 15px;
        cursor: pointer;
        font-size: 20px;
        border-radius: 50%;
        z-index: 10;
    }

    .prev-btn:hover, .next-btn:hover {
        background: rgba(0,0,0,0.8);
    }

    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }

    .coop-slider {
        display: flex;
        gap: 10px;
        margin-top: 10px;
        overflow-y: auto;
        flex-direction: column;
        max-height: 341px;
    }

    .coop-slider img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 5px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border 0.3s;
    }

    .coop-slider img.active {
        border: 2px solid #f5c518;
    }

    .detail-info {
        flex: 1;
        max-width: 500px;
    }

    .detail-meta {
        display: flex;
        gap: 15px;
        margin: 10px 0;
        flex-wrap: wrap;
    }

    .detail-meta-item {
        display: flex;
        gap: 5px;
        font-size: 14px;
        color: #555;
    }

    .detail-description {
        margin: 15px 0;
    }

    .detail-stats {
        display: flex;
        gap: 20px;
        margin: 15px 0;
    }

    .detail-stat {
        text-align: center;
    }

    .detail-stat-value {
        font-size: 20px;
        font-weight: bold;
    }

    .detail-stat-label {
        font-size: 12px;
        color: #777;
    }

    .detail-actions button {
        margin-right: 10px;
    }

    .detail-meta {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 2px solid #f0f0f0;
    }

    .detail-meta-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .detail-meta-label {
        color: #999;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .detail-meta-value {
        color: #333;
        font-weight: 600;
    }

    .detail-meta-value.highlight {
        color: var(--primary-color);
    }


    .produit-card {
        position: relative;
    }

    .badge-promo {
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: #d90002;
        color: #fff;
        padding: 5px 10px;
        font-size: 12px;
        font-weight: bold;
        border-radius: 4px;
        z-index: 10;
    }

    .produit-titre {
        color: var(--primary-color);
        font-size: 18px;
        margin-bottom: 0.5rem;
        font-weight: 700;
        height: 60px !important;
        max-height: 60px !important;
    }

    /*********/
    /* --- BREADCRUMB BAR --- */

.breadcrumb-nav {
    position: relative;
    background: url('../images/6320287.jpg') center / cover no-repeat;
    padding: 30px 0px 50px 0px;
    z-index: 4;
}

.breadcrumb-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(117 81 71 / 89%);
    z-index: 1;
}

#productBreadcrumb {
    color: #ffffff;
    text-transform: capitalize;
}

/* --- NAV BUTTON --- */
.btn-coop{
    float: right;
    background: #ffffff;
    color: #67524c;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    border: 1px solid #67524c;
}

.btn-coop i {
    font-size: 16px;
}

.btn-coop:hover {
    background: #67524c;
    color: #ffffff;
    transform: translateY(-1px);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .breadcrumb-nav .col-md-6 {
        text-align: center;
        margin-bottom: 10px;
    }

    .btn-coop {
        float: none;
        width: 100%;
        justify-content: center;
    }

    #productBreadcrumb {
        font-size: 16px;
    }
}

.breadcrumb-nav .container {
    position: relative;
    z-index: 2; /* supérieur à ::before */
}

/* --- Modal Overlay --- */
#ratingModal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* --- Modal Box --- */
.rating-box {
    background: #fff;
    width: 90%;
    max-width: 380px;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
    animation: fadeIn .3s ease-out;
}

/* Animation */
@keyframes fadeIn {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* --- Title --- */
.rating-box h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* --- Inputs Style --- */
.rating-input {
    width: 100%;
    padding: 12px 14px;
    margin: 7px 0;
    border: 2px solid #e3e3e3;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.25s;
}

/* Focus Effect */
.rating-input:focus {
    border-color: #3c6e71;
    box-shadow: 0 0 8px rgba(60, 110, 113, 0.4);
    outline: none;
}

/* Textarea */
.rating-input.textarea {
    height: 80px;
    resize: none;
}

/* --- Stars --- */
.rate-star {
    font-size: 28px;
    padding: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.rate-star:hover {
    transform: scale(1.1);
}

/* --- Buttons --- */
.rating-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.rating-btn.send {
    background: #3c6e71;
    color: white;
}

.rating-btn.send:hover {
    background: #2a4d50;
}

.rating-btn.cancel {
    background: #888;
    color: white;
}

.rating-btn.cancel:hover {
    background: #666;
}


/* =======================================================
   RESPONSIVE
======================================================= */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    .product-title { font-size: 1.7rem; }
    .detail-image-wrapper { height: 350px; }

    .detail-image-wrapper
    {
        position: relative;
        max-width: 360px !important;
    }

    .product-images {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .coop-slider {
        flex-direction: row;
        max-width: 360px;
        overflow-y: auto;
        overflow-x: auto;
    }

    .similar-products-section {
        margin-top: 4rem;
        padding-top: 2rem;
        border-top: 2px solid #f0f0f0;
        margin-bottom: 5rem;
    }
    .product-hero{
        margin-top: 0px !important;
    }
}
@media (max-width: 768px) {
    .btn-coop {
        float: none;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    .product-detail {
        gap: 1.5rem;
    }
    .coop-slider {
        flex-direction: row;
        max-height: auto;
        overflow-y: visible;
        overflow-x: auto;
    }
    .coop-slider img {
        width: 65px;
        height: 65px;
    }
    .detail-image-wrapper
    {
        position: relative;
        max-width: 360px !important;
    }
    .product-images {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .coop-slider {
        flex-direction: row;
        max-width: 360px;
        overflow-y: auto;
        overflow-x: auto;
    }

    .similar-products-section {
        margin-top: 4rem;
        padding-top: 2rem;
        border-top: 2px solid #f0f0f0;
        margin-bottom: 5rem;
    }
    .product-hero{
        margin-top: 0px !important;
    }
}

@media (max-width: 500px) {
    .product-price { font-size: 1.9rem; }
    .detail-image-wrapper { height: 260px; }
    .product-btn { min-width: 100%; }
    .detail-image-wrapper
    {
        position: relative;
        max-width: 360px !important;
    }
    .product-images {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .coop-slider {
        flex-direction: row;
        max-width: 360px;
        overflow-y: auto;
        overflow-x: auto;
    }

    .similar-products-section {
        margin-top: 4rem;
        padding-top: 2rem;
        border-top: 2px solid #f0f0f0;
        margin-bottom: 5rem;
    }
    .product-hero{
        margin-top: 0px !important;
    }
}