header{
    padding:1rem;
    padding-top:calc(66px + 1rem);
    background-color:var(--first-color);
    position:relative;
    color:#e7e7e7;
    border-bottom-left-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
    text-align:center;
    
    transition:all 300ms linear;
    background-image:url('/src/img/background_pattern.svg');
    background-size:cover;
    background-repeat: repeat;
    background-position: top left 100%;
}
.contHeader{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap:1rem;
}
@media(max-width:768px){
    .contHeader{
        flex-direction: column-reverse;
    }
}
@media(min-width:768px){
    header .categorie{
        width:60%;
    }
    header .textContainer{
        width:calc(40% - 1rem);
        text-align: end;
    }
    header{
        background: linear-gradient(180deg,  rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.3) 100%),
        url('/src/img/background_pattern.svg'),
        linear-gradient(180deg, var(--first-color) 0%, var(--bs-body-bg) 100%);
        color:var(--bs-body-color);
        color:white;
    }
}


header .textContainer{
    display:flex;
    flex-direction: column;
    font-size:1.25rem;
}
header .textContainer:only-child{
    width:100%;
}
header h1{
    font-size:2.5rem;
}
header img{
    height:90%;
    width:auto;
    max-width:200px;
    display:block;
}
.filterTitle{
    font-size:1.5rem;
    font-weight: 600;
}
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding-bottom: 0.5rem;
}
.toggle-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}
.collapsible-header.active-header .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}
.collapsible-content.active {
    grid-template-rows: 1fr;
}
.collapsible-content > div {
    overflow: hidden;
}

.prodotto .imgCont{
    position:relative;
    width:100%;
    height:14rem;
}
.prodotto .imgCont img{
    width:100%;
    height:100%;
    
    object-fit: cover;
    position:absolute;
    left:0;
    top:0;
    transition:all 300ms linear;
    border-top-left-radius:var(--bs-border-radius);
    border-top-right-radius:var(--bs-border-radius);
}
.prodotto .imgCont img:last-child{
    opacity:0;
}

.prodotto.extended{
    z-index:2;
}
@media(min-width:768px){
    .prodotto .btnCont{
        opacity:0;
        position:absolute;
        left:0;
        display:flex;
        width:100%;
        transition:opacity 0.3s ease, transform 0.3s ease, top 0.3s ease;
        padding:0.5rem;
        background: var(--bs-body-bg);
        z-index: 10;
        border-bottom-left-radius:var(--bs-border-radius);
        border-bottom-right-radius:var(--bs-border-radius);
        box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    }
    .prodotto.extended .btnCont{      
        opacity:1;
        transform: translateY(0);
    }
    .prodotto.extended{
        z-index: 100 !important;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }
}
@media(max-width:768px){
    .prodotto .btnCont{
        display:flex;
    }
}

/*filtri mobile*/
.fullscreenFilter{
    width:100dvw;
    height:100dvh;
    overflow-y:auto;
    position:fixed;
    top:0;
    left:0;
    z-index:1001;
    background:var(--bs-body-bg);
    color:var(--bs-body-color);
    padding:0.5rem;
    display:none;
    gap:1rem;
    flex-direction: column;
}
.fullscreenFilter .exitButton{
    background:none;
    border:none;
    font-size:1.5rem;
}
.fullscreenFilter .itemCont{
    display:none;
    padding:1rem;
}
.fullscreenFilter .itemCont.active{
    display:block;
}
#titleFullScreen{
    font-size:1.75rem;
    font-weight: bold;
}
.elencoProdotti{
    display:flex;
    flex-direction:row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    
    gap:20px 20px;
    margin-top:2%;
    margin-bottom:3%;
}

.prodotto{
    background: var(--bs-body-bg);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    border-radius:var(--bs-border-radius);
    position:relative;
    height:100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width:14rem;
    width:100%;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Necessario per il menu espanso dei bottoni */
    border: 1px solid rgba(0,0,0,0.05);
}

.prodotto:hover {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 24px;
    transform: translateY(-4px);
}


@media(max-width:992px){
    .elencoProdotti a{
        flex:1;
    }
    .prodotto{
        min-width:15rem;
    }
}
@media(min-width:992px){
    .prodotto{
        width:15rem;
    }
}
.prodotto .bodyProdotto{
    padding:0.5rem;
    display:flex;
    flex-direction:column;
    justify-content: space-between;
    gap:0.5rem;
    height:calc(100% - 14rem);
}

.prodotto .prezzo{
    font-size:1.5rem;
    font-weight:400;
} 
.prodotto .titoloProdotto{
    font-size:1.2rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listCategory{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content: flex-start;
    flex-wrap:wrap;
    gap:0.25rem;
}
.listCategory a{
    font-size:0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius:var(--bs-border-radius-xl);
    background:var(--fifth-color);
    color: var(--bs-body-color);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.pallinoSconto{
    position:absolute;
    top:1%;
    right:1%;
    border-radius:100%;
    padding:0.25rem;
    background:var(--first-color);
    color:white;
    font-size:15px;
    aspect-ratio: 1/1;
    display:flex;
    align-items: center;
    justify-content: center;
}
.btnCont{
    flex-direction:column;
    gap:0.5rem;
    transition:all 300ms linear;
}
.btnCont button{
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border:none;
    padding:0.5rem;
}
.btnCont .addToCartBtn{
    background:var(--second-color);
    color:var(--sixth-color);
}
.btnCont .btnAcqRapido{
    background:var(--fourth-color);
    color:black;
}
.elencoProdotti a{
    text-decoration: none;
}

.prodotto .infoMinProd{
    display:flex;
    flex-direction: row;
    align-items:center;
    justify-content: space-between;
}
.stelle{
    color:#FFDF00;
    font-size:12px;
}
.prezzoProd{
    color:var(--first-color);
}
.categoriaProd{
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    gap:0.5rem;
}
.filter{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-direction: row;
    flex-wrap:wrap;
    gap:20px;
    border-radius:25px;
    padding:2%;
    margin-top:2%;
    margin-bottom:2%;
}
@media(min-width:768px){
    .filter div{
        width:350px;
    }
}
@media(max-width:768px){
    .filter div{
        width:100%;
    }
    header{
        border-radius:0;
    }
}

.categorie{
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    gap:25px;
    justify-content:center;
    align-items:stretch;
}
.categorie a{
    text-decoration: none;
    color: #f4f4f4;
    flex:1;
    flex-basis: 10rem;
}
.categoria{
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    width:100%;
    height:10rem;
    border-radius:var(--bs-border-radius);
}
.categoriaIn{
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    text-transform:uppercase;
    width:100%;
    height:100%;
    border-radius:var(--bs-border-radius);
    background:rgba(0,0,0,0.4);
    font-family: 'Merriweather','Anona',serif;
    font-size:1.75rem;
    transition:all 300ms ease-in-out;
}
.categoriaIn:hover{
    background:rgba(14, 30, 55, 0.7);
}

@media(min-width:992px){
    .desktopSearchBtn{
        display:flex;
    }
    .mobileSearchBtn{
        display:none !important;
    }
}
@media(max-width:992px){
    .desktopSearchBtn{
        display:none !important;
    }
    .mobileSearchBtn{
        display:flex;
    }
}
.desktopFilter{
    margin-top:2%;
    position:sticky;
    top:66px;
}
/*nav filtri*/
.filterContainerRow{
    display:flex;
    flex-direction: row;
    align-items:stretch;
    justify-content: flex-start;
    gap:1rem;
}
.filterContainerRow .itemFilter{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content: space-between;
    gap:0.5rem;
    background:none;
    border:none;
    color:white;
    padding-top:0.5rem;
    padding-bottom:0.5rem;
    font-size:1rem;
}
.itemFilter svg{
    fill:white;
}
.parentContFilterRow{
    background:var(--second-color);
    color:white;
    position:sticky;
    top:66px;
    z-index:3;
}
/*selezione pagina*/
#paginaSelector{
    display:flex;
    width:100%;
    flex-direction:row;
    gap:10px;
    justify-content:center;
    align-items:center;
    margin-bottom:3%;
    margin-bottom:2%;
    flex-wrap:wrap;
}
#paginaSelector button{
    width:32px;
    height:32px;
    border-radius:32px;
    border:none;
    background:var(--bs-secondary-bg);
    color:var(--bs-body-color);
}
#paginaSelector .pSelected{
    background:var(--first-color);
    color:#f4f4f4;
}
@media(min-width:768px){
    #paginaSelector{
        margin-top:5rem;
    }
}
#bodyAcquistoRapido .descContent{
    max-height:100px;
    overflow:hidden;
    transition: all 300ms linear;
}
#bodyAcquistoRapido .descContent.expand{
    max-height:none;
}
#bodyAcquistoRapido .descCont button{
    background:none;
    border:var(--second-color);
    color:var(--second-color);
    padding:0.5rem;
}
@media(min-width:768px){
    .imgCont img{
        width:100%;
        height:auto;
    }
    .divAnteprime{
        display:flex;
        flex-direction:row;
        flex-wrap:wrap;
        gap:0.5rem;
        margin-top:0.25rem;
        margin-bottom:0.25rem;
        overflow-y:auto;
        height:12rem;
    }
    .divAnteprime img{
        width:100%;
        height:10rem;
        object-fit: cover;
    }
    .divAnteprime a{
        width:100%;
    }
}
@media(max-width:768px){
    .imgCont img{
        width:100%;
        height:15rem;
        object-fit:cover;
    }
    .btnAcquisto{
        width:100%;
    }
}

#bodyAcquistoRapido .price{
    font-size:1.75rem;
    font-weight:600;
}
.descTitle{
    font-size:1.5rem;
}
.btnAcquisto{
    background:var(--first-color);
    color:white;
    margin-top:0.5rem;
    margin-bottom:0.5rem;
}
.btnAcquisto:hover{
    background:var(--third-color);
    color:white;
}

.pDisp{
    width:15px;
    height:15px;
    border-radius:100%;
}
.pDisp.dispOk{
    background:var(--bs-success);
}
.pDisp.notDisp{
    background:var(--bs-danger);
}
.disponibilitaCont{
    display:flex;
    flex-direction:row;
    gap:0.5rem;
    align-items:center;
}
.quantityCont{
    display:flex;
    flex-direction:row;
    align-items:stretch;
    justify-content:center;
    border-radius:var(--bs-border-radius);
    border:1px solid var(--bs-border-color);
    padding:0.5rem;
    width:fit-content;
}
@media(max-width:768px){
    .quantityCont{
        width:100%;
        justify-content:space-between;
    }
}
.quantityCont input{
    border:none;
    background:none;
    text-align:center;
}
.quantityCont button{
    background:none;
    border:none;

}
.lg-outer { z-index: 1100; }
.lg-backdrop { z-index: 1090; }

.histogram-container {
    position: relative;
    height: 150px;
    display: flex;
    align-items: flex-end;
    margin-bottom:0.5rem;
}
.histogram-bar {
    width:100%;
    margin: 0 1px;
    background-color: var(--second-color);
    transition: background-color 0.2s;
    cursor: pointer;
    border-radius:var(--bs-border-radius-xl);
}
.slider-track {
    position: relative;
    height: 6px;
    background-color: #ddd;
    margin-top: 10px;
    width:100%;
}
.slider-thumb {
    width: 14px;
    height: 14px;
    background-color: var(--first-color);
    border-radius: 50%;
    position: absolute;
    top: -4px;
    transform: translateX(-50%);
    cursor: pointer;
}
.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 5px;
    gap:0.15rem;
}
.price-label {
    white-space: nowrap;
    text-align: center;
}
@media(max-width:1024px){
    .price-label{
        display:none;
    }
}
.btnSaveProd{
    color:#ef5350;
    transition:all 300ms ease-in-out;
    background:none;
    border:none;
}
.btnSaveProd:hover{
    color:#b71c1c;
}

.splide__list {
    justify-content: flex-start !important;
}

.category{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content: flex-start;
    gap:0.5rem;
    text-decoration:none;
    color:var(--bs-body-color);
}
.category .thumbnailCat{
    width:2.5rem;
    height:2.5rem;
    object-fit: contain;
    border-radius:var(--bs-border-radius);
}
.contCat{
    display:flex;
    flex-direction:column;
    gap:0.5rem;
}