/* ==================================================
   Custom My Cart Page Styles
   ================================================== */
body {
    background-color: #0B081D;
    color: #e5e7eb;
}

.mht-cart-page-wrapper {
    padding: 40px 0 80px 0;
}

.cart-top-header {
    margin-bottom: 40px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.cart-page-title {
    font-size: 28px;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 700;
}
.cart-page-title .text-green { color: #10b981; margin-right: 10px; }

.breadcrumbs {
    font-size: 14px;
    color: #9ca3af;
}
.breadcrumbs .highlight {
    color: #3b82f6;
    font-weight: 600;
}

/* ==================================================
   WooCommerce Default Cart Override (Dark Theme)
   ================================================== */
.mht-dynamic-cart-area .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

/* 🌟 Left Side: Cart Table 🌟 */
.woocommerce-cart-form {
    flex: 1 1 60%;
    width: 100%;
}

.woocommerce table.shop_table {
    border: none;
    border-radius: 12px;
    margin-bottom: 0;
}

.woocommerce table.shop_table th {
    background: #16122b;
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}
.woocommerce table.shop_table th:first-child { border-radius: 8px 0 0 8px; }
.woocommerce table.shop_table th:last-child { border-radius: 0 8px 8px 0; }

.woocommerce table.shop_table td {
    background: rgba(22, 18, 43, 0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    color: #e5e7eb;
    vertical-align: middle;
}

.woocommerce table.shop_table .cart_item:hover td {
    background: rgba(22, 18, 43, 0.9);
}

/* Product Thumbnail & Link */
.woocommerce table.shop_table td.product-thumbnail img {
    width: 80px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.woocommerce table.shop_table td.product-name a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}
.woocommerce table.shop_table td.product-name a:hover {
    color: #3b82f6;
}

/* Quantity Input */
.woocommerce .quantity .qty {
    width: 60px;
    height: 40px;
    background: #0B081D;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 6px;
    padding: 0 10px;
    font-weight: 600;
    text-align: center;
}

/* Remove Button */
.woocommerce a.remove {
    color: #ef4444 !important;
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}
.woocommerce a.remove:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

/* Coupon Box and Update Button */
.woocommerce-cart-form__contents .actions {
    padding: 25px 0 !important;
    background: transparent !important;
    border: none !important;
}
.woocommerce .coupon {
    display: flex;
    gap: 10px;
    align-items: center;
}
.woocommerce .coupon input.input-text {
    background: #16122b !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    width: 200px !important;
}
.woocommerce .coupon input.input-text::placeholder { color: #64748b; }

.woocommerce .button {
    background: #3b82f6 !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: 0.3s !important;
}
.woocommerce .button:hover {
    background: #2563eb !important;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}
.woocommerce .button[name="update_cart"] {
    background: #16122b !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
.woocommerce .button[name="update_cart"]:hover {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

/* 🌟 Right Side: Cart Totals 🌟 */
.cart-collaterals {
    flex: 1 1 35%;
    width: 100%;
}
.woocommerce .cart-collaterals .cart_totals {
    background: #16122b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    float: none;
}
.woocommerce .cart-collaterals .cart_totals h2 {
    color: #fff;
    font-size: 20px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 20px;
}
.woocommerce .cart-collaterals .cart_totals table {
    width: 100%;
    border: none;
    margin-bottom: 20px;
}
.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce .cart-collaterals .cart_totals table td {
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: transparent;
    color: #e5e7eb;
}
.woocommerce .cart-collaterals .cart_totals table th { font-weight: 500; }
.woocommerce .cart-collaterals .cart_totals table td { text-align: right; }
.woocommerce .cart-collaterals .cart_totals table td strong { color: #10b981; font-size: 18px; }

/* Checkout Button in Cart */
.woocommerce .cart-collaterals .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: #10b981 !important;
    padding: 15px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
}
.woocommerce .cart-collaterals .checkout-button:hover {
    background: #059669 !important;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* WooCommerce Messages/Errors */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background: #16122b !important;
    color: #fff !important;
    border-top-color: #3b82f6 !important;
}

/* ==========================================
   Responsive Mobile
   ========================================== */
@media (max-width: 768px) {
    .mht-dynamic-cart-area .woocommerce {
        flex-direction: column;
    }
    .woocommerce-cart-form, .cart-collaterals {
        flex: 1 1 100%;
    }
    .woocommerce .coupon { flex-direction: column; width: 100%; }
    .woocommerce .coupon input.input-text, .woocommerce .coupon .button { width: 100% !important; }
    .woocommerce .button[name="update_cart"] { width: 100%; margin-top: 15px; }
}