* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #9333ea;
    --secondary-purple: #a855f7;
    --light-purple: #c084fc;
    --dark-bg: #0a0e1a;
    --card-bg: #141824;
    --accent-purple: #7c3aed;
    --accent-blue: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f35 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

.navbar-top {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f35 100%);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-purple);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-brand img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-purple);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1) rotate(360deg);
}

.navbar-brand h1 {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
    letter-spacing: 2px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(147, 51, 234, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary-purple);
}

.username {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-purple);
}

.btn-back {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(147, 51, 234, 0.6);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.empty-cart {
    background: var(--card-bg);
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(147, 51, 234, 0.2);
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart h2 {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cart-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 2px solid rgba(147, 51, 234, 0.1);
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.3);
}

.item-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1a1f35 0%, var(--card-bg) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(147, 51, 234, 0.2);
    overflow: hidden;
}

.item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(147, 51, 234, 0.3));
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.item-id {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.item-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-purple);
    margin-top: 0.5rem;
}

.euro-icon {
    font-size: 1.6rem;
}

.remove-btn {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.remove-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

.cart-summary {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--primary-purple);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.3);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.summary-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.summary-line:last-of-type {
    border-bottom: none;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 2px solid var(--primary-purple);
}

.summary-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-primary);
}

.total-label {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-primary);
}

.total-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-purple);
}

.discount-row {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.discount-row-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.discount-row-inputs {
    display: flex;
    gap: 0.6rem;
}

.discount-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(147, 51, 234, 0.3);
    border-radius: 50px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.discount-input::placeholder {
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
}

.discount-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.3);
}

.discount-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-apply-discount {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.btn-apply-discount:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.5);
}

.btn-apply-discount:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.discount-feedback {
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 1rem;
}

.discount-feedback.success {
    color: var(--success);
}

.discount-feedback.error {
    color: var(--danger);
}

.discount-label-active {
    color: var(--success) !important;
}

.discount-value-active {
    color: var(--success) !important;
}

.payment-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    background: rgba(147, 51, 234, 0.1);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid rgba(147, 51, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: var(--primary-purple);
}

.payment-method input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-purple);
    cursor: pointer;
}

.payment-method label {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.payment-icon {
    font-size: 1.5rem;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(147, 51, 234, 0.6);
}

.btn-checkout:disabled {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    cursor: not-allowed;
    opacity: 0.6;
}

.login-notice {
    background: rgba(239, 68, 68, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(239, 68, 68, 0.3);
    margin-bottom: 1rem;
}

.login-notice p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.btn-login {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

.delivery-info {
    background: rgba(147, 51, 234, 0.1);
    padding: 1rem;
    border-radius: 15px;
    margin-top: 1.5rem;
    border: 2px solid rgba(147, 51, 234, 0.3);
}

.delivery-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0.3rem 0;
}

.delivery-info strong {
    color: var(--primary-purple);
}

@media (max-width: 1024px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .navbar-top {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-brand h1 {
        font-size: 1.8rem;
    }

    .navbar-brand img {
        width: 45px;
        height: 45px;
    }

    .container {
        padding: 2rem 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

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

    .item-image {
        width: 150px;
        height: 150px;
    }

    .cart-summary {
        padding: 1.5rem;
    }
}
.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 1rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(147, 51, 234, 0.15);
    color: var(--primary-purple, #9333ea);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(147, 51, 234, 0.35);
}

.qty-input {
    width: 44px;
    height: 28px;
    text-align: center;
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.item-line-total {
    font-size: 0.85rem;
    color: var(--primary-purple, #9333ea);
    font-weight: 600;
    margin-left: 0.3rem;
}