/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}



a:hover {
    color: #fff;
}



.s-page-title.style-2 .content {
    padding-top: 16px;
    padding-bottom: 16px;
}

@media (min-width: 1200px) {
    .s-page-title {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

.s-page-title {
    padding: 30px 0px;
}

.page-title-blog .content {
    padding-top: 80px;
    padding-bottom: 30px;
}

@media (min-width: 1200px) {
    .slideshow-container.width-2 {
        width: calc(100% - 280px);*/ /* 280px = larghezza menu laterale */
/*margin-left: 280px;*/ /* sposta lo slider a destra */
/*transition: all .3s ease;
    }
}

.text-blue {
    color: #436be4;
}*/


/* MODIFICHE SAM DEL 26/11/2025 */
.item-link {
    font-size: 16px;
}

.tf-header .name-category {
    font-size: 16px;
}

.menu-item-has-children {
    position: relative;
}

    .menu-item-has-children .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        padding: 10px 0;
        min-width: 160px;
        border-radius: 4px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
    }

    .menu-item-has-children:hover .submenu {
        display: block;
    }

.submenu li {
    list-style: none;
}

    .submenu li a {
        display: block;
        padding: 8px 15px;
        white-space: nowrap;
        color: #333;
        text-decoration: none;
    }

        .submenu li a:hover {
            background: #f1f1f1;
        }

.tf-select-custom {
    max-width: 200px;
}

.menu-item:hover .item-link .icon.no-rotate {
    transform: none;
}

.s-page-title.style-2 .content {
    padding-bottom: 16px;
    border-top: none;
}

/* versione maggiore di 1200px per navbar fissa in alto fissa su scrool */
/*.tf-header.is-fixed .col-left {
    gap: 10px;
}*/
.tf-header.is-fixed .box-nav-menu {
    gap: 15px;
}

.tf-header.is-fixed .item-link {
    font-size: 14px;
}

.tf-header.is-fixed .name-category {
    font-size: 14px;
}

.tf-header.is-fixed .item-link .no-rotate {
    display: none;
}

@media (min-width: 1200px) {
    .nav-icon-list {
        gap: 10px;
    }
}

@media (max-width: 1420px) {
    .tf-header .col-left {
        gap: 10px;
    }

    .tf-header .item-link {
        font-size: 14px;
    }

    .tf-header .name-category {
        font-size: 14px;
    }

    .tf-header .box-nav-menu, .tf-header.is-fixed .box-nav-menu {
        gap: 5px;
    }
}

/*MODIFICHE FRA 22/01/2026*/
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    min-width: 280px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-title {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

.toast-desc {
    margin: 2px 0 0;
    font-size: 12px;
    color: #666;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #4caf50; /* Colore successo */
    width: 100%;
    animation: progress 3s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Container principale del prodotto nel carrello */
.tf-mini-cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 30px 20px 0; /* padding-right per lasciare spazio al pulsante rimuovi */
    border-bottom: 1px solid #f2f2f2;
    position: relative;
    align-items: flex-start;
}

/* Immagine prodotto */
.tf-mini-cart-image img {
    width: 90px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    background-color: #f9f9f9;
    border: 1px solid #efefef;
}

/* Info prodotto (Titolo e Prezzo) */
.tf-mini-cart-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

    .tf-mini-cart-info .name {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a1a;
        text-decoration: none;
        line-height: 1.4;
        padding-right: 25px; /* Spazio per l'icona X */
        text-transform: capitalize; /* Rende meno aggressivo il tutto maiuscolo */
    }

    .tf-mini-cart-info .price {
        font-size: 15px;
        font-weight: 500;
        color: #666;
    }

/* Selettore di quantità a "Pillola" */
.tf-mini-cart-qty {
    margin-top: 10px;
}

.wg-quantity {
    display: flex;
    align-items: center;
    background: #f4f4f4; /* Sfondo grigio chiaro */
    border-radius: 50px; /* Forma a pillola */
    padding: 4px 12px;
    width: fit-content;
    transition: background 0.3s ease;
}

    .wg-quantity:hover {
        background: #eeeeee;
    }

.btn-quantity {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    color: #333;
    user-select: none;
    transition: transform 0.1s ease;
}

    .btn-quantity:active {
        transform: scale(0.8);
    }

.wg-quantity input {
    width: 35px;
    border: none !important; /* Rimuove il box nero */
    background: transparent !important;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    outline: none;
    pointer-events: none; /* Impedisce l'editing manuale se vuoi solo i tasti +/- */
}

/* Icona Rimuovi (X) */
.remove-from-cart {
    position: absolute;
    top: 15px;
    right: 5px;
    cursor: pointer;
    color: #999;
    font-size: 20px;
    transition: color 0.2s ease;
    padding: 5px;
    z-index: 10;
}

    .remove-from-cart:hover {
        color: #dc3545; /* Rosso al passaggio */
    }

/* Opzionale: Effetto hover sull'intera riga */
.tf-mini-cart-item:hover {
    background-color: #fafafa;
    border-radius: 8px;
}

.tf-mini-cart-item .tf-mini-cart-image {
    width: auto !important;
}

    .tf-mini-cart-item .tf-mini-cart-image a {
        height: 100%
    }


.tf-field .tf-input {
    padding: 15px 20px !important;
}

.form-check .form-check-input {
    float: none !important;
    margin-left: 0 !important
}

/* ============================================
   PRODUCT CARD IMAGE - Contain instead of Cover
   Evita il taglio delle immagini prodotto
   ============================================ */
.card-product_wrapper {
    justify-content: center;
    background-color: #ffffff;
}

    .card-product_wrapper img {
        height: 300px;
        object-fit: contain !important; /* Mostra l'intera immagine senza taglio */
        object-position: center center;
    }

    .card-product_wrapper .product-img {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #ffffff;
    }

/* ============================================
   CATEGORY TREE WIDGET - Sidebar Shop
   ============================================ */
.category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tree .category-item {
    margin-bottom: 4px;
}

.category-tree .category-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.category-tree .category-link-row a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    flex-grow: 1;
}

.category-tree .category-link-row a:hover {
    color: #007bff;
}

.category-tree .category-item.active > .category-link-row a {
    color: #007bff;
    font-weight: 600;
}

/* Bottone +/- per espandere */
.category-tree .btn-toggle {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    flex-shrink: 0;
    margin-left: 8px;
}

.category-tree .btn-toggle:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.category-tree .btn-toggle:focus {
    outline: none;
    box-shadow: none;
}

/* Lista sottocategorie */
.category-tree .subcategory-list {
    list-style: none;
    padding-left: 16px;
    margin: 4px 0 0 0;
    border-left: 1px solid #e0e0e0;
}

.category-tree .subcategory-list .category-link-row {
    padding: 4px 0;
}

.category-tree .subcategory-list .category-link-row a {
    font-size: 13px;
}

/* Nested deeper */
.category-tree .subcategory-list .subcategory-list {
    border-left-color: #eee;
}

/* ============================================
   NOUISLIDER - Price Range Filter
   ============================================ */
.price-val-range {
    height: 6px;
    margin: 20px 0;
}

.noUi-target {
    background: #e9ecef;
    border-radius: 3px;
    border: none;
    box-shadow: none;
}

.noUi-connect {
    background: #007bff;
}

.noUi-horizontal .noUi-handle {
    width: 18px;
    height: 18px;
    top: -6px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    cursor: pointer;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none;
}

.noUi-handle:focus {
    outline: none;
}

.box-value-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-val {
    font-weight: 600;
}

.price-val::before {
    content: attr(data-currency);
    margin-right: 2px;
}

/* ============================================
   FILTER BUTTONS
   ============================================ */
#btn-apply-price-filter {
    font-size: 13px;
}

#btn-clear-brand {
    font-size: 12px;
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */
#load-more-container {
    margin-top: 30px;
}

#btn-load-more {
    min-width: 200px;
}

/* ============================================
   BRAND FILTER RADIO BUTTONS
   ============================================ */
.brand-filter-radio {
    cursor: pointer;
}

.brand-filter-radio:checked + label {
    font-weight: 600;
    color: #007bff;
}

/* ============================================
   WISHLIST HEART BUTTON - Stato "aggiunto"
   ============================================ */
.btn-add-wishlist.added-wishlist {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-add-wishlist.added-wishlist .icon-heart {
    color: #fff;
}

/* ============================================
   PRODUCT DETAIL GALLERY - Immagini senza taglio
   ============================================ */

/* Thumbnails (colonna sinistra) */
.tf-product-media-thumbs .item {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-product-media-thumbs .item img {
    object-fit: contain !important;
    width: 100%;
    height: 100%;
}

/* Main image (colonna destra) */
.tf-product-media-main .item {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-product-media-main .item img {
    object-fit: contain !important;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Assicura altezza uniforme per il container principale */
.flat-wrap-media-product .tf-product-media-main .item {
    min-height: 400px;
}

@media (min-width: 768px) {
    .flat-wrap-media-product .tf-product-media-main .item {
        min-height: 500px;
    }
}

@media (min-width: 1200px) {
    .flat-wrap-media-product .tf-product-media-main .item {
        min-height: 600px;
    }
}
