/* ==========================================
   Kids & Kindergarten Theme Additions
   ========================================== */

/* ==========================================
   Scroll Reveal Animation System
   ========================================== */

/* Base hidden state — elements start here */
.sr-hidden {
    opacity: 0;
    will-change: opacity, transform;
}

/* Fade up (default — used for section headers & text blocks) */
.sr-fade-up {
    transform: translateY(48px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fade from left */
.sr-fade-left {
    transform: translateX(-48px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fade from right */
.sr-fade-right {
    transform: translateX(48px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scale in (for cards/features) */
.sr-scale {
    transform: translateY(32px) scale(0.93);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Visible state — same class added after IntersectionObserver triggers */
.sr-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Stagger delays for grid children */
.sr-delay-1 {
    transition-delay: 0.08s !important;
}

.sr-delay-2 {
    transition-delay: 0.16s !important;
}

.sr-delay-3 {
    transition-delay: 0.24s !important;
}

.sr-delay-4 {
    transition-delay: 0.32s !important;
}

.sr-delay-5 {
    transition-delay: 0.40s !important;
}

/* Floating particles keyframe (used by ParticleField) */
@keyframes float-particle {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: var(--op, 0.1);
    }

    33% {
        transform: translateY(-18px) scale(1.1);
    }

    66% {
        transform: translateY(10px) scale(0.9);
    }
}

/* Hero badge floating animation */
@keyframes heroBadgeFloat {
    0% {
        transform: translateY(0px) rotate(-1.5deg) scale(1);
    }

    25% {
        transform: translateY(-8px) rotate(1deg) scale(1.04);
    }

    50% {
        transform: translateY(-14px) rotate(-2deg) scale(1.02);
    }

    75% {
        transform: translateY(-6px) rotate(1.5deg) scale(1.03);
    }

    100% {
        transform: translateY(0px) rotate(-1.5deg) scale(1);
    }
}

.hero-badge-float {
    animation: heroBadgeFloat 4s ease-in-out infinite;
    display: inline-block;
    transform-origin: center center;
}

/* ==========================================
   Hero Title Breathing Animation
   ========================================== */
@keyframes heroBreathing {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.015);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

.hero-title-breathing {
    animation: heroBreathing 3.5s ease-in-out infinite;
    display: inline-block;
    will-change: transform;
}



/* Blob / Organic shapes */
.kids-blob-1 {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.kids-blob-2 {
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%;
}

.kids-blob-3 {
    border-radius: 40% 60% 60% 40% / 60% 50% 50% 40%;
}

/* Wavy transitions */
.wave-container {
    position: relative;
    overflow: hidden;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
}

.wave-divider.top {
    top: 0;
    bottom: auto;
}

.wave-divider.top svg {
    transform: rotate(180deg);
}

/* Soft floating animations */
@keyframes kidsFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.kids-float {
    animation: kidsFloat 6s ease-in-out infinite;
}

.kids-float-delayed {
    animation: kidsFloat 6s ease-in-out infinite;
    animation-delay: 2s;
}

.kids-float-fast {
    animation: kidsFloat 4s ease-in-out infinite;
}

/* Playful pulse */
@keyframes kidsPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.kids-pulse {
    animation: kidsPulse 3s ease-in-out infinite;
}

/* Playful card designs */
.playful-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.playful-card:hover {
    transform: translateY(-8px) scale(1.02) rotate(1deg);
    box-shadow: 0 20px 35px rgba(34, 129, 145, 0.15);
}

/* Wavy borders for headings */
.wavy-underline {
    position: relative;
    display: inline-block;
}

.wavy-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0,3.5 C5,3.5 5,0.5 10,0.5 C15,0.5 15,3.5 20,3.5' fill='none' stroke='%23eea318' stroke-width='3'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 20px 8px;
}

.wavy-underline-primary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0,3.5 C5,3.5 5,0.5 10,0.5 C15,0.5 15,3.5 20,3.5' fill='none' stroke='%23228191' stroke-width='3'/%3E%3C/svg%3E");
}

.wavy-underline-secondary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0,3.5 C5,3.5 5,0.5 10,0.5 C15,0.5 15,3.5 20,3.5' fill='none' stroke='%239f3f3d' stroke-width='3'/%3E%3C/svg%3E");
}

/* ==========================================
   Premium Product Cards Design & Animations
   ========================================== */
.product-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid rgba(34, 129, 145, 0.08);
    border-radius: 28px;
    padding: 18px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(34, 129, 145, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(34, 129, 145, 0.12);
    border-color: rgba(34, 129, 145, 0.2);
}

.product-image-container {
    height: 200px;
    background: linear-gradient(135deg, #f8f6ff 0%, #f1f0ff 100%);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 12px;
    position: relative;
    transition: all 0.4s ease;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-image-container img {
    transform: scale(1.1) rotate(-2deg);
}

.product-card:hover .product-image-container {
    background: linear-gradient(135deg, #f1f0ff 0%, #e8f6f8 100%);
}

.badge-age {
    position: absolute;
    top: 16px;
    right: 16px;
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: 999px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 4px;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.badge-discount {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #d63031 0%, #ff7675 100%);
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 0 6px 12px rgba(214, 48, 49, 0.25);
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

.btn-add-cart {
    padding: 10px 18px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(34, 129, 145, 0.06);
}

.btn-add-cart:hover {
    transform: scale(1.05) translateY(-2px);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

/* ==========================================
   Home Page Responsiveness Classes
   ========================================== */

/* Hero Section */
.home-hero-section {
    background: linear-gradient(135deg, #228191 0%, #1a5c69 50%, #9f3f3d 100%);
    color: #ffffff;
    padding: 50px 50px 90px;
    position: relative;
    overflow: hidden;
}

.home-hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
    z-index: 10;
}

.home-hero-image-outer {
    display: flex;
    justify-content: center;
    position: relative;
}

.home-hero-image-inner {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 440px;
}

/* Features Section */
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* About Section */
.home-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
    align-items: center;
}

.home-about-image-outer {
    display: flex;
    justify-content: center;
    position: relative;
}

.home-about-image-inner {
    animation: kidsFloat 6s ease-in-out infinite;
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 400px;
}

.home-about-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

/* Categories Section */
.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
}

/* Featured Section */
.home-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 44px;
}

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* ==========================================
   Home Page Mobile Adjustments
   ========================================== */

@media (max-width: 992px) {
    .home-hero-section {
        padding: 40px 24px 70px;
    }

    .home-about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {

    /* Hero Section */
    .home-hero-section {
        padding: 30px 16px 60px;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .home-hero-grid .animate-fadeUp {
        padding-left: 0;
    }

    .home-hero-grid h1 {
        font-size: 2.2rem !important;
    }

    .home-hero-grid p {
        font-size: 1rem !important;
        margin-bottom: 24px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-grid div[style*="display: flex"] {
        justify-content: center;
    }

    .home-hero-image-inner {
        max-width: 320px;
        height: 320px;
    }

    /* Features */
    .home-features-grid {
        gap: 20px;
    }

    .playful-card {
        padding: 24px 16px !important;
    }

    /* About Section */
    .home-about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .home-about-image-inner {
        max-width: 320px;
        height: 300px;
    }

    .home-about-checklist {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: center;
    }

    .home-about-checklist div {
        width: 100%;
        max-width: 280px;
    }

    /* Categories Section */
    .home-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .home-categories-grid .playful-card {
        padding: 12px !important;
        border-radius: 18px !important;
    }

    .home-categories-grid .playful-card div[style*="height: 140px"] {
        height: 100px !important;
        margin-bottom: 10px !important;
    }

    .home-categories-grid h3 {
        font-size: 0.95rem !important;
    }

    .home-categories-grid span {
        font-size: 0.7rem !important;
        padding: 2px 8px !important;
    }

    /* Featured Products Header */
    .home-featured-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
        margin-bottom: 24px;
    }

    .home-featured-header h2 {
        font-size: 1.8rem !important;
    }

    .home-featured-header button {
        width: 100%;
        max-width: 240px;
    }

    /* Featured Products Grid */
    .home-featured-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Product Card adjustments on mobile */
    .home-featured-grid .product-card {
        padding: 10px !important;
        border-radius: 16px !important;
    }

    .home-featured-grid .product-image-container {
        height: 120px !important;
        border-radius: 12px !important;
        margin-bottom: 8px !important;
        padding: 6px !important;
    }

    .home-featured-grid .product-card h3 {
        font-size: 0.85rem !important;
        height: 2.2rem !important;
        margin-bottom: 4px !important;
        line-height: 1.25 !important;
    }

    .home-featured-grid .badge-age {
        top: 10px !important;
        right: 10px !important;
        font-size: 0.6rem !important;
        padding: 3px 8px !important;
    }

    .home-featured-grid .badge-discount {
        top: 10px !important;
        left: 10px !important;
        font-size: 0.6rem !important;
        padding: 3px 6px !important;
    }

    .home-featured-grid div[style*="display: flex"][style*="gap: 3px"] {
        margin-bottom: 8px !important;
        gap: 2px !important;
    }

    .home-featured-grid div[style*="display: flex"][style*="gap: 3px"] svg {
        width: 10px;
        height: 10px;
    }

    /* Product Card Footer (Price and Button Stacked) */
    .home-featured-grid .product-card-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    .home-featured-grid .product-card-footer div[style*="color:"] {
        font-size: 0.95rem !important;
        text-align: center;
    }

    .home-featured-grid .product-card-footer span[style*="text-decoration:"] {
        font-size: 0.7rem !important;
        display: block;
        text-align: center;
    }

    .home-featured-grid .btn-add-cart {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 0.78rem !important;
        border-radius: 10px !important;
        gap: 4px !important;
    }

    .home-featured-grid .btn-add-cart svg {
        width: 12px;
        height: 12px;
    }


}

@media (max-width: 480px) {
    .home-hero-grid h1 {
        font-size: 1.8rem !important;
    }

    .home-hero-image-inner {
        max-width: 260px;
        height: 260px;
    }

    .home-hero-grid button {
        width: 100%;
    }

    .home-about-image-inner {
        max-width: 260px;
        height: 240px;
    }

    .home-about-grid h2 {
        font-size: 1.8rem !important;
    }

    .home-categories-grid {
        gap: 8px;
    }

    .home-featured-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .home-featured-grid .product-image-container {
        height: 100px !important;
    }
}

/* About & Vision Section Grid */
.about-section-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 991px) {
    .about-section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Exclusive Offers Products Grid - exactly 2 columns */
.exclusive-offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .exclusive-offers-grid {
        gap: 16px;
    }
    .exclusive-offers-grid .product-card {
        padding: 12px !important;
        border-radius: 20px !important;
    }
    .exclusive-offers-grid .product-image-container {
        height: 150px !important;
        border-radius: 16px !important;
        margin-bottom: 10px !important;
    }
    .exclusive-offers-grid .product-card h3 {
        font-size: 0.9rem !important;
        height: 2.4rem !important;
    }
    .exclusive-offers-grid .btn-add-cart {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .exclusive-offers-grid {
        gap: 10px;
    }
    .exclusive-offers-grid .product-card {
        padding: 8px !important;
        border-radius: 16px !important;
    }
    .exclusive-offers-grid .product-image-container {
        height: 120px !important;
        border-radius: 12px !important;
    }
    .exclusive-offers-grid .product-card h3 {
        font-size: 0.8rem !important;
        height: 2.2rem !important;
    }
    .exclusive-offers-grid .product-card-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }
    .exclusive-offers-grid .btn-add-cart {
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.75rem !important;
    }
}