/* ============================================
   CART PAGE - BENTO GRID STYLING
   Professional CSS for WooCommerce Cart Page
   ============================================ */

/* Cart Page Background */
.woocommerce-cart {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    min-height: 100vh;
}

/* Page Header Enhancement */
.woocommerce-cart .entry-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.woocommerce-cart .entry-header::before {
    content: "🛒 Your Cart";
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(20, 83, 45, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 83, 45, 0.2);
    color: var(--zupito-secondary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.woocommerce-cart .entry-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--zupito-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.woocommerce-cart-form {
    background: transparent;
}

/* Cart Table Container */
.woocommerce-cart-form__contents {
    background: white;
    border-radius: 2.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid white;
    overflow: hidden;
}

/* Cart Table Styling */
.shop_table {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.shop_table thead {
    border-bottom: 2px solid #F0FDF4;
    background: #F9FAFB;
}

.shop_table thead tr {
    border-radius: 1rem;
}

.shop_table th {
    color: var(--zupito-primary);
    font-weight: 800;
    padding: 1.25rem 1rem;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    background: transparent;
}

.shop_table tbody tr {
    border-bottom: 1px solid #F0FDF4;
    transition: all 0.2s ease;
}

.shop_table tbody tr:hover {
    background: #F9FAFB;
}

.shop_table td {
    padding: 2rem 1rem;
    vertical-align: middle;
}

.shop_table .product-thumbnail {
    width: 100px;
}

.shop_table .product-thumbnail img {
    border-radius: 1.25rem;
    border: 3px solid white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.shop_table .product-thumbnail img:hover {
    transform: scale(1.05);
}

.shop_table .product-name {
    font-weight: 700;
}

.shop_table .product-name a {
    color: var(--zupito-primary);
    font-weight: 800;
    font-size: 1.15rem;
    transition: color 0.2s ease;
}

.shop_table .product-name a:hover {
    color: var(--zupito-secondary);
}

.shop_table .product-name .variation {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.shop_table .product-name .variation dt {
    font-weight: 600;
    color: var(--zupito-primary);
}

.shop_table .product-name .variation dd {
    margin-left: 0.5rem;
    display: inline;
}

.shop_table .product-price,
.shop_table .product-subtotal {
    color: #DC2626;
    font-weight: 800;
    font-size: 1.25rem;
}

.shop_table .quantity {
    display: inline-flex;
    align-items: center;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 1rem;
    padding: 0.25rem;
    gap: 0.25rem;
}

.shop_table .quantity input {
    border: none;
    background: transparent;
    padding: 0.5rem;
    text-align: center;
    font-weight: 800;
    color: var(--zupito-primary);
    width: 60px;
    font-size: 1rem;
    -moz-appearance: textfield;
    /* Firefox */
}

/* Hide default number input arrows */
.shop_table .quantity input::-webkit-outer-spin-button,
.shop_table .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shop_table .quantity input:focus {
    outline: none;
    box-shadow: none;
}

/* Plus/Minus Buttons */
.shop_table .quantity .qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: var(--zupito-primary);
    color: white;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.shop_table .quantity .qty-btn:hover {
    background: #166534;
    transform: scale(1.1);
}

.shop_table .quantity .qty-btn:active {
    transform: scale(0.95);
}

.shop_table .product-remove a {
    color: #DC2626 !important;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.75rem;
    background: #FEE2E2;
}

.shop_table .product-remove a:hover {
    background: #DC2626;
    color: white !important;
    transform: scale(1.1);
}

/* Cart Actions */
.actions {
    background: #F9FAFB;
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.actions .coupon {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.actions .coupon input {
    border-radius: 1rem;
    border: 2px solid #E5E7EB;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--zupito-primary);
}

.actions .coupon button {
    background: var(--zupito-primary);
    color: white;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
}

.actions .coupon button:hover {
    background: #166534;
    transform: translateY(-2px);
}

.actions button[name="update_cart"] {
    background: white;
    color: #374151;
    border-radius: 1rem;
    padding: 0.75rem 2rem;
    font-weight: 700;
    border: 2px solid #E5E7EB;
    transition: all 0.2s ease;
}

.actions button[name="update_cart"]:hover {
    background: #F9FAFB;
    border-color: var(--zupito-primary);
    color: var(--zupito-primary);
}

/* Cart Totals */
.cart-collaterals {
    margin-top: 2rem;
}

.cart_totals {
    /* background: white;
    padding: 2.5rem;
    border-radius: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid white;
    position: sticky;
    top: 100px; */
}

.cart_totals h2 {
    color: #14532D;
    font-weight: 900;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 3px solid #F0FDF4;
    letter-spacing: -0.02em;
}

.cart_totals table {
    margin-bottom: 2rem;
}

.cart_totals th {
    color: #14532D;
    font-weight: 700;
    padding: 1rem 0;
    font-size: 0.95rem;
}

.cart_totals td {
    color: #DC2626;
    font-weight: 800;
    text-align: right;
    padding: 1rem 0;
    font-size: 1.1rem;
}

.cart_totals tr {
    border-bottom: 1px solid #F0FDF4;
}

.cart_totals .order-total {
    border-top: 3px solid #F0FDF4;
    border-bottom: none;
}

.cart_totals .order-total th {
    font-size: 1.25rem;
    font-weight: 900;
    padding-top: 1.5rem;
}

.cart_totals .order-total td {
    font-size: 2rem;
    font-weight: 900;
    color: #14532D;
    padding-top: 1.5rem;
}

/* Checkout Button */
.wc-proceed-to-checkout {
    margin-top: 2rem;
}

.wc-proceed-to-checkout .checkout-button {
    background: linear-gradient(135deg, #14532D 0%, #166534 100%) !important;
    color: white !important;
    border-radius: 9999px !important;
    padding: 1.25rem 2.5rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    box-shadow: 0 10px 15px -3px rgba(20, 83, 45, 0.3) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    font-size: 1.05rem !important;
}

.wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(20, 83, 45, 0.4) !important;
}

/* Continue Shopping Link */
.woocommerce-cart .return-to-shop {
    text-align: center;
    margin-top: 2rem;
}

.woocommerce-cart .return-to-shop a {
    color: #14532D;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.woocommerce-cart .return-to-shop a:hover {
    color: #F59E0B;
}

/* Empty Cart Styling */
.cart-empty {
    background: white !important;
    border: 2px solid #F0FDF4 !important;
    border-radius: 2rem !important;
    padding: 3rem !important;
    color: #14532D !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

.return-to-shop .button {
    background: #14532D !important;
    color: white !important;
    padding: 1rem 2.5rem !important;
    border-radius: 9999px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    display: inline-block !important;
    margin-top: 1.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(20, 83, 45, 0.2) !important;
}

.return-to-shop .button:hover {
    background: #166534 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(20, 83, 45, 0.3) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woocommerce-cart .entry-title {
        font-size: 2rem;
    }

    .shop_table .product-thumbnail {
        width: 80px;
    }

    .shop_table .product-name a {
        font-size: 1rem;
    }

    .cart_totals {
        position: static;
    }
}