/* Styles pour la page d'upgrade - Design professionnel et épuré */
:root {
    --wheel-ring-thickness: 7px;
    --primary-green: #00ff8a;
    --primary-green-shadow: rgba(0,255,130,0.5);
    --primary-purple: #9d4edd;
    --primary-purple-shadow: rgba(157,78,221,0.5);
}

/* Base layout : plein écran */
html, body {
    width: 100%;
    height: 100%;
}

/* Override du main de index.css (sur cette page, upgrade_new.css est chargé après) */
main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container principal pleine largeur */
body .upgrade-container{
    display:flex;
    gap:20px;
    padding:20px;
    justify-content:space-between;
    min-height:calc(100vh - 140px);
    width:100%;
    max-width:none;
    box-sizing:border-box;
}

.column{
    background:transparent;
    border:none;
    padding:16px;
}

/* Largeurs de colonnes desktop */
.column.inventory{
    width:32%;
    display:flex;
    flex-direction:column;
    min-height:360px;
    max-height:calc(100vh - 220px);
}

.column.wheel{
    width:28%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
}

.column.items-available{
    width:40%;
    display:flex;
    flex-direction:column;
    min-height:360px;
    max-height:calc(100vh - 220px);
}

.column h3 {
    font-size:18px;
    font-weight:700;
    color:var(--primary-green);
    text-shadow:0 0 8px var(--primary-green-shadow);
    margin-top:0;
    margin-bottom:16px;
    text-transform:uppercase;
    letter-spacing:0.5px;
}

/* Listes d’items */
.inventory-list,
.items-list,
.items-list-4col{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    flex:1 1 auto;
    overflow:auto;
    max-height:none;
}

/* Scrollbars custom */
.inventory-list,
.items-list,
.items-list-4col{
    scrollbar-width:thin;
    scrollbar-color:rgba(0,255,130,0.3) rgba(255,255,255,0.05);
}

.inventory-list::-webkit-scrollbar,
.items-list::-webkit-scrollbar,
.items-list-4col::-webkit-scrollbar{
    width:6px;
}

.inventory-list::-webkit-scrollbar-track,
.items-list::-webkit-scrollbar-track,
.items-list-4col::-webkit-scrollbar-track{
    background:rgba(255,255,255,0.05);
}

.inventory-list::-webkit-scrollbar-thumb,
.items-list::-webkit-scrollbar-thumb,
.items-list-4col::-webkit-scrollbar-thumb{
    background:rgba(0,255,130,0.3);
    border-radius:3px;
}

/* CARD DESIGN - Professional & Minimal (listes classiques) */
.inventory-list li,
.items-list li{
    display:flex;
    flex-direction:column;
    gap:0;
    padding:0;
    border-radius:10px;
    cursor:pointer;
    transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
    background:linear-gradient(180deg,rgba(50,50,60,0.4) 0%,rgba(30,30,35,0.6) 100%);
    box-shadow:0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.08);
}

.inventory-list li:hover,
.items-list li:hover{
    transform:translateY(-8px);
    box-shadow:0 16px 40px rgba(0,255,130,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

.inventory-list img,
.items-list img{
    width:100%;
    height:140px;
    object-fit:cover;
    display:block;
}

.card-details{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:12px;
    flex:1;
    justify-content:space-between;
}

.card-details .name{
    font-weight:600;
    font-size:0.9rem;
    text-align:left;
    color:#e0e0e0;
    letter-spacing:0.3px;
}

.card-details .price{
    font-size:0.8rem;
    color:var(--primary-green);
    text-align:left;
    font-weight:500;
    opacity:0.9;
}

/* WHEEL SECTION */
.wheel-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:16px;
}

.upgrade-wheel{
    --wheel-primary:var(--primary-green);
    --wheel-primary-shadow:var(--primary-green-shadow);
    --wheel-ring:var(--primary-purple);
    --wheel-ring-shadow:var(--primary-purple-shadow);
    width:400px;
    height:400px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    --pct:40;
    background:conic-gradient(var(--wheel-ring) 0deg,
                               var(--wheel-ring) calc(var(--pct) * 3.6deg),
                               rgba(255,255,255,0.1) calc(var(--pct) * 3.6deg) 360deg);
    box-shadow:0 0 30px var(--wheel-ring-shadow), inset 0 0 20px rgba(0,0,0,0.5);
    position:relative;
    transition:transform 4s cubic-bezier(.17,.67,.25,1);
}

.wheel-center{
    width:calc(400px - 2 * var(--wheel-ring-thickness));
    height:calc(400px - 2 * var(--wheel-ring-thickness));
    background:radial-gradient(circle,#1a1a1a 0%,#0a0a0a 100%);
    border-radius:50%;
    z-index:2;
    box-shadow:inset 0 -6px 20px rgba(0,0,0,0.8);
}

/* Pourcentage au centre de la roue */
.wheel-center #success-percent{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    font-size:2.2rem;
    font-weight:800;
    color:var(--wheel-ring);
    text-shadow:0 0 12px var(--wheel-ring-shadow);
    z-index:3;
}

.wheel-pointer{
    width:0;
    height:0;
    border-left:12px solid transparent;
    border-right:12px solid transparent;
    border-top:18px solid var(--primary-green) !important;
    position:relative;
    top:8px;
    margin-bottom:6px;
    z-index:3;
    align-self:center;
    filter:drop-shadow(0 0 8px var(--primary-green-shadow));
}

/* Dots min/max au-dessus de la roue */
.pointer-indicators{
    position:absolute;
    top:-12px;
    left:0;
    right:0;
    height:0;
    pointer-events:none;
    z-index:4;
}
.pointer-dot{
    position:absolute;
    top:-24px;
    width:12px;
    height:12px;
    border-radius:50%;
    box-shadow:0 0 8px rgba(0,0,0,0.4);
    transform:translateX(-50%);
}
.pointer-dot.max{
    background:var(--primary-green);
    filter:drop-shadow(0 0 8px var(--primary-green-shadow));
}
.pointer-dot.min{
    background:var(--primary-purple);
    filter:drop-shadow(0 0 8px var(--primary-purple-shadow));
}

.wheel-info{
    text-align:center;
}

.wheel-info > div{
    font-size:0.95rem;
    font-weight:600;
    color:#dcdcdc;
    margin-bottom:12px;
}

.wheel-info > div span{
    color:var(--wheel-primary);
    font-size:1.1rem;
    font-weight:700;
    text-shadow:0 0 8px var(--wheel-primary-shadow);
}

/* Bouton principal upgrade */
#upgrade-btn.btn{
    background:linear-gradient(135deg,#00ff8a 0%,#00cc6f 100%);
    border:2px solid rgba(0,255,130,0.4);
    padding:12px 24px;
    border-radius:10px;
    color:#000;
    font-weight:700;
    cursor:pointer;
    transition:0.3s ease;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:0.5px;
    box-shadow:0 0 15px rgba(0,255,130,0.3);
}

#upgrade-btn.btn:hover{
    transform:translateY(-2px);
    box-shadow:0 0 25px var(--primary-green-shadow), 0 5px 15px rgba(0,0,0,0.3);
}

#upgrade-btn.btn:active{
    transform:translateY(0);
}

#upgrade-btn.btn:disabled{
    opacity:0.6;
    cursor:not-allowed;
}

/* Boutons multiplicateurs */
.multiplier-buttons{
    display:flex;
    gap:8px;
    justify-content:center;
    margin-top:16px;
}

.multiplier-btn{
    background:linear-gradient(135deg,rgba(0,255,130,0.1) 0%,rgba(0,200,100,0.05) 100%);
    border:1px solid rgba(0,255,130,0.3);
    padding:8px 14px;
    border-radius:8px;
    color:var(--primary-green);
    font-weight:600;
    cursor:pointer;
    transition:all 0.2s ease;
    font-size:0.9rem;
    text-transform:uppercase;
    letter-spacing:0.3px;
}

.multiplier-btn:hover{
    background:linear-gradient(135deg,rgba(0,255,130,0.2) 0%,rgba(0,200,100,0.1) 100%);
    box-shadow:0 0 15px rgba(0,255,130,0.2);
    transform:translateY(-2px);
}

.multiplier-btn:active{
    transform:translateY(0);
}

.multiplier-btn.active{
    background:linear-gradient(135deg,var(--primary-green) 0%,#00cc6f 100%);
    color:#000;
    box-shadow:0 0 20px var(--primary-green-shadow);
}

/* État sélectionné */
.items-list li.selected,
.items-list-4col li.selected,
.inventory-list li.selected,
.card-small.selected{
    box-shadow:0 0 28px var(--primary-green-shadow), inset 0 0 18px rgba(0,255,130,0.18) !important;
    border:2px solid rgba(0,255,130,0.45) !important;
    transform:translateY(-8px) scale(1.02);
    background:linear-gradient(180deg,rgba(20,20,25,0.55) 0%,rgba(12,12,14,0.65) 100%);
}

/* Garder la roue violette même quand selected */
#upgrade-wheel.selected,
.upgrade-wheel.selected{
    box-shadow:0 0 30px var(--wheel-ring-shadow), inset 0 0 20px rgba(0,0,0,0.5) !important;
    border:2px solid var(--wheel-ring) !important;
    transform:none !important;
}

/* ===== NOTIFICATION SYSTEM ===== */
#notification-container{
    position:fixed;
    top:80px;
    right:20px;
    z-index:9999;
    display:flex;
    flex-direction:column;
    gap:12px;
    max-width:400px;
    pointer-events:none;
}

.notification{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:14px 16px;
    border-radius:10px;
    background:rgba(44,62,80,0.95);
    color:#fff;
    box-shadow:0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,130,0.2);
    animation:slideIn 0.3s ease-out;
    pointer-events:all;
    opacity:0;
    transform:translateX(400px);
    transition:opacity 0.3s, transform 0.3s;
    min-width:280px;
    font-size:0.95rem;
    border:1px solid rgba(0,255,130,0.15);
}

.notification.show{
    opacity:1;
    transform:translateX(0);
}

.notification-icon{
    font-size:1.4rem;
    font-weight:bold;
    flex-shrink:0;
    width:24px;
    text-align:center;
    margin-top:2px;
}

.notification-content{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.notification-message{
    line-height:1.4;
    word-wrap:break-word;
}

.notification-close{
    background:none;
    border:none;
    color:#fff;
    font-size:1.5rem;
    cursor:pointer;
    padding:0;
    width:24px;
    height:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0.7;
    transition:opacity 0.2s;
    flex-shrink:0;
}

.notification-close:hover{
    opacity:1;
}

/* Types */
.notification-success{
    background:linear-gradient(135deg,rgba(0,255,138,0.15) 0%,rgba(0,200,100,0.1) 100%);
    border-left:4px solid var(--primary-green);
    border:1px solid rgba(0,255,130,0.3);
}
.notification-success .notification-icon{
    color:var(--primary-green);
}

.notification-error{
    background:linear-gradient(135deg,rgba(255,100,100,0.15) 0%,rgba(200,50,50,0.1) 100%);
    border-left:4px solid #ff6464;
    border:1px solid rgba(255,100,100,0.2);
}
.notification-error .notification-icon{
    color:#ff8a8a;
}

.notification-info{
    background:linear-gradient(135deg,rgba(52,152,219,0.15) 0%,rgba(41,128,185,0.1) 100%);
    border-left:4px solid #3498db;
    border:1px solid rgba(52,152,219,0.2);
}
.notification-info .notification-icon{
    color:#5dade2;
}

.notification-warning{
    background:linear-gradient(135deg,rgba(243,156,18,0.15) 0%,rgba(214,137,16,0.1) 100%);
    border-left:4px solid #f39c12;
    border:1px solid rgba(243,156,18,0.2);
}
.notification-warning .notification-icon{
    color:#f8b739;
}

@keyframes slideIn{
    from{
        opacity:0;
        transform:translateX(400px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

/* ===== RESPONSIVE GLOBAL ===== */
@media(max-width:900px){
    .upgrade-container{
        flex-direction:column;
        gap:15px;
    }
    .column{
        width:100%;
    }
    .column.wheel{
        order:2;
    }
    .inventory-list,
    .items-list{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:768px){
    .upgrade-container{
        padding:15px;
    }
    .column{
        padding:12px;
    }
    .column h3{
        font-size:16px;
        margin-bottom:12px;
    }
    .column.inventory,
    .column.items-available{
        min-height:280px;
    }
    .inventory-list,
    .items-list{
        max-height:400px;
        gap:10px;
    }
    .inventory-list img,
    .items-list img{
        height:100px;
    }
    .upgrade-wheel{
        width:240px;
        height:240px;
    }
    #notification-container{
        top:70px;
        right:10px;
        left:10px;
        max-width:none;
    }
}

@media(max-width:480px){
    .upgrade-container{
        padding:10px;
        gap:10px;
    }
    .column{
        padding:10px;
        width:100% !important;
    }
    .column h3{
        font-size:14px;
    }
    .inventory-list,
    .items-list{
        grid-template-columns:repeat(2,1fr);
        max-height:300px;
    }
    .upgrade-wheel{
        width:200px;
        height:200px;
    }
    #upgrade-btn.btn{
        padding:10px 18px;
        font-size:12px;
    }
    #notification-container{
        top:60px;
        right:5px;
        left:5px;
        max-width:none;
    }
    .notification{
        min-width:auto;
    }
}

/* ===== Styles pour la recherche et les filtres ===== */

/* Header items dispo */
.items-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}

.items-header h3{
    margin:0;
}

.open-filters-btn{
    background:rgba(0,255,130,0.2);
    color:#00ff8a;
    border:1px solid #00ff8a;
    padding:8px 16px;
    border-radius:6px;
    font-weight:bold;
    cursor:pointer;
    transition:all 0.3s;
    font-size:13px;
}

.open-filters-btn:hover{
    background:rgba(0,255,130,0.3);
    box-shadow:0 0 12px rgba(0,255,130,0.4);
}

.search-box{
    margin-bottom:16px;
}

.search-input{
    width:100%;
    padding:10px 14px;
    border:2px solid rgba(0,255,130,0.3);
    background:rgba(15,20,25,0.8);
    color:#fff;
    border-radius:6px;
    font-size:13px;
    transition:all 0.3s ease;
}

.search-input:focus{
    outline:none;
    border-color:#00ff8a;
    box-shadow:0 0 12px rgba(0,255,130,0.4);
}

.search-input::placeholder{
    color:rgba(255,255,255,0.5);
}

/* === Grilles larges (cartes plus grandes) === */

/* Items disponibles : 3 colonnes desktop */
.items-list-4col{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    grid-template-columns:repeat(3,1fr); /* AVANT: 4 */
    gap:14px;
    align-content:start;
    grid-auto-rows:auto;
    align-items:start;
}

/* Cartes compactes */
.card-small{
    background:rgba(0,0,0,0.4);
    border:1px solid rgba(0,255,130,0.2);
    border-radius:8px;
    overflow:hidden;
    cursor:pointer;
    transition:all 0.3s ease;
    padding:0;
    display:flex;
    flex-direction:column;
    position:relative;
    pointer-events:auto;
}

.items-list-4col .card-small{
    min-height:120px;
    align-self:start;
}

/* Inventaire : même style, 3 colonnes */
#inventoryList{
    display:grid;
    grid-template-columns:repeat(3,1fr); /* AVANT: 4 */
    gap:14px;
}

#inventoryList .card-small img{
    height:80px;
    object-fit:cover;
}

#inventoryList .name-small,
#inventoryList .price-small{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.card-small:hover{
    border-color:#00ff8a;
    box-shadow:0 0 15px rgba(0,255,130,0.3);
    transform:translateY(-3px);
}

.card-small img{
    width:100%;
    height:80px;
    object-fit:cover;
}

/* Détails dans les petites cartes */
.items-list-4col .card-details-small{
    padding:8px;
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.items-list-4col .name-small,
.items-list-4col .price-small{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Toujours afficher nom/prix */
.card-details-small .name-small,
.card-details-small .price-small,
.items-list-4col .name-small,
.items-list-4col .price-small,
#inventoryList .name-small,
#inventoryList .price-small{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    height:auto !important;
    overflow:visible !important;
}

/* Les grilles acceptent bien les clics */
.items-list-4col,
.inventory-list{
    pointer-events:all;
}

/* Flash de clic debug */
@keyframes clickFlash{
    0%{ box-shadow:0 0 28px rgba(0,255,130,0.25); transform:translateY(-2px) scale(1.01); }
    100%{ box-shadow:none; transform:none; }
}
.card-small.clicked{
    animation:clickFlash 220ms linear;
}

/* Badge sélectionné */
.selected-badge{
    position:absolute;
    top:6px;
    right:6px;
    width:22px;
    height:22px;
    border-radius:50%;
    background:linear-gradient(135deg,#00ff8a,#00cc6f);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#00250f;
    font-weight:800;
    font-size:14px;
    box-shadow:0 6px 18px rgba(0,255,130,0.18);
    z-index:5;
    pointer-events:none;
}

.card-details-small{
    padding:8px;
    flex:1;
    display:flex !important;
    flex-direction:column;
    justify-content:space-between;
}

.name-small{
    color:#00ff8a;
    font-weight:bold;
    font-size:12px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    margin-bottom:4px;
}

.price-small{
    color:#00ff8a;
    font-weight:bold;
    font-size:11px;
}

/* S’assurer que le container de détails est visible */
.card-small .card-details-small,
.items-list-4col .card-details-small,
#inventoryList .card-details-small{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    min-height:40px !important;
    padding:8px !important;
}

/* Modal filtres */
.filters-modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    z-index:1000;
    align-items:center;
    justify-content:center;
}

.filters-modal-content{
    background:#181c20;
    border-radius:12px;
    box-shadow:0 8px 32px rgba(0,255,130,0.2);
    width:90%;
    max-width:400px;
    max-height:80vh;
    overflow-y:auto;
    border:1px solid rgba(0,255,130,0.3);
}

.filters-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px;
    border-bottom:1px solid rgba(0,255,130,0.2);
}

.filters-modal-header h2{
    margin:0;
    color:#00ff8a;
    font-size:18px;
}

.close-filters-btn{
    background:none;
    border:none;
    color:#ff6b6b;
    font-size:28px;
    cursor:pointer;
    transition:all 0.2s;
    padding:0;
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.close-filters-btn:hover{
    transform:scale(1.2);
}

.filters-modal-body{
    padding:20px;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.filter-group{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:14px;
    background:rgba(0,255,130,0.05);
    border-radius:8px;
    border:1px solid rgba(0,255,130,0.15);
}

.filter-label{
    color:#00ff8a;
    font-size:13px;
    font-weight:bold;
    display:block;
}

.price-filter{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.price-filter input[type="number"]{
    width:90px;
    padding:6px 8px;
    border-radius:6px;
    border:1px solid rgba(255,255,255,0.06);
    background:transparent;
    color:#ddd;
    appearance:textfield;
    -webkit-appearance:textfield;
    -moz-appearance:textfield;
}

/* Hide spinner arrows */
.price-filter input[type="number"]::-webkit-outer-spin-button,
.price-filter input[type="number"]::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
}

.price-slider{
    width:100%;
    height:6px;
    border-radius:3px;
    background:linear-gradient(to right,rgba(0,255,130,0.2),rgba(0,255,130,0.4));
    outline:none;
    -webkit-appearance:none;
    appearance:none;
    cursor:pointer;
}

.price-slider::-webkit-slider-thumb{
    -webkit-appearance:none;
    appearance:none;
    width:18px;
    height:18px;
    border-radius:50%;
    background:#00ff8a;
    cursor:pointer;
    box-shadow:0 0 8px rgba(0,255,130,0.6);
    transition:all 0.2s;
}

.price-slider::-webkit-slider-thumb:hover{
    transform:scale(1.2);
    box-shadow:0 0 12px rgba(0,255,130,0.8);
}

.price-slider::-moz-range-thumb{
    width:18px;
    height:18px;
    border-radius:50%;
    background:#00ff8a;
    cursor:pointer;
    border:none;
    box-shadow:0 0 8px rgba(0,255,130,0.6);
    transition:all 0.2s;
}

.price-slider::-moz-range-thumb:hover{
    transform:scale(1.2);
    box-shadow:0 0 12px rgba(0,255,130,0.8);
}

.price-display{
    color:#00ff8a;
    font-size:13px;
    font-weight:bold;
    text-align:center;
    background:rgba(0,255,130,0.1);
    padding:8px;
    border-radius:4px;
}

.rarity-filter{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.checkbox-label{
    display:flex;
    align-items:center;
    gap:10px;
    color:#ccc;
    font-size:13px;
    cursor:pointer;
    transition:all 0.2s;
}

.checkbox-label:hover{
    color:#00ff8a;
}

.checkbox-label input[type="checkbox"]{
    width:16px;
    height:16px;
    cursor:pointer;
    accent-color:#00ff8a;
}

.filters-modal-footer{
    display:flex;
    gap:10px;
    padding:16px 20px;
    border-top:1px solid rgba(0,255,130,0.2);
}

.reset-btn{
    flex:1;
    padding:12px;
    background:rgba(255,150,0,0.2);
    color:#ff9500;
    border:1px solid #ff9500;
    border-radius:6px;
    font-weight:bold;
    font-size:13px;
    cursor:pointer;
    transition:all 0.3s;
}

.reset-btn:hover{
    background:rgba(255,150,0,0.3);
    box-shadow:0 0 10px rgba(255,150,0,0.4);
}

.apply-btn{
    flex:1;
    padding:12px;
    background:rgba(0,255,130,0.2);
    color:#00ff8a;
    border:1px solid #00ff8a;
    border-radius:6px;
    font-weight:bold;
    font-size:13px;
    cursor:pointer;
    transition:all 0.3s;
}

.apply-btn:hover{
    background:rgba(0,255,130,0.3);
    box-shadow:0 0 10px rgba(0,255,130,0.4);
}

/* Responsive pour les grilles large/cartes plus larges */
@media (max-width:1200px){
    .items-list-4col{
        grid-template-columns:repeat(2,1fr); /* AVANT: 3 */
    }
    #inventoryList{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:768px){
    .items-list-4col{
        grid-template-columns:repeat(1,1fr); /* AVANT: 2 */
    }
    #inventoryList{
        grid-template-columns:repeat(1,1fr);
    }
    .filters-modal-content{
        width:95%;
        max-width:350px;
    }
}
