/***********************************
        OVERRIDE MAIN STYLE 
***********************************/

/* CONTACT INFO IN HEADER */
.contact-info {
    text-align: right;
    font-size: 12px;
    color: #666;
}

.contact-info .contact-item {
    margin-bottom: 8px;
}

.contact-info .contact-item:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: #333;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info small {
    display: block;
    line-height: 1.3;
    margin-top: 2px;
}

.contact-info a {
    color: #bd1b21;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}
.prod-thumbnail .owl-dot.active img,
.prod-thumbnail img:hover {
    border: 2px solid #bd1b21;
}

/* PAYMENT METHOD STYLE */
.payment-methods {
    background-color: #fff;
    border-radius: 8px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    width: 100%;
}
.payment-method {
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out;
    display: inline-block;
    /* max-width: 120px; */
}
.payment-method img {
    max-width: 70px;
    height: 60px;
    width: 60px;
    object-fit: contain;
    overflow: hidden;
    margin: 0 auto;
}
.payment-method input[type="radio"] {
    display: none;
}
.payment-method label {
    cursor: pointer;
    border-radius: 8px;
    padding: 5px;
    display: inline-block;
    margin: 5px;
    transition: background-color 0.3s ease-in-out;
}
.payment-method input[type="radio"]:checked + label {
    background-color: #e0f7fa;
    border-color: #00bcd4;
}
.payment-method span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* THANK YOU PAGE STYLE */
.orders-section .order-message {
    max-width: 700px;
    margin: 0 auto 30px;
}
.message-header {
    width: 90px;
    margin: 0 auto 2rem;
}

.message-header img {
    display: block;
    max-width: 100%;
    height: auto;
}
.app-heading {
    text-align: center;
    margin: 0;
}
.app-heading .heading-primary {
    font-size: 26px;
    line-height: 36px;
}
.message-body {
    width: 70%;
    margin: 0 auto;
}
.payment-details {
    border: 1px solid #e6e6e6;
    padding: 5px;
}
.success {
    color: var(--green);
}
.errors {
    color: var(--danger);
}
.sticky-navbar .sticky-info a {
    text-align: center;
}
.home-sliders .item {
    height: 500px;
    overflow: hidden;
}

.header .side-menu-title {
    flex: 0 0 10%;
    margin: 0;
    background-color: #172c72;
    position: relative;
    cursor: pointer;
}

.header .side-menu-title a {
    display: block;
    height: 100%;
    width: 100%;
    padding: 12px 16px 15px 16px;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header .side-menu-title a:hover {
    color: #fff;
    background-color: #0f1f4d;
    text-decoration: none;
}

.header .side-menu-title i {
    display: block;
    margin: 0 auto 4px;
    font-size: 1.7em;
    line-height: 30px;
    letter-spacing: -0.01em;
}

/* Ancien sous-menu supprimé - remplacé par simple-categories-menu */

.header-menu {
    overflow-x: hidden;
}
.quote-box {
    width: 100%;
}

/* Ajuster la taille du bouton "Nous consulter" */
.quote-box .btn {
    padding: 12px 18px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Style pour le menu déroulant des catégories */
.menu-depart {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    width: 1200px;
    padding: 30px;
    display: none;
}

.menu-depart-categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-content: start;
}

.menu-depart a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #f5f5f5;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #fafafa;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
}

.menu-depart a:hover {
    color: #007bff;
    text-decoration: none;
    background-color: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: max-content;
    width: auto;
}

.menu-depart a i {
    display: none;
}

/* Affichage du menu au survol */
.menu-item:hover .menu-depart {
    display: block !important;
}

/* STYLES POUR LA CLASSE ACTIVE DU MENU */
.main-nav .menu > li > a {
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
}

.main-nav .menu > li > a.active,
.main-nav .menu > li > a:hover {
    color: #bd1b21 !important;
    background-color: #fef7f7 !important;
    border-bottom: 3px solid #bd1b21 !important;
    position: relative;
}

.main-nav .menu > li > a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: #bd1b21;
    border-radius: 2px;
}

/* Style pour les liens actifs dans le menu déroulant des catégories */
.menu-depart a {
    font-weight: 600 !important;
}

.menu-depart a.active {
    color: #bd1b21 !important;
    background-color: #fef7f7 !important;
    border-color: #bd1b21 !important;
    box-shadow: 0 2px 8px rgba(189, 27, 33, 0.2) !important;
    transform: translateY(-2px) !important;
}

.menu-depart a.active i {
    color: #bd1b21 !important;
}

/* Animation pour la transition active */
.menu-depart a {
    transition: all 0.3s ease !important;
}

/* Style responsive pour mobile */
@media (max-width: 991px) {
    .main-nav .menu > li > a.active {
        border-bottom: none !important;
        background-color: #bd1b21 !important;
        color: #fff !important;
    }
    
    .main-nav .menu > li > a.active::after {
        display: none !important;
    }
}

/* Nouveau menu simple des catégories */
.simple-categories-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
    width: 280px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: none;
}

.side-menu-title:hover + .simple-categories-menu,
.simple-categories-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* Forcer l'affichage pour test */
.simple-categories-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    border-bottom: 1px solid #f8f9fa;
}

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

.category-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-link:hover {
    background: rgba(255, 255, 255, 0.03);
}

.category-link i {
    margin-right: 12px;
    color: #172c72;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.category-name {
    flex: 1;
}

/* Animation d'entrée */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.simple-categories-menu.show {
    animation: slideIn 0.3s ease forwards;
}

/* CATEGORIES DROPDOWN STYLES */
.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* S'assurer que le conteneur parent a position relative */
.side-menu-title {
    position: relative;
}

.categories-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-dropdown-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-dropdown-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-dropdown-header h3 i {
    font-size: 20px;
}

.categories-dropdown-nav {
    padding: 20px 0;
}

.categories-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-dropdown-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.categories-dropdown-menu li:last-child {
    border-bottom: none;
}

.categories-dropdown-menu li.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.categories-dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 15px;
}

.categories-dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.categories-dropdown-menu li.active a {
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 4px solid #ff6b6b;
}

.categories-dropdown-menu li i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #ffd93d;
}

.categories-dropdown-menu li span {
    font-size: 16px;
    font-weight: 500;
}

/* Le bouton des catégories garde son style d'origine */

/* Animation d'entrée pour les éléments du menu */
.categories-dropdown-menu li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.3s ease forwards;
}

.categories-dropdown-menu li:nth-child(1) { animation-delay: 0.1s; }
.categories-dropdown-menu li:nth-child(2) { animation-delay: 0.15s; }
.categories-dropdown-menu li:nth-child(3) { animation-delay: 0.2s; }
.categories-dropdown-menu li:nth-child(4) { animation-delay: 0.25s; }
.categories-dropdown-menu li:nth-child(5) { animation-delay: 0.3s; }
.categories-dropdown-menu li:nth-child(6) { animation-delay: 0.35s; }
.categories-dropdown-menu li:nth-child(7) { animation-delay: 0.4s; }
.categories-dropdown-menu li:nth-child(8) { animation-delay: 0.45s; }
.categories-dropdown-menu li:nth-child(9) { animation-delay: 0.5s; }
.categories-dropdown-menu li:nth-child(10) { animation-delay: 0.55s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .categories-dropdown {
        width: 280px;
        left: 10px;
    }
}

/* SIDEBAR DES CATÉGORIES */
.categories-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, #172c72 0%, #1e3c72 100%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
}

.categories-sidebar.active {
    left: 0;
}

.sidebar-header {
    background: linear-gradient(135deg, #172c72 0%, #1e3c72 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h3 i {
    font-size: 1.3rem;
    color: white;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-content {
    padding: 20px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-item {
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: white;
    gap: 15px;
}

.category-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.category-icon i {
    color: white;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    line-height: 1.4;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.subcategory-tag {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 0;
    font-size: 0.9rem;
    border: none;
}

.more-subcategories {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    padding: 2px 6px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 400;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .categories-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar-header {
        padding: 15px;
    }
    
    .sidebar-header h3 {
        font-size: 1.3rem;
    }
    
    .sidebar-content {
        padding: 15px;
    }
    
    .category-link {
        padding: 15px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Animation d'entrée pour les catégories */
.category-item {
    animation: slideInLeft 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.category-item:nth-child(1) { animation-delay: 0.1s; }
.category-item:nth-child(2) { animation-delay: 0.2s; }
.category-item:nth-child(3) { animation-delay: 0.3s; }
.category-item:nth-child(4) { animation-delay: 0.4s; }
.category-item:nth-child(5) { animation-delay: 0.5s; }
.category-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Le bouton des catégories garde son style d'origine */

/* Scrollbar personnalisée pour la sidebar */
.categories-sidebar::-webkit-scrollbar {
    width: 6px;
}

.categories-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.categories-sidebar::-webkit-scrollbar-thumb {
    background: #bd1b21;
    border-radius: 3px;
}

.categories-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a0151a;
}

/***********************************
        STYLES POUR LES CARTES DE PRODUITS
***********************************/

/* Styles pour uniformiser la hauteur des cartes de produits */
.product-default {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 2rem;
}

.product-default figure {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 200px;
}

.product-default figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex: 1;
}

.product-default .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.product-default .product-title {
    flex: 1;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.3;
    min-height: 2.6rem;
}

.product-default .product-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-default .product-weight {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.product-default .quote-box {
    margin-top: auto;
    flex-shrink: 0;
}

.product-default .quote-box .btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.product-default .category-wrap {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.product-default .product-category {
    font-size: 0.8rem;
    color: #666;
}

/* Amélioration de l'apparence des labels */
.product-default .label-group {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-default .product-label {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.2rem;
}

/* Responsive pour les cartes de produits */
@media (max-width: 767px) {
    .product-default .product-title {
        font-size: 1rem;
        min-height: 2.4rem;
    }
    
    .product-default figure img {
        height: 150px;
    }
    
    .product-default figure {
        min-height: 150px;
    }
}

@media (max-width: 575px) {
    .product-default .product-title {
        font-size: 0.9rem;
        min-height: 2.2rem;
    }
    
    .product-default .quote-box .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}