@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(-45deg, #f0f9ff, #e0f2fe, #dbeafe, #f8fbff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #1e293b;
    scroll-behavior: smooth;
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Falling Hearts Styles */
#hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    top: -50px; 
    color: #3b82f6;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.2));
    animation: fallDown linear forwards;
}

@keyframes fallDown {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.blue-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.9);
}

.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.08);
}

.cart-sidebar {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.animate-up { animation: slideIn 0.6s ease forwards; }

.page-view {
    display: none;
    min-height: 80vh;
}

.page-view.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

/* Cart Badge Pulse */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.pulse-badge {
    animation: pulse 0.3s ease-in-out;
}

/* Hide Scrollbar */
::-webkit-scrollbar { width: 0px; }

/* Admin Editing Styles */
[contenteditable="true"]:hover {
    outline: 2px dashed #10b981 !important;
    outline-offset: 4px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    cursor: text;
}

[contenteditable="true"]:focus {
    outline: 2px solid #10b981 !important;
    outline-offset: 4px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}

.admin-editing {
    position: relative;
}

/* Modal Image Preview */
#img-preview-container {
    background-image: 
        linear-gradient(45deg, #f8fafc 25%, transparent 25%), 
        linear-gradient(-45deg, #f8fafc 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #f8fafc 75%), 
        linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #ffffff;
}

#modal-img-preview {
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#img-preview-container:hover #modal-img-preview {
    transform: scale(1.05);
}
