/* ============================================================
   VIMARTE — WooCommerce Cart
   Child theme: vimarte26
   Tema: Astra 4.13
   File corretto pulito
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* ----------------------------------------------------------
   1. LAYOUT GENERALE PAGINA CARRELLO
   ---------------------------------------------------------- */

body.woocommerce-cart h1.entry-title,
body.woocommerce-cart .woocommerce-products-header,
body.woocommerce-cart .ast-page-title-bar,
body.woocommerce-cart .entry-header,
body.woocommerce-cart .page-header {
    display: none !important;
}

body.woocommerce-cart .entry-content > .woocommerce {
    padding-top: 22px !important;
}

body.woocommerce-cart .woocommerce {
    font-family: 'Open Sans', sans-serif !important;
}

body.woocommerce-cart .woocommerce::before {
    content: "Il tuo carrello";
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #e07020;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e0dbd5;
}

/* ----------------------------------------------------------
   2. HEADER PAGINA CARRELLO
   ---------------------------------------------------------- */

body.woocommerce-cart .site-primary-header-wrap,
body.woocommerce-cart .ast-primary-header-bar,
body.woocommerce-cart .main-header-bar,
body.woocommerce-cart .ast-builder-grid-row-container,
body.woocommerce-cart .ast-builder-grid-row,
body.woocommerce-cart .ast-desktop-header-wrap,
body.woocommerce-cart .ast-mobile-header-wrap {
    background: #1f1f1f !important;
    background-color: #1f1f1f !important;
    border: none !important;
    box-shadow: none !important;
}

body.woocommerce-cart .ast-above-header-wrap,
body.woocommerce-cart .ast-above-header-bar {
    background: #2a2a2a !important;
    background-color: #2a2a2a !important;
    border: none !important;
    box-shadow: none !important;
}

/* ----------------------------------------------------------
   3. TABELLA PRODOTTI
   ---------------------------------------------------------- */

body.woocommerce-cart form.woocommerce-cart-form {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 20px rgba(58, 53, 48, 0.09);
    overflow: hidden;
    margin-top: 34px !important;
    margin-bottom: 70px !important;
}

body.woocommerce-cart table.shop_table {
    width: 100%;
    margin: 0 !important;
    border: none !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
    font-family: 'Open Sans', sans-serif !important;
}

body.woocommerce-cart table.shop_table thead th {
    background-color: #4b4b4b !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2.5px !important;
    padding: 13px 20px !important;
    border: none !important;
    border-bottom: 2px solid #e07020 !important;
}

body.woocommerce-cart table.shop_table tbody td {
    padding: 22px 20px !important;
    vertical-align: middle !important;
    border: none !important;
    border-bottom: 1px solid #f0ece8 !important;
    background: #ffffff !important;
    color: #3a3530 !important;
    font-family: 'Open Sans', sans-serif !important;
    transition: background 0.18s ease;
}

body.woocommerce-cart table.shop_table tbody tr:last-child td {
    border-bottom: none !important;
}

body.woocommerce-cart table.shop_table tbody tr:hover td {
    background: #fdf9f7 !important;
}

body.woocommerce-cart td.product-thumbnail img {
    display: block;
    border-radius: 4px !important;
}

body.woocommerce-cart td.product-name a {
    display: block;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    color: #2f2f2f !important;
    text-decoration: none !important;
    transition: color 0.18s ease;
}

body.woocommerce-cart td.product-name a:hover {
    color: #e07020 !important;
}

body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-price .woocommerce-Price-amount {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: #9a9a9a !important;
}

body.woocommerce-cart .quantity input.qty {
    width: 58px !important;
    min-height: 42px !important;
    padding: 8px 6px !important;
    text-align: center !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #3a3530 !important;
    background: #f9f7f5 !important;
    border: 1px solid #ddd8d3 !important;
    border-radius: 3px !important;
}

body.woocommerce-cart .quantity input.qty:focus {
    outline: none !important;
    background: #fff !important;
    border-color: #e07020 !important;
    box-shadow: 0 0 0 3px rgba(224, 112, 32, 0.10) !important;
}

body.woocommerce-cart td.product-subtotal,
body.woocommerce-cart td.product-subtotal .woocommerce-Price-amount {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #e07020 !important;
    text-align: right !important;
}

body.woocommerce-cart a.remove {
    width: 26px !important;
    height: 26px !important;
    line-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    color: #bdbdbd !important;
    background: transparent !important;
    border: 1px solid #e0dbd5 !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
}

body.woocommerce-cart a.remove:hover {
    color: #ffffff !important;
    background: #e07020 !important;
    border-color: #e07020 !important;
}

/* ----------------------------------------------------------
   4. AZIONI CARRELLO
   ---------------------------------------------------------- */

body.woocommerce-cart table.shop_table td.actions {
    padding: 18px 20px !important;
    border-top: 1px solid #ede8e3 !important;
    border-bottom: none !important;
    background: #f9f6f3 !important;
}

body.woocommerce-cart .coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

body.woocommerce-cart .coupon input#coupon_code {
    width: 220px !important;
    max-width: 100% !important;
    min-height: 42px !important;
    padding: 10px 16px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.82rem !important;
    color: #333 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    letter-spacing: 0.5px !important;
}

body.woocommerce-cart .coupon input#coupon_code::placeholder {
    color: #bbb !important;
    font-size: 0.8rem !important;
    font-style: italic !important;
}

body.woocommerce-cart .coupon input#coupon_code:focus {
    outline: none !important;
    border-color: #e07020 !important;
    box-shadow: 0 0 0 3px rgba(224, 112, 32, 0.12) !important;
}

body.woocommerce-cart .coupon .button,
body.woocommerce-cart button[name="apply_coupon"] {
    min-height: 42px !important;
    padding: 11px 20px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    background: #666666 !important;
    border: 1px solid #666666 !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body.woocommerce-cart .coupon .button:hover,
body.woocommerce-cart button[name="apply_coupon"]:hover {
    background: #4f4f4f !important;
    border-color: #4f4f4f !important;
}

body.woocommerce-cart .actions button[name="update_cart"] {
    min-height: 42px !important;
    padding: 10px 20px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    background: #6a6a6a !important;
    border: 1px solid #6a6a6a !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

body.woocommerce-cart .actions button[name="update_cart"]:hover {
    color: #ffffff !important;
    background: #4f4f4f !important;
    border-color: #4f4f4f !important;
}

/* ----------------------------------------------------------
   5. RIEPILOGO CARRELLO
   ---------------------------------------------------------- */

body.woocommerce-cart .cart-collaterals {
    padding-top: 20px !important;
    margin-top: 24px !important;
}

body.woocommerce-cart .cart_totals {
    padding: 32px !important;
    background: #ffffff !important;
    border: 1px solid #d8dfe5 !important;
    border-top: 3px solid #e07020 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 20px rgba(58, 53, 48, 0.09) !important;
    overflow: hidden !important;
}

body.woocommerce-cart .cart_totals h2 {
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: #5a5048 !important;
    border-bottom: 1px solid #ede8e3 !important;
}

body.woocommerce-cart .cart_totals table {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: 'Open Sans', sans-serif !important;
}

body.woocommerce-cart .cart_totals table th {
    width: 40% !important;
    padding: 12px 0 !important;
    text-align: left !important;
    vertical-align: middle !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #999 !important;
    border: none !important;
    background: transparent !important;
}

body.woocommerce-cart .cart_totals table td {
    padding: 12px 0 !important;
    text-align: right !important;
    vertical-align: middle !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #2a2a2a !important;
    border: none !important;
    background: transparent !important;
}

body.woocommerce-cart .cart_totals table tr {
    border-bottom: 1px solid #f0ece8 !important;
}

body.woocommerce-cart .cart_totals table tr:last-child {
    border-bottom: none !important;
}

body.woocommerce-cart .cart_totals .order-total th {
    padding-top: 18px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    color: #2a2a2a !important;
}

body.woocommerce-cart .cart_totals .order-total td {
    padding-top: 18px !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #e07020 !important;
}

body.woocommerce-cart .cart_totals .order-total td .woocommerce-Price-amount {
    color: #e07020 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout {
    margin-top: 18px !important;
    padding-bottom: 0 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    padding: 18px 30px !important;
    text-align: center !important;
    text-decoration: none !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    background: #e07020 !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(224, 112, 32, 0.3) !important;
    transition: all 0.25s ease !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #c5611a !important;
    box-shadow: 0 6px 18px rgba(224, 112, 32, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* ----------------------------------------------------------
   6. MESSAGGI
   ---------------------------------------------------------- */

body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-error {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.3px !important;
    color: #5a5048 !important;
    background: #fdf9f6 !important;
    border-top: 3px solid #e07020 !important;
    border-radius: 4px !important;
}

body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-error::before {
    color: #e07020 !important;
}

body.woocommerce-cart .woocommerce-info a,
body.woocommerce-cart .woocommerce-message a,
body.woocommerce-cart .woocommerce-error a {
    color: #e07020 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.woocommerce-cart .woocommerce-info a:hover,
body.woocommerce-cart .woocommerce-message a:hover,
body.woocommerce-cart .woocommerce-error a:hover {
    color: #c5611a !important;
}

/* ----------------------------------------------------------
   7. MOBILE
   ---------------------------------------------------------- */

@media (max-width: 921px) {
    body.woocommerce-cart .entry-content > .woocommerce {
        padding-top: 18px !important;
    }

    body.woocommerce-cart form.woocommerce-cart-form {
        margin-top: 24px !important;
        margin-bottom: 50px !important;
        overflow: visible;
    }

    body.woocommerce-cart table.shop_table thead th {
        padding: 12px 14px !important;
        font-size: 0.58rem !important;
    }

    body.woocommerce-cart table.shop_table tbody td {
        padding: 16px 14px !important;
    }

    body.woocommerce-cart td.product-name a {
        font-size: 0.95rem !important;
    }

    body.woocommerce-cart .cart_totals {
        padding: 24px !important;
    }
}

@media (max-width: 768px) {
    body.woocommerce-cart .coupon {
        display: block !important;
    }

    body.woocommerce-cart .coupon input#coupon_code {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    body.woocommerce-cart .coupon .button,
    body.woocommerce-cart button[name="apply_coupon"],
    body.woocommerce-cart .actions button[name="update_cart"] {
        width: 100% !important;
        margin-top: 10px !important;
    }

    body.woocommerce-cart .cart_totals .order-total td {
        font-size: 1.2rem !important;
    }
}
body.woocommerce-cart #content,
body.woocommerce-cart .site-content {
    background-color: #ededed !important;
}