/*
this css file is used to style products in woo-commerce pages
especially in the shop page, product page and category page
 */

.woocommerce .woocommerce-result-count {
    display: none;
}

.woocommerce-page a {
    color: #004E54;
}
.woocommerce-page .wc-block-components-button {
    width: 100%;
    background-color: #985448;
    text-align: center;
    padding: 10px 0;
    color: #fff;
    font-family: 'AlegreyaSans-Medium', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 10px;
    border: 0;
}

.woocommerce-page .wc-block-components-button:hover {
    background-color: #7A433A;
}

.woocommerce-page .wc-block-components-button:focus {
    background-color: #7A433A;
    box-shadow: inset 0 0 0 0 !important;
    outline: 3px solid transparent;
}

.woocommerce .woocommerce-ordering {
    float: left;
    position: relative;
    display: table;
}

.woocommerce .woocommerce-ordering::after {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyNSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xOC4yMTE3IDBDMTguNTAzNyAwIDE4Ljc4MzIgMC4xMTc4OTIgMTguOTg2MiAwLjMyNjY5MUwyNC42OTc0IDYuMjAwMkMyNS4xMTEyIDYuNjI1NzcgMjUuMDk5OSA3LjMwNDQ5IDI0LjY3MjEgNy43MTYxN0MyNC4yNDQzIDguMTI3ODQgMjMuNTYyMSA4LjExNjU4IDIzLjE0ODMgNy42OTEwMUwxOS4yODkzIDMuNzIyMzRWMTguMTU4N0MxOS4yODkzIDE4Ljc1MDggMTguODA2OCAxOS4yMzA4IDE4LjIxMTcgMTkuMjMwOEMxNy42MTY1IDE5LjIzMDggMTcuMTM0IDE4Ljc1MDggMTcuMTM0IDE4LjE1ODdWMy43MjIzNEwxMy4yNzUgNy42OTEwMUMxMi44NjEyIDguMTE2NTggMTIuMTc5IDguMTI3ODQgMTEuNzUxMiA3LjcxNjE3QzExLjMyMzUgNy4zMDQ0OSAxMS4zMTIxIDYuNjI1NzcgMTEuNzI2IDYuMjAwMkwxNy40MzcxIDAuMzI2NjkxQzE3LjY0MDEgMC4xMTc4OTIgMTcuOTE5NyAwIDE4LjIxMTcgMFoiIGZpbGw9IiNERDk5NzgiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02Ljc4ODgyIDBDNy4zODM5OCAwIDcuODY2NDYgMC40Nzk5OTUgNy44NjY0NiAxLjA3MjFWMTUuNTA4NEwxMS43MjU0IDExLjUzOThDMTIuMTM5MiAxMS4xMTQyIDEyLjgyMTUgMTEuMTAyOSAxMy4yNDkyIDExLjUxNDZDMTMuNjc3IDExLjkyNjMgMTMuNjg4MyAxMi42MDUgMTMuMjc0NSAxMy4wMzA2TDcuNTYzMzYgMTguOTA0MUM3LjM2MDMzIDE5LjExMjkgNy4wODA4MiAxOS4yMzA4IDYuNzg4ODIgMTkuMjMwOEM2LjQ5NjgxIDE5LjIzMDggNi4yMTczIDE5LjExMjkgNi4wMTQyNyAxOC45MDQxTDAuMzAzMDk5IDEzLjAzMDZDLTAuMTEwNzA4IDEyLjYwNSAtMC4wOTkzODggMTEuOTI2MyAwLjMyODM4MiAxMS41MTQ2QzAuNzU2MTUyIDExLjEwMjkgMS40MzgzOCAxMS4xMTQyIDEuODUyMTkgMTEuNTM5OEw1LjcxMTE3IDE1LjUwODRWMS4wNzIxQzUuNzExMTcgMC40Nzk5OTUgNi4xOTM2NSAwIDYuNzg4ODIgMFoiIGZpbGw9IiNERDk5NzgiLz4KPC9zdmc+Cg==');
    display: block;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 25px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
}

.woocommerce .woocommerce-ordering select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 30px;
    background-color: transparent;
    border: 0px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'AlegreyaSans-Regular', sans-serif;
}

.woocommerce .woocommerce-ordering select option {
    background-color: white;
    font-family: 'AlegreyaSans-Regular', sans-serif;
    color: black;
}

.woocommerce li.product:before {
    content: none;
}

.page-content .wc-block-checkout ul li:before {
    content: none;
}

.page-content .wc-block-checkout ul li:hover, .page-content .wc-block-checkout ul li:focus, .page-content .wc-block-checkout ul li:active {
    background-color: #004E54 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    content: none;
}
.woocommerce ul.order_details li:before {
    content: none;
}

.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
}

.woocommerce-LoopProduct-link span {
    order: 1;
    font-family:'AlegreyaSans-Bold', sans-serif;
    font-size: 24px;
    color: #985448;
    text-indent: 0;
    margin: 16px 0;
    text-align: left;
}

.woocommerce-LoopProduct-link h2 {
    order: 2;
    font-size: 16px;
    line-height: 19px;
    text-indent: 0;
    color: #000011;
    text-align: left;
    font-family: 'AlegreyaSans-Regular', sans-serif;
}

.woocommerce-LoopProduct-link img {
    position: relative;
    width: 265px;
    height: 267px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    background-size: 100%;
    background-repeat: no-repeat;
}

.woocommerce-LoopProduct-link:hover img {
    background-color: #FFF0EC;
}

.woocommerce ul.products {
    border-top: 2px solid #DD9978;
    padding-top: 28px;
    display: table;
    margin: 10px auto 0;
    width: 100%;
    vertical-align: top;
    text-align: center;
}
.woocommerce ul.products li.product {
    float: none;
    display: inline-block;
    width: 250px;
    min-height: 400px;
    margin: 0 3px 60px;
    margin-bottom: 20px;
    vertical-align: top;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
}

.woocommerce ul.products li.product .add_to_cart_button {
    position: absolute;
    top: 194px;
    left: 0;
    width: 100%;
    background-color: #985448;
    text-align: center;
    padding: 10px 0;
    color: #fff;
    font-family: 'AlegreyaSans-Medium', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    border-radius: 10px;
    display: none;
}

.woocommerce ul.products li.product:hover .add_to_cart_button {
    display: block;
}

.woocommerce ul.products li.product .add_to_cart_button:hover {
    background-color: #7A433A;
}

.woocommerce .added_to_cart.wc-forward {
    display: none;
}


@media screen and (max-width: 1280px){
    .woocommerce ul.products li.product .add_to_cart_button {
        display: block;
    }}


.woocommerce div.product div.summary {
    display: flex;
    flex-direction: column;
}

.woocommerce div.product div.summary p.price {
    order: 2;
    font-family:'AlegreyaSans-Bold', sans-serif;
    font-size: 24px;
    color: #985448;
    text-indent: 0;
    margin: 16px 0;
    text-align: left;
}

.woocommerce div.product div.summary .woocommerce-product-details__short-description {
    order: 1;
}

.woocommerce div.product div.summary .cart {
    order: 3;
}

.woocommerce div.product div.summary .cart .quantity {
    display: none;
}

.woocommerce div.product div.summary .cart .single_add_to_cart_button {
    width: 100%;
    background-color: #985448;
    text-align: center;
    padding: 10px 0;
    color: #fff;
    font-family: 'AlegreyaSans-Medium', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    border-radius: 10px;
}

.woocommerce div.product div.summary .cart .single_add_to_cart_button:hover {
    background-color: #7A433A;
    display: block;
}

.woocommerce div.product div.summary .product_meta {
    order: 4;
}

@media only screen and (max-width: 768px) {
    .woocommerce ul.products[class*=columns-] li.product:nth-child(2n), .woocommerce-page ul.products[class*=columns-] li.product:nth-child(2n) {
        float: none;
    }
    .woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product {
        width: 250px;
        float: none;
        margin: 0 3px 0px;
    }
}

/* Stile generale per gli input del checkout WooCommerce */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    padding: 10px 15px; /* Aumenta lo spazio interno */
    border-radius: 5px; /* Angoli arrotondati */
    border: 1px solid #ccc; /* Bordo sottile e grigio */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Aggiunge un'ombra sottile */
    margin-bottom: 15px; /* Spazio tra gli input */
    width: 100%; /* Assicura che gli input siano larghi quanto il contenitore */
    transition: all 0.3s ease; /* Aggiunge una transizione morbida */
}

/* Cambiamento del colore di bordo e ombra al passaggio del mouse */
.woocommerce-checkout input[type="text"]:hover,
.woocommerce-checkout input[type="email"]:hover,
.woocommerce-checkout input[type="tel"]:hover,
.woocommerce-checkout input[type="password"]:hover,
.woocommerce-checkout input[type="number"]:hover,
.woocommerce-checkout select:hover,
.woocommerce-checkout textarea:hover {
    border-color: #999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Cambiamento del colore di bordo e ombra quando l'input è focalizzato */
.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout input[type="password"]:focus,
.woocommerce-checkout input[type="number"]:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #0073aa; /* Colore di bordo al focus */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombra più evidente */
    outline: none; /* Rimuove il bordo di default del browser */
}

/* Stile per i placeholder degli input */
.woocommerce-checkout input::placeholder,
.woocommerce-checkout textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Stile per i checkbox e spazio dopo di essi */
.woocommerce-checkout input[type="checkbox"] {
    margin-right: 10px; /* Spazio tra il checkbox e il testo */
}

.components-form-token-field__suggestion:hover {
    background-color: #004E54 !important;
    color: #fff;
}

.components-form-token-field__suggestion:before {
    content: none !important;
}

.woocommerce-checkout ul.woocommerce-shipping-methods li:before,
.woocommerce-checkout ul.wc_payment_methods li:before {
    content: none !important;
}

form#order_review #payment ul.wc_payment_methods li {
    padding-left: 15px !important;
}

.woocommerce-checkout ul.woocommerce-shipping-methods li,
.woocommerce-checkout ul.wc_payment_methods li {
    padding: 0 !important;
}

#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background: #f2f1f6;
    border-radius: 5px;
}

button#place_order,
#payment input[type="submit"] {
    width: 100%;
    background-color: #985448;
    text-align: center;
    padding: 10px 0;
    color: #fff;
    font-family: 'AlegreyaSans-Medium', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
}

button#place_order:hover,
#payment input[type="submit"]:hover {
    background-color: #7A433A;
}

button#place_order:focus,
#payment input[type="submit"]:focus {
    background-color: #7A433A;
    box-shadow: inset 0 0 0 0 !important;
    outline: 3px solid transparent;
}

.woocommerce form .form-row .required {
    color: #ffa601;
}


.woocommerce form .form-row.woocommerce-invalid label {
    color: #ffa601;
}
.woocommerce form .form-row.woocommerce-invalid .select2-container,.woocommerce form .form-row.woocommerce-invalid input.input-text,.woocommerce form .form-row.woocommerce-invalid select{
    border-color: #ffa601;
}
.woocommerce form .form-row.woocommerce-validated .select2-container,.woocommerce form .form-row.woocommerce-validated input.input-text,.woocommerce form .form-row.woocommerce-validated select{
    border-color: #1d7a7b;
}