.sl-nice-select {
    display: none !important;
}

.sl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 cards par ligne - Desktop */
    gap: 20px;
    padding: 20px;
}

.sl-card-modern {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sl-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sl-badge-topcenter {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.sl-photo-count {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sl-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    height: 200px;
    background-color: #f5f5f5;
}

.sl-card-img-native {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.sl-year-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #247a34;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.sl-alaune-badge,
.sl-urgent-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sl-alaune-badge {
    background: #FBE393;
    color: #947305;
}

.sl-urgent-badge {
    background: #FDC4C4;
    color: #8A0000;
}

.sl-alaune-badge img,
.sl-urgent-badge img {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
}

.sl-package-badge {
    position: absolute;
    top: 0px;
    left: 12px;
    height: 25px !important;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sl-statut-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #FF7101;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.sl-discount-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 15;
}

img.sl-discount-badge {
    width: 40px;
    height: auto;
}

span.sl-discount-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.sl-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sl-card-mobile-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sl-card-category {
    margin: 0 !important;
    color: #247a34;
    font-size: 16px;
    font-weight: 400;
}

.sl-card-title-date-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.sl-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 !important;
    color: #1a1a1a;
    flex: 1;
    min-width: 0;
}

.sl-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    white-space: normal;
    word-break: break-word;
}

.sl-title a:hover {
    color: #247a34;
}

.sl-meta-row {
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 2px;
}

.sl-price-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    min-height: 35px;
    flex-wrap: wrap;
}

.sl-price-ttc {
    font-size: 16px;
    font-weight: 700;
    color: #232323;
    margin-right: 20px;
}

.sl-price-main {
    font-size: 24px;
    font-weight: 700;
    color: #247a34;
}

.sl-meta-row,
.sl-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    margin-top: 7px;
    font-size: 13px;
    color: #666;
}

.sl-meta-item,
.sl-spec-item {
    display: flex;
    align-items: center;
    gap: 0px;
}

.sl-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.sl-vendor-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sl-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    object-fit: cover;
}

.sl-vendor-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

.sl-badge-pro {
    background: #ff6b00;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.sl-actions-row {
    display: flex;
    gap: 10px;
}

.sl-btn-stock,
.sl-btn-details {
    flex: 1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
}

.sl-btn-stock {
    background: #EFFAF1;
    color: #247A34;
    border: 1px solid #247A34;
}

.sl-btn-stock .icon img {
    height: 18px;
    width: auto;
    display: block;
}

.sl-btn-stock:hover {
  background: #EFFAF1;
  color: #247A34;
border: 1px solid #247A34;
}

.sl-btn-details {
    background: #247a34;
    color: white;
    border: none;
}

.sl-btn-details:hover {
    background: #247a34;
}

.sl-no-results {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.sl-photo-count img {
    width: 16px;
    height: 14px;
    object-fit: contain;
}


.sl-nice-select.disabled {
    display: none !important;
}

#generation_modal,
#modele_modal,
#motorisation_modal {
    display: block !important;
}

.sl-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filtre principal */
.sl-main-filter-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto auto;
    gap: 15px;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.sl-filter-field {
    display: flex;
    flex-direction: column;
}

.sl-filter-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.sl-filter-field select,
.sl-filter-field input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

.sl-price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sl-price-inputs input {
    padding: 12px;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    font-size: 14px;
}

/* Bouton More Filters (icône rouge) */
.sl-btn-more-filters {
    width: 50px;
    height: 50px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background 0.3s;
    margin-top: 15px;

}

.sl-btn-more-filters:hover {
    background: #c82333;
}

/* Boutons d'action */
.sl-btn-search {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    height: 50px;
    margin-top: 15px;
}

.sl-btn-search {
    background: #dc3545;
    color: white;
}

.sl-btn-search:hover {
    background: #c82333;
}


/* Modal More Filters */
.sl-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.sl-modal-overlay.active {
    display: flex;
}

.sl-modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.sl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.sl-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.sl-btn-close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sl-btn-close-modal:hover {
    color: #333;
}

.sl-modal-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.sl-modal-filter-field {
    display: flex;
    flex-direction: column;
}

.sl-modal-filter-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.sl-modal-filter-field select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.sl-modal-filter-field select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.sl-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.sl-btn-modal-reset {
    padding: 12px 25px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.sl-btn-modal-reset:hover {
    background: #5a6268;
}

.sl-btn-modal-apply {
    padding: 12px 25px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.sl-btn-modal-apply:hover {
    background: #c82333;
}

.sl-btn-reset {
    padding: 12px 25px;
    background: #959595;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.sl-btn-reset:hover {
    background: #959595;
}

/* Blue Banner */
.sl-blue-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 30px 40px;
    margin-bottom: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.sl-banner-content h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.sl-banner-content p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.sl-banner-action .sl-btn-publish {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.sl-banner-action .sl-btn-publish:hover {
    background: #c82333;
}

/* Section Header */
.sl-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.sl-section-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.sl-sort-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sl-sort-filter label {
    color: #666;
    font-size: 14px;
}

.sl-sort-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}



.sl-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.sl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sl-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.sl-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sl-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.sl-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sl-year-badge {
    position: absolute;
    right: 12px;
    background: #247a34;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.sl-body {
    padding: 18px;
}

.sl-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1e3c72;
    font-weight: 700;
}

.sl-card h3 a {
    color: #1e3c72;
    text-decoration: none;
}

.sl-card h3 a:hover {
    color: #2a5298;
}

.sl-price {
    font-size: 22px;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 12px;
}

.sl-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.sl-spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

/* ============================================
   PAGINATION
   ============================================ */
.sl-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: 10px;
}

.sl-pagination-numbers {
    display: flex;
    gap: 6px;
}

.sl-pagination-btn,
.sl-page-number {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e0e0e0;
    background: white;
    color: #444;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sl-pagination-btn:hover:not(:disabled),
.sl-page-number:hover:not(.active):not(.dots) {
    background: #f0fdf4;
    border-color: #247a34;
    color: #247a34;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(36, 122, 52, 0.15);
}

.sl-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f9f9f9;
}

.sl-page-number.active {
    background: #247a34;
    color: white;
    border-color: #247a34;
    box-shadow: 0 4px 10px rgba(36, 122, 52, 0.3);
}

.sl-page-number.dots {
    border: none;
    background: transparent;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
    color: #999;
}

.sl-pagination-btn svg {
    display: block;
}

@media (max-width: 480px) {
    .sl-pagination-wrapper {
        gap: 5px;
        margin: 30px 0;
        width: 325px;
    }

    .sl-pagination-btn,
    .sl-page-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .sl-icon-button {
   
    width: 26px !important;
    height: 22px !important;
   
}

.sl-badge-topcenter {
  
    left: 44% !important;
 
}
}

/* ============================================
   NICE SELECT FIX
   ============================================ */
.sl-nice-select.disabled {
    display: none !important;
}

#generation_modal,
#modele_modal,
#motorisation_modal {
    display: block !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* ============================================
   RESPONSIVE DESIGN (Consolidated)
   ============================================ */

/* Tablet: 3 cards per row */
@media (max-width: 992px) {
    .sl-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile & Tablet: 2 cards per row */
@media (max-width: 768px) {
    .sl-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px;
        padding: 10px;
        width: 100%;
    }
.sl-favorite-topright {

    top: 48px !important;
}
    .sl-card-modern {
        min-width: 0;
    }

    .sl-card-image {
        height: 170px;
        /* Reduced for 2nd column fit */
    }

    .sl-card-content {
        padding: 12px;
    }

    .sl-title {
        font-size: 15px;
        min-height: 38px;
    }

    .sl-price-main {
        font-size: 18px;
    }

    .sl-price-ttc {
        font-size: 13px;
    }

    .sl-specs-row {
        gap: 5px;
        font-size: 12px;
    }

    .sl-spec-item img {
        width: 14px !important;
        height: 14px !important;
    }

    /* Hide Stock text on mobile, keep only icon */
    .sl-btn-stock .stock-text {
        display: none;
    }

    .sl-btn-stock {
        justify-content: center;
    }

    .sl-btn-stock,
    .sl-btn-details {
        font-size: 12px;
        padding: 6px 4px;
        height: 34px;
    }

    .sl-main-filter-fields {
        grid-template-columns: 1fr;
    }

    .sl-modal-filters {
        grid-template-columns: 1fr;
    }

    .sl-filter-container {
        width: 100% !important;
        max-width: none !important;
        padding: 10px 15px !important;
        margin: 0 auto;
      
    }

    .sl-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Very Small Devices (Phones) */
@media (max-width: 480px) {
    a.sl-btn-details:hover {
        color: #fff;
    }

    .sl-card-title-date-row {
        display: grid;

    }

   

    .sl-spec-item {
        font-size: 13px;
    }

    .sl-filter-container {

        margin-left: 0px !important;
    }

    .sl-grid {
        gap: 8px;
        padding: 2px 0px;
        width: 100%;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .sl-favorite-topright {
        gap: 3px !important;
        top: 40px !important;

    }

    .sl-discount-badge {
        position: absolute;
        bottom: 3px !important;
        right: 5px !important;
        z-index: 15;
    }

    .sl-year-badge {
        position: absolute;
        right: 10px !important;
        background: #247a34;
        color: white;
        padding: 2px 10px !important;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
    }

    .sl-card-image {
        height: 160px !important;
        /* Even smaller for tiny screens */
    }

    .sl-card-content {
        padding: 10px;
    }

    .sl-title {
        font-size: 16px;
        min-height: 10px !important;
    }

    .sl-price-main {
        font-size: 13px;
    }

    .sl-price-ttc {
        font-size: 12px;
    }

    .sl-btn-stock,
    .sl-btn-details {
        font-size: 12px;
        padding: 8px 6px;
        min-height: 40px;
    }

    .sl-card-image {
        height: 140px;
        /* Force small image height on tiny screens */
    }

    .sl-specs-row {
        margin-bottom: 6px;
        margin-top: 10px;
         gap: 13px;
    }

    .sl-vendor-info {
        gap: 6px;
    }

    .sl-avatar {
        width: 30px;
        height: 30px;
    }

    .sl-vendor-name {
        font-size: 12px;
    }
}

/* Price Score Styles Integration */
.sl-price-score-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sl-price-bar-wrapper {
    width: 70px;
    margin: 0;
    position: relative;
    padding-top: 15px;
    /* Space for marker */
}

.sl-price-bar {
    display: flex;
    height: 8px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.sl-price-segment {
    flex: 1;
}

.sl-price-marker {
    position: absolute;
    top: -2px;
    transform: translateX(-50%);
    z-index: 10;
}

.sl-price-label-below {
    text-align: center;
    font-size: 10px;
    margin-top: 2px;
    color: #666;
    line-height: 1;
}

.sl-price-segment-1 {
    background-color: #e53935 !important;
}

.sl-price-segment-2 {
    background-color: #fb8c00 !important;
}

.sl-price-segment-3 {
    background-color: #fdd835 !important;
}

.sl-price-segment-4 {
    background-color: #9ccc65 !important;
}

.sl-price-segment-5 {
    background-color: #43a047 !important;
}

.sl-price-segment-6 {
    background-color: #2e7d32 !important;
}

.sl-price-segment-disabled {
    background-color: #cccccc !important;
}

.sl-marker-hidden {
    display: none !important;
}

/* Favorite & Share Buttons (Top Right) */
.sl-favorite-topright {
    position: absolute;
    top: 60px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
}

.sl-icon-button {
    background: rgba(0, 0, 0, 0.55) !important;
    border: none !important;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
}

.sl-icon-button i,
.sl-icon-button svg {
    color: #fff !important;
    font-size: 20px;
    transition: transform 0.2s ease, color 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}

.sl-icon-button:hover i,
.sl-icon-button:hover svg {
    transform: scale(1.15);
    color: #fff !important;
}

.sl-share-dropdown {
    position: relative;
}

.sl-share-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    padding: 8px;
    z-index: 30;
    min-width: 120px;
}

.sl-share-dropdown:hover .sl-share-options {
    display: block;
}

.sl-share-options a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    padding: 6px 4px;
    transition: color 0.2s;
}

.sl-share-options a:hover {
    color: #247a34;
}

.sl-share-options i {
    width: 16px;
    text-align: center;
}

span.sl-meta-item {
    font-size: 12px !important;
}

a.sl-btn-details {
    background: #247a34;
    color: white;
    border: none;
}
@media only screen 
  and (device-width: 430px) 
  and (device-height: 932px) 
  and (-webkit-device-pixel-ratio: 3) {

 .sl-filter-container {
        margin-left: 2px !important;
    }

 
}