.cart-page {
    width: 85%;
    margin: 40px auto;

    display: flex;
    gap: 30px;
    align-items: flex-start;

    padding: 30px;
    border-radius: 20px;

    background: linear-gradient(180deg, #0b0715, #070312);
    border: 1px solid rgba(168, 85, 247, 0.15);

    box-shadow: 0 0 40px rgba(168, 85, 247, 0.08);
}

.cart-left {
    flex: 2;
}

.cart-left h2 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 20px;
    border-radius: 16px;

    background: linear-gradient(180deg, #120a22, #0b0715);
    border: 1px solid rgba(255,255,255,0.04);

    transition: all 0.25s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    border: 1px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.cart-item span {
    color: #ccc;
    font-size: 14px;
}

.cart-item .right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item .right span {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.cart-item button {
    background: rgba(255, 77, 77, 0.1);
    border: none;
    color: #ff4d4d;

    width: 30px;
    height: 30px;

    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.cart-item button:hover {
    background: #ff4d4d;
    color: white;
}

.cart-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-summary {
    width: 100%;
    max-width: 280px;

    background: linear-gradient(180deg, #120a22, #0b0715);
    padding: 20px;
    border-radius: 18px;

    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.15);
}

.cart-summary .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #aaa;
    font-size: 14px;
}

.cart-summary .total {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
    margin-top: 10px;
}

.checkout-btn {
    width: 100%;
    margin-top: 15px;
    padding: 13px;

    border-radius: 12px;
    border: none;

    background: linear-gradient(90deg, #a855f7, #7c3aed);
    color: white;

    font-weight: 600;
    font-size: 14px;

    cursor: pointer;
    transition: 0.25s;
}

.checkout-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.cart-empty {
    text-align: center;
    padding: 60px;
    color: #888;
    font-size: 15px;
}

.paypal-modal {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    padding: 20px;
}

.paypal-modal.active {
    display: flex;
}

.paypal-box {
    width: 100%;
    max-width: 420px;

    max-height: 60vh;
    overflow-y: auto; 

    background: linear-gradient(180deg, #120a22, #0b0715);
    padding: 20px;
    border-radius: 16px;

    border: 1px solid rgba(168, 85, 247, 0.3);
}

.paypal-box::-webkit-scrollbar {
    width: 6px;
}

.paypal-box::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 10px;
}

.paypal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

#close-paypal {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    border: none;

    background: rgba(255, 255, 255, 0.05);
    color: #ccc;

    font-size: 14px;
    cursor: pointer;

    transition: all 0.2s ease;
}

#close-paypal:hover {
    background: rgba(168, 85, 247, 0.3);
    color: white;

    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

#close-paypal:active {
    transform: scale(0.95);
}

@media (max-width: 900px) {

    .cart-page {
        flex-direction: column;
        gap: 25px;
        padding: 20px;
        width: 92%;
    }

    .cart-right {
        width: 100%;
        align-items: center;
    }

    .cart-summary {
        max-width: 100%;
        width: 100%;
    }

}

@media (max-width: 600px) {

    .cart-page {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    .cart-left h2 {
        font-size: 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;

        padding: 14px;
    }

    .cart-item .right {
        width: 100%;
        justify-content: space-between;
    }

    .cart-summary {
        padding: 16px;
    }

    .checkout-btn {
        font-size: 13px;
        padding: 11px;
    }

}

@media (max-width: 400px) {

    .cart-left h2 {
        font-size: 18px;
    }

    .cart-item span {
        font-size: 13px;
    }

    .cart-summary .row {
        font-size: 13px;
    }

    .cart-summary .total {
        font-size: 15px;
    }

}

@media (max-width: 600px) {

    .paypal-modal {
        padding: 0;
    }

    .paypal-box {
        width: 100%;
        height: 100%;
        max-height: 100vh;

        border-radius: 0;

        padding: 20px;
    }

}

@media (max-height: 700px) {

    .paypal-box {
        max-height: 100vh;
    }

}