/* --- MODERN CART CSS DESIGN SYSTEM --- */
.cart-container-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.cart-header-title {
    text-align: center;
    margin-bottom: 30px;
}

.cart-header-title h2, h2.my-cart {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    text-align: center;
}

.cart-header-title h2 i, h2.my-cart i {
    color: #ee4d2d;
}

.cart-main-layout, .container-cart {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.cart-left-col, .wrap {
    flex: 1;
    width: 100%;
}

.cart-right-col, .right-cart {
    width: 360px;
    position: sticky;
    top: 20px;
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    box-sizing: border-box;
}

/* Alert banner */
.cart-count-alert, .left-note {
    background: #fff5f5;
    border: 1px solid #ffe3e3;
    color: #333;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-count-alert i, .left-note i {
    color: #ee4d2d;
    font-size: 18px;
}

/* Item cards */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-card:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    border-color: #ffe0d8;
}

.cart-item-img img, .td-img img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
    background-color: #fafafa;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.cart-item-name, .product-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.4;
}

.cart-item-unit-price, .cart-price {
    font-size: 13px;
    color: #777;
}

.cart-item-unit-price span {
    color: #333;
    font-weight: 600;
}

/* Quantity control */
.cart-item-qty-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qty-label {
    font-size: 12px;
    color: #888;
}

.cart-qty-control, .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.qty-btn, .quantity button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #333;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
    user-select: none;
    border: none;
    cursor: pointer;
}

.qty-btn:hover, .quantity button:hover {
    background: #ee4d2d;
    color: #ffffff;
}

.qty-input, .quantity input {
    width: 44px;
    height: 32px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    background: #ffffff;
    outline: none;
}

/* Subtotal amount */
.cart-item-subtotal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 140px;
}

.subtotal-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.subtotal-amount, .td-total {
    font-size: 16px;
    font-weight: 800;
    color: #ee4d2d;
}

/* Action button */
.btn-delete-item, .td-action i {
    background: #fff0f0;
    color: #d32f2f;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease;
}

.btn-delete-item:hover, .td-action i:hover {
    background: #d32f2f;
    color: #ffffff;
    transform: scale(1.08);
}

/* Back to shop */
.cart-back-shop {
    margin-top: 25px;
}

.btn-buy-more, .buy-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-buy-more:hover, .buy-more:hover {
    background: #333;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Order Summary Box */
.right-cart h3 {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    padding-top: 14px;
    border-top: 1px dashed #ddd;
    margin-top: 14px;
    margin-bottom: 16px;
}

.sub-total span {
    font-size: 22px;
    font-weight: 900;
    color: #ee4d2d;
}

.right-cart button, .checkout-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff5722, #ee4d2d);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(238, 77, 45, 0.35);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.right-cart button:hover, .checkout-btn:hover {
    background: linear-gradient(135deg, #ee4d2d, #d0011b);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(238, 77, 45, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .cart-main-layout, .container-cart {
        flex-direction: column;
    }
    .cart-right-col, .right-cart {
        width: 100%;
        position: static;
    }
    .cart-item-card {
        flex-wrap: wrap;
    }
}
