 .cart-page {
    padding: 2rem 1rem;
    background: var(--orange);
    min-height: 70vh;
}

.cart-container {
    max-width: 90%;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 2rem; /* Added padding */
    background: #f9f9f9; /* Optional: match your theme background */
    margin-bottom: 20px;
}

.text-center {
    color : red;
    text-align: center;
}

.cart-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cart-item-card-v2 {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 1rem;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-qty-count {
    color: red;
    font-weight: bold;
    font-size: 1.2rem;
}

.cart-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff3e0;
}

.cart-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.cart-price-light {
    font-size: 0.9rem;
    color: #666;
    margin-top: -0.3rem;
}

.cart-options {
    font-size: 0.9rem;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cart-options div {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-controls a {
    text-decoration: none;
    font-size: 1rem;
    color: var(--green);
    font-weight: bold;
}

.cart-controls .icon-btn {
    font-size: 1.1rem;
    padding: 0 5px;
    color: #444;
}

.cart-controls .trash:hover {
    color: var(--red);
}

.cart-controls .edit:hover {
    color: var(--green);
}

.cart-item-total {
    font-weight: bold;
    font-size: 1rem;
    color: #111;
}

.total-text {
    padding: 2rem 0 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: #000;
    text-align: right;
}

.checkout-button {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    float: right;
    margin-top: 5rem; /* ⬅️ Increased from 1rem to 2.5rem */
}

.checkout-button:hover {
    background: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239,150,81,0.3);
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--red);
    font-size: 1.5rem;
}

.empty-cart-message {
    margin: 2rem 0;
    text-align: center;
}

.browse-menu-link {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-title-red {
    color: var(--red);
    font-size: 1rem;
    font-weight: bold;
    flex: 1;
    padding-right: 0.5rem;
}

.browse-menu-link:hover {
    background: var(--green);
    transform: translateY(-2px);
}

/* === Mobile Fixes === */
@media (max-width: 768px) {
    .cart-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 1.5rem 1rem;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        background: #f9f9f9;
        text-align: center;
    }

    .cart-items-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2rem;
    }
.cart-item-card-v2 {
    text-align: left !important;
    max-width: 300px;
    padding: 12px;
}

.cart-title-red {
    text-align: left !important;
    display: block !important;
}

.cart-price-light {
    text-align: left !important;
    display: block !important;
}
   

.checkout-button {
    float: none;
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: auto;
    max-width: 250px;
    text-align: center;
    margin: 2rem auto;  /* ✅ Center horizontally */
}

/* ✅ Add this hover rule to change text color */
.checkout-button:hover {
    background: var(--green);
    color: var(--red);            /* ✅ Text turns red */
    transform: translateY(-2px);
}

    .total-text {
        text-align: center;
        margin-top: 2rem;
    }
}

/* === Mobile Fixes Smaller Devices === */
@media (max-width: 400px) {
    .cart-item-card-v2 {
        text-align: left !important;
        max-width: 270px;
        padding: 12px;
    }
}