/* =====================================================
   STAN FORNITURE
   CUSTOM CSS
   =====================================================

   Tema: Alfastore v8.1
   Sito: https://www.stanforniture.shop

   Questo file contiene ESCLUSIVAMENTE le personalizzazioni
   del tema. Non modificare i file originali del tema.

   ===================================================== */


/* =====================================================
   CHANGELOG
   =====================================================

   v1.0
   ✔ Creazione file CSS
   ✔ Restyling Mega Menu

   v1.1
   ✔ Header

   v1.2
   ✔ Product Card

   v1.3
   ✔ Product Page

   ===================================================== */


/* =====================================================
   VARIABILI
   ===================================================== */

:root{

    /* Colori */
    --stan-green:#379b57;
    --stan-green-dark:#2f8449;
    --stan-green-light:#eef8ef;
    --stan-yellow:#ffd54f;

    --stan-white:#ffffff;
    --stan-text:#2d2d2d;
    --stan-text-light:#666666;

    --stan-border:#e8e8e8;
    --stan-bg:#f8f9fa;

    /* Bordi */
    --stan-radius:12px;
    --stan-radius-btn:30px;

    /* Ombre */
    --stan-shadow:0 10px 25px rgba(0,0,0,.15);
    --stan-shadow-light:0 2px 8px rgba(0,0,0,.08);

    /* Animazioni */
     --stan-transition:all .30s ease;

}



/* =====================================================
   MEGA MENU
   ===================================================== */

.menu_sub,
.sub-menu-dropdown,
.menu_sub.style_wide{
    background:var(--stan-green) !important;
}

.menu_sub{
    border-radius:0 0 var(--stan-radius) var(--stan-radius);
    box-shadow:var(--stan-shadow);
}

.menu_sub a{
    color:var(--stan-white) !important;
    transition:var(--stan-transition);
}

.menu_sub a:hover{
    color:var(--stan-yellow) !important;
    padding-left:8px;
}

.td_mega_menu .element_a_depth_0{
    transition:var(--stan-transition);
}

.td_mega_menu .element_a_depth_0:hover{
    color:var(--stan-yellow) !important;
}


/* =====================================================
   MENU PRINCIPALE
   ===================================================== */

.td_mega_menu .element_a_depth_0{
    transition:.25s;
}

.td_mega_menu .element_a_depth_0:hover{
    color:#ffd54f !important;
}


/* =====================================================
   PULSANTI
   ===================================================== */

.btn,
.btn-primary{

    background:var(--stan-green);
    border-color:var(--stan-green);
    border-radius:8px;
    transition:var(--stan-transition);

}

.btn:hover,
.btn-primary:hover{

    background:var(--stan-green-dark);
    border-color:var(--stan-green-dark);

}


/* =====================================================
   PRODUCT CARD
   ===================================================== */

/* Card */

.product-miniature .product-container{

    background:var(--stan-white);
    border:1px solid var(--stan-border);
    border-radius:var(--stan-radius);
    overflow:hidden;
    box-shadow:var(--stan-shadow-light);
    transition:var(--stan-transition);
}


/* Hover */

.product-miniature .product-container:hover{

    transform:translateY(-5px);
    box-shadow:var(--stan-shadow);
}


/* Immagine */

.product-miniature .thumbnail-container{

    overflow:hidden;
}


.product-miniature .thumbnail-container img{

    transition:transform .35s ease;
}


.product-miniature .product-container:hover .thumbnail-container img{

    transform:scale(1.05);
}


/* Titolo */

.product-miniature .product-title{

    min-height:48px;
}


.product-miniature .product-title a{

    color:var(--stan-text);
    font-weight:600;
    line-height:1.35;
    transition:var(--stan-transition);
}


.product-miniature .product-title a:hover{

    color:var(--stan-green);
}


/* Prezzo */

.product-miniature .product-price-and-shipping .price{

    color:var(--stan-green) !important;
    font-size:20px !important;
    font-weight:600 !important;
}


/* Pulsante */

.product-miniature .button-container{

    padding:12px;

}

/* =====================================================
   NOTA IVA PRODOTTO
   ===================================================== */

.stan-tax-note{
    display:flex;
    flex-direction:column;
    gap:3px;
    margin-top:8px;
    line-height:1.5;
}

.stan-tax-note strong{
    color:var(--stan-text);
    font-size:15px;
    font-weight:700;
}

.stan-tax-note span{
    color:var(--stan-text-light);
    font-size:14px;
}

.stan-tax-note small{
    margin-top:5px;
    color:var(--stan-green);
    font-size:13px;
    font-weight:600;
}

/* =====================================================
   PAGINA PRODOTTO
   ===================================================== */

/* Titolo pagina prodotto */

.product-infos .product_title{

    color:var(--stan-text);
    font-size:30px;
    font-weight:700;
    line-height:1.3;
    margin-bottom:20px;
}


.product-tabs{
    margin-top:60px;
}

/* Barra */

.product-tabs .nav-tabs{

    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:14px;
    margin:0 0 30px;
    padding:0;
    border:none !important;
    background:transparent;
}


/* Pillole */

.product-tabs .nav-link{

    padding:14px 28px;
    background:#f3f8f3;
    border:none !important;
    border-radius:999px;
    color:var(--stan-text);
    font-size:15px;
    font-weight:600;
    transition:var(--stan-transition);
}

/* Hover */

.product-tabs .nav-link:hover{

    background:#e7f4e7;
    color:var(--stan-green);
    transform:translateY(-2px);
}

/* Attiva */

.product-tabs .nav-link.active{

    background:var(--stan-green);
    color:#000 !important;
    box-shadow:0 8px 20px rgba(55,155,87,.25);
}

/* Contenuto */

.product-tabs .tab-content{

    background:#fff;
    border:none;
    border-radius:20px;
    padding:40px;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
}



/* =====================================================
   DOCUMENTI ALLEGATI
   ===================================================== */

.product-attachments{

    margin-top:30px;

}

.product-attachments .attachment{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    padding:20px 24px;

    margin-bottom:18px;

    background:#fff;

    border:1px solid var(--stan-border);

    border-radius:18px;

    transition:var(--stan-transition);

}

.product-attachments .attachment:hover{

    border-color:var(--stan-green);

    box-shadow:0 8px 24px rgba(0,0,0,.06);

}

.product-attachments h4{

    margin:0 0 6px;

    font-size:18px;

    font-weight:600;

}

.product-attachments p{

    margin:0;

    color:#777;

    font-size:14px;

}

/* Pulsante */

.product-attachments .btn-secondary{

    background:var(--stan-green);

    border:2px solid var(--stan-green);

    color:#000 !important;

    border-radius:30px;

    padding:12px 28px;

    font-weight:600;

    transition:var(--stan-transition);

}

.product-attachments .btn-secondary:hover{

    background:var(--stan-green-dark);

    border-color:var(--stan-green-dark);

    color:#000 !important;

    transform:scale(1.03);

}

/* Informazioni documento */

.product-attachments .attachment-info{

    flex:1;

}

.product-attachments .attachment-size{

    display:inline-block;

    margin-top:8px;

    color:#888;

    font-size:14px;

    font-weight:500;

}

.product-attachments .attachment h4{

    margin-bottom:8px;

    font-size:18px;

    font-weight:600;

}

.product-attachments .attachment p{

    margin-bottom:8px;

    color:#666;

}

.product-attachments .attachment h4 i{

    color: var(--stan-green);

    margin-right:10px;

    font-size:24px;

    vertical-align:middle;

}

/* =====================================================
   BLOCCO PREZZO
   ===================================================== */

.product-prices{

    background:#f8fbf8;
    border:1px solid #d8ead8;
    border-radius:16px;
    padding:20px;
    margin:20px 0;

}

.product-prices .current-price .price{

    color:var(--stan-green) !important;
    font-size:34px;
    font-weight:700;
    line-height:1.1;

}

.product-prices .tax-shipping-delivery-label{

    color:#666;
    font-size:14px;
    margin-top:8px;

}


/* =====================================================
   QUANTITÀ
   ===================================================== */

.product-quantity .bootstrap-touchspin{

    display:flex;
    align-items:center;
    border:2px solid #d9e8d9;
    border-radius:30px;
    overflow:hidden;
    max-width:180px;
    height:52px;

}

.product-quantity .bootstrap-touchspin input{

    border:none !important;
    box-shadow:none !important;
    text-align:center;
    font-size:18px;
    font-weight:700;
    background:#fff;

}

.product-quantity .bootstrap-touchspin .btn-touchspin{

    width:48px;
    border:none !important;
    background:#fff !important;
    color:var(--stan-green) !important;
    font-size:22px;
    font-weight:700;

    transition:var(--stan-transition);

}

.product-quantity .bootstrap-touchspin .btn-touchspin:hover{

    background:var(--stan-green-light) !important;

}



/* =====================================================
   PULSANTI PAGINA PRODOTTO
   ===================================================== */

/* Stile comune */

.product-add-to-cart .btn,
.product-btn-block .btn{

    border-radius:30px;
    font-weight:600;
    transition:var(--stan-transition);

}

/* -----------------------------------------------------
   AGGIUNGI AL CARRELLO (secondario)
   ----------------------------------------------------- */

.stan-add-cart{

    background:var(--stan-green) !important;
    border:2px solid var(--stan-green) !important;
    color:#000 !important;
    border-radius:30px;
    font-weight:700;
    padding:12px 28px;
    transition:all .30s ease;

}

.stan-add-cart:hover,
.stan-add-cart:focus,
.stan-add-cart:active,
.stan-add-cart:focus-visible{

    background:var(--stan-green-dark) !important;
    border:2px solid var(--stan-green-dark) !important;
    color:#000 !important;
    box-shadow:none !important;
    outline:none !important;
    transform:translateY(-2px);

}


/* -----------------------------------------------------
   ACQUISTA ORA (principale)
   ----------------------------------------------------- */

.buy-now{

    background:var(--stan-green);
    border:2px solid var(--stan-green);
    color:#000 !important;
    border-radius:30px;
    font-weight:700;
    padding:12px 28px;
    transition:all .30s ease;

}

.buy-now:hover{

    background:var(--stan-green-dark);
    border-color:var(--stan-green-dark);
    color:#000 !important;
    transform:translateY(-2px);

}


/* =====================================================
   WISHLIST E CONFRONTA
   ===================================================== */

.product-btn-block .wishlist,
.product-btn-block .compare{

    margin-top:18px;

}

.product-btn-block .wishlist a,
.product-btn-block .compare a{

    display:flex;
    align-items:center;
    gap:10px;

    color:#666;
    font-size:15px;
    text-decoration:none;

    transition:all .25s ease;

}

.product-btn-block .wishlist a:hover,
.product-btn-block .compare a:hover{

    color:var(--stan-green);
    transform:translateX(5px);

}

.product-btn-block .wishlist i,
.product-btn-block .compare i{

    font-size:18px;

}


/* =====================================================
   RICERCA
   ===================================================== */

/* Contenitore */

.searchbox{

    position:relative;

}

/* Campo ricerca */

.searchbox .search_query{

    height:48px;
    border:2px solid var(--stan-green);
    border-radius:30px;
    padding:0 60px 0 20px;
    font-size:15px;
    transition:var(--stan-transition);
    box-shadow:none;

}

/* Focus */

.searchbox .search_query:focus{

    border-color:var(--stan-green-dark);
    box-shadow:0 0 0 4px rgba(55,155,87,.15);

}

/* Pulsante */

.searchbox .button-search{

    background:var(--stan-green);
    border:none;
    color:#fff;
    border-radius:50%;
    width:42px;
    height:42px;
    right:3px;
    top:3px;
    transition:var(--stan-transition);

}

/* Hover */

.searchbox .button-search:hover{

    background:var(--stan-green-dark);

}


/* =====================================================
   BREADCRUMB
   ===================================================== */

.breadcrumb{

    background:#f7f7f7;
    border-radius:8px;
    padding:12px 20px;

}


/* =====================================================
   CONTENUTO TAB PRODOTTO
   ===================================================== */

/* Area contenuto */

.product-tabs .rte-content,
.product-tabs .product-description{

    color:#444;
    font-size:16px;
    line-height:1.8;

}

/* Titoli */

.product-tabs h2,
.product-tabs h3,
.product-tabs h4{

    color:var(--stan-green);

    margin-top:35px;
    margin-bottom:15px;

    font-weight:700;
}

/* Paragrafi */

.product-tabs p{

    margin-bottom:18px;

}

/* Liste presenti nel contenuto delle tab */

.product-tabs .tab-content ul{

    padding-left:20px;
}

.product-tabs .tab-content li{

    margin-bottom:10px;
}

/* Tabelle */

.product-tabs table{

    width:100%;

    border-collapse:collapse;

    margin:25px 0;
}

.product-tabs table th{

    background:#f5f8f5;

    color:var(--stan-green);

    padding:14px;

    border:1px solid var(--stan-border);
}

.product-tabs table td{

    padding:14px;

    border:1px solid var(--stan-border);
}

/* Immagini */

.product-tabs img{

    max-width:100%;

    border-radius:12px;

}

/* Link */

.product-tabs a{

    color:var(--stan-green);

    font-weight:600;

    text-decoration:none;

}

.product-tabs a:hover{

    text-decoration:underline;

}

/* =====================================================
   ICONE PRODUCT TABS
   ===================================================== */

.product-tabs .nav-link{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.product-tabs .nav-link i{
    font-size:18px;
}

.product-tabs .nav-link.active i{
    color:#000;
}

.product-tabs .nav-link:hover i{
    color:var(--stan-green);
}

/* Accordion mobile */

.product-tabs .accordion-tab-title{
    display:flex;
    align-items:center;
    gap:10px;
}

.product-tabs .accordion-tab-title i{
    color:var(--stan-green);
    font-size:20px;
}

/* =====================================================
   RASSICURAZIONI CLIENTE - PAGINA PRODOTTO
   ===================================================== */

.blockreassurance_product{

    display:flex;
    flex-direction:column;
    gap:14px;

    margin-top:24px;

}

.blockreassurance_product .list-group{

    display:grid;
    grid-template-columns:46px 1fr;
    align-items:center;
    gap:14px;

    margin:0;
    padding:16px 18px;

    background:#fff;
    border:1px solid var(--stan-border);
    border-radius:16px;

    box-shadow:0 4px 14px rgba(0,0,0,.04);

    transition:var(--stan-transition);

}

.blockreassurance_product .list-group:hover{

    border-color:var(--stan-green);
    box-shadow:0 8px 20px rgba(0,0,0,.07);
    transform:translateY(-2px);

}

/* Icona */

.blockreassurance_product .item-product{

    display:flex;
    align-items:center;
    justify-content:center;

    width:42px;
    height:42px;

    margin:0;

    background:var(--stan-green-light);
    border-radius:50%;

}

.blockreassurance_product .item-product img{

    display:block !important;
    width:24px;
    height:24px;
    object-fit:contain;

    opacity:1 !important;
    visibility:visible !important;

}

/* Testo */

.blockreassurance_product .block-title{

    color:var(--stan-text) !important;
    font-size:14px;
    line-height:1.5;
    font-weight:500;

}


/* =====================================================
   DISPONIBILITÀ PRODOTTO
   ===================================================== */

/* Blocco quantità disponibile */

.product-quantities{

    display:flex;
    align-items:center;
    gap:8px;

    margin:14px 0;

    color:var(--stan-text);

}

.product-quantities .label{

    font-weight:700;

}

.product-quantities span{

    color:var(--stan-green);
    font-weight:700;

}

/* Stato disponibilità */

#product-availability{

    display:inline-flex;
    align-items:center;
    gap:6px;

    margin-top:10px;

    color:var(--stan-green);
    font-weight:700;

}

#product-availability .product-available{

    color:var(--stan-green);

}

/* =====================================================
   SCONTI QUANTITÀ
   ===================================================== */

.table-product-discounts{
    width:100%;
    margin:22px 0 0;

    border-collapse:separate;
    border-spacing:0;

    background:#fff;
    border:1px solid var(--stan-border);
    border-radius:16px;
    overflow:hidden;

    box-shadow:0 6px 20px rgba(0,0,0,.04);
}

/* Intestazione */

.table-product-discounts thead th{
    padding:14px 16px;

    background:var(--stan-green-light);
    border:none !important;
    border-bottom:1px solid var(--stan-border) !important;

    color:var(--stan-text);
    font-size:14px;
    font-weight:700;
    text-align:center;
}

/* Celle */

.table-product-discounts tbody td{
    padding:16px;

    background:#fff;
    border:none !important;
    border-bottom:1px solid var(--stan-border) !important;

    color:var(--stan-text);
    font-size:15px;
    font-weight:600;
    text-align:center;
}

.table-product-discounts tbody tr:last-child td{
    border-bottom:none !important;
}

/* Evidenzia il risparmio */

.table-product-discounts tbody td:last-child{
    color:var(--stan-green);
    font-weight:700;
}

/* Hover riga */

.table-product-discounts tbody tr{
    transition:var(--stan-transition);
}

.table-product-discounts tbody tr:hover td{
    background:#f8fbf8;
}

/* =====================================================
   RIEPILOGO PRODOTTO CHECKOUT
   ===================================================== */

.cart-summary .stan-summary-product-prices{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-top:6px;
    padding:6px 10px;

    background:#f7fbf7;

    border:1px solid #e5efe6;
    border-radius:8px;

}

.cart-summary .stan-summary-product-prices .price{

    color:var(--stan-green);

    font-size:15px;
    font-weight:700;

}

.cart-summary .stan-summary-product-prices .price small{

    color:#666;

    font-size:12px;
    font-weight:500;

}

.cart-summary .stan-summary-product-prices .qty{

    color:#555;

    font-size:13px;
    font-weight:600;

}


/* TEST STAN 2026 v1.3 */