/* ============================================================
   VIMARTE — woocommerce.css v9.4
   Tema child: vimarte26

   Obiettivo:
   - carrello desktop/tablet/mobile con grafica allineata alla demo v2;
   - file pulito senza blocchi storici duplicati;
   - struttura WooCommerce preservata;
   - pre-footer sempre fullwidth;
   - icone account/carrello mobile visibili prima dell'hamburger su tutte le pagine.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

/* ============================================================
   1. VARIABILI
   ============================================================ */
:root {
    --vm-orange: #c96a1a;
    --vm-orange-deep: #a85518;
    --vm-orange-glow: rgba(201, 106, 26, .25);
    --vm-grey-900: #1e1e1e;
    --vm-grey-800: #2d2d2d;
    --vm-grey-700: #3d3d3d;
    --vm-grey-600: #555555;
    --vm-grey-500: #707070;
    --vm-grey-400: #909090;
    --vm-grey-300: #c0bbb6;
    --vm-grey-200: #e3ddd8;
    --vm-grey-100: #f0ece8;
    --vm-grey-50: #f7f4f1;
    --vm-white: #ffffff;
    --vm-r-xs: 4px;
    --vm-r-sm: 8px;
    --vm-r-md: 14px;
    --vm-r-xl: 28px;
    --vm-shadow-sm: 0 2px 10px rgba(0, 0, 0, .06);
    --vm-shadow-md: 0 6px 28px rgba(0, 0, 0, .09);
}

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

/* ============================================================
   2. ICONE ACCOUNT + CARRELLO MOBILE
   ============================================================
   Le icone vengono stampate da functions.php con wp_body_open.
   Su mobile sono posizionate nella barra header prima dell'hamburger,
   senza dipendere dal markup interno Astra.
   ============================================================ */
#vm-mobile-icons {
    display: none;
}

.vm-mi {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.vm-mi svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.vm-cart-count {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    min-width: 15px !important;
    height: 15px !important;
    border-radius: 99px !important;
    background: var(--vm-orange) !important;
    color: #fff !important;
    border: 1px solid var(--vm-orange) !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 3px !important;
    pointer-events: none !important;
}

.vm-cart-count.is-empty {
    background: var(--vm-grey-900) !important;
    color: #ffffff !important;
    border-color: var(--vm-orange) !important;
}

@media (max-width: 921px) {
    #vm-mobile-icons {
        display: flex !important;
        position: fixed !important;
        top: 46px !important;
        right: 50px !important;
        width: 88px !important;
        height: 36px !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 2147483647 !important;
        background: transparent !important;
    }

    body:not(.admin-bar) #vm-mobile-icons {
        top: 10px !important;
    }
}

@media (max-width: 544px) {
    #vm-mobile-icons {
        top: 48px !important;
        right: 50px !important;
        width: 88px !important;
        gap: 10px !important;
    }

    body:not(.admin-bar) #vm-mobile-icons {
        top: 12px !important;
    }
}

/* ============================================================
   3. HERO CARRELLO / CHECKOUT
   ============================================================ */
body.woocommerce-cart .entry-header,
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout .entry-header,
body.woocommerce-checkout h1.entry-title {
    display: none !important;
}

.vimarte-hero--woo {
    position: relative !important;
    height: 450px !important;
    min-height: 450px !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.vimarte-hero--woo::before {
    display: none !important;
    content: none !important;
}

.vimarte-hero--woo .vimarte-hero__overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, .72) !important;
    z-index: 1 !important;
}

.vimarte-hero--woo .vimarte-hero__content {
    position: relative !important;
    z-index: 3 !important;
    padding: 0 60px 52px !important;
}

.vimarte-hero--woo .vimarte-hero__title {
    margin: 0 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 56px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -1px !important;
}

.vimarte-hero--woo .vimarte-hero__title em {
    font-style: normal !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, .65) !important;
}

.vimarte-hero--woo .vimarte-hero__sub {
    margin: 10px 0 0 !important;
    color: rgba(255, 255, 255, .4) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
}

@media (max-width: 960px) {
    .vimarte-hero--woo {
        height: 240px !important;
        min-height: 240px !important;
    }

    .vimarte-hero--woo .vimarte-hero__content {
        padding: 0 20px 36px !important;
    }

    .vimarte-hero--woo .vimarte-hero__title {
        font-size: 32px !important;
    }
}

/* ============================================================
   4. BASE PAGINA CARRELLO
   ============================================================ */
body.woocommerce-cart {
    background: var(--vm-grey-50) !important;
}

body.woocommerce-cart #primary,
body.woocommerce-cart .site-main,
body.woocommerce-cart .entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

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

/* Non tocchiamo gli ast-container dell'header. Solo content area. */
@media (min-width: 922px) {
    body.woocommerce-cart #content .ast-container,
    body.woocommerce-cart .site-content > .ast-container {
        max-width: 1700px !important;
        width: 100% !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .entry-content > .woocommerce {
        max-width: 1260px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: grid !important;
        grid-template-columns: minmax(0, 832px) 400px !important;
        gap: 28px !important;
        align-items: start !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart form.woocommerce-cart-form {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 832px !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.woocommerce-cart .cart-collaterals {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 400px !important;
        max-width: 400px !important;
        min-width: 400px !important;
        float: none !important;
        clear: none !important;
        margin: 0 !important;
        padding: 0 !important;
        position: sticky !important;
        top: 100px !important;
    }

    body.woocommerce-cart .woocommerce-notices-wrapper {
        grid-column: 1 / -1 !important;
    }
}

/* ============================================================
   5. TABELLA PRODOTTI DESKTOP/TABLET
   Struttura Woo preservata, resa grafica come demo:
   thumb | prodotto | prezzo | quantità | subtotale | elimina
   ============================================================ */
body.woocommerce-cart form.woocommerce-cart-form {
    background: var(--vm-white) !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: var(--vm-r-xl) !important;
    overflow: hidden !important;
    box-shadow: var(--vm-shadow-sm) !important;
}

body.woocommerce-cart table.shop_table,
body.woocommerce-cart table.shop_table.cart {
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: var(--vm-white) !important;
    table-layout: auto !important;
    font-family: 'Poppins', sans-serif !important;
}

body.woocommerce-cart table.shop_table thead tr {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 140px 130px 140px 40px !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    background: var(--vm-grey-50) !important;
    border-bottom: 1px solid var(--vm-grey-200) !important;
}

body.woocommerce-cart table.shop_table thead th {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--vm-grey-400) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

body.woocommerce-cart table.shop_table tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 140px 130px 140px 40px !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 16px 28px !important;
    min-height: 88px !important;
    background: var(--vm-white) !important;
    border-bottom: 1px solid var(--vm-grey-100) !important;
    transition: background .16s ease !important;
}

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

body.woocommerce-cart table.shop_table tbody tr.cart_item:last-of-type {
    border-bottom: 0 !important;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
    vertical-align: middle !important;
}

body.woocommerce-cart table.shop_table tbody td {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

@media (min-width: 641px) {
    body.woocommerce-cart table.shop_table thead th.product-thumbnail,
    body.woocommerce-cart table.shop_table thead th.product-name,
    body.woocommerce-cart table.shop_table thead th.product-price,
    body.woocommerce-cart table.shop_table thead th.product-quantity,
    body.woocommerce-cart table.shop_table thead th.product-subtotal,
    body.woocommerce-cart table.shop_table thead th.product-remove,
    body.woocommerce-cart table.shop_table tbody td.product-thumbnail,
    body.woocommerce-cart table.shop_table tbody td.product-name,
    body.woocommerce-cart table.shop_table tbody td.product-price,
    body.woocommerce-cart table.shop_table tbody td.product-quantity,
    body.woocommerce-cart table.shop_table tbody td.product-subtotal,
    body.woocommerce-cart table.shop_table tbody td.product-remove {
        grid-row: 1 !important;
        align-self: center !important;
    }

    body.woocommerce-cart table.shop_table thead th.product-thumbnail,
    body.woocommerce-cart table.shop_table tbody td.product-thumbnail {
        grid-column: 1 !important;
    }

    body.woocommerce-cart table.shop_table thead th.product-name,
    body.woocommerce-cart table.shop_table tbody td.product-name {
        grid-column: 2 !important;
    }

    body.woocommerce-cart table.shop_table thead th.product-price,
    body.woocommerce-cart table.shop_table tbody td.product-price {
        grid-column: 3 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    body.woocommerce-cart table.shop_table thead th.product-quantity,
    body.woocommerce-cart table.shop_table tbody td.product-quantity {
        grid-column: 4 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    body.woocommerce-cart table.shop_table thead th.product-subtotal,
    body.woocommerce-cart table.shop_table tbody td.product-subtotal {
        grid-column: 5 !important;
        justify-content: flex-end !important;
        text-align: right !important;
    }

    body.woocommerce-cart table.shop_table thead th.product-remove,
    body.woocommerce-cart table.shop_table tbody td.product-remove {
        grid-column: 6 !important;
        justify-content: center !important;
        align-self: center !important;
    }
}

body.woocommerce-cart td.product-thumbnail img {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: var(--vm-r-sm) !important;
    background: var(--vm-grey-100) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08) !important;
}

body.woocommerce-cart td.product-name {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-right: 12px !important;
}

body.woocommerce-cart td.product-name a {
    display: block !important;
    color: var(--vm-grey-900) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

body.woocommerce-cart td.product-name a:hover {
    color: var(--vm-orange) !important;
}

body.woocommerce-cart td.product-price .woocommerce-Price-amount {
    color: var(--vm-grey-400) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

body.woocommerce-cart td.product-subtotal .woocommerce-Price-amount {
    color: var(--vm-grey-900) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

body.woocommerce-cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

body.woocommerce-cart .quantity input.qty {
    width: 56px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 4px !important;
    text-align: center !important;
    color: var(--vm-grey-900) !important;
    background: var(--vm-white) !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: var(--vm-r-xs) !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    -moz-appearance: textfield !important;
}

body.woocommerce-cart .quantity input.qty::-webkit-inner-spin-button,
body.woocommerce-cart .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
}

body.woocommerce-cart .quantity input.qty:focus {
    border-color: var(--vm-orange) !important;
}

body.woocommerce-cart a.remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--vm-grey-300) !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all .18s ease !important;
}

body.woocommerce-cart a.remove:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

/* Riga coupon/update */
body.woocommerce-cart table.shop_table tbody tr:not(.cart_item) {
    display: block !important;
}

body.woocommerce-cart table.shop_table td.actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 14px 28px !important;
    background: var(--vm-grey-50) !important;
    border: 0 !important;
    border-top: 1px solid var(--vm-grey-200) !important;
}

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

body.woocommerce-cart .coupon::before {
    content: 'Coupon' !important;
    margin-right: 4px !important;
    color: var(--vm-grey-300) !important;
    font-size: 9.5px !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

body.woocommerce-cart .coupon input#coupon_code {
    width: 170px !important;
    height: 34px !important;
    padding: 0 12px !important;
    color: var(--vm-grey-600) !important;
    background: var(--vm-white) !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: var(--vm-r-sm) !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 11.5px !important;
}

body.woocommerce-cart .coupon input#coupon_code::placeholder {
    color: var(--vm-grey-300) !important;
}

body.woocommerce-cart .coupon .button,
body.woocommerce-cart button[name="apply_coupon"] {
    height: 34px !important;
    padding: 0 14px !important;
    color: var(--vm-grey-600) !important;
    background: transparent !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: var(--vm-r-sm) !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase !important;
}

body.woocommerce-cart button[name="update_cart"] {
    height: 34px !important;
    margin-left: auto !important;
    padding: 0 14px !important;
    color: var(--vm-grey-600) !important;
    background: transparent !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: var(--vm-r-sm) !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
}

body.woocommerce-cart button[name="update_cart"]:disabled,
body.woocommerce-cart button[name="update_cart"][disabled] {
    color: var(--vm-grey-500) !important;
    border-color: var(--vm-grey-200) !important;
    opacity: 1 !important;
}

body.woocommerce-cart button[name="update_cart"]:hover {
    color: var(--vm-grey-900) !important;
    border-color: var(--vm-grey-700) !important;
}

/* ============================================================
   6. RIEPILOGO ORDINE DESKTOP/TABLET
   ============================================================ */
body.woocommerce-cart .cart_totals {
    width: 400px !important;
    max-width: 400px !important;
    min-width: 400px !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--vm-white) !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: var(--vm-r-xl) !important;
    box-shadow: var(--vm-shadow-sm) !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .cart_totals h2 {
    display: block !important;
    margin: 0 !important;
    padding: 26px 28px 22px !important;
    border-bottom: 1px solid var(--vm-grey-100) !important;
    background: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

body.woocommerce-cart .cart_totals h2::before {
    content: 'Riepilogo ordine' !important;
    display: block !important;
    margin: 0 0 8px !important;
    color: var(--vm-grey-400) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
}

body.woocommerce-cart .cart_totals h2::after {
    content: 'Il tuo totale' !important;
    display: block !important;
    color: var(--vm-grey-900) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -.5px !important;
    text-transform: none !important;
}

body.woocommerce-cart .cart_totals table,
body.woocommerce-cart .cart_totals table.shop_table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    table-layout: auto !important;
}

body.woocommerce-cart .cart_totals table tr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 28px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--vm-grey-100) !important;
    background: transparent !important;
}

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

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    float: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: nowrap !important;
}

body.woocommerce-cart .cart_totals table th {
    display: none !important;
}

body.woocommerce-cart .cart_totals table td {
    flex: 1 1 100% !important;
    width: 100% !important;
    color: var(--vm-grey-600) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-align: right !important;
}

body.woocommerce-cart .cart_totals table td .woocommerce-Price-amount {
    color: var(--vm-grey-600) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

body.woocommerce-cart .cart_totals .order-total {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 18px 28px !important;
    background: var(--vm-grey-50) !important;
    border-top: 2px solid var(--vm-grey-200) !important;
    border-bottom: 2px solid var(--vm-grey-200) !important;
}

body.woocommerce-cart .cart_totals .order-total th {
    display: none !important;
}

body.woocommerce-cart .cart_totals .order-total td,
body.woocommerce-cart .cart_totals .order-total td .woocommerce-Price-amount {
    color: var(--vm-grey-900) !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -1px !important;
    white-space: nowrap !important;
}

body.woocommerce-cart .wc-proceed-to-checkout {
    margin: 0 !important;
    padding: 22px 28px 8px !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 17px 24px !important;
    overflow: hidden !important;
    color: #fff !important;
    background: var(--vm-orange) !important;
    border: 0 !important;
    border-radius: var(--vm-r-md) !important;
    box-shadow: 0 6px 24px var(--vm-orange-glow) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    transition: all .22s ease !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), transparent 60%) !important;
    pointer-events: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after {
    content: '›' !important;
    position: absolute !important;
    left: 28px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    color: #fff !important;
    background: var(--vm-orange-deep) !important;
    box-shadow: 0 8px 32px rgba(201, 106, 26, .38) !important;
    transform: translateY(-2px) !important;
}

.vimarte-secure-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 28px !important;
    color: var(--vm-grey-300) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 10px !important;
    letter-spacing: .5px !important;
}

.vimarte-secure-badge svg,
.vimarte-trust-item svg {
    width: 13px !important;
    height: 13px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    flex-shrink: 0 !important;
}

.vimarte-trust-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 0 28px 24px !important;
}

.vimarte-trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 9px 12px !important;
    color: var(--vm-grey-500) !important;
    background: var(--vm-grey-50) !important;
    border: 1px solid var(--vm-grey-100) !important;
    border-radius: var(--vm-r-sm) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
}

.vimarte-trust-item svg {
    color: var(--vm-orange) !important;
}

.vimarte-continue-shopping {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 28px 24px !important;
    color: var(--vm-grey-400) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: color .15s ease !important;
}

.vimarte-continue-shopping:hover {
    color: var(--vm-orange) !important;
}

/* ============================================================
   7. PRE-FOOTER FULLWIDTH
   ============================================================ */
body.woocommerce-cart .vimarte-prefooter,
body.woocommerce-checkout .vimarte-prefooter {
    grid-column: 1 / -1 !important;
    position: relative !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 80px 0 0 -50vw !important;
    padding: 64px 0 56px !important;
    box-sizing: border-box !important;
    background: var(--vm-grey-800) !important;
    overflow: hidden !important;
}

body.woocommerce-cart .vimarte-prefooter::before,
body.woocommerce-checkout .vimarte-prefooter::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent 0%, var(--vm-orange) 30%, var(--vm-orange) 70%, transparent 100%) !important;
}

.vimarte-prefooter__inner {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    display: grid !important;
    grid-template-columns: 1fr 1px 1fr 1px 1fr !important;
    align-items: center !important;
}

.vimarte-pf-sep {
    min-height: 80px !important;
    margin: 0 24px !important;
    align-self: stretch !important;
    background: rgba(255, 255, 255, .07) !important;
}

.vimarte-pf-col {
    padding: 0 24px !important;
    text-align: center !important;
}

.vimarte-pf-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 auto 16px !important;
    color: var(--vm-orange) !important;
    border: 1.5px solid rgba(201, 106, 26, .4) !important;
    border-radius: 50% !important;
}

.vimarte-pf-icon svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.vimarte-pf-title {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.vimarte-pf-text {
    margin: 0 !important;
    color: rgba(255, 255, 255, .38) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.8 !important;
}

.vimarte-pf-text strong {
    display: block !important;
    margin-top: 4px !important;
    color: rgba(255, 255, 255, .7) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* ============================================================
   8. NOTICE CARRELLO
   ============================================================ */
body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-error {
    display: none !important;
}

/* ============================================================
   9. POPUP AGGIUNTO AL CARRELLO
   ============================================================ */
#vimarte-atc-modal,
#vimarte-atc-modal * {
    box-sizing: border-box !important;
}

#vimarte-atc-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

#vimarte-atc-modal.is-open,
#vimarte-atc-modal[aria-hidden="false"] {
    display: flex !important;
}

#vimarte-atc-modal .vimarte-modal__backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: rgba(8, 6, 4, .72) !important;
    backdrop-filter: blur(3px) !important;
    cursor: pointer !important;
}

#vimarte-atc-modal .vimarte-modal__box {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 560px !important;
    max-height: 90vh !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    background: var(--vm-white) !important;
    border-radius: var(--vm-r-md) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28) !important;
}

#vimarte-atc-modal .vimarte-modal__close {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;
    z-index: 3 !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    color: #888 !important;
    background: transparent !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font-size: 18px !important;
}

#vimarte-atc-modal .vimarte-modal__inner {
    display: flex !important;
    align-items: stretch !important;
    min-height: 200px !important;
}

#vimarte-atc-modal .vimarte-modal__thumb-wrap {
    width: 180px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: var(--vm-grey-50) !important;
    border-radius: var(--vm-r-md) 0 0 var(--vm-r-md) !important;
}

#vimarte-atc-modal .vimarte-modal__thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

#vimarte-atc-modal .vimarte-modal__info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 28px 28px 24px !important;
}

#vimarte-atc-modal .vimarte-modal__title {
    margin: 0 !important;
    color: var(--vm-grey-900) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

#vimarte-atc-modal .vimarte-modal__price {
    margin: 4px 0 0 !important;
    color: var(--vm-grey-900) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

#vimarte-atc-modal .vimarte-modal__actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 18px !important;
}

#vimarte-atc-modal .vimarte-btn {
    display: block !important;
    width: 100% !important;
    padding: 13px 20px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 2.5px !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

#vimarte-atc-modal .vimarte-btn--orange {
    color: #fff !important;
    background: var(--vm-orange) !important;
    border: 0 !important;
}

#vimarte-atc-modal .vimarte-btn--ghost {
    color: var(--vm-grey-600) !important;
    background: transparent !important;
    border: 1px solid var(--vm-grey-200) !important;
}

/* ============================================================
   10. TABLET
   ============================================================ */
@media (max-width: 960px) {
    body.woocommerce-cart .entry-content > .woocommerce {
        display: block !important;
        max-width: 100% !important;
    }

    body.woocommerce-cart .cart-collaterals {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-top: 24px !important;
        position: static !important;
    }

    body.woocommerce-cart .cart_totals {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.woocommerce-cart table.shop_table thead tr,
    body.woocommerce-cart table.shop_table tbody tr.cart_item {
        grid-template-columns: 56px minmax(0, 1fr) 100px 100px 100px 36px !important;
        padding: 14px 18px !important;
        gap: 6px !important;
    }

    .vimarte-prefooter__inner {
        grid-template-columns: 1fr !important;
        padding: 0 24px !important;
    }

    .vimarte-pf-sep {
        display: none !important;
    }

    .vimarte-pf-col {
        padding: 28px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
    }

    .vimarte-pf-col:last-child {
        border-bottom: 0 !important;
    }
}

/* ============================================================
   11. MOBILE
   ============================================================ */
@media (max-width: 640px) {
    body.woocommerce-cart .entry-content {
        padding-top: 38px !important;
    }

    body.woocommerce-cart table.shop_table thead {
        display: none !important;
    }

    body.woocommerce-cart form.woocommerce-cart-form {
        border-radius: 20px !important;
    }

    body.woocommerce-cart table.shop_table tbody tr.cart_item {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) 68px 42px 82px 30px !important;
        grid-template-rows: auto 32px !important;
        align-items: center !important;
        column-gap: 3px !important;
        row-gap: 8px !important;
        min-height: 0 !important;
        padding: 16px 12px !important;
    }

    body.woocommerce-cart td.product-thumbnail {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        align-self: start !important;
        justify-content: flex-start !important;
    }

    body.woocommerce-cart td.product-thumbnail img {
        width: 48px !important;
        height: 48px !important;
    }

    body.woocommerce-cart td.product-name {
        grid-column: 2 / 6 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        padding-right: 4px !important;
    }

    body.woocommerce-cart td.product-name a {
        font-size: 12.5px !important;
        line-height: 1.25 !important;
    }

    body.woocommerce-cart td.product-remove {
        grid-column: 6 !important;
        grid-row: 1 !important;
        align-self: start !important;
        justify-self: end !important;
    }

    body.woocommerce-cart a.remove {
        width: 26px !important;
        height: 26px !important;
        font-size: 10px !important;
    }

    body.woocommerce-cart td.product-price {
        grid-column: 3 !important;
        grid-row: 2 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 68px !important;
        max-width: 68px !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }

    body.woocommerce-cart td.product-quantity {
        grid-column: 4 !important;
        grid-row: 2 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 42px !important;
        max-width: 42px !important;
    }

    body.woocommerce-cart td.product-subtotal {
        grid-column: 5 !important;
        grid-row: 2 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 82px !important;
        max-width: 82px !important;
        overflow: visible !important;
        white-space: nowrap !important;
        text-align: right !important;
    }

    body.woocommerce-cart td.product-price .woocommerce-Price-amount,
    body.woocommerce-cart td.product-subtotal .woocommerce-Price-amount {
        font-size: 11px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.woocommerce-cart td.product-subtotal .woocommerce-Price-amount {
        color: var(--vm-grey-900) !important;
        font-weight: 800 !important;
    }

    body.woocommerce-cart .quantity input.qty {
        width: 38px !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        font-size: 11px !important;
    }

    body.woocommerce-cart td.product-name::before,
    body.woocommerce-cart td.product-price::before,
    body.woocommerce-cart td.product-quantity::before,
    body.woocommerce-cart td.product-subtotal::before,
    body.woocommerce-cart td.product-remove::before,
    body.woocommerce-cart .cart_totals table td::before,
    body.woocommerce-cart .cart_totals table td::after {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-cart table.shop_table td.actions {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 18px 16px !important;
    }

    body.woocommerce-cart .coupon {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    body.woocommerce-cart .coupon::before {
        display: none !important;
    }

    body.woocommerce-cart .coupon input#coupon_code,
    body.woocommerce-cart .coupon .button,
    body.woocommerce-cart button[name="apply_coupon"],
    body.woocommerce-cart button[name="update_cart"] {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: center !important;
    }

    body.woocommerce-cart .cart_totals h2 {
        padding: 20px 20px 16px !important;
    }

    body.woocommerce-cart .cart_totals table tr,
    body.woocommerce-cart .cart_totals .order-total {
        display: flex !important;
        align-items: baseline !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        padding: 14px 20px !important;
    }

    body.woocommerce-cart .cart_totals table th,
    body.woocommerce-cart .cart_totals .order-total th,
    body.woocommerce-cart .cart_totals table th::before,
    body.woocommerce-cart .cart_totals table th::after,
    body.woocommerce-cart .cart_totals .order-total th::before,
    body.woocommerce-cart .cart_totals .order-total th::after {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-cart .cart_totals table td,
    body.woocommerce-cart .cart_totals .order-total td {
        display: inline-flex !important;
        justify-content: flex-end !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }
    body.woocommerce-cart .cart_totals table td .woocommerce-Price-amount,
    body.woocommerce-cart .cart_totals .order-total td .woocommerce-Price-amount {
        color: var(--vm-grey-900) !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    body.woocommerce-cart .cart_totals .order-total td .woocommerce-Price-amount {
        font-size: 20px !important;
        font-weight: 800 !important;
    }

    body.woocommerce-cart .wc-proceed-to-checkout {
        padding: 16px 20px 8px !important;
    }

    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
        padding: 16px 20px !important;
        font-size: 10px !important;
        letter-spacing: 2.5px !important;
    }

    .vimarte-trust-row {
        grid-template-columns: 1fr !important;
        padding: 0 20px 20px !important;
    }

    .vimarte-secure-badge {
        padding: 10px 20px !important;
    }

    .vimarte-continue-shopping {
        padding: 0 20px 22px !important;
    }

    #vimarte-atc-modal .vimarte-modal__inner {
        flex-direction: column !important;
        min-height: auto !important;
    }

    #vimarte-atc-modal .vimarte-modal__thumb-wrap {
        width: 100% !important;
        height: 160px !important;
        border-radius: var(--vm-r-md) var(--vm-r-md) 0 0 !important;
    }

    #vimarte-atc-modal .vimarte-modal__info {
        padding: 20px !important;
    }
}

/* ============================================================
   12. CHECKOUT VIMARTE v9.4 — GRAFICA GRIGIO/ARANCIO
   ============================================================ */
body.woocommerce-checkout {
    background: #ffffff !important;
}

body.woocommerce-checkout #primary,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .woocommerce {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Desktop checkout: hero invariata a 450px. */
@media (min-width: 922px) {
    body.woocommerce-checkout .vimarte-hero--woo {
        height: 450px !important;
        min-height: 450px !important;
    }
}

/* Mobile cart + checkout: altezza hero controllata a 350px. */
@media (max-width: 640px) {
    body.woocommerce-cart .vimarte-hero--woo,
    body.woocommerce-checkout .vimarte-hero--woo {
        height: 350px !important;
        min-height: 350px !important;
        background-position: center center !important;
    }

    body.woocommerce-cart .vimarte-hero--woo .vimarte-hero__content,
    body.woocommerce-checkout .vimarte-hero--woo .vimarte-hero__content {
        padding: 0 28px 42px !important;
    }

    body.woocommerce-cart .vimarte-hero--woo .vimarte-hero__title,
    body.woocommerce-checkout .vimarte-hero--woo .vimarte-hero__title {
        font-size: 38px !important;
    }
}

body.woocommerce-checkout .entry-content {
    padding-top: 56px !important;
}

body.woocommerce-checkout #content .ast-container,
body.woocommerce-checkout .site-content > .ast-container {
    max-width: 1260px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    box-sizing: border-box !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout {
    font-family: 'Poppins', sans-serif !important;
}

body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-error {
    color: var(--vm-grey-700) !important;
    background: var(--vm-grey-50) !important;
    border-top: 3px solid var(--vm-orange) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

body.woocommerce-checkout .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-error::before {
    color: var(--vm-orange) !important;
}

body.woocommerce-checkout .woocommerce-info a,
body.woocommerce-checkout .woocommerce-message a,
body.woocommerce-checkout .woocommerce-error a {
    color: var(--vm-orange) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.woocommerce-checkout .checkout_coupon {
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: var(--vm-r-md) !important;
    background: var(--vm-white) !important;
    box-shadow: var(--vm-shadow-sm) !important;
}

body.woocommerce-checkout form.checkout {
    margin-top: 34px !important;
}

body.woocommerce-checkout form.checkout h3,
body.woocommerce-checkout #order_review_heading {
    margin: 0 0 18px !important;
    padding-bottom: 14px !important;
    color: var(--vm-grey-900) !important;
    border-bottom: 1px solid var(--vm-grey-200) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
    color: var(--vm-grey-900) !important;
}

body.woocommerce-checkout form .form-row label {
    color: var(--vm-grey-900) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

body.woocommerce-checkout form .form-row .required {
    color: var(--vm-orange) !important;
}

body.woocommerce-checkout form .form-row input.input-text,
body.woocommerce-checkout form .form-row textarea,
body.woocommerce-checkout form .form-row select,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
    min-height: 42px !important;
    color: var(--vm-grey-700) !important;
    background: var(--vm-white) !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    outline: none !important;
}

body.woocommerce-checkout form .form-row input.input-text:focus,
body.woocommerce-checkout form .form-row textarea:focus,
body.woocommerce-checkout form .form-row select:focus,
body.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--vm-orange) !important;
    box-shadow: 0 0 0 2px rgba(201, 106, 26, .12) !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--vm-grey-700) !important;
    line-height: 42px !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
}

body.woocommerce-checkout #order_review {
    padding: 28px !important;
    background: var(--vm-white) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.woocommerce-checkout #order_review_heading {
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100% !important;
    margin: 0 0 24px !important;
    border: 0 !important;
    border-collapse: collapse !important;
    color: var(--vm-grey-700) !important;
    font-family: 'Poppins', sans-serif !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 13px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--vm-grey-200) !important;
    color: var(--vm-grey-700) !important;
    background: transparent !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th {
    color: var(--vm-grey-900) !important;
    font-weight: 700 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    text-align: right !important;
    white-space: nowrap !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total .woocommerce-Price-amount {
    color: var(--vm-grey-900) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

body.woocommerce-checkout #payment,
body.woocommerce-checkout .woocommerce-checkout-payment {
    background: transparent !important;
    border-radius: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
    padding: 18px !important;
    background: var(--vm-grey-50) !important;
    border: 1px solid var(--vm-grey-800) !important;
    border-top: 1px solid var(--vm-grey-800) !important;
}

body.woocommerce-checkout #payment div.payment_box {
    color: var(--vm-grey-700) !important;
    background: var(--vm-white) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
}

body.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: var(--vm-white) !important;
}

body.woocommerce-checkout #payment div.form-row {
    padding: 22px 0 0 !important;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text,
body.woocommerce-checkout .woocommerce-privacy-policy-text p {
    color: var(--vm-grey-600) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: var(--vm-orange) !important;
}

body.woocommerce-checkout #place_order,
body.woocommerce-checkout button.button,
body.woocommerce-checkout .checkout_coupon .button {
    color: #fff !important;
    background: var(--vm-orange) !important;
    border: 0 !important;
    border-radius: var(--vm-r-sm) !important;
    box-shadow: 0 6px 24px var(--vm-orange-glow) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.8px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    transition: all .18s ease !important;
}

body.woocommerce-checkout #place_order {
    width: 100% !important;
    padding: 17px 24px !important;
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout button.button:hover,
body.woocommerce-checkout .checkout_coupon .button:hover {
    color: #fff !important;
    background: var(--vm-orange-deep) !important;
    transform: translateY(-1px) !important;
}

/* Gap bianco checkout desktop: solo questa pagina, solo desktop. */
@media (min-width: 922px) {
    body.woocommerce-checkout .vimarte-prefooter {
        margin-bottom: 0 !important;
    }

    body.woocommerce-checkout #colophon,
    body.woocommerce-checkout footer#colophon,
    body.woocommerce-checkout .site-footer,
    body.woocommerce-checkout .site-footer > *,
    body.woocommerce-checkout .site-footer .ast-builder-grid-row-container,
    body.woocommerce-checkout .site-footer .ast-builder-grid-row-container-inner,
    body.woocommerce-checkout .site-footer .ast-builder-footer-grid-columns,
    body.woocommerce-checkout .site-footer-section,
    body.woocommerce-checkout .site-above-footer-wrap,
    body.woocommerce-checkout .site-primary-footer-wrap,
    body.woocommerce-checkout .site-below-footer-wrap {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        background: #1a1a1a !important;
        border-top: 0 !important;
    }

    body.woocommerce-checkout .site-above-footer-wrap,
    body.woocommerce-checkout .site-primary-footer-wrap {
        min-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.woocommerce-checkout .site-below-footer-wrap {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
}

@media (max-width: 921px) {
    body.woocommerce-checkout #content .ast-container,
    body.woocommerce-checkout .site-content > .ast-container {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    body.woocommerce-checkout .entry-content {
        padding-top: 38px !important;
    }

    body.woocommerce-checkout #order_review {
        padding: 22px !important;
    }
}

/* ============================================================
   13. VIMARTE v9.4 — FIX FINALI CARRELLO VUOTO / CHECKOUT
   ============================================================ */

/* ------------------------------------------------------------
   A. Carrello vuoto: pannello custom stabile
   ------------------------------------------------------------ */
body.woocommerce-cart .cart-empty.woocommerce-info,
body.woocommerce-cart .return-to-shop {
    display: none !important;
}

body.woocommerce-cart .vimarte-empty-cart-panel {
    max-width: 1260px !important;
    min-height: 360px !important;
    margin: 0 auto !important;
    padding: 96px 24px 104px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-family: 'Poppins', sans-serif !important;
    background: transparent !important;
}

body.woocommerce-cart .vimarte-empty-cart-title {
    margin: 0 0 18px !important;
    color: var(--vm-grey-900) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    letter-spacing: -.2px !important;
}

body.woocommerce-cart .vimarte-empty-cart-link {
    display: inline-block !important;
    color: var(--vm-orange) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 1.6px !important;
    text-transform: uppercase !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    text-decoration-thickness: 1px !important;
}

body.woocommerce-cart .vimarte-empty-cart-link:hover {
    color: var(--vm-orange-deep) !important;
}

/* Carrello vuoto: niente fascia chiara tra pre-footer e footer. */
body.woocommerce-cart .vimarte-empty-cart-panel + .vimarte-prefooter,
body.woocommerce-cart .cart-empty + .vimarte-prefooter,
body.woocommerce-cart .woocommerce > .vimarte-prefooter:first-child {
    margin-top: 0 !important;
}

body.woocommerce-cart .vimarte-prefooter + #colophon,
body.woocommerce-cart .vimarte-prefooter + footer,
body.woocommerce-cart #colophon,
body.woocommerce-cart .site-footer,
body.woocommerce-cart .site-above-footer-wrap,
body.woocommerce-cart .site-primary-footer-wrap,
body.woocommerce-cart .site-below-footer-wrap {
    margin-top: 0 !important;
    background: #1a1a1a !important;
}

/* ------------------------------------------------------------
   B. Badge carrello: leggibile anche in hover desktop/mobile
   ------------------------------------------------------------ */
.vm-mi:hover .vm-cart-count,
.vm-mi:focus .vm-cart-count,
.vm-mi:focus-visible .vm-cart-count,
#vm-mobile-icons:hover .vm-cart-count,
.ast-site-header-cart:hover .count,
.ast-site-header-cart:focus-within .count,
.ast-cart-menu-wrap:hover .count,
.ast-cart-menu-wrap:focus-within .count,
.ast-header-woo-cart:hover .count,
.ast-header-woo-cart:focus-within .count,
header .ast-site-header-cart .count,
header .ast-cart-menu-wrap .count,
header .ast-header-woo-cart .count {
    color: var(--vm-grey-900) !important;
    background: #ffffff !important;
    border-color: var(--vm-orange) !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* ------------------------------------------------------------
   C. Quantità carrello non modificabile e leggibilità mobile
   ------------------------------------------------------------ */
body.woocommerce-cart .vimarte-cart-qty-static {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 34px !important;
    min-height: 34px !important;
    color: var(--vm-grey-900) !important;
    background: var(--vm-white) !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: var(--vm-r-xs) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

@media (max-width: 640px) {
    body.woocommerce-cart td.product-price .woocommerce-Price-amount,
    body.woocommerce-cart td.product-subtotal .woocommerce-Price-amount {
        font-size: 12.5px !important;
    }

    body.woocommerce-cart .vimarte-cart-qty-static {
        width: 38px !important;
        height: 28px !important;
        min-height: 28px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
    }

    body.woocommerce-cart .vimarte-trust-item {
        font-size: 12.5px !important;
        padding: 12px 14px !important;
    }

    body.woocommerce-cart .vimarte-secure-badge {
        font-size: 12px !important;
    }

    body.woocommerce-cart .vimarte-empty-cart-panel {
        min-height: 320px !important;
        padding: 76px 28px 84px !important;
    }

    body.woocommerce-cart .vimarte-empty-cart-title {
        font-size: 25px !important;
        line-height: 1.25 !important;
    }

    body.woocommerce-cart .vimarte-empty-cart-link {
        font-size: 13px !important;
        letter-spacing: 1.3px !important;
    }
}

/* ------------------------------------------------------------
   D. Checkout desktop: colonne allineate senza spazio vuoto a destra
   ------------------------------------------------------------ */
@media (min-width: 922px) {
    body.woocommerce-checkout form.checkout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 400px !important;
        column-gap: 64px !important;
        row-gap: 0 !important;
        align-items: start !important;
    }

    body.woocommerce-checkout form.checkout #customer_details {
        grid-column: 1 !important;
        grid-row: 1 !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout #customer_details .col-2 {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields > h3,
    body.woocommerce-checkout form.checkout #order_review_heading {
        min-height: 48px !important;
        margin: 0 0 18px !important;
        padding: 0 0 14px !important;
        display: flex !important;
        align-items: flex-start !important;
        color: var(--vm-grey-900) !important;
        border: 0 !important;
        border-bottom: 1px solid var(--vm-grey-200) !important;
        box-shadow: none !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    body.woocommerce-checkout form.checkout #order_review_heading {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    body.woocommerce-checkout form.checkout #order_review {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: start !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 66px 0 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
}

/* Coupon dentro colonna ordine: subito sotto il titolo, senza sovrapposizione icona/testo. */
body.woocommerce-checkout #order_review .woocommerce-form-coupon-toggle {
    margin: 0 0 18px !important;
}

body.woocommerce-checkout #order_review .woocommerce-form-coupon-toggle .woocommerce-info {
    position: relative !important;
    margin: 0 !important;
    padding: 16px 18px 16px 38px !important;
    border-top: 3px solid var(--vm-orange) !important;
    background: var(--vm-grey-50) !important;
    color: var(--vm-grey-700) !important;
    line-height: 1.45 !important;
}

body.woocommerce-checkout #order_review .woocommerce-form-coupon-toggle .woocommerce-info::before {
    left: 16px !important;
    top: 18px !important;
    color: var(--vm-orange) !important;
}

body.woocommerce-checkout #order_review form.checkout_coupon,
body.woocommerce-checkout #order_review .checkout_coupon {
    margin: 0 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ------------------------------------------------------------
   E. Scelta cliente privato/azienda
   ------------------------------------------------------------ */
body.woocommerce-checkout .vimarte-customer-type-row {
    margin: 0 0 18px !important;
    padding: 16px 18px !important;
    background: var(--vm-grey-50) !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: var(--vm-r-sm) !important;
}

body.woocommerce-checkout .vimarte-customer-type-row > label {
    display: block !important;
    margin-bottom: 10px !important;
    color: var(--vm-grey-900) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .2px !important;
}

body.woocommerce-checkout .vimarte-customer-type-row .woocommerce-input-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

body.woocommerce-checkout .vimarte-customer-type-row .woocommerce-input-wrapper label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    color: var(--vm-grey-700) !important;
    background: var(--vm-white) !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: var(--vm-r-sm) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

body.woocommerce-checkout .vimarte-customer-type-row input[type="radio"] {
    accent-color: var(--vm-orange) !important;
}

body.woocommerce-checkout .vimarte-checkout-hp {
    display: none !important;
}

/* ------------------------------------------------------------
   F. Password registrazione checkout: nativa + fallback Vimarte
   ------------------------------------------------------------ */
body.woocommerce-checkout .woocommerce-account-fields,
body.woocommerce-checkout .vimarte-account-password-fallback {
    margin: 18px 0 24px !important;
    padding: 16px 18px !important;
    background: var(--vm-grey-50) !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: var(--vm-r-sm) !important;
    font-family: 'Poppins', sans-serif !important;
}

body.woocommerce-checkout .woocommerce-account-fields label,
body.woocommerce-checkout .woocommerce-account-fields .create-account label,
body.woocommerce-checkout .vimarte-account-password-fallback label {
    color: var(--vm-grey-900) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body.woocommerce-checkout .woocommerce-account-fields input[type="checkbox"] {
    accent-color: var(--vm-orange) !important;
}

body.woocommerce-checkout #account_password_field {
    margin: 0 !important;
}

body.woocommerce-checkout #account_password,
body.woocommerce-checkout .vimarte-account-password-fallback input[type="password"] {
    width: 100% !important;
    min-height: 42px !important;
    color: var(--vm-grey-700) !important;
    background: var(--vm-white) !important;
    border: 1px solid var(--vm-grey-200) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    outline: none !important;
}

body.woocommerce-checkout #account_password:focus,
body.woocommerce-checkout .vimarte-account-password-fallback input[type="password"]:focus {
    border-color: var(--vm-orange) !important;
    box-shadow: 0 0 0 2px rgba(201, 106, 26, .12) !important;
}

@media (max-width: 640px) {
    body.woocommerce-checkout #order_review .woocommerce-form-coupon-toggle .woocommerce-info {
        padding: 16px 18px 16px 42px !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
    }

    body.woocommerce-checkout .vimarte-customer-type-row .woocommerce-input-wrapper {
        flex-direction: column !important;
    }
}
