.cart-page {
    padding-top: 140px;
    min-height: 100vh;
    background: var(--gradient-bg);
}

.cart-items {
    background: rgba(15, 0, 40, 0.1);
    border-radius: var(--card-radius);
    padding: 2rem;
    border: 1px solid rgba(106, 76, 255, 0.1);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex: 1;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(106, 76, 255, 0.1);
    color: var(--light);
    border-radius: 6px;
    cursor: pointer;
}

.item-quantity input {
    width: 50px;
    text-align: center;
    background: transparent;
    border: 1px solid rgba(106, 76, 255, 0.2);
    color: var(--light);
    border-radius: 6px;
    padding: 0.25rem;
}

.cart-summary {
    background: rgba(15, 0, 40, 0.1);
    border-radius: var(--card-radius);
    padding: 2rem;
    border: 1px solid rgba(106, 76, 255, 0.1);
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--gray);
}

.coupon-section {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.coupon-section input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(106, 76, 255, 0.2);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

#applyCoupon {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
}

.checkout-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 76, 255, 0.2);
}

/* Modal Styles */
.modal-content {
    background: var(--darker);
    border: 1px solid rgba(106, 76, 255, 0.2);
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: var(--light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(106, 76, 255, 0.2);
    color: var(--light);
    border-radius: 8px;
    padding: 0.75rem;
}

.btn-register {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item img {
        width: 150px;
        height: 150px;
    }

    .item-quantity {
        justify-content: center;
    }
}
/* إضافة خلفية مظللة للـ Modal */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;  /* يجعل الخلفية مظللة بلون أسود */
}

/* تأكد من أن المحتوى داخل الـ Modal غير شفاف */
.modal-content {
    background-color: white !important;
}
