/* Cart Page Specific Styling to Match Home-2 */

/* Page wrapper */
.woocommerce-cart .site-content,
.woocommerce-cart .entry-content {
    background: #f8f9fa;
    padding: 0;
}

/* Cart page title styling */
.woocommerce-cart .entry-header {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('https://eatfromthegarden.com/wp-content/uploads/2024/12/title-page-6.jpg') center center/cover no-repeat;
    padding: 150px 0;
    text-align: center;
    margin-bottom: 0;
}

.woocommerce-cart .entry-title {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Main cart content wrapper */
.woocommerce-cart .woocommerce {
    background: white;
    padding: 60px 0;
    margin: 0;
}

/* Cart table styling */
.woocommerce table.shop_table {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.woocommerce table.shop_table th {
    background-color: #27ae60;
    color: white;
    padding: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border: none;
}

.woocommerce table.shop_table td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.woocommerce table.shop_table tr:last-child td {
    border-bottom: none;
}

/* Product image in cart */
.woocommerce-cart table.cart img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Product name styling */
.woocommerce-cart table.cart .product-name a {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-cart table.cart .product-name a:hover {
    color: #27ae60;
}

/* Price styling */
.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
    color: #27ae60;
    font-weight: 600;
    font-size: 18px;
}

/* Quantity input styling */
.woocommerce .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce .quantity .qty {
    width: 60px;
    height: 40px;
    padding: 0 10px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Remove item link */
.woocommerce a.remove {
    color: #e74c3c !important;
    font-size: 24px !important;
    font-weight: normal !important;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: #fee;
    transition: all 0.3s ease;
}

.woocommerce a.remove:hover {
    background: #e74c3c !important;
    color: white !important;
    transform: rotate(90deg);
}

/* Update cart button */
.woocommerce button[name=update_cart] {
    background: #27ae60 !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.woocommerce button[name=update_cart]:hover {
    background: #219a52 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Coupon section */
.woocommerce-cart .coupon {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.woocommerce-cart .coupon label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.woocommerce-cart .coupon input[type=text] {
    width: 300px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    margin-right: 10px;
}

.woocommerce-cart .coupon button {
    background: #f39c12 !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.woocommerce-cart .coupon button:hover {
    background: #e67e22 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

/* Cart totals section */
.cart-collaterals {
    margin-top: 40px;
}

.cart_totals {
    background: #f8f9fa !important;
    padding: 40px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.cart_totals h2 {
    color: #333 !important;
    font-size: 28px !important;
    margin-bottom: 30px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #27ae60 !important;
}

.cart_totals table {
    width: 100%;
}

.cart_totals th,
.cart_totals td {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart_totals tr:last-child th,
.cart_totals tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
    padding-top: 20px;
}

/* Proceed to checkout button */
.wc-proceed-to-checkout a.checkout-button {
    background: #27ae60 !important;
    color: white !important;
    padding: 18px 40px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    display: block !important;
    transition: all 0.3s ease !important;
    margin-top: 30px !important;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    background: #219a52 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* WooCommerce notices */
.woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}


.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before{top: unset !important;}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    /*display: flex !important;*/
    align-items: center !important;
    gap: 15px !important;
}

.woocommerce-message {
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
}

.woocommerce-message a.button {
    background: #27ae60 !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* Cross-sells section */
.cross-sells {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #e0e0e0;
}

.cross-sells h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

/* Empty cart message */
.cart-empty {
    text-align: center;
    padding: 60px 0;
}

.cart-empty.woocommerce-info {
    /*background: none !important;*/
    border: none !important;
    color: #666 !important;
    font-size: 15px !important;
}

.return-to-shop {
    margin-top: 30px;
}

.return-to-shop .button {
    background: #27ae60 !important;
    color: white !important;
    padding: 15px 40px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.return-to-shop .button:hover {
    background: #219a52 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .woocommerce-cart .entry-header {
        padding: 80px 20px;
    }
    
    .woocommerce-cart .entry-title {
        font-size: 32px;
    }
    
    .woocommerce-cart .woocommerce {
        padding: 40px 20px;
    }
    
    .woocommerce table.shop_table td,
    .woocommerce table.shop_table th {
        padding: 10px;
        font-size: 14px;
    }
    
    .woocommerce-cart table.cart img {
        width: 60px;
        height: 60px;
    }
    
    .cart_totals {
        padding: 20px !important;
    }
    
    .woocommerce-cart .coupon input[type=text] {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Make cart blocks look consistent */
.wp-block-woocommerce-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.wc-block-cart__main {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wc-block-components-button {
    background: #27ae60 !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.wc-block-components-button:hover {
    background: #219a52 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}
