/* Cart-specific styles */
.cart-table { max-width: 1000px; }

/* Cart Table - Mobile Optimizations */
@media (max-width: 768px) {
    .cart-table .table { font-size: 0.9rem; }
    .cart-table thead { display: none; }
    .cart-table tr { display: block; margin-bottom: 1.5rem; border: 1px solid #dee2e6; border-radius: 8px; padding: 1rem; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
    .cart-table td { display: block; text-align: right !important; padding: 0.5rem 0; border: none; }
    .cart-table td::before { content: attr(data-label); float: left; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; color: #6c757d; }
    .cart-table td:first-child { text-align: left !important; display: flex; align-items: center; gap: 1rem; }
    .cart-table td:first-child a { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
    .cart-table td:first-child img { width: 80px; height: 80px; object-fit: cover; }
    .cart-table td:nth-child(2) { text-align: left !important; }
    .cart-table .quantity-input { width: 100% !important; max-width: 120px; }
    .cart-table td:last-child { text-align: left !important; margin-top: 0.5rem; }
}

@media (max-width: 480px) {
    .cart-table td:first-child img { width: 60px; height: 60px; }
}

/* Mobile Cart - Title Above Image + Right-Aligned Quantity/Prices */
@media (max-width: 768px) {
    .cart-table tr { display: block; margin-bottom: 1.5rem; border: 1px solid #b0bbc5; border-radius: 12px; padding: 1rem; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    .cart-table td:first-child { display: block; text-align: center !important; padding-bottom: 1rem; }
    .cart-table td:first-child a { display: block; text-decoration: none; }
    .cart-table td:first-child strong { display: block; font-size: 1.2rem; font-weight: bold; color: #212529; margin-bottom: 0.75rem; }
    .cart-table td:first-child img { width: 100%; max-width: 300px; height: auto; object-fit: cover; border-radius: 12px; display: block; margin: 0 auto; }
    .cart-table td:first-child::before { content: none; }
    .cart-table td:nth-child(2), .cart-table td:nth-child(3), .cart-table td:nth-child(4) { text-align: right !important; padding: 0.75rem 0; }
    .cart-table td:nth-child(2)::before { content: "Quantity: "; }
    .cart-table td:nth-child(3)::before { content: "Unit Price: "; }
    .cart-table td:nth-child(4)::before { content: "Total: "; }
}

.woocommerce-message, .woocommerce-info, .woocommerce-error {
    border-left: 4px solid #e4002b !important;
    background: #f8f9fa;
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    font-size: 1.1em;
}
.woocommerce-message { border-left-color: #28a745 !important; }
