/* ================================
   DEMATTOS FILTERS — TRANSPARENT + WHITE TEXT
   ================================ */

/* Container global du panneau */
.demattos-filters-wrapper {
    width: 100%;
    padding: 20px;
    background: transparent;
    border-radius: 12px;
    margin-bottom: 30px;
}

/* Titre */
.demattos-filters-wrapper h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

/* Grille des filtres */
.demattos-filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .demattos-filters-grid {
        grid-template-columns: 1fr;
    }
}

/* Label */
.demattos-filter-label {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
    display: block;
    color: #fff;
}

/* ================================
   SELECTS & INPUTS — DARK PREMIUM
   ================================ */

.demattos-filter-select,
.demattos-filter-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #fff;
    background: #222;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.demattos-filter-select:focus,
.demattos-filter-input:focus {
    border-color: #00E676;
    outline: none;
}

/* ================================
   SLIDER PRIX
   ================================ */

.demattos-price-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demattos-price-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Range slider */
.demattos-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #555;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.demattos-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #00E676;
    border-radius: 50%;
    cursor: pointer;
}

.demattos-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #00E676;
    border-radius: 50%;
    cursor: pointer;
}

/* ================================
   ZONE DES RÉSULTATS AJAX
   ================================ */

.demattos-results {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1024px) {
    .demattos-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .demattos-results {
        grid-template-columns: 1fr;
    }
}

/* ================================
   CARTE PRODUIT — PREMIUM LÉGER
   ================================ */

/* Le lien couvre toute la carte */
.demattos-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Card */
.demattos-product-card {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demattos-product-link:hover .demattos-product-card {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Image — uniforme */
.demattos-product-card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* carré parfait */
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* Titre */
.demattos-product-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

/* Meta */
.demattos-product-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.demattos-product-meta span {
    display: inline-block;
}

/* Prix */
.demattos-product-price {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

/* ================================
   LOADER AJAX
   ================================ */

.demattos-loader {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top-color: #00E676;
    border-radius: 50%;
    animation: demattos-spin 0.8s linear infinite;
    margin: 40px auto;
    display: none;
}

@keyframes demattos-spin {
    to { transform: rotate(360deg); }
}

/* ================================
   BOUTON RESET
   ================================ */

.demattos-reset-btn {
    background: #00E676;
    color: #000;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.demattos-reset-btn:hover {
    background: #00c95c;
}

.demattos-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.demattos-product-link:hover .demattos-product-card {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
