@media (max-width: 600px) {
    footer.bg-dark {
        background: linear-gradient(135deg, #232526 0%, #414345 100%);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        color: #fff;
    }
    footer.bg-dark h5 {
        color: #ffb300;
        font-size: 1.1em;
        margin-bottom: 0.7em;
        letter-spacing: 1px;
    }
    footer.bg-dark a.text-white {
        color: #ffb300 !important;
        font-weight: 600;
        font-size: 1em;
        margin-bottom: 0.5em;
        display: inline-block;
        transition: color 0.2s;
    }
    footer.bg-dark a.text-white:hover {
        color: #fff !important;
        text-decoration: underline;
    }
    footer.bg-dark .fab {
        font-size: 2em;
        margin: 0 0.3em;
        color: #ffb300 !important;
        transition: color 0.2s, transform 0.2s;
    }
    footer.bg-dark .fab:hover {
        color: #fff !important;
        transform: scale(1.15);
    }
    footer.bg-dark .input-group {
        background: #333;
        border-radius: 10px;
        padding: 0.7em 0.5em;
        margin-top: 0.7em;
    }
    footer.bg-dark .btn-primary {
        background: #ffb300;
        color: #232526;
        border-radius: 20px;
        font-weight: 700;
        padding: 0.5em 1.2em;
        font-size: 1em;
        border: none;
        box-shadow: 0 2px 8px rgba(255,179,0,0.08);
        transition: background 0.2s, color 0.2s;
    }
    footer.bg-dark .btn-primary:hover {
        background: #fff;
        color: #ffb300;
    }
    footer.bg-dark .form-control {
        border-radius: 12px;
        border: 1px solid #ffb300;
        background: #232526;
        color: #fff;
        font-size: 1em;
        padding: 0.5em 1em;
    }
    footer.bg-dark .form-control::placeholder {
        color: #bbb;
        opacity: 1;
    }
    footer.bg-dark .text-center {
        color: #ffb300;
        font-size: 0.95em;
        margin-top: 1em;
        letter-spacing: 1px;
    }
}
@media (max-width: 600px) {
    footer.bg-dark {
        padding: 1.5em 0.5em;
        text-align: center;
    }
    footer.bg-dark .row {
        flex-direction: column !important;
        display: flex;
        gap: 1em;
    }
    footer.bg-dark .col-md-4,
    footer.bg-dark .col-md-3,
    footer.bg-dark .col-md-2 {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1em;
        text-align: center;
    }
    footer.bg-dark .d-flex {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.7em;
    }
    footer.bg-dark .input-group {
        flex-direction: column;
        align-items: center;
    }
    footer.bg-dark .form-control {
        margin-bottom: 0.5em;
        width: 90%;
        max-width: 300px;
    }
}
@media (max-width: 600px) {
    .product-card.similar.product-col-mobile {
        min-width: 110px;
        max-width: 140px;
    }
}
@media (max-width: 600px) {
        .products-grid-mobile .product-col-mobile {
            min-width: 150px;
            max-width: 180px;
        }
        .products-grid-mobile .product-card {
            min-height: 35px;
            padding: 0.08em 0.05em;
        }
        .products-grid-mobile .card-img-top {
            height: 22px;
            object-fit: cover;
        }
        .products-grid-mobile .card-title {
            font-size: 0.6em;
            margin-bottom: 0.05em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }
        .products-grid-mobile .card-text {
            font-size: 0.5em;
            margin-bottom: 0.02em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }
        .products-grid-mobile .price {
            margin-bottom: 0.02em;
            font-size: 0.55em;
            margin-top: 0.02em;
        }
        .products-grid-mobile .card-footer {
            padding: 0;
            border: none;
            margin-top: 0.02em;
            display: flex;
            gap: 1px;
            justify-content: center;
        }
        .products-grid-mobile .btn,
        .products-grid-mobile .btn-sm {
            font-size: 0.5em;
            padding: 0.08em 0.15em;
        }
}

.products-grid-mobile .product-card-empty {
    display: none;
}

@media (max-width: 600px) {
    .products-grid-mobile .product-card-empty {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        min-width: 150px;
        max-width: 180px;
        height: 1px;
        pointer-events: none;
        visibility: visible;
        display: block;
    }
}
 
/* Cartes produits similaires compactes */
.product-card.similar {
    max-width: 160px;
    min-width: 140px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0;
}
.product-card.similar .card-img-top {
    height: 80px;
    margin-bottom: 2px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}
/* Aligner le prix sur la même ligne que le titre dans toutes les cartes produits */
.product-card .card-title-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2px;
}
.product-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #007bff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}
.product-card .price {
    font-size: 1rem;
    color: #007bff;
    font-weight: 700;
    text-align: left;
    margin-left: 0;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
.product-card.similar .card-footer {
    margin-top: 0;
    padding-top: 2px;
    gap: 4px;
    display: flex;
    justify-content: center;
}
/* Wrapper pour limiter la largeur et centrer le tableau produits */
.products-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 12px;
}

.product-table {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}
.product-table th, .product-table td {
    vertical-align: middle;
    padding: 12px 8px;
}
.product-table img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 12px;
    object-fit: cover;
}
/* Styles personnalisés pour Moomo Shop */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-section {
    border-radius: 10px;
}

.feature-item {
    padding: 20px;
}

.feature-item i {
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.contact-info i {
    font-size: 1.2rem;
    width: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 20px;
    }
}

/* Animation for notifications */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.notification {
    animation: fadeIn 0.5s ease;
}

/* Cart badge */

.cart-badge {
    position: relative;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    align-items: center;
    justify-content: center;

    /* Desktop : restaurer la grille Bootstrap pour wishlist et produits similaires */
    @media (min-width: 577px) {
        .row.products-grid-mobile {
            display: flex;
            flex-wrap: wrap;
            gap: 0;
        }
        .row.products-grid-mobile .product-card {
            min-width: unset;
            width: 100%;
            margin-bottom: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border-radius: 14px;
            padding: 0;
        }
        .row.products-grid-mobile > .product-card {
            flex: 0 0 24%;
            max-width: 24%;
            margin-right: 1%;
        }
        .row.products-grid-mobile > .product-card:nth-child(4n) {
            margin-right: 0;
        }
        .row.products-grid-mobile .card-img-top {
            height: 160px;
            object-fit: cover;
            width: 100%;
            border-radius: 12px 12px 0 0;
            margin-bottom: 6px;
        }
        .row.products-grid-mobile .card-title {
            font-size: 1.05rem;
            max-width: 100%;
            margin-bottom: 2px;
            text-align: left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .row.products-grid-mobile .card-text {
            font-size: 0.95em;
            color: #888;
            margin-bottom: 2px;
            text-align: left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            display: block;
        }
        .row.products-grid-mobile .price {
            font-size: 1.1rem;
            color: #007bff;
            font-weight: 700;
            text-align: left;
            margin-bottom: 4px;
            display: block;
        }
    }
}

/* Styles pour les catégories */
.list-group-submenu {
    background-color: #f8f9fa;
    padding-left: 0;
    margin-bottom: 0;
}

.list-group-submenu .list-group-item {
    border-left: 3px solid var(--primary-color);
    border-radius: 0;
    padding-left: 2rem;
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.subcategory-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.subcategory-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Breadcrumb personnalisé */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}
/* Styles pour le menu déroulant des catégories */
.dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -1px;
    display: none;
}

.dropdown-menu li:hover > .dropdown-submenu {
    display: block;
}

.dropdown-menu > li {
    position: relative;
}

.dropdown-menu > li > a:after {
    content: "›";
    float: right;
    margin-left: 10px;
}

.dropdown-menu > li:only-child > a:after {
    content: "";
}

/* Style moderne pour les cartes et images produits */
.product-card {
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,123,255,0.12);
}
.product-card .card-img-top, .product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  transition: filter 0.2s;
}
.product-card:hover .card-img-top, .product-card:hover .product-img {
  filter: brightness(0.95) saturate(1.2);
}
.product-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #007bff;
}
.product-card .price {
  color: #28a745;
  font-size: 1.05rem;
  font-weight: 600;
}
.product-card .btn-outline-primary, .product-card .btn-primary {
  border-radius: 6px;
  font-weight: 500;
}
.product-card .card-footer {
  background: #f8f9fa;
  border-top: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}
.product-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 2px solid #f0f0f0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-img:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(0,123,255,0.15);
  border-color: #007bff;
}

/* Responsive pour affichage produits sur mobile */
@media (max-width: 576px) {
    .products-wrapper {
        padding: 8px 2px;
    }
    .product-table th, .product-table td {
        padding: 6px 2px;
        font-size: 0.95rem;
    }
    .product-table img {
        max-width: 80px;
        max-height: 80px;
    }
    .product-card {
        min-width: 100%;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 8px 4px;
    }
    .product-card .card-img-top {
        height: 120px;
        border-radius: 12px 12px 0 0;
    }
    .product-card .card-title {
        font-size: 1rem;
    }
    .product-card .price {
        font-size: 0.95rem;
    }
    .product-card .card-footer {
        flex-direction: column;
        gap: 6px;
        padding: 6px 0;
    }
    .product-card .btn {
        width: 100%;
        font-size: 0.95rem;
        padding: 8px 0;
    }
    /* Grille mobile 2 colonnes */
    .products-grid-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .products-grid-mobile .product-card {
        min-width: 100%;
        margin-bottom: 0;
    }
}