/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */ 

.woo-heading-product{
    text-align: center;
    /*padding: 20px 0;    */
    color: #000;
    text-transform: capitalize;
}

.woo-grid-layout{
    display: grid;
    grid-template-columns: repeat(3, 32%); /* Default a 1 colonna */
    gap: 2%;
    width: 100%;
}

.woo-product-box{
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    box-sizing: border-box;
}

.woo-product-box img {
    max-width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
}

.woo-product-text-title {
    text-align: center;
}

.woo-product-text-size h3 {
    text-align: center;
    text-transform: uppercase;
}

.woo-product-text-title h5 {
    font-size: 16px!important;
    color: dimgrey;
}

.woo-product-text-size h3 {
    margin-bottom: 0px;
}

.woo-product-quantity {
    display: grid;
    grid-template-columns: 20% 60% 20%;
}


/* Chrome, Safari, Edge (Chromium), Opera */
.variation_qty::-webkit-outer-spin-button,
.variation_qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.variation_qty {
  -moz-appearance: textfield;
  appearance: textfield; /* fallback moderno: molti browser tolgono gli spinner */
}

/* evidenzia quando la quantità è > 0 (cioè :valid perché min=1) */
.variation_qty:valid {
  background-color: #d4edda !important; /* verde chiaro */
  transition: background-color 0.3s ease;
}

/* opzionale: niente alone rosso quando è vuoto o a 0 */
.variation_qty:invalid {
  box-shadow: none;
  outline: none;
}

/* se vuoi evitare il verde quando mostra solo il placeholder */
.variation_qty:placeholder-shown {
  background-color: initial !important;
}

/* ADD PRODUCT CERTIFICATE END  */ 

/* RESPONSIVE BEGIN */

@media screen and (max-width: 768px) {
    .woo-grid-layout{
        display: grid;
        grid-template-columns: repeat(2, 49%); /* Default a 1 colonna */
        gap: 2%;
        width: 100%;
    }
    .woo-product-text h3{
        font-size: 15px;
    }
    h1{
        font-size: 25px;
    }
    .woo-custom-add-to-cart {
        margin-top: 10%!important;
    }
}

/* Hide variations  */
.variations{
    display: none !important;
}

.qty_increment, .qty_decrement {
    background: rgba(255, 255, 255, 0);
    padding: 4px;
    text-align: center;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

.woocommerce-variation-add-to-cart{
    display: none !important;
}

.woo-custom-add-to-cart {
    margin-top: 10%;
    display: grid;
    justify-content: space-between;
}

.woo-custom-add-to-cart input{
    width: 300px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

input#custom-add-to-cart-button {
    height: 50px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

input#custom-add-to-cart-button:enabled {
    color: black;
    background-color: #FBF613;
    border-radius: 0px;
    font-family: "Poppins", Sans-serif;
    font-weight: 600;
}

input#custom-add-to-cart-button:enabled:hover {
    color: white;
    background-color: black;
    border-radius: 0px;
    font-family: "Poppins", Sans-serif;
    font-weight: 600;
}

input#custom-add-to-cart-button:disabled {
    color: white;
    background-color: grey!important;
    border-radius: 0px;
    font-family: "Poppins", Sans-serif;
    font-weight: 600;
}

input#variation_qty{
    margin-bottom: 0px!important;
    text-align: center;
}

.product--sizes .notify--sizes-list,.product--sizes .product--sizes-list {
    display: flex;
    flex-wrap: wrap;
}

.product--sizes .notify--sizes-list li,.product--sizes .product--sizes-list li {
    display: flex;
    flex: 0 0 130px;
    padding-bottom: 10px;
    padding-right: 10px
}

div#woo-total {
    display: none;
}


/*------------ START Switch custom ------------*/
.switch-availability {
    margin-bottom: 10px;
}
.onoffswitch {
    position: relative; width: 220px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #787878; border-radius: 0px;
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px;
    font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-sizing: border-box;
    font-family: "Poppins", Sans-serif; /* Applicazione del nuovo font */
}
.onoffswitch-inner:before {
    content: "Disponibilità immediata";
    padding-left: 10px;
    background-color: #FFFFFF; color: #000000;
}
.onoffswitch-inner:after {
    content: "Ordinabile";
    padding-right: 10px;
    background-color: #FFFFFF; color: #000000;
    text-align: right;
}
.onoffswitch-switch {
    display: block; width: 18px; margin: 6px;
    background: #FFA600;
    position: absolute; top: 0; bottom: 0;
    right: 190px;
    border: 2px solid #787878; border-radius: 0px;
    transition: all 0.3s ease-in 0s; 
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px; 
    background-color: #45FF24; 
}
/*------------ END Switch custom ------------*/


/*-------------- Radio styles -----------------*/
.epradio-group{
    margin-bottom: 20px !important;
}
.epradio-button{
	width: 100%;
	display:flex;
	align-items: center;
	justify-content: flex-end;
	flex-direction: row-reverse;
	margin-bottom: 10px;
	font-size: 14px;
	cursor: pointer;
}
.epradio-button input{
	display:none;
	width: 0;
	height: 0;
}
.epradio-button span{
	width: 24px;
	height: 24px;
	position: relative;
	margin-right: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0%;
	background-color: #bdbdbd;
}
.epradio-button input:checked + span:after{
	content: "";
	display: block;
	width: 24px;
	height: 24px;
	border-radius: 0%;
	background-color: #EEFB13;
}
.epradio-button input:checked + span {
	background-color: #EEFB13;
}
.epradio-button input:disabled + span {
	background-color: #e5e5e5;
}
.epradio-button span:before{
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	opacity: 0;
	border-radius: 0%;
	background-color: #76b176;
}
hr.ephr {
    border-top: 0px solid gray;
    margin: 20px 0px !important;
    width: 66%;
}
/*-------------- Checkbox styles -----------------*/
