/* ==========================================================================
   STILE PAGINA CARRELLO WOOCOMMERCE
   ========================================================================== */

.cart-title {
    margin-bottom: 15px;
    font-style: italic;
}

h2 {
    color: var(--orange) !important;
}

/* Contenitore principale della tabella prodotti */
.woocommerce-cart-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.coupon input {
    min-width: 200px;
}

/* Reset Tabella */
.woocommerce-cart-form table.shop_table {
    border: none !important;
    border-radius: 0;
}

/* WOOCOMMERCE */
.shop_table tr,
.shop_table th,
.shop_table td {
  border: 0px !important;
}


.woocommerce-cart-form table.shop_table th {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    color: #666;
    padding-bottom: 15px;
}

.woocommerce-cart-form table.shop_table td {
    padding: 20px 10px !important;
    vertical-align: middle;
}

/* Rimuovi bordo ultima riga */
.woocommerce-cart-form table.shop_table tr.cart_item:last-child td {
    border-bottom: none !important;
}

/* Immagine prodotto */
.woocommerce-cart-form .product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Link Titolo Prodotto */
.woocommerce-cart-form .product-name a {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.woocommerce-cart-form .product-name a:hover {
    color: var(--orange);
}

/* Icona Rimozione (X) */
.woocommerce-cart-form .product-remove a.remove {
    color: #d9534f !important;
    background: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-cart-form .product-remove a.remove:hover {
    background: #d9534f !important;
    color: #fff !important;
}

/* ==========================================================================
   BOX TOTALI CARRELLO
   ========================================================================== */
.cart-collaterals {
    background: var(--secondary-bg-color); /* Lo sfondo crema del tuo sito */
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.cart_totals {
    width: 100% !important;
}




td.actions:hover {
    background-color: transparent;
}

.cart-collaterals h2 {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-style: italic;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.cart-collaterals table.shop_table {
    border: none !important;
    background: transparent !important;
    width: 100%;
}

.cart-collaterals table.shop_table th,
.cart-collaterals table.shop_table td {
    padding: 15px!important;
    color: #1a1a1a;
    font-family: "Inter", sans-serif;
}

.cart-collaterals table.shop_table td {
    text-align: right;
}

/* Importo Totale */
.cart-collaterals table.shop_table .order-total .amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--orange);
}

/* ==========================================================================
   BOTTONI
   ========================================================================== */

/* Pulsante Aggiorna Carrello */
.woocommerce-cart-form button[name="update_cart"] {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border-radius: 30px !important;
    padding: 12px 25px !important;
    font-family: "Inter", sans-serif;
    font-size: 13px !important;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
    float: right; /* Lo spinge a destra visto che abbiamo tolto i coupon */
}

.woocommerce-cart-form button[name="update_cart"]:hover {
    background-color: #333 !important;
}

/* Pulsante Checkout (Procedi al Pagamento) */
.wc-proceed-to-checkout {
    padding-top: 30px;
}

.checkout-button {
    background-color: var(--orange) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 18px 30px !important;
    font-family: "Inter", sans-serif;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: block;
    text-align: center;
    transition: 0.3s ease;
}

.checkout-button:hover {
    background-color: #a05835 !important;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .woocommerce-cart-form, .cart-collaterals {
        padding: 20px;
    }
    
    .woocommerce-cart-form button[name="update_cart"] {
        width: 100%;
        margin-top: 20px;
    }
}