/* Cart System Styles */
.cart-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.cart-container.active {
    transform: translateX(0);
}

.cart-header {
    background: linear-gradient(135deg, rgb(181, 232, 255) 0%, #7ef2ff 25%,  #58eeff 50%,  rgb(71, 235, 253) 75%, #34e5f9 100%);
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.cart-count {
    background: white;
    color: rgb(3, 158, 197);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-close {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: black;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.cart-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:hover {
    border-color: rgb(181, 232, 255);
    box-shadow: 0 4px 15px rgba(181, 232, 255, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.6;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgb(3, 158, 197);
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: rgb(181, 232, 255);
    border-color: rgb(181, 232, 255);
    color: black;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 4px;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #c82333;
    transform: scale(1.05);
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.cart-empty-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.cart-total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgb(3, 158, 197);
}

.cart-checkout {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, rgb(181, 232, 255) 0%, #7ef2ff 25%,  #58eeff 50%,  rgb(71, 235, 253) 75%, #34e5f9 100%);
    color: black;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(181, 232, 255, 0.3);
}

/* Cart Icon Badge */
.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, rgb(181, 232, 255) 0%, #7ef2ff 25%,  #58eeff 50%,  rgb(71, 235, 253) 75%, #34e5f9 100%);
    color: black;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(181, 232, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: linear-gradient(135deg, rgb(181, 232, 255) 0%, #7ef2ff 25%,  #58eeff 50%,  rgb(71, 235, 253) 75%, #34e5f9 100%);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(181, 232, 255, 0.3);
}

.add-to-cart-btn.added {
    background: #28a745;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-container {
        width: 100%;
        right: 0;
        top: 60px;
        max-height: 500px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .cart-container {
        width: 100%;
        right: 0;
        top: 60px;
        max-height: 400px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
}
