.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}


.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(225, 29, 72, 0.2);
}

.cart-header h1 {
    color: #ffffff;
    font-weight: 700;
    font-size: 32px;
    background: linear-gradient(135deg, #ffffff, #fda4af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-summary {
    color: #fda4af;
    font-size: 18px;
    font-weight: 500;
}

.cart-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .cart-container {
        flex-direction: row;
        gap: 30px;
    }
    
    .cart-items {
        flex: 2;
    }
    
    .cart-total {
        flex: 1;
        min-width: 350px;
    }
}

@media (max-width: 767px) {
    .cart-total {
        width: 100%;
    }
}

.cart-items {
    flex: 2;
}

.cart-total {
    flex: 1;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.15), rgba(159, 18, 57, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(190, 18, 60, 0.2);
    align-self: flex-start;
}

.cart-item {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.1), rgba(159, 18, 57, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(190, 18, 60, 0.15);
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(190, 18, 60, 0.25);
    border-color: rgba(225, 29, 72, 0.4);
}

@media (min-width: 576px) {
    .cart-item {
        flex-direction: row;
    }
}

.item-image {
    width: 100%;
    max-width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.05), rgba(159, 18, 57, 0.02));
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.item-image:hover {
    transform: scale(1.05);
}

@media (min-width: 576px) {
    .item-image {
        margin-bottom: 0;
        margin-right: 20px;
    }
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.item-price {
    color: #fbbf24;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.item-description {
    color: #fce7f3;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid rgba(225, 29, 72, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(225, 29, 72, 0.05);
}

.quantity-btn {
    background: transparent;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: rgba(225, 29, 72, 0.2);
    color: #fbbf24;
}

.quantity-input {
    width: 50px;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    padding: 8px 0;
    background: transparent;
    color: #ffffff;
}

.remove-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.remove-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cart-total h2 {
    color: #ffffff;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(225, 29, 72, 0.2);
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 8px 0;
}

.total-label {
    color: #fda4af;
    font-size: 16px;
}

.total-value {
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
}

.grand-total {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid rgba(225, 29, 72, 0.3);
    font-size: 22px;
}

.grand-total-label {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grand-total-value {
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #7f1d1d;
    border: none;
    padding: 16px;
    margin-top: 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.empty-cart {
    text-align: center;
    margin: 80px 0;
    padding: 60px;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.1), rgba(159, 18, 57, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.empty-cart p {
    color: #fda4af;
    font-size: 20px;
    margin-bottom: 24px;
}

.continue-shopping {
    display: inline-block;
    background: linear-gradient(135deg, #be123c, #9f1239);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(190, 18, 60, 0.3);
    background: linear-gradient(135deg, #9f1239, #881337);
    text-decoration: none;
}

.secure-checkout {
    text-align: center;
    margin-top: 16px;
    color: #fda4af;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secure-checkout::before {
    content: '🔒';
    font-size: 16px;
}

/* Animation for cart items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .cart-header h1 {
        font-size: 24px;
    }
    
    .item-name {
        font-size: 18px;
    }
    
    .item-price {
        font-size: 20px;
    }
}