#iconGrid .col:hover {
    background-color: #f8f9fa;
}

#iconGrid .col i {
    transition: transform 0.2s;
}

#iconGrid .col:hover i {
    transform: scale(1.2);
    color: var(--bs-primary);
    /* Ex. un petit highlight */
}

* {
    font-family: "Roboto", serif;
}

/* Admin Dashboard Sidebar Header */
#dashboard-header {
    background-color: var(--bs-primary) !important;
}

#dashboard-header a {
    color: #fff !important;
}

/* Admin Dashboard override tailwind for bootstrap */
/* Ensure collapse content is always visible when 'show' class is present */
    .collapse.show {
        display: block !important;
        visibility: visible !important; /* Ensure visibility */
        overflow: visible !important; /* Ensure content is not clipped */
        height: auto !important; /* Explicitly set height to auto */
}

    /* Adjust padding for nested collapse menus to align with parent links */
    /* This removes the default Bootstrap margin and adds a custom padding for indentation */
    .collapse.ms-3 {
        margin-left: 0 !important; /* Remove Bootstrap's default margin */
        padding-left: 1.5rem; /* Add custom padding for indentation */
    }

/* Admin Dashboard Sidebar*/
.nav-pills {
    background-color: #fff !important;
}

.nav-link {
    color: #000 !important;
}

.nav-link:hover {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

.nav-link:hover span {
    color: #fff !important;
}

.nav-link.active {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

.sidebar-child.active {
    background-color: #fff !important;
    color: #000 !important;
}

.sidebar-child.active::before {
    content: '\F138';
    font-family: "bootstrap-icons";
}

/* === ADMIN SIDEBAR HEADING STYLE === */
.dashboard-title h1 {
    position: relative;
    padding: 0;
    margin: 0;
    font-family: "Roboto", serif;
    font-weight: 300;
    font-size: 40px;
    color: #080808;
    -webkit-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}

.dashboard-title h1 {
    text-align: center;
    font-size: 30px;
    font-weight: 300;
    color: #222;
    letter-spacing: 1px;
    text-transform: uppercase;

    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    grid-template-rows: 27px 0;
    grid-gap: 20px;
    align-items: center;
}

.dashboard-title h1:after,
.dashboard-title h1:before {
    content: " ";
    display: block;
    border-bottom: 1px solid var(--bs-primary);
    height: 5px;
    background-color: #f8f8f8;
}


/* Fast Custom buttons Testing */

:root,
[data-bs-theme=light] {
    --bs-blue: #286de8 !important;
    --bs-primary: #286de8 !important;
    --bs-primary-rgb: 40, 109, 232 !important;
    --bs-primary-active: #1862e4 !important;
    --bs-primary-text-emphasis: #052c65 !important;
    --bs-primary-bg-subtle: #cfe2ff !important;
    --bs-primary-border-subtle: #9ec5fe !important;
    --bs-success: #54ca68 !important;
    --bs-success-rgb: 84, 202, 104 !important;
    --bs-success-text-emphasis: #0a3622 !important;
    --bs-success-bg-subtle: #d1e7dd !important;
    --bs-success-border-subtle: #a3cfbb !important;
    --bs-danger: #fc544b !important;
    --bs-danger-rgb: 252, 84, 75 !important;
    --bs-danger-text-emphasis: #58151c !important;
    --bs-danger-bg-subtle: #f8d7da !important;
    --bs-danger-border-subtle: #f1aeb5 !important;

}

.btn-primary {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: var(--bs-primary) !important;
    --bs-btn-border-color: var(--bs-primary) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #1862e4 !important;
    --bs-btn-hover-border-color: #1862e4 !important;
    --bs-btn-focus-shadow-rgb: 49, 132, 253 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #1862e4 !important;
    --bs-btn-active-border-color: #1862e4 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: var(--bs-primary) !important;
    --bs-btn-disabled-border-color: var(--bs-primary) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary) !important;
    --bs-btn-border-color: var(--bs-primary) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #1862e4 !important;
    --bs-btn-hover-border-color: #1862e4 !important;
    --bs-btn-focus-shadow-rgb: 13, 110, 253 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #1862e4 !important;
    --bs-btn-active-border-color: #1862e4 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: var(--bs-primary) !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: var(--bs-primary) !important;
    --bs-gradient: none;
}

.btn-success {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #54ca68 !important;
    --bs-btn-border-color: #54ca68 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #45c55b !important;
    --bs-btn-hover-border-color: #45c55b !important;
    --bs-btn-focus-shadow-rgb: 60, 153, 110 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #45c55b !important;
    --bs-btn-active-border-color: #45c55b !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: #54ca68 !important;
    --bs-btn-disabled-border-color: #54ca68 !important;
}

.btn-outline-success {
    --bs-btn-color: #54ca68 !important;
    --bs-btn-border-color: #54ca68 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #54ca68 !important;
    --bs-btn-hover-border-color: #54ca68 !important;
    --bs-btn-focus-shadow-rgb: 25, 135, 84 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #54ca68 !important;
    --bs-btn-active-border-color: #54ca68 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #54ca68 !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #54ca68 !important;
    --bs-gradient: none;
}

.btn-danger {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #fc544b !important;
    --bs-btn-border-color: #fc544b !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #fc4238 !important;
    --bs-btn-hover-border-color: #fc4238 !important;
    --bs-btn-focus-shadow-rgb: 225, 83, 97 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #fc4238 !important;
    --bs-btn-active-border-color: #fc4238 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: #fc544b !important;
    --bs-btn-disabled-border-color: #fc544b !important;
}

.btn-outline-danger {
    --bs-btn-color: #fc544b !important;
    --bs-btn-border-color: #fc544b !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #fc544b !important;
    --bs-btn-hover-border-color: #fc544b !important;
    --bs-btn-focus-shadow-rgb: 220, 53, 69 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #fc544b !important;
    --bs-btn-active-border-color: #fc544b !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #fc544b !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #fc544b !important;
    --bs-gradient: none !important;
}

/* Canvas button button-mini modif for sidebars (vendor - user) */
.button-mini {
    font-size: 10px;
    color: #fff;
    transition: all 0.3s;
}

.button-mini:hover {
    background-color: var(--bs-btn-hover-bg);
}

/* Carousel */
#bannerCarousel {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.banner-height {
    height: 500px;
    /* Ajuste la hauteur de la bannière */
}

.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-caption {
    max-width: 800px;
}


/* Wrapper */
#wrapper {
    background-color: var(--cnvs-body-bg);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
}

/* Flash Sale Banner Background gradient */
/* Add image and add a gradient on top */

.bg-nab {

    /* background: linear-gradient(90deg, rgba(0, 38, 165, 0.4) 0%, rgba(31, 14, 184, 0.4) 100%), url(../../../tmp_imgs/flash_sell_bg.jpg); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Product page */


/* ===========================
   FRONTEND COMPONENTS STYLES
   ========================== */

/* === POPULAR CATEGORIES SECTION === */
.popular-categories .card {
    transition: transform 0.2s;
}

.popular-categories .card:hover {
    transform: translateY(-5px);
}

.voir-plus {
    font-size: 0.9rem;
    position: relative;
}

.voir-plus::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.voir-plus:hover::after {
    width: 100%;
}

/* === MODAL VENDOR PAGE === */
/* Ensure modal backdrop and modal don't interfere with each other */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* Prevent any potential CSS conflicts that might block modal closing */
#sendMessageModal.show {
    display: block !important;
}

#sendMessageModal:not(.show) {
    display: none !important;
}

/* === FILTERS SIDEBAR === */
.filters-sidebar {
    top: 20px;
    z-index: 1;
}

/* === FILTER SECTIONS SYSTEM === */
/* Nouveau système de sections collapsibles pour les filtres - remplace les accordéons Bootstrap */

/* Section de filtre principale */
.filters-sidebar .filter-section {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.filters-sidebar .filter-section:first-of-type {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.filters-sidebar .filter-section:last-of-type {
    border-bottom-right-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
    margin-bottom: 0;
}

/* En-tête de section avec bouton collapse */
.filters-sidebar .filter-section-header {
    background: transparent;
    padding: 1rem 1rem;
    margin-bottom: 0;
}

.filters-sidebar .filter-section-header .btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    background-color: transparent !important;
    border: none !important;
    color: var(--bs-body-color) !important;
    transition: all 0.2s ease;
    outline: none !important;
    box-shadow: none !important;
    text-align: left;
    width: 100%;
}

.filters-sidebar .filter-section-header .btn:not(.collapsed) {
    background-color: transparent !important;
    color: var(--bs-body-color) !important;
    box-shadow: none !important;
}

.filters-sidebar .filter-section-header .btn.collapsed {
    background-color: transparent !important;
    color: var(--bs-body-color) !important;
}

.filters-sidebar .filter-section-header .btn:focus {
    border: none !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.filters-sidebar .filter-section-header:hover {
    background-color: rgba(0, 0, 0, 0.025) !important;
}

/* Icônes de chevron avec SVG */
.filters-sidebar .collapse-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
    font-size: 0 !important;
    /* Cache le texte de l'icône */
}

.filters-sidebar .filter-section-header .btn[aria-expanded="true"] .collapse-icon,
.filters-sidebar .btn:not(.collapsed) .collapse-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

/* Contenu de section collapsible */
.filters-sidebar .filter-section .collapse {
    border: none;
    transition: height 0.35s ease;
}

.filters-sidebar .filter-section-content {
    padding: 1rem;
    background: transparent;
    border: none;
}

.filters-sidebar .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.filters-sidebar .form-check-input,
.filters-sidebar .form-control,
.filters-sidebar .form-select {
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filters-sidebar .form-check-input:focus,
.filters-sidebar .form-control:focus,
.filters-sidebar .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.filters-sidebar .form-range::-webkit-slider-thumb {
    background-color: var(--bs-primary);
}

.filters-sidebar .form-range::-moz-range-thumb {
    background-color: var(--bs-primary);
    border: none;
}

.filters-sidebar .badge {
    font-size: 0.7rem;
}

/* === FILTER SECTIONS - ICONS & BADGES === */
/* Styles pour les icônes et badges dans les en-têtes de sections */

/* Icônes dans les en-têtes - maintien de la compatibilité */
.filters-sidebar .filter-section-header .btn i {
    color: var(--bs-primary) !important;
}

/* Texte normal (pas de couleur primary sur le titre) */
.filters-sidebar .filter-section-header .btn .fw-semibold {
    color: var(--bs-body-color);
    font-weight: 500;
}

/* Badges de compteurs actifs */
.filters-sidebar .filter-section-header .badge {
    background-color: var(--bs-primary) !important;
    color: white !important;
    font-size: 0.7rem;
    padding: 0.25em 0.6em;
    border-radius: 50px;
    font-weight: 500;
}

/* Animation pour les tags */
.tag-item {
    transition: opacity 0.2s ease;
}

/* Animation pour les éléments de filtre cachés/montrés */
.form-check {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-check.hidden-by-filter {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Style pour les compteurs mis à jour */
.filter-count {
    transition: color 0.3s ease, transform 0.2s ease;
}

.filter-count.updated {
    color: var(--bs-primary) !important;
    font-weight: 600;
    animation: countUpdate 0.5s ease;
}

/* Animation pour les éléments filtrés */
[data-filter-type] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-filter-type].hidden-by-filter {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Loading overlay pour les filtres */
#filters-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filters-sidebar.loading {
    pointer-events: none;
    opacity: 0.7;
}

.filters-sidebar.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 999;
}

/* Animation pour la mise à jour des compteurs */
@keyframes countUpdate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* === FILTER FORM ELEMENTS === */
/* Styles pour les éléments de formulaire dans les filtres */


/* === FLASH SALE PAGE STYLES === */

/* === HERO SECTION === */
.flash-sale-hero {
    position: relative;
    overflow: hidden;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.stat-card.urgent {
    animation: urgentPulse 2s infinite;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 500;
    color: black;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: black;
    margin-top: 0.25rem;
}

.hero-visual {
    position: relative;
}

.flash-animation {
    position: relative;
    display: inline-block;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 193, 7, 0.3);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
}

/* === ACTIVE FILTERS === */
.active-filters .badge {
    font-size: 0.85em;
    padding: 0.6em 1em;
    border-radius: 25px;
    border: none !important;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.3);
}

.active-filters .btn-close {
    filter: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.active-filters .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* === LOADING STATES === */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* === PRODUCT GRID IMPROVEMENTS === */
#products-container {
    position: relative;
    min-height: 400px;
}

.product-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* === ANIMATIONS === */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

@keyframes urgentPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .flash-sale-hero {
        padding: 3rem 0 !important;
    }

    .display-5 {
        font-size: 2rem !important;
    }

    .stat-card {
        margin-bottom: 1rem;
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .countdown-item-mini {
        min-width: 40px;
        padding: 8px 6px;
    }

    .countdown-number-mini {
        font-size: 16px;
    }

    .countdown-label-mini {
        font-size: 9px;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .floating-element {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.price del {
    font-size: 0.9em;
    color: #6c757d;
}

.rating {
    font-size: 0.9em;
}

/* Vendors list */
.card-img-overlay {
    /* Conserver votre fond gradient sombre */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    transition: opacity 0.3s ease-out;
}



.main-nav {
    background-color: var(--bs-primary) !important;
}

.main-nav {
    color: #fff !important;
}

.cart td {
    padding: 0.75rem 1rem !important;
    vertical-align: middle !important;
    border-color: rgba(var(--cnvs-contrast-rgb), 0.1) !important;
}

.quantity .product-qty {
    width: 42px;
}

.quantity .product-qty,
.quantity .plus,
.quantity .minus {
    font-size: 0.875rem;
}


/* Home Section FlashSale background */
.flash-sale-bg {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%), url(../../../tmp_imgs/flash_sell_bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Home Section Categories background */
.categories-bg {
    /* Léger filtre gris sur le background */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../../../tmp_imgs/categories_banner.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Home Section New Arrival background */
.new-arrival-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../../../tmp_imgs/new_arrival.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Home Section Vendors background */
.vendors-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../../../tmp_imgs/vendor-bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Homme Section Immo background */
.immo-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../../../forced_img/default-immo-banner.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Footer links hover underline */

.footer-links {
    color: #fff;
    text-decoration: none;
}

.footer-links:hover {
    text-decoration: underline !important;
    text-decoration-color: #fff !important;
}




/* Card Vendor */
.card-img-top {
    width: 100%;
    /* L'image remplit la largeur du conteneur */
    height: 150px;
    /* Hauteur fixe pour uniformité */
    object-fit: cover;
    /* Recadre l'image pour remplir le conteneur */
    object-position: center;
    /* Centre l'image dans le conteneur */

}



/* product details */
.carousel-inner {
    background-color: #f8f9fa;
    /* Fond pour les images transparentes */
    border-radius: 0.5rem;
    overflow: hidden;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-position: center;
    transition: transform 0.5s ease;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

/* Surlignage des filtres actifs */
.filter-item.active {
    font-weight: 700;
    color: var(--bs-primary-active) !important;
    position: relative;
    padding-left: 1.25rem;
}

.filter-item.active::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Surlignage des tris actifs */
.sort-item.active {
    font-weight: 700;
    color: var(--bs-primary-active) !important;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
}

.filter-item,
.sort-item {
    transition: all 0.2s ease-in-out;
}

/* Effet hover pour les boutons de reset */
#reset-filter-btn:hover,
#reset-sort-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Animation pour les clics */
.filter-item,
.sort-item,
#reset-filter-btn,
#reset-sort-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline-danger:hover {
    transform: translateY(-1px);
}

.pagination-wrapper:empty {
    display: none;
}

/* Styles pour l'overlay de chargement */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles pour les produits */
.product {
    position: relative;
    margin-bottom: 20px;
    border-radius: 0.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem 0.25rem 0 0;
}

.product-image img {
    width: 100%;
    object-fit: contain;
    height: 250px;
    transition: transform 0.5s ease;
}

.product:hover .product-image img {
    transform: scale(1.05);
}


/* Styles corrigés pour l'overlay au survol */
.bg-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(145, 145, 145, 0.2);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease !important;
}

.product:hover .bg-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Classes d'aide pour les états de survol */
.h-bg-dark:hover {
    background-color: #212529 !important;
}

.h-text-light:hover {
    color: #fff !important;
}

/* Badges de produit */
.sale-flash {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

/* Descriptifs de produit */
.product-desc {
    padding: 1rem;
    background-color: #fff;
    border-radius: 0 0 0.25rem 0.25rem;
}

.product-title h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: var(--bs-primary-active);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price del {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: normal;
    margin-right: 0.5rem;
}

/* Styles pour les filtres et le tri */
.filter-item,
.sort-item {
    display: block;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.filter-item:hover,
.sort-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
}


/* Corrections pour les boutons de réinitialisation */
#reset-sort-btn {
    cursor: pointer;
    color: var(--bs-danger);
    transition: transform 0.2s ease;
}

#reset-sort-btn:hover {
    transform: scale(1.2);
}

#quickViewModal .modal-dialog {
    max-width: 900px;
}

#quickViewModal .modal-body {
    padding: 0;
}

#quickViewModal .min-vh-40 {
    min-height: 40vh;
}

#quickViewModal .object-fit-contain {
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
}

#quickViewModal .product-meta {
    max-height: calc(60vh - 200px);
    /* Ajustement dynamique */
}

/** Countdown sur page vente rapide (full) **/
#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-family: 'Roboto', sans-serif;
    margin: 30px auto;
    max-width: 700px;
    padding: 0;
    background: none;
}

#countdown .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-active) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    min-width: 80px;
    box-shadow: 0 8px 25px rgba(40, 109, 232, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#countdown .countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#countdown .countdown-item:hover::before {
    left: 100%;
}

#countdown .countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(40, 109, 232, 0.4);
}

#countdown .countdown-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#countdown .countdown-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

#countdown .countdown-separator {
    font-size: 24px;
    font-weight: 300;
    color: #666;
    margin: 0 5px;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.3;
    }
}

/* Animation d'apparition */
#countdown .countdown-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

#countdown .countdown-item:nth-child(1) {
    animation-delay: 0.1s;
}

#countdown .countdown-item:nth-child(2) {
    animation-delay: 0.2s;
}

#countdown .countdown-item:nth-child(3) {
    animation-delay: 0.3s;
}

#countdown .countdown-item:nth-child(4) {
    animation-delay: 0.4s;
}

#countdown .countdown-item:nth-child(5) {
    animation-delay: 0.5s;
}

#countdown .countdown-item:nth-child(6) {
    animation-delay: 0.6s;
}

#countdown .countdown-item:nth-child(7) {
    animation-delay: 0.7s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/** Countdown sur homepage (small) **/
.small-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    /* Taille réduite pour un look discret */
    color: #333;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.small-countdown span {
    margin: 0 5px;
    font-weight: bold;
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

/* Nouveau style pour les mini compteurs des vendeurs */
.countdown-mini {
    font-family: 'Roboto', sans-serif;
}

.countdown-item-mini {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-active) 100%);
    color: white;
    border-radius: 8px;
    padding: 10px 8px;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(40, 109, 232, 0.3);
    transition: all 0.3s ease;
}

.countdown-item-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 109, 232, 0.4);
}

.countdown-number-mini {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.countdown-label-mini {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-separator-mini {
    font-size: 20px;
    font-weight: 300;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    animation: pulse-mini 2s infinite;
    margin: 0 3px;
}

@keyframes pulse-mini {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* Responsive pour les mini compteurs */
@media (max-width: 768px) {
    .countdown-item-mini {
        min-width: 40px;
        padding: 8px 6px;
    }

    .countdown-number-mini {
        font-size: 16px;
    }

    .countdown-label-mini {
        font-size: 9px;
    }

    .countdown-separator-mini {
        font-size: 16px;
        margin: 0 2px;
    }
}

@media (max-width: 480px) {
    .countdown-item-mini {
        min-width: 35px;
        padding: 6px 4px;
    }

    .countdown-number-mini {
        font-size: 14px;
    }

    .countdown-label-mini {
        font-size: 8px;
    }
}


/* Position floating number dans navbar (cart - wishlist) */
#wishlist-count {
    top: -5px;
    right: -5px;
}


/* Top cart scrollable */
.cart-scrollable {
    max-height: 300px;
    /* Ajustez cette valeur selon vos besoins */
    overflow-y: auto;
}

/* Mega Menu */
/* Réduit la largeur et enlève les paddings excessifs */
.mega-menu-content {
    width: auto !important;
    min-width: 220px;
    padding: 0.5rem 1rem;
}

/* Ajuste les colonnes internes si plusieurs catégories */
.mega-menu-column {
    padding: 0;
    margin: 0;
}


/* CSS Size Logo */
/* Gestion de la taille du logo */
#logo img {
    max-height: 60px;
    /* Hauteur maximale du logo */
    width: auto;
    /* Largeur automatique pour maintenir les proportions */
    object-fit: contain;
    /* Maintient les proportions sans déformation */
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    #logo img {
        max-height: 50px;
    }
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
    #logo img {
        max-height: 45px;
    }
}

/* Quick View Modal */
/* Main container for spacing */
.product-detail-container {
    padding: 2rem;
    /* Increased padding for more breathing room */
}

/* On smaller screens, reduce padding to avoid wasting space */
@media (max-width: 767.98px) {
    .product-detail-container {
        padding: 1rem;
    }
}


/*
 * 1. LE CONTENEUR GRID (LA GRILLE)
 * C'est la base de notre layout. On utilise CSS Grid pour créer une grille
 * responsive. Chaque colonne fera au minimum 300px, mais s'étirera
 * pour remplir l'espace. 'gap' ajoute un espace entre les cartes.
 */
.vendor-grid-container {
    display: grid;
    /* Crée des colonnes responsives. Changez 300px si vous voulez des cartes plus larges/étroites. */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    /* Espace entre les cartes */
}


/*
 * 2. LA CARTE VENDEUR
 * On transforme la carte elle-même en conteneur Flexbox vertical.
 * Cela nous permet de contrôler l'étirement de ses enfants (image, description).
 */
.product.vendor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* S'assure que la carte s'étire à la hauteur de la rangée de la grille */
}


/*
 * 3. L'IMAGE DU VENDEUR
 * On s'assure que la section image ne grandit pas et que son contenu (l'image)
 * ne déborde pas, ce qui corrige le bug de "l'image trop grande".
 */
.product.vendor-card .product-image {
    flex-shrink: 0;
    /* Empêche cette section de se rétrécir */
    position: relative;
    overflow: hidden;
    /* Cache toute partie de l'image qui déborderait */
}

.product.vendor-card .product-image img {
    width: 100%;
    height: 100%;
    /* aspect-ratio et object-fit sont déjà dans le style inline,
       mais les avoir ici peut renforcer la règle si besoin. */
    aspect-ratio: 16/9;
    object-fit: cover;
}


/*
 * 4. LA ZONE DE DESCRIPTION (LA PARTIE EXTENSIBLE)
 * C'est la magie du layout. On la force à grandir pour occuper tout
 * l'espace vertical libre, poussant le pied de page vers le bas.
 */
.product.vendor-card .product-desc {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* C'est LA règle clé : cette section grandit pour remplir l'espace. */
    padding: 1rem;
    /* Un peu d'aération */
}


/*
 * 5. LE PIED DE PAGE DE LA CARTE
 * On le force à se coller en bas de la zone de description
 * grâce à une marge automatique.
 */
.product.vendor-card .product-desc .border-top {
    margin-top: auto;
    /* Pousse cet élément tout en bas de son parent (.product-desc) */
    padding-top: 0.75rem;
}

.vendor-card .vendor-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limite le texte à 3 lignes */
    line-clamp: 3;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Optionnel: définir une hauteur minimale si nécessaire, 
     mais -webkit-line-clamp devrait suffire pour la hauteur.
     Par exemple: min-height: 4.5em; (pour 3 lignes avec line-height de 1.5em)
  */
}

/* Assurer que les images dans les cartes vendeurs ne dépassent pas */
.vendor-card .product-image img {
    max-width: 100%;
    height: auto;
    /* Maintenu par aspect-ratio et object-fit */
}

/* === VENDOR CARD STYLES === */
.vendor-card {
    display: flex;
    /* Ensures that h-100 on child flex items works correctly */
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #e9ecef;
    /* Softer border */
    transition: all 0.3s ease-in-out;
    /* h-100 is applied via class, so this ensures the card itself behaves as a flex item if needed */
}

.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    /* Enhanced shadow on hover */
}

.vendor-card .product-image {
    position: relative;
    /* For overlay positioning */
}

.vendor-card .product-image img {
    /* aspect-ratio and object-fit are already inline, which is good */
    /* The card has overflow:hidden, so image will conform to card's rounded corners */
    border-bottom: 1px solid #e9ecef;
    /* Separator line under image */
}

.vendor-card .product-desc {
    /* flex-grow-1 and d-flex flex-column are already on the element in the Blade component */
    padding: 1rem;
    /* Consistent padding */
}

.vendor-card .product-title h4 {
    margin-bottom: 0.5rem;
    /* Add some space below title */
}

.vendor-card .product-title h4 a {
    color: var(--bs-gray-900);
    text-decoration: none;
    font-weight: 600;
    /* Slightly bolder title */
    font-size: 1.1rem;
    /* Consistent title font size */
}

.vendor-card .product-title h4 a:hover {
    color: var(--bs-primary);
}

.vendor-card .vendor-description {
    font-size: 0.875rem;
    /* Slightly smaller description text */
    color: var(--bs-gray-700);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit to 3 lines */
    line-clamp: 3;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
    /* Consistent margin */
    /* Set a sensible min-height for 3 lines to help with alignment, can be adjusted */
    /* min-height: calc(0.875rem * 1.5 * 3); /* font-size * line-height * lines */
    /* Relying on flex-grow of product-desc and mt-auto of footer is generally better */
}

.vendor-card .product-desc .border-top {
    padding-top: 0.75rem;
    /* Adjust padding for the footer */
    border-color: #e9ecef !important;
    /* Ensure consistent border color */
}

.vendor-card .product-rating i {
    font-size: 0.85rem;
    /* Adjust rating icon size */
}

.vendor-card .bg-overlay .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Utility for ensuring equal height cards in a Bootstrap row if h-100 is not sufficient */
/* Use as <div class="row row-deck"> */
.row-deck>.col,
.row.row-deck>[class*="col-"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Ensure columns stretch */
}

.row-deck>.col>.vendor-card,
.row.row-deck>[class*="col-"]>.vendor-card {
    flex: 1 1 auto;
    /* Make card fill the column height */
    display: flex;
    /* Ensure vendor-card itself is a flex container */
    flex-direction: column;
    /* Ensure its children (.grid-inner) can use h-100 */
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .vendor-card .vendor-description {
        -webkit-line-clamp: 2;
        /* Maybe 2 lines on mobile */
        line-clamp: 2;
        /* Standard property */
        /* min-height: calc(0.875rem * 1.5 * 2); */
    }

    .vendor-card .product-title h4 {
        font-size: 1rem;
        /* Adjust title size for mobile */
    }
}

/* ===================================================================
   STYLES POUR LES PAGES DE REVIEWS
   ================================================================== */

/* Avatar styles */
.avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 16px;
    font-weight: bold;
}

/* Review content transitions */
.review-content {
    transition: all 0.3s ease;
    opacity: 1;
}

.review-content[style*="display: none"] {
    opacity: 0;
}

/* Boutons de type de review */
.btn-group .btn-check:checked+.btn {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

/* Card header badges */
.card-header .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Review rating stars */
.review-rating {
    color: #ffc107;
}

.review-rating .fa-star {
    margin-right: 2px;
}

/* Review comment styling */
.review-comment {
    border-left: 3px solid var(--bs-primary);
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
}

/* Review image gallery */
.review-gallery img {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.review-gallery img:hover {
    transform: scale(1.05);
}

/* Switch styling for status */
.form-check-input:checked {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

/* Loading spinners */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Review type switcher */
.review-type-switcher {
    border-radius: 0.5rem;
    overflow: hidden;
}

.review-type-switcher .btn {
    border-radius: 0;
    border: 1px solid var(--bs-border-color);
}

.review-type-switcher .btn:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.review-type-switcher .btn:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Responsive adjustments for reviews */
@media (max-width: 768px) {
    .review-type-switcher .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .avatar-sm {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .card-header .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Animation pour les transitions de contenu */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-content.active {
    animation: fadeIn 0.3s ease-in-out;
}

/* Styles pour les statuts de review */
.status-badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

.status-approved {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-pending {
    background-color: #fff3cd;
    color: #664d03;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Amélioration des DataTables pour les reviews */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.375rem;
    border: 1px solid var(--bs-border-color);
    padding: 0.5rem 0.75rem;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 0.375rem;
    border: 1px solid var(--bs-border-color);
    padding: 0.25rem 0.5rem;
}

/* Styles pour les actions rapides */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Styles pour les informations utilisateur dans les reviews */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Amélioration de l'affichage des images de review */
.review-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.review-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 2px solid var(--bs-border-color);
}

/* Styles pour les métriques de review */
.review-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-metric {
    text-align: center;
    padding: 1rem;
    background-color: var(--bs-light);
    border-radius: 0.5rem;
    flex: 1;
}

.review-metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bs-primary);
}

.review-metric-label {
    font-size: 0.875rem;
    color: var(--bs-secondary);
}

/* ===========================
   SECTION IMMOBILIER STYLES
   =========================== */

/* Background principal de la section immobilier */
.immobilier-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.immobilier-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='home-pattern' x='0' y='0' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M10 5l5 5v10h-10v-10z' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23home-pattern)'/%3E%3C/svg%3E");
    opacity: 0.3;
}

/* Cartes immobilières */
.immo-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.immo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Titre de section avec ligne décorative */
.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Boutons de filtrage immobilier */
.filter-btn-immo {
    border: 2px solid #667eea;
    color: #667eea;
    background: white;
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
}

.filter-btn-immo:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.filter-btn-immo.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Bouton reset des filtres immobilier */
#resetFilterImmo {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #666;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

#resetFilterImmo:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

/* ============================
   IMMOBILIER DETAIL PAGE STYLES
   ============================ */

/* Galerie d'images */
.property-main-image {
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-thumbnails .thumbnail-image {
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-thumbnails .thumbnail-image.active,
.carousel-thumbnails .thumbnail-image:hover {
    opacity: 1;
    border: 2px solid var(--bs-primary);
}

.thumbnail-more {
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
}

/* Caractéristiques du bien */
.property-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.property-features li:last-child {
    border-bottom: none;
}

/* Badges d'équipements */
.equipment-list .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    display: inline-block;
}

/* Informations financières */
.financial-info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.financial-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.financial-info-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.financial-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.financial-value {
    font-size: 1.125rem;
    font-weight: bold;
    color: #212529;
}

/* Sidebar prix */
.price-card {
    border: 2px solid var(--bs-primary);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.price-display {
    margin-bottom: 1rem;
}

.main-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--bs-primary);
    display: block;
}

.price-period {
    font-size: 1rem;
    color: #6c757d;
    font-weight: normal;
}

.transaction-type .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.additional-costs {
    font-style: italic;
}

/* Actions card */
.actions-card .btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

/* Agent card améliorée */
.agent-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.agent-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.agent-card .card-body {
    padding: 2rem 1.5rem;
}

.agent-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.agent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agent-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agent-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    text-align: center;
}

.agent-address {
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 1rem;
}

.agent-contact {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.contact-item i {
    width: 20px;
    text-align: center;
}

.agent-details {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.agent-details>div {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.agent-details>div:last-child {
    border-bottom: none;
}

/* Carte localisation placeholder */
.map-placeholder {
    height: 300px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.map-container {
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.map-placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 2rem;
}

.map-placeholder-content i {
    color: #adb5bd;
    margin-bottom: 1rem;
}

.map-placeholder-content h6 {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-placeholder-content p {
    color: #adb5bd;
    margin: 0;
}

/* Biens similaires */
.property-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.property-image {
    position: relative;
    overflow: hidden;
}

.property-image img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-price {
        font-size: 2rem;
    }

    .property-main-image {
        height: 250px;
    }

    .agent-card .card-body {
        padding: 1.5rem 1rem;
    }

    .financial-info-card {
        margin-bottom: 1rem;
    }
}

/* ============================
   STYLES POUR SECTION HOME / IMMO (recherche slider, card categories)
   ============================ */

/* Specific styles for the search form background */
/* Adjustments for the search input group in navbar */
.input-group-custom .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
}

.input-group-custom .btn {
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.75rem 1.25rem;
}

.input-group-custom .dropdown-toggle {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

/* Slider Section styles (now with static background image) */
.slider-section {
    position: relative;
    /* Parent for absolute positioning of the form */
    height: 780px;
    /* Fixed height for the background area */
    background-image: url('https://placehold.co/1920x780/E0E0E0/FFFFFF?text=Background+Image');
    /* Placeholder for the background image */
    background-size: cover;
    background-position: center;
    display: flex;
    /* Use flexbox to center content */
    align-items: center;
    /* Vertically center content */
    justify-content: center;
    /* Horizontally center content */
    overflow: hidden;
    /* Ensures content doesn't spill out */
}

.search-form-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    /* Dark overlay over background image */
    z-index: 10;
    /* Below the form */
}

.search-form-container-overlay {
    position: relative;
    /* Changed to relative as parent handles centering */
    z-index: 20;
    /* Higher z-index to be on top of the background and its overlay */
    background-color: rgba(255, 255, 255, 0.9);
    /* Slightly transparent white background for the form */
    border-radius: 0.75rem;
    /* Rounded corners */
    padding: 1.5rem;
    /* Reduced padding for more vertical space */
    max-width: 90%;
    /* Responsive width */
    width: 800px;
    /* Max width for the form */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 90%;
    /* Limit height to 90% of parent's height */
    overflow-y: auto;
    /* Enable vertical scrolling if content exceeds max-height */
    box-sizing: border-box;
    /* Include padding in element's total width and height */
}

/* Styles for the category cards section */
.category-card {
    background-color: #f8f9fa;
    /* Light background */
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    height: 180px;
    /* Fixed height for uniformity */
    text-align: center;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.category-card i {
    font-size: 3rem;
    /* Large icons */
    color: var(--bs-primary);
    /* Primary color for icons */
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.category-card:hover i {
    color: var(--bs-primary-active);
}

.category-card h5 {
    font-weight: 600;
    color: #333;
}

/* Specific colors for some cards as seen in screenshot */
.category-card.blue {
    background-color: #286de8;
    /* Blue background */
}

.category-card.blue i,
.category-card.blue h5 {
    color: #fff;
    /* White text/icon for blue background */
}

.category-card.blue:hover {
    background-color: #1862e4;
    /* Darker blue on hover */
}

/* Uniformisation des boutons de tab */
.tab-button {
    background-color: #e5e7eb;
    /* gris clair (bg-gray-200) */
    color: #374151;
    /* gris foncé (text-gray-700) */
    transition: background 0.2s, color 0.2s;
    border: none;
    outline: none;
}

.tab-button.active,
.tab-button.bg-blue-600 {
    background-color: #2563eb !important;
    /* bleu (bg-blue-600) */
    color: #fff !important;
}

.tab-button:hover,
.tab-button:focus {
    background-color: #1d4ed8;
    /* bleu plus foncé (hover:bg-blue-700) */
    color: #fff;
}

.tab-button.active:hover,
.tab-button.active:focus {
    background-color: #1d4ed8 !important;
    /* bleu plus foncé pour actif hover */
    color: #fff !important;
}
