/* Corrections et améliorations pour la boutique Livewire */

/* Corrections pour les boutons */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #3d8f51;
    border-color: #3d8f51;
    color: white;
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Corrections pour les badges */
.badge {
    font-weight: normal;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

.badge.bg-primary {
    background-color: var(--color-primary) !important;
}

.badge.bg-light {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

/* Corrections pour les formulaires */
.form-control, .form-select {
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.15rem rgba(73, 167, 96, 0.15);
}

/* Corrections pour les espaces */
.mb-4 {
    margin-bottom: 1.25rem !important;
}

.mt-4 {
    margin-top: 1.25rem !important;
}

/* Corrections pour les produits */
.products-grid .col-xl-3.col-lg-4.col-md-6 {
    margin-bottom: 20px;
}

/* Les styles pour la vue en liste ont été supprimés */

/* Corrections pour les boutons d'ajout au panier */
.btn-add-to-cart {
    cursor: pointer;
}

.btn-add-to-cart:focus {
    outline: none;
}

/* Corrections pour la pagination */
.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Corrections pour les sélecteurs */
select.form-select {
    background-size: 12px;
    background-position: right 10px center;
}

/* Les styles pour les filtres actifs ont été déplacés dans le fichier principal */

/* Les styles pour les boutons de changement de mode ont été supprimés */

/* Corrections pour les espaces entre les produits */
@media (min-width: 768px) {
    .products-grid .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .products-grid .col-xl-3.col-lg-4.col-md-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Corrections pour les petits écrans */
@media (max-width: 575.98px) {
    .shop-filters {
        padding: 10px;
    }

    .form-control,
    .form-select {
        font-size: 12px;
        height: 36px;
    }

    .search-box input {
        background-size: 12px;
        background-position: 10px center;
        padding-left: 30px;
    }

    /* Les styles pour les boutons de changement de mode ont été supprimés */

    /* Les styles pour la vue en liste ont été supprimés */
}
