/* Page transition fade-in */
body {
    animation: fadeInPage 0.35s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes fadeInPage {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Shadows */
.candy-shadow {
    box-shadow: 0px 8px 24px rgba(240, 98, 146, 0.12);
}

.gummy-shadow {
    box-shadow: 0px 8px 24px rgba(240, 98, 146, 0.12);
}

.squishy-shadow {
    box-shadow: 0 4px 12px rgba(255, 78, 145, 0.15);
    transition: all 0.3s ease;
}

.squishy-shadow:hover {
    box-shadow: 0 8px 24px rgba(255, 78, 145, 0.25);
}

/* Gradients & Buttons */
.gummy-btn {
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%), #ab2c5d;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gummy-btn:active {
    transform: scale(0.95);
}

.candy-gradient {
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
}

.squishy-active:active {
    transform: scale(0.96);
}

/* Candy cane progress bar */
.candy-cane-progress {
    background: repeating-linear-gradient(
        45deg,
        #ab2c5d,
        #ab2c5d 10px,
        #ffffff 10px,
        #ffffff 20px
    );
}

/* Blobs and shapes */
.asymmetric-blob {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
}

.glass-panel {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.7);
}

.glass-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f3f3f4;
}
::-webkit-scrollbar-thumb {
    background: #f06292;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ab2c5d;
}

/* Confection grid layout */
.confection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* Floating Animations */
.sparkle-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Fade-in animations for grid loading */
.animate-fade-in-up {
    animation: fadeInUp 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

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

/* Cart Drawer */
#cart-drawer {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cart-drawer.open {
    transform: translateX(0);
}

#cart-overlay {
    transition: opacity 0.4s ease;
}

/* Modal styles */
#product-modal {
    transition: opacity 0.3s ease;
}

#modal-content {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Sweetness candy rating meter */
.candy-rating-star {
    font-size: 1.25rem;
    color: #ffd9e1;
    transition: color 0.2s ease;
}
.candy-rating-star.filled {
    color: #f06292;
}

/* Toast Notifications */
.toast-notification {
    animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               fadeOut 0.4s ease forwards 2.6s;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
}

/* Confetti simulation keyframes */
@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffd9e1;
    opacity: 0;
    animation: confettiFall 3s linear infinite;
    z-index: 100;
}
