/* Mobilier Full Custom Styles */

/* Reset et base */
.mobilier-full-custom-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 60px 40px;
}

.mfc-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.mfc-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.mfc-subtitle {
    font-size: 0.95rem;
    color: #666;
}

.mfc-product-count {
    font-weight: 600;
    color: #000;
}

/* Container principal - 100% width */
.mfc-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
    align-items: start;
    max-width: 1600px;
    margin: 0 auto;
}

/* Sidebar filtres */
.mfc-filters-sidebar {
    position: sticky;
    top: 20px;
}

.mfc-filters-toggle {
    display: none;
}

.mfc-filters-close {
    display: none;
}

.mfc-filters-content {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px;
}

.mfc-filters-title {
    font-size: 1.1rem;
    margin-bottom: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.mfc-filter-group {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.mfc-filter-group:last-of-type {
    border-bottom: none;
}

.mfc-filter-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mfc-filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 0.88rem;
}

.mfc-filter-option:hover {
    background: #f8f8f8;
}

.mfc-filter-option input {
    margin-right: 8px;
    cursor: pointer;
}

.mfc-filter-option span {
    font-size: 0.88rem;
    color: #555;
}

.mfc-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mfc-price-inputs input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.mfc-price-inputs span {
    font-size: 0.85rem;
    color: #666;
}

/* Masquer les boutons d'action */
.mfc-filter-actions {
    display: none !important;
}

.mfc-btn-reset {
    display: none !important;
}

/* Filtres actifs */
.mfc-active-filters {
    background: #f8f8f8;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.mfc-active-filters h4 {
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: #666;
    text-transform: uppercase;
}

.mfc-active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mfc-filter-tag {
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 5px 8px 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.mfc-filter-tag:hover {
    border-color: #c9a961;
}

.mfc-remove-filter {
    margin-left: 8px;
    color: #999;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.mfc-remove-filter:hover {
    color: #fff;
    background: #c9a961;
}

/* Toolbar */
.mfc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
    gap: 15px;
}

.mfc-results-count {
    font-size: 0.9rem;
    color: #666;
}

.mfc-sorting {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.mfc-sorting label {
    font-weight: 500;
    color: #333;
    font-size: 0.88rem;
    white-space: nowrap;
}

.mfc-sorting select {
    padding: 6px 30px 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    min-width: 180px;
}

/* Container des produits avec transition fluide */
.mfc-products-container {
    transition: opacity 0.3s ease-in-out;
    min-height: 400px;
}

/* Grille de produits */
.mfc-products-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
    animation: fadeIn 0.4s ease-out;
}

[data-columns-desktop='4'] .mfc-products-grid {
    grid-template-columns: repeat(4, 1fr);
}

[data-columns-desktop='3'] .mfc-products-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Animation fade */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carte produit - Design professionnel */
.mfc-product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mfc-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #ddd;
}

.mfc-product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Image avec ratio optimisé 4:3 */
.mfc-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: #f5f5f5;
}

.mfc-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.4s ease;
}

.mfc-product-card:hover .mfc-product-image img {
    transform: scale(1.08);
}

/* Masquer les badges */
.mfc-badge {
    display: none !important;
}

/* Informations produit - TEXTES OPTIMISÉS */
.mfc-product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mfc-product-category {
    display: inline-block;
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0;
    font-weight: 500;
}

.mfc-product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #1a1a1a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
}

/* Rating ultra-clean - SEULEMENT étoiles + (X) */
.mfc-product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
}

/* Conteneur WooCommerce */
.mfc-product-rating .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Masquer tout le texte "Rated..." */
.mfc-product-rating .woocommerce-product-rating > *:not(.star-rating) {
    display: none !important;
}

/* Étoiles dorées */
.mfc-product-rating .star-rating {
    font-size: 0.7rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: relative;
    display: inline-block;
}

.mfc-product-rating .star-rating span {
    color: #c9a961 !important;
}

.mfc-product-rating .star-rating::before {
    color: #e0e0e0 !important;
}

/* Nombre d'avis (X) */
.mfc-rating-count {
    color: #999;
    font-size: 0.7rem;
    font-weight: 400;
}

/* Prix - Compact et élégant avec DORÉ */
.mfc-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: auto;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mfc-product-price del {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
}

.mfc-product-price ins {
    text-decoration: none;
    color: #c9a961;
    font-size: 1.1rem;
}

.mfc-product-price .amount {
    font-size: inherit;
}

/* Bouton CTA - Compact */
.mfc-product-cta {
    padding: 0 16px 16px;
}

.mfc-btn-outline {
    background: transparent;
    border: 1.5px solid #1a1a1a;
    color: #1a1a1a;
    padding: 9px 18px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.mfc-btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
}

/* Pagination */
.mfc-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.mfc-pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mfc-pagination li {
    margin: 0;
}

.mfc-pagination a,
.mfc-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.mfc-pagination a:hover {
    background: #c9a961;
    color: #fff;
    border-color: #c9a961;
}

.mfc-pagination .current {
    background: #c9a961;
    color: #fff;
    border-color: #c9a961;
}

.mfc-pagination .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Aucun produit */
.mfc-no-products {
    text-align: center;
    padding: 60px 20px;
}

.mfc-no-products p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.mfc-btn-primary {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.mfc-btn-primary:hover {
    background: #333;
}

/* Responsive Tablette */
@media (max-width: 1199px) {
    .mobilier-full-custom-wrapper {
        padding: 40px 30px;
    }
    
    [data-columns-desktop='4'] .mfc-products-grid,
    [data-columns-tablet='3'] .mfc-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    [data-columns-tablet='2'] .mfc-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mfc-container {
        gap: 25px;
        grid-template-columns: 240px 1fr;
    }
}

/* Responsive Mobile */
@media (max-width: 991px) {
    .mobilier-full-custom-wrapper {
        padding: 30px 20px;
    }
    
    .mfc-container {
        grid-template-columns: 1fr;
    }
    
    .mfc-filters-sidebar {
        position: relative;
        top: 0;
    }
    
    .mfc-filters-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: #1a1a1a;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 20px;
    }
    
    .mfc-filters-content {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        overflow-y: auto;
        z-index: 9999;
        transition: left 0.3s;
        box-shadow: 2px 0 20px rgba(0,0,0,0.2);
    }
    
    .mfc-filters-content.active {
        left: 0;
    }
    
    .mfc-filters-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        line-height: 1;
    }
    
    /* Toolbar reste sur une ligne sur mobile */
    .mfc-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .mfc-results-count {
        flex: 0 0 100%;
        order: -1;
    }
    
    .mfc-sorting {
        flex: 1;
        min-width: 200px;
    }
    
    .mfc-sorting label {
        font-size: 0.85rem;
    }
    
    .mfc-sorting select {
        font-size: 0.8rem;
        padding: 5px 25px 5px 8px;
    }
    
    [data-columns-mobile='1'] .mfc-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mfc-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .mobilier-full-custom-wrapper {
        padding: 20px 15px;
    }
    
    .mfc-page-header {
        margin-bottom: 30px;
    }
    
    .mfc-pagination a,
    .mfc-pagination span {
        min-width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}