/* --- Cart Page Redesign --- */
.cart-page-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2fe 0%, #eef2ff 100%);
    /* Soft Blue Gradient */
    padding: 100px 20px 120px;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 32px;
    color: #182848;
    margin-bottom: 30px;
    font-weight: 700;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Cart Items List */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.cart-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    background: #f8f9fa;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.item-price {
    font-size: 16px;
    color: #666;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 5px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qty-btn:hover {
    background: #4b6cb7;
    color: white;
}

.qty-display {
    width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.item-subtotal {
    font-size: 18px;
    font-weight: 700;
    color: #182848;
    min-width: 80px;
    text-align: right;
}

.btn-remove-item {
    background: #ffe5e5;
    color: #ff4757;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-item:hover {
    background: #ff4757;
    color: white;
}

/* Order Summary Panel */
.summary-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
    /* Adjust based on header height */
}

.summary-card h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #182848;
    font-size: 20px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
    font-size: 15px;
}

.summary-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 800;
    color: #182848;
    margin-bottom: 30px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(75, 108, 183, 0.3);
}

.secure-badge {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.free-text {
    color: #27ae60;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }

    .cart-item-card {
        flex-direction: column;
        text-align: center;
    }

    .item-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
    }

    .item-subtotal {
        text-align: center;
    }
}