/*
Theme Name: Twenty Seventeen Child
Theme URI: https://wordpress.org/themes/twentyseventeen/
Description: WooCommerce styles — La Mirteria
Author: Lorenzo
Version: 1.1.0
*/

/* ---------------------------------------------------------------
   WOO — STRUTTURA GENERALE DELLO SHOP
   - Spaziatura coerente con il tema
   - Contenitore centrato
--------------------------------------------------------------- */
.la-mirteria-shop .site-content {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.woocommerce-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.woo-site-main {
    width: 100%;
}

/* ---------------------------------------------------------------
   WOO — BREADCRUMB E TITOLI
   - Colori e font coerenti con il tema
--------------------------------------------------------------- */
.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 1.5rem;
    color: #6f6a5f;
    font-size: 0.95rem;
    font-family: Inter, sans-serif;
}

.woocommerce .page-title,
.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce div.product .product_title {
    color: #fffff; //#231f20;
    letter-spacing: 0.03em;
    font-family: Inter, sans-serif;
}

/* ---------------------------------------------------------------
   WOO — CARD PRODOTTI, CARRELLO, CHECKOUT, ACCOUNT
   - Bordi arrotondati
   - Ombra morbida coerente con il sito
--------------------------------------------------------------- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,

.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    background: #C8FF00; /* verde acido */
    border-radius: 16px;
    padding: 0.75rem; /* ridotto da 1rem */
    list-style: none;
    text-align: center;
    border: 1px solid rgba(35, 31, 32, 0.10);
    box-shadow: 0 10px 24px rgba(35, 31, 32, 0.08);
    color: #4A4A4A; /* grigio topo */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce ul.products.columns-3 li.product, .woocommerce-page ul.products.columns-3 li.product {
    width: 90%;
}

/* Effetto hover elegante */
.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(35, 31, 32, 0.10);
}

/* ---------------------------------------------------------------
   WOO — GRIGLIA PRODOTTI
--------------------------------------------------------------- */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem; /* ridotto da 1.5rem */
    padding: 0;
}

.woocommerce div.product{
	//background: red; /* verde acido */
    margin: 4% ;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    margin: 4% ;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    float: none;
    width: auto;

    padding: 1rem;
    list-style: none;
    text-align: center;
}

/* ---------------------------------------------------------------
   WOO — IMMAGINI PRODOTTO
   - Arrotondamento coerente con il tema
--------------------------------------------------------------- */
.woocommerce ul.products li.product img {
    border-radius: 12px;
    margin-bottom: 1rem;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ---------------------------------------------------------------
   WOO — TITOLI PRODOTTO
--------------------------------------------------------------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: Inter, sans-serif;
    color: #4A4A4A; /* grigio topo */
    min-height: 2.6em;
    font-size: 1.1rem;
    min-height: 3em;
}

/* ---------------------------------------------------------------
   WOO — SCHEDA PRODOTTO
--------------------------------------------------------------- */
.woocommerce div.product {
    padding: 1.5rem;
}

/* ---------------------------------------------------------------
   WOO — PULSANTI
   - Oro La Mirteria #FFCC00 (#DFBE74)  #D4AF37
   - Hover verde scuro (#18493b)
--------------------------------------------------------------- */
.woocommerce div.product form.cart .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-block-woocommerce-proceed-to-checkout-block,
.woocommerce #respond input#submit {
    background: #FFCC00;
    border-radius: 999px;
    color: #231f20;
    padding: 0.9rem 1.35rem;
    font-weight: 700;
    font-family: Inter, sans-serif;
    transition: background-color 0.2s ease, transform 0.2s ease;
	opacity: 1;
}

.wc-block-components-order-summary-item__quantity{
    color: #FF0400;
}
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-block-components-text-input  
{
  background: #FFD814;  
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: #d4af37;
    color: #231f20;
    transform: translateY(-1px);
}

/* ---------------------------------------------------------------
   WOO — BADGE, PREZZI, MESSAGGI
   - Colori coerenti con palette mirtillo/verde
--------------------------------------------------------------- */
.woocommerce span.onsale {
    color: #8b1e3f; /* in offerta */
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.woocommerce .price {
    color: #4A4A4A; /* grigio topo  #8b1e3f;*/
    font-weight: 700;
}

.woocommerce .summary .price {
    color: #ffffff; /* bianco  #8b1e3f;*/
    font-weight: 700;
}



.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: #1f5c4a;
    border-radius: 12px;
    background: #CBDCF8; 
}

/* ---------------------------------------------------------------
   WOO — FORM CHECKOUT
--------------------------------------------------------------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1px solid rgba(35, 31, 32, 0.15);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    background: #fff;
    font-family: Inter, sans-serif;
}

/* ---------------------------------------------------------------
   WOO — RESPONSIVE
--------------------------------------------------------------- */
@media (max-width: 991px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 0.75rem;		
    }

    .woocommerce-wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .woocommerce div.product {
        padding: 1rem;
    }
}



/* ---------------------------------------------------------------
   WOO — WOOCOMMERCE BLOCKS (carrello nuovo)
--------------------------------------------------------------- */
.wp-block-woocommerce-cart-order-summary-block,
.wc-block-cart__totals,
.wc-block-checkout__actions_row {
    display: flex !important;
    flex-direction: column !important;
}

/* Sposta il pulsante di checkout in alto */
.wc-block-cart__submit-container,
.wc-block-components-checkout-place-order-button {
    order: 1 !important;
}

/* Sposta la scritta "OPPURE" al centro */
.wc-block-components-express-checkout__express-checkout-continuation {
    order: 2 !important;
    margin: 15px 0 !important;
}

/* Sposta i pulsanti Express (Amazon, Apple, Google) in basso */
.wc-block-components-express-checkout {
    order: 3 !important;
}


