/* ==========================================================================
   Kids Wonderland - Playful Theme & Floating Doodles CSS
   ========================================================================== */

/* Keyframe Animations */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(8px) rotate(-3deg);
    }
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.15) rotate(12deg);
        opacity: 1;
    }
}

@keyframes gentleWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes candyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Floating Doodle Stickers */
.floating-doodle {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

.doodle-float-1 {
    animation: floatSlow 4s ease-in-out infinite;
}

.doodle-float-2 {
    animation: floatReverse 5s ease-in-out infinite;
}

.doodle-star-pulse {
    animation: starPulse 3s ease-in-out infinite;
}

/* Soft Kids Pastel Section Backgrounds */
.bg-kids-clouds {
    background: linear-gradient(180deg, #f0fdfa 0%, #fdf2f8 50%, #f8fafc 100%);
}

.bg-kids-cream {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.bg-kids-sky {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.bg-kids-blush {
    background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 100%);
}

/* Candy Circle Backgrounds */
.candy-bg-coral {
    background: radial-gradient(circle, #ffedd5 0%, #fed7aa 60%, #fdba74 100%) !important;
}
.candy-bg-pink {
    background: radial-gradient(circle, #fce7f3 0%, #fbcfe8 60%, #f472b6 100%) !important;
}
.candy-bg-cyan {
    background: radial-gradient(circle, #ccfbf1 0%, #99f6e4 60%, #5eead4 100%) !important;
}
.candy-bg-blue {
    background: radial-gradient(circle, #e0f2fe 0%, #bae6fd 60%, #7dd3fc 100%) !important;
}
.candy-bg-purple {
    background: radial-gradient(circle, #f3e8ff 0%, #e9d5ff 60%, #d8b4fe 100%) !important;
}
.candy-bg-yellow {
    background: radial-gradient(circle, #fef9c3 0%, #fef08a 60%, #fde047 100%) !important;
}
.candy-bg-green {
    background: radial-gradient(circle, #dcfce7 0%, #bbf7d0 60%, #86efac 100%) !important;
}

/* Shop by Little One Component Styles */
.little-one-section {
    position: relative;
    overflow: hidden;
}

.little-one-card {
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

.little-one-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #853953;
    box-shadow: 0 16px 36px rgba(133, 57, 83, 0.16);
}

.little-one-img-box {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.little-one-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.little-one-card:hover .little-one-img {
    transform: scale(1.08);
}

.little-one-pill-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.little-one-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.little-one-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.little-one-card:hover .little-one-title {
    color: #853953;
}

.little-one-desc {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.little-one-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #853953;
    transition: gap 0.2s ease;
}

.little-one-card:hover .little-one-btn {
    gap: 10px;
}

/* Sticker Illustrations */
.svg-sticker {
    display: inline-block;
    vertical-align: middle;
}

/* Kids Curved Pastel Section Box */
.new-arrivals-curved-box {
    background: linear-gradient(180deg, #dcf8f5 0%, #daf5f2 50%, #e6faf8 100%) !important;
    border-radius: 36px 36px 36px 36px !important;
    padding: 36px 28px 40px 28px !important;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.08) !important;
    border: 1px solid rgba(13, 148, 136, 0.12) !important;
}

@media (max-width: 767.98px) {
    .new-arrivals-curved-box {
        border-radius: 24px !important;
        padding: 24px 14px 28px 14px !important;
    }
}

/* ==========================================================================
   Kids Space High-Performance LazyLoad & Speed Optimization CSS
   ========================================================================== */
img[loading="lazy"]:not(.hero-slide-img),
.lazy-img {
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

img[loading="lazy"].lazy-loaded,
.lazy-img.lazy-loaded,
img.loaded {
    opacity: 1 !important;
}

img.lazy-loading {
    background: linear-gradient(110deg, #f8fafc 8%, #f1f5f9 18%, #f8fafc 33%);
    background-size: 200% 100%;
    animation: lazyShimmer 1.5s linear infinite;
}

@keyframes lazyShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fallback toy SVG container styling */
.top-cat-fallback-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 30px;
    color: #853953;
}


