/* Cart & Checkout Styling - ModaBorsa */

/* Cart Table Styling */
.woocommerce-cart-form .shop_table {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 30px;
}

.woocommerce-cart-form .shop_table thead {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-cart-form .shop_table thead th {
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    text-align: left;
}

.woocommerce-cart-form .shop_table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.woocommerce-cart-form .shop_table tbody tr:hover {
    background: #f8f9fa;
}

.woocommerce-cart-form .shop_table tbody tr:last-child {
    border-bottom: none;
}

.woocommerce-cart-form .shop_table tbody td {
    padding: 20px;
    border: none;
    vertical-align: middle;
}

/* Product Remove Button */
.woocommerce-cart-form .product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.woocommerce-cart-form .product-remove a:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    transform: scale(1.1);
}

/* Product Thumbnail */
.woocommerce-cart-form .product-thumbnail {
    width: 80px;
}

.woocommerce-cart-form .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

/* Product Name */
.woocommerce-cart-form .product-name {
    font-weight: 500;
    color: #333;
}

.woocommerce-cart-form .product-name a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.woocommerce-cart-form .product-name a:hover {
    color: #000;
}

/* Product Price */
.woocommerce-cart-form .product-price {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

.woocommerce-cart-form .product-price .amount {
    font-weight: 600;
}

/* Quantity Input */
.woocommerce-cart-form .quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.woocommerce-cart-form .ux-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.woocommerce-cart-form .ux-quantity__button {
    background: #f8f9fa;
    border: none;
    color: #333;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
}

.woocommerce-cart-form .ux-quantity__button:hover {
    background: #000;
    color: #fff;
}

.woocommerce-cart-form .ux-quantity input[type="hidden"] {
    display: none;
}

/* Product Subtotal */
.woocommerce-cart-form .product-subtotal {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

/* Cart Actions */
.woocommerce-cart-form .actions {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.woocommerce-cart-form .actions .button {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.woocommerce-cart-form .actions .button:hover {
    background: #333;
    border-color: #333;
}

.woocommerce-cart-form .actions .button-continue-shopping {
    background: transparent;
    color: #000;
    border: 1px solid #e0e0e0;
    margin-right: 15px;
}

.woocommerce-cart-form .actions .button-continue-shopping:hover {
    background: #f8f9fa;
    border-color: #000;
}

/* Cart Totals */
.cart-collaterals .cart_totals {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.cart-collaterals .cart_totals h2 {
    background: #f8f9fa;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.cart-collaterals .shop_table {
    margin: 0;
    border: none;
}

.cart-collaterals .shop_table th,
.cart-collaterals .shop_table td {
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

.cart-collaterals .shop_table th {
    font-weight: 500;
    color: #666;
    text-align: left;
}

.cart-collaterals .shop_table td {
    font-weight: 600;
    color: #000;
    text-align: right;
}

.cart-collaterals .shop_table .order-total th,
.cart-collaterals .shop_table .order-total td {
    background: #f8f9fa;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    border-bottom: none;
}

/* Shipping Methods */
.shipping__table {
    width: 100%;
    border: none;
}

.shipping__table th,
.shipping__table td {
    padding: 10px 0;
    border: none;
    text-align: left;
}

.shipping__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shipping__list_item {
    margin-bottom: 8px;
}

.shipping__list_label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: color 0.3s ease;
}

.shipping__list_label:hover {
    color: #000;
}

.shipping__list input[type="radio"] {
    margin-right: 8px;
    accent-color: #000;
}

/* Checkout Button */
.wc-proceed-to-checkout .checkout-button {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* Coupon Form */
.ux-cart-coupon {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.ux-cart-coupon .widget-title {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

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

.ux-cart-coupon input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.ux-cart-coupon input[type="text"]:focus {
    border-color: #000;
    outline: none;
}

.ux-cart-coupon button {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ux-cart-coupon button:hover {
    background: #333;
    border-color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .woocommerce-cart-form .shop_table {
        font-size: 0.9rem;
    }
    
    .woocommerce-cart-form .shop_table thead th,
    .woocommerce-cart-form .shop_table tbody td {
        padding: 15px 10px;
    }
    
    .woocommerce-cart-form .product-thumbnail {
        width: 60px;
    }
    
    .woocommerce-cart-form .product-thumbnail img {
        width: 60px;
        height: 60px;
    }
    
    .woocommerce-cart-form .actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .woocommerce-cart-form .actions .button-continue-shopping {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .cart-collaterals .shop_table th,
    .cart-collaterals .shop_table td {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .woocommerce-cart-form .shop_table thead th,
    .woocommerce-cart-form .shop_table tbody td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .woocommerce-cart-form .product-thumbnail {
        width: 50px;
    }
    
    .woocommerce-cart-form .product-thumbnail img {
        width: 50px;
        height: 50px;
    }
    
    .ux-cart-coupon .coupon {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ux-cart-coupon input[type="text"],
    .ux-cart-coupon button {
        width: 100%;
    }
}
