.banner-produit {
    width: 100%;
    height: 70vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.sidebar {
    background-color: #ae9c8b;
}

.subcategory .first-cat-toggle {
    transition: background 0.2s;
}

.subcategory .first-cat-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.subcategory .form-check-input,
.subcategory .form-check span {
    cursor: pointer;
}

.first-category-title {
    font-size: 16px;
}

.subcategory-children label {
    font-size: 0.9rem;
    transition: background 0.2s;
    cursor: pointer;
    padding-left: 3.5rem;
}

.subcategory-children label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-left: 5px;
}

.toggle-arrow.open {
    transform: rotate(180deg);
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        padding: 15px;
    }

    #statusButtons {
        padding-top: 15px;
    }
}

/* =========================
   PRODUCT CARD + IMAGE
   ========================= */

.bg-product {
    border: 2px solid #ae9c8b;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* ✅ Image produit responsive */
.img-produit {
    display: block;
    width: 100%;
    height: auto;
    /* important */
    object-fit: cover;
    aspect-ratio: 4 / 3;
    /* hauteur auto stable */
    transition: transform 0.25s ease;
}

.bg-product:hover .img-produit {
    transform: scale(1.07);
}

/* Mobile: carré (plus joli souvent) */
@media (max-width: 576px) {
    .img-produit {
        aspect-ratio: 1 / 1;
    }
}

/* Desktop large: un peu plus wide */
@media (min-width: 1200px) {
    .img-produit {
        aspect-ratio: 16 / 10;
    }
}

.hidden {
    display: none;
}

.link-to {
    color: #000;
    font-size: 24px;
    text-decoration: underline;
}

.link-to:hover {
    color: #000;
    font-weight: bold;
    text-decoration: underline;
}

/* =========================
   PAGINATION
   ========================= */

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 0;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #ae9c8b;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #000 !important;
    background: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.pagination .page-link:hover {
    background: #502B1C;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px #ae9c8b;
}

.pagination .active .page-link {
    background: #502B1C;
    color: #fff !important;
    font-weight: 600;
    border-color: #502B1C;
    box-shadow: 0 3px 6px rgba(4, 59, 143, 0.3);
}

.pagination .disabled .page-link {
    background: #f5f5f5;
    color: #b0b0b0;
    border-color: #ae9c8b;
    pointer-events: none;
    cursor: not-allowed;
}

/* Compact pagination on mobile */
@media (max-width: 576px) {
    .pagination {
        gap: 4px;
    }

    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
}

/* =========================
   BADGES (STATUS + DISCOUNT)
   ========================= */

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    z-index: 10;
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-primary {
    background-color: #007bff !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.pulse {
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #dc3545;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 8px;
    border-radius: 6px;
    z-index: 10;
}

/* Prices */
.text-danger {
    color: #dc3545 !important;
}

.font-weight-bold {
    color: #000;
}

del {
    color: #777;
    margin-right: 6px;
}

/* =========================
   FILTERS / DROPDOWNS
   ========================= */

#statusFilterForm select.form-select {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

#statusFilterForm select.form-select:hover {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

/* dropdown */
.status-select-wrapper {
    position: relative;
    display: inline-block;
}

.status-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 10px 40px 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-select:hover {
    border-color: #007bff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.15);
}

.status-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* custom arrow */
.status-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #007bff;
    pointer-events: none;
}

/* Hover + focus with gold color */
.status-select:hover,
.status-select:focus {
    border-color: #ae9c8b;
    box-shadow: 0 4px 10px rgba(174, 156, 139, 0.25);
    outline: none;
}

/* status buttons */
#statusButtons {
    gap: 0.5rem;
}

.status-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 25px;
    padding: 6px 18px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.status-text {
    font-size: 10px;
    color: #000;
}

.status-btn:hover {
    border-color: #ae9c8b;
    color: #ae9c8b;
    box-shadow: 0 3px 8px rgba(174, 156, 139, 0.25);
}

.status-btn.active {
    background-color: #ae9c8b;
    color: #fff;
    border-color: #ae9c8b;
    box-shadow: 0 3px 8px rgba(174, 156, 139, 0.35);
}

.status-btn:focus {
    outline: none;
}