/* dimensione  e padding menu a discesa cliente */

.elementor-sub-item {
  width: 400px;
}

/* correzione larghezza pagina cookies */

#cmplz-document {
   max-width: 1800px !important;
}

/* padding tabelle */

.variations th {
    padding: 0px !important;
}

/* eliminazine spaziatura form nwesletter */

.sib-form {
    padding: 0px 0px 0px !important;
    margin: 0;
}

/* padding tabelle */

body.prodotto-presto-disponibile .single_add_to_cart_button,
body.prodotto-presto-disponibile .cart,
body.prodotto-presto-disponibile form.variations_form,
body.prodotto-presto-disponibile .woocommerce-variation-add-to-cart {
    display: none !important;
}

/* colore tabelle */

th {
    background-color: white !important;
}

td {
    background-color: white !important;
}


/* nascondere prodotti correlati nel carello */

.woocommerce-related-products 

{
   display: none !important;
}

/* sistemare colore prodotto omaggio */

.ywdpd_popup .single_add_to_cart_button, .ywdpd_popup .product_taxonomy.button {

    background-color: #f5c6cf !important;
	}

.ywdpd_popup .ywdpd_popup_general_content .ywdpd_popup_content .ywdpd_popup_stage .ywdpd_popup_items li.item h5 {
    color: black !important;
}

/* sistemare loop video */

.elementor-214003 .elementor-element.elementor-element-cab33b6 .elementor-widget-container {
    margin: 0px 0px -90px 0px !important;
}


.elementor-222656 .elementor-element.elementor-element-25224a2 .elementor-widget-container{
    margin: 0px 0px -95px 0px !important;
}

/* bordino nero variante colore - pagina prodotto */

.elementor-widget-image img{
    border-radius:5px;
}

/* miniature colore prodotto */
.woocommerce div.product .elementor-widget-image img{
    border-radius:5px;
    transition:0.15s ease;
}

/* bordo immagine selezionata */
.woocommerce div.product .elementor-widget-image:first-child img{
    box-shadow: 
        0 0 0 2px #fff,
        0 0 0 3px #000;
}




.elementor-widget-image img{
    transition:0.15s ease;
}

.elementor-widget-image img:hover{
    transform:scale(0.95);

}








/* SWATCHES PER PRODOTTI CON 2 VARIANTI INTEGRATE (COME PIGIAMI, SATIN...) */

/* SOLO SWATCHES COLORE */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 260px;
}

/* BOX COLORE */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] .variable-item {
    width: 100% !important;
    aspect-ratio: 3 / 4;
    height: auto !important;
    padding: 0 !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

/* IMMAGINE */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] .variable-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* HOVER */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] .variable-item:hover {
    border: 1px solid #999;
}

/* SELEZIONATO */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] .variable-item.selected {
    border: 2px solid #000 !important;
}


.variable-items-wrapper[data-attribute_name="attribute_pa_color"] img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
}



/* Metti Color sopra Size nel box variazioni */
table.variations tbody {
    display: flex;
    flex-direction: column;
}

table.variations tr:has(.variable-items-wrapper[data-attribute_name="attribute_pa_color"]) {
    order: 1;
}

table.variations tr:has(.variable-items-wrapper[data-attribute_name="attribute_pa_size"]) {
    order: 2;
}





/* Stampa nome colore nella varianrte colore della pagina prodotto */

/* Griglia swatch colore */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

/* Singolo item */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] li.variable-item {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-sizing: border-box;
}

/* Box immagine: stessa dimensione per tutti */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] li.variable-item .variable-item-contents {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    box-sizing: border-box;
}

/* Immagine */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] li.variable-item img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

/* Label sotto */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] .my-color-label {
    width: 100%;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.2;
    color: #444;
    text-align: center;
}

/* Stato selezionato */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] li.variable-item.selected .variable-item-contents {
    border: 2px solid #000;
}





/* RIMUOVE LA SPUNTA (✓) NELLA SCELTA DEL COLORE NELLA PAGINA PRODOTTO */

.variable-items-wrapper[data-attribute_name="attribute_pa_color"] 
.variable-item.selected .variable-item-contents::before,
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] 
.variable-item.selected .variable-item-contents::after,
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] 
.variable-item.selected i,
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] 
.variable-item.selected svg {
    display: none !important;
    content: none !important;
}
}

/* Contenitore esterno: nessun bordo */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] li.variable-item {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Box immagine normale */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] li.variable-item .variable-item-contents {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #bdbdbd !important;
    box-sizing: border-box;
    background: #fff;
}

/* Solo quando selezionato: bordo nero solo sulla foto */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] li.variable-item.selected .variable-item-contents {
    border: 2px solid #000 !important;
    box-shadow: none !important;
}

/* Testo sotto senza box */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] .my-color-label {
    width: 100%;
    margin-top: 6px;
    text-align: center;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Rimuove eventuali bordi extra del plugin sul selezionato */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] li.variable-item.selected {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}




/* RIMUOVE IL BOX GRIGIO ESTERNO */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] 
li.variable-item {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* RIMUOVE EVENTUALE BOX INTERNO EXTRA */
.variable-items-wrapper[data-attribute_name="attribute_pa_color"] 
.variable-item .variable-item-contents {
    background: transparent !important;
}

