/* Cart Preview Notification */
.cart-preview {
    position: fixed;
    top: 80px;
    right: -400px;
    width: 380px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: right 0.3s ease;
}

.cart-preview.show {
    right: 20px;
}

.cart-preview-content {
    padding: 1.5rem;
}

.cart-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.cart-preview-header i {
    color: #27ae60;
    font-size: 1.5rem;
}

.cart-preview-header span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.cart-preview-body {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-preview-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background-color: #f8f9fa;
}

.cart-preview-details h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.cart-preview-details p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.cart-preview-price {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    color: #e74c3c !important;
    margin-top: 0.5rem !important;
}

.cart-preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn-preview-continue,
.btn-preview-cart {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-preview-continue {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e0e0e0;
}

.btn-preview-continue:hover {
    background: #e0e0e0;
}

.btn-preview-cart {
    background: #e74c3c;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-preview-cart:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-preview {
        width: calc(100% - 40px);
        right: -100%;
        top: 70px;
    }
    
    .cart-preview.show {
        right: 20px;
    }
    
    .cart-preview-body {
        grid-template-columns: 80px 1fr;
    }
    
    .cart-preview-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-preview-actions {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes slideInRight {
    from {
        right: -400px;
        opacity: 0;
    }
    to {
        right: 20px;
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        right: 20px;
        opacity: 1;
    }
    to {
        right: -400px;
        opacity: 0;
    }
}
