#product-filter:has(#filter-steps) #filtered-products .woof_autohide_wrapper {
    display: none;
}
#product-filter:has(#filter-steps) #filtered-products .woocommerce-ordering {
    display: none;
}
/* #product-filter:has(#filter-steps) #filtered-products .woocommerce-result-count {
    display: none!important;
} */
#reset-filter {
    border: none;
    color: #C00;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    aspect-ratio: 1 / 1;
    line-height: 0;
    background: #e6e6e6;
}
#reset-filter:hover {
    color: #900;
}
.radio-card-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin: 1rem 0;
}

.radio-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 65px;
    /* border: 2px solid #ddd; */
    border-radius: 3px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    background: #E6E6E6;
   
    /* transition: all 0.3s ease; */
}
.radio-card-content {
 color: #333333!important;
 font-size: 14px!important;
 text-transform: uppercase;
 font-family: "Oswald";
 font-weight: 500;
 text-align: center;
}
.radio-card:hover {
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.radio-card input[type="radio"] {
    display: none;
}


 
.radio-card:has(input[type="radio"]:checked)  {
    /* border: 2px solid #000; */
    background: #C6A664;
    /* border-radius: 8px;
    padding: 0.5rem;
    display: inline-block; */
}
.radio-card:has(input[type="radio"]:checked  ) .radio-card-content {
   color: white!important;
}

.btn-confirm,
.btn-back {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 3px;
    background: #333;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.btn-confirm:hover,
.btn-back:hover {
    background: #000;
}

/* @media (max-width: 768px) { */
    #filter-steps-wrapper details {
        display: block;
        border: 1px solid #ccc;
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 1rem;
        background: #f9f9f9;
    }

    #filter-steps-wrapper summary {
        padding: 1rem;
        font-weight: bold;
        cursor: pointer;
        background: #f8f8f8;
        border-bottom: 1px solid #ccc;
        text-transform: uppercase;
        font-size: 14px;
    }

    #filter-steps {
        padding: 1rem;
    }
/* } */

/* Spinner overlay */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    display: none;
}

.loader-overlay.active {
    display: flex;
}

.loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




/* SIDEBAR MODELLI */
/* SIDEBAR COMUNE */
.sidebar-subcategories {
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.sidebar-title {
    font-weight: bold;
    font-size: 16px;
    font-family: "Oswald";
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}
.subcategory-item {
    margin-bottom: 0.5rem;
    margin-left: 16px;
    font-size: 14px;
    font-family: "Oswald";
    font-weight: 400;
}
.subcategory-item a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}
.subcategory-item a:hover {
    color: #C6A664;
}
.back-to-parent {
    margin-top: 1rem;
}
.back-to-parent a {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
}

/* SIDEBAR DESKTOP visibile solo da 769px in su */
.sidebar-desktop {
    display: block;
}
@media (max-width: 768px) {
    .sidebar-desktop {
        display: none;
    }
}

/* PULSANTE MOBILE */
.open-sidebar-btn {
    display: none;
    background: #C6A664;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    font-weight: bold;
    border-radius: 3px;
    margin-bottom: 1rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    .open-sidebar-btn {
        display: inline-block;
    }
    .result-ordering-row {
        flex-direction: column;
        align-items: start!important;
        gap: 16px;
    }
}

/* OVERLAY MOBILE */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: flex-start;
    z-index: 1000;
}
.sidebar-overlay.active {
    display: flex;
}

.sidebar-subcategories-wrapper {
    width: 80%;
    max-width: 300px;
    background: #fff;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

/* Pulsante chiusura */
.close-sidebar-btn {
    background: none;
    border: none;
    color: #C6A664;
    font-size: 16px;
    font-weight: bold;
    margin-top: 1rem;
    cursor: pointer;
}


.product .woocommerce-loop-product__title {
    font-family: "Oswald"!important;
    color: black;
    font-weight: 500;
    font-size: 16px;
}

.product .price .woocommerce-Price-amount {
    font-family: "Oswald"!important;
    color: black;
    font-weight: 400;
    font-size: 14px;
}
.product .mtdgt-product-meta {
    font-family: "Oswald"!important;
    color: black;
    font-weight: 400;
    font-size: 16px;
}
.product .button.add_to_cart_button  {
    background-color: rgb(198, 166, 100)!important;
    border-radius: 4px;
    font-family: "Oswald"!important;
    color: white;
    font-weight: 400;
    font-size: 16px;
}
.product .button.add_to_cart_button:hover  {
    background-color: rgb(156, 130, 77)!important;
    color: white;
}
.product .stock {
    font-family: "Oswald"!important;
    color: black!important;
    font-weight: 400;
}
.woocommerce-result-count {
     font-family: "Oswald"!important;
    color: black!important;
    font-weight: 400;
}


 /* Loader */
#ajax-loader { display:none; position:absolute; top:0; left:0; right:0; bottom:0; background:rgba(255,255,255,0.7); z-index:999; }
#ajax-loader.active { display:block; }
.loader-spinner { position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:50px; height:50px; border:5px solid #ccc; border-top-color:#000; border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { 0%{transform:translate(-50%,-50%) rotate(0deg);} 100%{transform:translate(-50%,-50%) rotate(360deg);} }

/* Paginazione WooCommerce */
.woocommerce-pagination { text-align:center; margin:20px 0; }
.woocommerce-pagination ul { display:inline-block; list-style:none; padding:0; margin:0; }
.woocommerce-pagination li { display:inline; margin:0 3px; }
.woocommerce-pagination a, .woocommerce-pagination span { display:inline-block; padding:6px 12px; border:1px solid #ddd; color:#333; text-decoration:none; }
.woocommerce-pagination .current { background:#333; color:#fff; border-color:#333; }
.woocommerce-pagination a:hover { background:#eee; }
.woo-row-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
@media (max-width: 768px) {
    .woo-row-filter {
        flex-direction: column;
        align-items: start;
    }
}