@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap');

:root {
    --primary-color: #039e94;
    --secondary-color: #06a096;
    --light-bg: #F0FEFB;
    --logo-main-color: #e576ab;
}

.bg-primary {
    background-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.border-primary {
    border-color: var(--primary-color);
}

.bg-logo-primay {
    background-color: var(--logo-main-color);
}

.border-logo-primay {
    border-color: var(--logo-main-color);
}

body {
    font-family: 'Baloo 2', 'Fredoka', 'Inter', sans-serif;
}

/* Slider part start */
/*
 * Main slider styles are now in hero_slider.blade.php component
 * These are fallback/override styles for common.css
 */

/* Desktop Slider Height */
@media (min-width: 768px) {
    #hero-slider {
        height: 50vh;
        min-height: 350px;
        max-height: 600px;
    }
}

/* Mobile: Auto height based on image */
@media (max-width: 767px) {
    #hero-slider {
        height: auto !important;
        min-height: 180px;
    }

    .hero-slide.active {
        position: relative !important;
    }

    .hero-slide:not(.active) {
        position: absolute !important;
        top: 0;
        left: 0;
    }

    .mobile-slide img {
        width: 100%;
        height: auto;
        display: block;
    }
}

.text-shadow-lg {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.thumb-wrapper.active {
    border: 4px solid #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* Continuous animation classes */
.continuous-float {
    animation: float 4s ease-in-out infinite;
}

.continuous-float-reverse {
    animation: floatReverse 5s ease-in-out infinite;
}

.continuous-pulse {
    animation: pulseSoft 6s ease-in-out infinite;
}

.continuous-rotate {
    animation: rotateSlow 25s linear infinite;
}

.continuous-bounce {
    animation: bounce 3s ease-in-out infinite;
}

.continuous-shake {
    animation: shake 4s ease-in-out infinite;
}

/* Keyframes for continuous animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatReverse {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }
}

@keyframes pulseSoft {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes rotateSlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

/* Keyframes for entrance animations */
@keyframes slideInLeft {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInTop {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInBottom {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slider part end */

/* shop by age start */
/* Background Pattern */
.bg-pattern {
    background-image: radial-gradient(#e5e7eb 2px, transparent 2px);
    background-size: 30px 30px;
}

/* IDLE ANIMATION: Gentle Float */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* HOVER ANIMATION: Rubber Band Wiggle */
@keyframes rubberBand {
    0% {
        transform: scale3d(1, 1, 1);
    }

    30% {
        transform: scale3d(1.15, 0.85, 1);
    }

    40% {
        transform: scale3d(0.9, 1.1, 1);
    }

    50% {
        transform: scale3d(1.05, 0.95, 1);
    }

    65% {
        transform: scale3d(0.98, 1.02, 1);
    }

    75% {
        transform: scale3d(1.02, 0.98, 1);
    }

    100% {
        transform: scale3d(1, 1, 1);
    }
}

.star-card {
    /* Apply Float with different delays so they don't move in unison */
    animation: float 4s ease-in-out infinite;
    transition: all 0.3s ease;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

.star-card:nth-child(odd) {
    animation-delay: 0s;
}

.star-card:nth-child(even) {
    animation-delay: 2s;
}

.star-card:hover {
    animation: rubberBand 1s;
    /* Triggers the wiggle */
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.2));
    z-index: 10;
}

.star-card:active {
    transform: scale(0.95) translateY(5px);
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

/* Text Shadow for legibility */
.text-emboss {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* shop by age end */



/* Footer part start */
/* ---------- Animations ---------- */
@keyframes bounce-gentle {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-15px)
    }
}

@keyframes wave-hand {

    0%,
    100% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(15deg)
    }

    75% {
        transform: rotate(-15deg)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0
    }

    to {
        transform: translateX(0);
        opacity: 1
    }
}

.doll-left {
    animation: bounce-gentle 2s ease-in-out infinite
}

.doll-right {
    animation: float 3s ease-in-out infinite
}

.doll-right img {
    animation: wave-hand 2s ease-in-out infinite;
    transform-origin: bottom center
}

.cart-item {
    animation: slideInRight .5s ease-out forwards
}

.cart-item:nth-child(2) {
    animation-delay: .1s
}

.cart-item:nth-child(3) {
    animation-delay: .2s
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }
}

.cart-badge {
    animation: pulse-scale 2s ease-in-out infinite
}

/* ---------- Cart Sidebar (Desktop & Mobile) ---------- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    /* Hidden by default */
    width: 380px;
    height: 100vh;
    /* Full height */
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smooth ease */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-sidebar.open {
    right: 0;
    /* Slide in */
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    flex-shrink: 0;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}

.cart-footer {
    padding: 1.5rem;
    background: #f8fafc;
    flex-shrink: 0;
}

/* ---------- Cart Toggle Button (Always Right-Center) ---------- */
.cart-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 120px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border-radius: 28px 0 0 28px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    z-index: 1010;
    font-size: 0.875rem;
}

.cart-toggle:hover {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    transform: translateY(-50%) translateX(-4px);
}

.cart-toggle.hidden {
    display: none;
}

/* ---------- Mobile: Same Position & Animation ---------- */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
        /* Full width on mobile */
        right: -100vw;
        /* Start fully off-screen */
        transition: right 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .cart-sidebar.open {
        right: 0;
    }

    .cart-toggle {
        width: 52px;
        height: 110px;
        font-size: 0.8rem;
    }
}

/* Footer part end */

/* this is carousel part start */
/* Advanced Carousel Container Styles */
.pre-carousel-container {
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel Track */
.pre-carousel-track {
    display: flex;
    transition: transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

/* Individual Carousel Items */
.pre-carousel-item {
    flex-shrink: 0;
    padding: 0 12px;
    opacity: 0.7;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pre-carousel-item.active {
    opacity: 1;
    /* transform: scale(0.8); */
    z-index: 10;
    padding: 15px;
    border-radius: 20px;
}

/* Card Hover Effects */
.card-wrapper {
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.pre-carousel-item:hover .card-wrapper {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Image Overlay Effects */
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(99, 102, 241, 0.3));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.pre-carousel-item:hover .image-overlay {
    opacity: 1;
}

/* Navigation Buttons */
.pre-carousel-nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pagination Dots */
.pre-carousel-dot {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pre-carousel-dot:hover {
    transform: scale(1.3);
}

.pre-carousel-dot.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Scrollbar Hide */
.overflow-hidden::-webkit-scrollbar {
    display: none;
}

.overflow-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 100%;
}

/* this is carousel part end */

/* New Css start */
button.carousel-nav-btn {
    background: transparent;
    color: #000;
}

button.carousel-nav-btn.carousel-prev{
    left: -17px;
}

button.carousel-nav-btn.carousel-next{
    right: -17px;
}

.hero-slider-container button {
    width: 14px;
    height: 14px;
    font-size: 16px;
}

@media (max-width: 767px) {
   button.carousel-nav-btn.carousel-prev{
        left: -17px;
    }
    
    button.carousel-nav-btn.carousel-next{
        right: -17px;
    } 
}