/* Homepage styles - extracted from index.html inline <style> (2026-07 optimization) */
/* Override root variables to match existing site */
        :root {
            --bg-light: #f6f1e5;
            --text-brown: #5b3d0f;
            --text-teal: #1b7b89;
            --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
            --font-title: 'Patrick Hand', cursive;
            --font-text: 'Roboto Flex', sans-serif;
            --font-product-title: 'Rubik', sans-serif;
            --font-description: 'Quicksand', sans-serif;
            --font-karla: "Karla", sans-serif;
            --font-Delius-Swash-Caps: "Delius Swash Caps", cursive;
            --font-Delius: "Delius", cursive;
            --font-comic-relief: "Comic Relief", system-ui;
            --font-playpen-sans: "Playpen Sans", cursive;
            --font-montserrat: "Montserrat", sans-serif;
        }

        /* Force override main site body font with higher specificity */
        body.index-new-page,
        body {
            font-family: var(--font-text);
            background: var(--bg-light);
        }

        /* Sticky Header for Homepage - Maximum Specificity */
        html body.index-new-page header {
            position: -webkit-sticky !important;
            position: sticky !important;
            top: -26px !important;
            z-index: 1050 !important;
            background-color: var(--bg-light) !important;
            width: 100% !important;
        }

        /* Ensure sticky works even after content is loaded */
        html body.index-new-page header:not(:empty) {
            position: -webkit-sticky !important;
            position: sticky !important;
            top: -26px !important;
        }

        @media (max-width: 768px) {
            html body.index-new-page header {
                top: -18px !important;
            }
        }

        /* Adjust main content to account for sticky header */
        .main-content-homepage {
            margin-top: 10px;
            /* Reduced from 80px to eliminate excessive spacing */
        }

        /* Ensure no extra spacing for first content section */
        .hero-section,
        .main-content-homepage>section:first-child,
        .main-content-homepage>div:first-child {
            margin-top: 0 !important;
            padding-top: 0 !important;
        }

                * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            overflow-x: clip;
            width: 100%;
            max-width: 100%;
        }

        body.index-new-page {
            font-family: var(--font-text);
            background: var(--bg-light);
            line-height: 1.5;
            position: relative;
            overflow: visible !important;
            width: 100%;
            max-width: 100vw;
            min-width: 0;
            margin: 0;
            /* Enable smooth scrolling for better UX */
            scroll-behavior: smooth;
        }

        /* LOADING INDICATORS FOR IMAGES */
        .image-container {
            position: relative;
            overflow: hidden;
            background: transparent !important;
        }

        .image-loader {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            opacity: 1;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: 2;
            background: transparent !important;
        }

        .image-loader.hidden {
            opacity: 0;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid #e0e0e0;
            border-top: 2px solid #ff6b4a;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .loader-text {
            font-size: 0.7rem;
            color: #666;
            font-family: var(--font-text);
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Lazy loading image styles with skeleton */
        img[data-src] {
            opacity: 0;
            transition: opacity 0.4s ease;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading-skeleton 1.5s infinite;
        }

        img.loaded {
            opacity: 1;
            animation: none;
            background: none;
        }

        @keyframes loading-skeleton {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        /* SKELETON LOADING FOR DYNAMIC SECTIONS */
        .age-cards-loading {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            width: 100%;
            gap: 8px;
            animation: fadeOut 0.5s ease-out 2s forwards;
        }

        .age-card-skeleton {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 8px 4px;
            border-radius: 8px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading-skeleton 1.5s infinite, pulse 2s ease-in-out infinite;
            min-height: 80px;
            position: relative;
        }

        .age-card-skeleton::before {
            content: '';
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
            background-size: 200% 100%;
            animation: loading-skeleton 1.5s infinite;
            margin-bottom: 8px;
        }

        .age-card-skeleton::after {
            content: '';
            width: 40px;
            height: 8px;
            border-radius: 4px;
            background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
            background-size: 200% 100%;
            animation: loading-skeleton 1.5s infinite;
            animation-delay: 0.2s;
        }

        .category-card-skeleton {
            width: 100%;
            aspect-ratio: 4/5;
            border-radius: 8px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading-skeleton 1.5s infinite, fadeOut 0.5s ease-out 2s forwards, pulse 2s ease-in-out infinite;
        }

        .collections-loading {
            display: flex;
            gap: 12px;
            animation: fadeOut 0.5s ease-out 2s forwards;
        }

        /* Collection card skeleton styles moved to collection-cards.css */

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.02);
                opacity: 0.8;
            }
        }

        @keyframes fadeOut {
            to {
                opacity: 0;
                visibility: hidden;
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Smooth content loading animations */
        .age-card,
        .style-card {
            animation: fadeInUp 0.5s ease-out;
            animation-fill-mode: both;
        }

        .age-card:nth-child(1) {
            animation-delay: 0.1s;
        }

        .age-card:nth-child(2) {
            animation-delay: 0.2s;
        }

        .age-card:nth-child(3) {
            animation-delay: 0.3s;
        }

        .age-card:nth-child(4) {
            animation-delay: 0.4s;
        }

        .age-card:nth-child(5) {
            animation-delay: 0.5s;
        }

        .style-card:nth-child(1) {
            animation-delay: 0.1s;
        }

        .style-card:nth-child(2) {
            animation-delay: 0.15s;
        }

        .style-card:nth-child(3) {
            animation-delay: 0.2s;
        }

        .style-card:nth-child(4) {
            animation-delay: 0.25s;
        }

        .style-card:nth-child(5) {
            animation-delay: 0.3s;
        }

        .style-card:nth-child(6) {
            animation-delay: 0.35s;
        }

        /* Responsive skeleton adjustments */
        @media (min-width: 600px) {
            .collection-card-skeleton {
                width: 220px;
                min-width: 220px;
                height: 240px;
            }
        }

        @media (min-width: 900px) {
            .collection-card-skeleton {
                width: 280px;
                min-width: 280px;
                height: 280px;
            }
        }

        /* MICRO-ANIMATIONS FOR INTERACTIONS - TRANSPARENT BACKGROUNDS */
        .interactive-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
            background: transparent !important;
        }

        .interactive-card:active {
            transform: scale(0.97);
            transition: transform 0.1s ease;
        }

        .interactive-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
            background: transparent !important;
        }

        /* TOUCH TARGET IMPROVEMENTS - Minimum 44px */
        .touch-target {
            min-height: 44px;
            min-width: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .homepage-container {
            width: 100%;
            max-width: 100%;
            margin: 0;
            padding: 16px 8px;
            position: relative;
            overflow-x: hidden;
            min-width: 0;
            /* Enable touch scrolling on mobile */
            -webkit-overflow-scrolling: touch;
        }

        /* SECTION TITLES - MOBILE OPTIMIZED */
        .homepage-section-title {
            font-size: 1.5rem;
            font-weight: bold;
            color: #333;
            margin: 16px 0 12px 0;
            /* Reduced top margin from 24px to 16px and bottom from 16px to 12px */
            text-align: center;
            /* Changed from left to center */
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            /* Added to center the content */
            gap: 6px;
            /* Increased gap slightly */
            flex-wrap: wrap;
            width: 100%;
            max-width: 100%;
            font-family: var(--font-Delius);
            min-height: 44px;
            z-index: 2;
        }

        .homepage-title-decoration {
            font-size: 1rem;
            opacity: 0.7;
            animation: bounce 2s ease-in-out infinite;
            flex-shrink: 0;
        }

        @keyframes bounce {

            0%,
            20%,
            50%,
            80%,
            100% {
                transform: translateY(0);
            }

            40% {
                transform: translateY(-2px);
            }

            60% {
                transform: translateY(-1px);
            }
        }

        /* HERO SECTION - ENHANCED WITH LOADING AND INTERACTIONS */
        .hero-section {
            display: grid;
            grid-template-columns: 1fr;
            gap: 4px;
            margin-bottom: 12px;
            /* Reduced from 16px to 12px */
            width: 100%;
            max-width: 100%;
            overflow: hidden;
        }

        .hero-main-card {
            width: 100%;
            max-width: 100%;
            border-radius: 0px;
            overflow: hidden;
            position: relative;
            aspect-ratio: 16/9;
            /* Enforced 16:9 aspect ratio for banner images */
            min-width: 0;
            cursor: pointer;
            background: transparent !important;
        }

        .hero-main-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            object-position: center;
        }

        /* HERO SMALL CARDS - ENHANCED WITH BETTER TOUCH TARGETS */
        .hero-small-cards {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 2px;
            width: 100%;
            max-width: 100%;
        }

        .hero-small-card {
            width: 100%;
            max-width: 100%;
            border-radius: 0px;
            overflow: hidden;
            position: relative;
            min-width: 44px;
            cursor: pointer;
            background: transparent !important;
            aspect-ratio: 1;
        }

        .hero-small-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            object-position: center;
        }

        /* SHOP BY AGE SECTION - ENHANCED TOUCH TARGETS */
        .shop-by-age-section {
            margin-bottom: 20px;
            background: linear-gradient(135deg, #f8f4e6, #fff);
            border-radius: 12px;
            padding: 16px;
            position: relative;
            overflow: hidden;
            width: 100%;
            max-width: 100%;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .age-cards-container {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            width: 100%;
            max-width: 100%;
            gap: 8px;
            position: relative;
            z-index: 2;
        }

        .age-card {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            cursor: pointer;
            min-height: 44px;
            min-width: 44px;
            padding: 8px 4px;
            border-radius: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: transparent !important;
            position: relative;
            z-index: 3;
        }

        .age-card:hover {
            background: transparent !important;
            /* Remove any background */
            transform: translateY(-2px);
            /* Optional: Add subtle shadow instead of background */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }


        .age-card:active {
            transform: scale(0.95);
            background: transparent !important;
        }


        .age-card img {
            width: 50px;
            height: 50px;
            min-width: 50px;
            min-height: 50px;
            max-width: 50px;
            max-height: 50px;
            border-radius: 50%;
            object-fit: cover;
            object-position: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s ease;
        }

        .age-card:hover img {
            transform: scale(1.1);
        }

        .age-label-custom {
            font-size: 0.6rem;
            font-weight: bold;
            text-transform: uppercase;
            color: #333;
            margin-top: 4px;
        }

        /* Ensure all age-related elements have transparent backgrounds */
        .shop-by-age-section .age-card,
        .shop-by-age-section .age-card:hover,
        .shop-by-age-section .age-card:active,
        .shop-by-age-section .age-card:focus {
            background: transparent !important;
        }

        /* Keep only the section background gradient, not individual cards */
        .shop-by-age-section {
            margin: 16px 0 24px 0;
            /* Reduced top margin from 32px to 16px */
            background: linear-gradient(135deg, #f8f4e6, #fff);
            /* Keep this */
            border-radius: 12px;
            padding: 12px;
            /* Reduced from 16px to 12px */
            position: relative;
            overflow: hidden;
            width: 100%;
            max-width: 100%;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }


        /* BANNER SECTION - ENHANCED INTERACTIONS */
        .banner-section {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
            margin: 32px 0 32px 0;
            /* Increased top and bottom margins */
            width: 100%;
            max-width: 100%;
        }

        .banner-card {
            width: 100%;
            max-width: 100%;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            aspect-ratio: 25/4;
            /* Changed to match 1442x231px images (ratio ≈ 6.24) */
            cursor: pointer;
            min-width: 44px;
            min-height: 18px;
            /* Adjusted to maintain new aspect ratio */
            background: transparent !important;
        }

        .banner-card .image-container {
            /* Without an explicit height here, "height: 100%" on .banner-card img
               below resolves against an auto-height parent and is ignored, so the
               image falls back to its natural aspect ratio instead of being fit
               into this box - the overflow:hidden above then silently clips
               whatever doesn't fit (worst on mobile's squat 3/1 box). */
            width: 100%;
            height: 100%;
        }

        .banner-card img {
            width: 100%;
            height: 100%;
            /* object-fit: cover cropped this single shared banner image differently at
               each breakpoint (its aspect-ratio doesn't match every .banner-card ratio
               below), which read as a cropped/zoomed mismatch on mobile vs desktop.
               contain shows the whole banner at every size instead - no more cropping. */
            object-fit: contain;
            background: var(--bg-light, #f6f1e5);
            display: block;
            object-position: center;
        }

        /* SHOP BY CATEGORY SECTION - 2 CARDS PER ROW ON MOBILE */
        .clothing-styles-section {
            margin: 32px 0 32px 0;
            /* Increased top and bottom margins */
            position: relative;
            width: 100%;
            max-width: 100%;
        }

        .styles-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            width: 100%;
            max-width: 100%;
        }

        .style-card {
            width: 100%;
            max-width: 100%;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            aspect-ratio: 4/5;
            /* Changed from 1 to 4/5 to match 1080x1350px images */
            cursor: pointer;
            min-width: 44px;
            min-height: 55px;
            /* Adjusted to maintain aspect ratio */
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: transparent !important;
        }

        .style-card:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
            background: transparent !important;
        }

        .style-card:active {
            transform: scale(0.95);
        }

        .style-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
            background: transparent;
        }

        /* SHOP BY COLLECTIONS SECTION - ENHANCED ANIMATION */
        .crazy-deals-section {
            margin-bottom: 20px;
            /* Was a saturated yellow gradient (#fff8e1/#fffbf0) that stood out sharply
               against the page's own pale cream (--bg-light: #f6f1e5), reading as a big
               yellow block over this section's ~70vh height. Blend into the page instead. */
            background: transparent;
            border-radius: 12px;
            padding: 16px 0;
            position: relative;
            overflow: hidden;
            width: 100%;
            max-width: 100%;
        }

        .crazy-deals-title {
            display: flex;
            align-items: center;
            justify-content: center;
            /*gap: 8px;
            margin-bottom: 16px;*/
            padding: 0 8px;
            flex-wrap: wrap;
            position: relative;
            z-index: 2;
        }

        .crazy-deals-title h2 {
            font-size: 1.5rem;
            font-weight: bold;
            color: #333;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            text-align: center;
            word-break: break-word;
        }

        .sun-icon {
            font-size: 1.5rem;
            animation: rotate 6s linear infinite;
            filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.3));
            flex-shrink: 0;
        }

        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        /* Shop by Collections styles moved to collection-cards.css */

        /* Remove any pseudo-element backgrounds */
        .hero-main-card::before,
        .hero-small-card::before,
        .banner-card::before,
        .style-card::before,
        .age-card::before,
        .interactive-card::before {
            display: none !important;
        }

        /* TABLET BREAKPOINT - 600px and up */
        @media (min-width: 600px) {
            .main-content-homepage {
                margin-top: 20px;
                /* Reduced from 110px to eliminate excessive spacing */
            }

            .homepage-container {
                padding: 16px;
            }

            .hero-main-card {
                aspect-ratio: 16/9;
                /* Maintained 16:9 aspect ratio */
                border-radius: 8px;
            }

            .hero-small-cards {
                gap: 6px;
            }

            .hero-small-card {
                aspect-ratio: 1;
                /* Square cards like mobile */
                min-height: unset;
                /* Remove fixed heights */
                max-height: unset;
                /* Remove fixed heights */
                border-radius: 6px;
            }

            .age-card img {
                width: 60px;
                height: 60px;
                min-width: 60px;
                min-height: 60px;
                max-width: 60px;
                max-height: 60px;
                object-position: center;
            }

            .age-label-custom {
                font-size: 0.7rem;
            }

            .styles-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 10px;
            }

            .style-card {
                aspect-ratio: 4/5;
                /* Changed from 1 to 4/5 to match 1080x1350px images */
            }

        }

        /* MOBILE TWEAKS FOR SHOP-BY-AGE: better spacing for ~5 entries */
        @media (max-width: 599.98px) {
            /* Promo banner: the 25/4 ratio reads as a thin, hard-to-read sliver at
               mobile widths. Use a taller ratio so the promo text is clearly visible. */
            .banner-card {
                aspect-ratio: 3 / 1;
            }

            .age-cards-container {
                gap: 6px;
            }

            .age-card {
                padding: 6px 2px;
            }

            .age-card img {
                width: 46px;
                height: 46px;
                min-width: 46px;
                min-height: 46px;
                max-width: 46px;
                max-height: 46px;
            }

            .age-label-custom {
                font-size: 0.56rem;
                margin-top: 3px;
            }
        }

        /* DESKTOP BREAKPOINT - 900px and up */
        @media (min-width: 900px) {
            .hero-section {
                grid-template-columns: 2fr 1fr;
                gap: 18px;
                margin-bottom: 32px;
            }

            .hero-main-card {
                grid-column: 1;
                aspect-ratio: 16/9;
                /* Maintained 16:9 aspect ratio */
            }

            .hero-small-cards {
                grid-column: 2;
                gap: 8px;
            }

            .hero-small-card {
                aspect-ratio: 1;
                /* Square cards like mobile */
                min-height: unset;
                /* Remove fixed heights */
                max-height: unset;
                /* Remove fixed heights */
            }

            .homepage-section-title {
                font-size: 2.2rem;
                /* Increased from 2rem */
                margin: 32px 0 24px 0;
                /* Added top margin for better spacing */
            }

            .age-cards-container {
                gap: 16px;
                max-width: 500px;
                margin: 0 auto;
            }

            .age-card img {
                width: 70px;
                height: 70px;
                min-width: 70px;
                min-height: 70px;
                max-width: 70px;
                max-height: 70px;
                object-position: center;
            }

            .age-label-custom {
                font-size: 0.8rem;
            }

            .styles-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 15px;
            }

            .style-card {
                aspect-ratio: 4/5;
                /* Changed from 1 to 4/5 to match 1080x1350px images */
            }

            .crazy-deals-title h2 {
                font-size: 2.4rem;
            }

            .sun-icon {
                font-size: 2.2rem;
            }
        }

        /* LARGE DESKTOP - 1200px and up */
        @media (min-width: 1200px) {
            .hero-main-card {
                aspect-ratio: 16/9;
                /* Maintained 16:9 aspect ratio */
            }

            .banner-card {
                /* Cap height on very wide screens so the banner doesn't dominate the
                   page at its full 25/4-ratio width; object-fit:contain keeps the
                   whole image visible (letterboxed) instead of cropping it. */
                max-height: 260px;
            }

            .hero-small-card {
                aspect-ratio: 1;
                /* Square cards like mobile */
                min-height: unset;
                /* Remove fixed heights */
                max-height: unset;
                /* Remove fixed heights */
            }

            .age-cards-container {
                gap: 20px;
                max-width: 600px;
            }

            .age-card img {
                width: 75px;
                height: 75px;
                min-width: 75px;
                min-height: 75px;
                max-width: 75px;
                max-height: 75px;
                object-position: center;
            }

            .age-label-custom {
                font-size: 0.9rem;
            }

            .styles-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 20px;
            }

            .style-card {
                aspect-ratio: 4/5;
                /* Changed from 1 to 4/5 to match 1080x1350px images */
            }

        }

        /* ACCESSIBILITY IMPROVEMENTS */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Focus indicators for keyboard navigation */
        .interactive-card:focus,
        .age-card:focus,
        .style-card:focus,
        .banner-card:focus,
        .hero-main-card:focus,
        .hero-small-card:focus {
            outline: 3px solid #ff6b4a;
            outline-offset: 2px;
            background: transparent !important;
        }

        /* HERO SLIDER STYLES */
        .hero-slider-container,
        .hero-small-slider-container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .hero-slider-track,
        .hero-small-slider-track,
        .offers-slider-track {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
        }

        .hero-slide-item,
        .hero-small-slide-item {
            width: 100%;
            height: 100%;
            flex-shrink: 0;
        }

        .hero-slider-dots {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;
        }

        .slider-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .slider-dot:hover {
            background-color: #ff6b4a !important;
        }

        /* Pause slider animation on hover */
        .hero-slider-container:hover .hero-slider-track,
        .hero-small-slider-container:hover .hero-small-slider-track {
            animation-play-state: paused;
        }

        /* BRAND STORY – ENHANCED WITH FLOATING ELEMENTS */
        .brand-story-section {
            margin: 20px 0 24px;
            background: linear-gradient(135deg, #fff8f0, #fffef7);
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
            width: 100%;
            max-width: 100%;
            padding: 24px 16px;
        }

        .brand-story-wrap {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
            align-items: center;
            max-width: 980px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        /* Quote box: prominent gradient callout for "Started by Two Young Moms..." */
        .brand-quote-box {
            position: relative;
            max-width: 640px;
            margin: 0 auto 20px;
            padding: 22px 28px 20px;
            border-radius: 16px;
            text-align: center;
            background: linear-gradient(135deg, rgba(27, 123, 137, 0.07), rgba(255, 107, 74, 0.06));
            border: 1px solid rgba(27, 123, 137, 0.08);
        }

        .brand-quote-mark {
            display: block;
            font-family: Georgia, 'Times New Roman', serif;
            font-size: 3rem;
            line-height: 0.5;
            color: var(--text-teal);
            opacity: 0.35;
            margin-bottom: 8px;
        }

        .brand-quote-text {
            font-family: var(--font-Delius);
            color: var(--text-teal);
            font-size: 1.3rem;
            text-align: center;
            margin: 0;
            font-weight: 600;
            line-height: 1.4;
        }

        .intro-heart {
            display: inline-block;
            vertical-align: middle;
        }

        .brand-body {
            font-family: var(--font-text);
            color: #2d2d2d;
            font-size: 1.02rem;
            line-height: 1.75;
            text-align: left;
            margin: 0 auto;
            max-width: 700px;
        }

        .brand-tagline {
            font-family: var(--font-title);
            color: var(--text-brown);
            text-align: center;
            font-size: 1.35rem;
            margin: 12px 0 0;
            font-weight: 400;
            font-style: italic;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
        }

        .brand-badges {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: nowrap;
            list-style: none;
            padding: 14px 0 0;
            margin: 0 auto;
            max-width: 100%;
            overflow-x: auto;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .brand-badges::-webkit-scrollbar {
            display: none;
        }

        .brand-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 0.85rem;
            color: #2d4a57;
            background: linear-gradient(135deg, #ffffff, #fefefe);
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 999px;
            padding: 8px 12px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            font-weight: 500;
            white-space: nowrap;
        }

        .brand-badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        }

        /* Mobile optimizations for brand story section */
        @media (max-width: 767px) {
            .brand-story-section {
                margin: 14px 0 18px;
                padding: 14px 10px;
            }

            .brand-quote-box {
                padding: 16px 16px 14px;
                margin-bottom: 14px;
                border-radius: 12px;
            }

            .brand-quote-mark {
                font-size: 2.2rem;
            }

            .brand-quote-text {
                font-size: 1.02rem;
                line-height: 1.4;
            }

            .brand-body {
                font-size: 0.92rem;
                line-height: 1.65;
                padding: 0 5px;
            }

            .brand-tagline {
                font-size: 1.1rem;
                margin: 8px 0 0;
            }

            .brand-badges {
                gap: 8px;
                padding: 10px 0 0;
                flex-wrap: wrap;
                overflow: visible;
            }

            .brand-badge {
                font-size: 0.75rem;
                padding: 6px 10px;
                flex-shrink: 0;
            }

            .brand-story-wrap {
                gap: 14px;
            }
        }

        @media (min-width: 768px) {
            .brand-story-section {
                padding: 32px 24px;
            }

            .brand-quote-text {
                font-size: 1.4rem;
            }

            .brand-body {
                font-size: 1.08rem;
            }

            .brand-story-wrap {
                gap: 20px;
            }

            .brand-tagline {
                font-size: 1.45rem;
            }

            .brand-badges {
                gap: 16px;
            }

            .brand-badge {
                font-size: 0.9rem;
                padding: 10px 16px;
            }
        }

/* SHOP BY OCCASION SECTION - festive backdrop, deliberately richer/warmer than the
   rest of the cream homepage so it reads as a distinct "festive" moment. Deep
   espresso-to-terracotta gradient (not a flat mid-tone red) plus a gold dot texture
   and an inner dashed frame for a proper festive/rangoli feel instead of relying on
   large emoji, which read as clipped and messy at the corners. */
.occasion-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(240, 198, 116, 0.16), transparent 45%),
        radial-gradient(circle at 88% 80%, rgba(240, 198, 116, 0.14), transparent 42%),
        linear-gradient(160deg, #33130c 0%, #5c2415 38%, #7c351a 68%, #96461f 100%);
    border: 1px solid rgba(240, 198, 116, 0.35);
    border-radius: 18px;
    padding: 30px 16px 32px;
    margin: 32px 0;
    box-shadow: 0 10px 28px rgba(51, 19, 12, 0.35);
}

.occasion-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(240, 198, 116, 0.16) 1px, transparent 1.5px);
    background-size: 20px 20px;
    pointer-events: none;
}

.occasion-section::after {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px dashed rgba(240, 198, 116, 0.3);
    border-radius: 12px;
    pointer-events: none;
}

/* Small firework sparkles — subtle, staggered bursts using the box-shadow "ring of
   dots" trick so no extra markup per spark is needed beyond the wrapper span. */
.occasion-spark {
    position: absolute;
    top: 10%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        0 -16px 0 -1px #ffe08a,
        11px -11px 0 -1px #ff9d6a,
        16px 0 0 -1px #ffe08a,
        11px 11px 0 -1px #ff9d6a,
        0 16px 0 -1px #ffe08a,
        -11px 11px 0 -1px #ff9d6a,
        -16px 0 0 -1px #ffe08a,
        -11px -11px 0 -1px #ff9d6a;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: occasion-spark-burst 2.6s ease-out infinite;
}

.occasion-spark:nth-of-type(1) { left: 14%; animation-delay: 0s; }
.occasion-spark:nth-of-type(2) { left: 82%; top: 16%; animation-delay: 0.9s; }
.occasion-spark:nth-of-type(3) { left: 50%; top: 6%; animation-delay: 1.7s; }

@keyframes occasion-spark-burst {
    0% { transform: scale(0.2); opacity: 0; }
    20% { opacity: 1; }
    65% { opacity: 0.5; }
    100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .occasion-spark {
        display: none;
    }
}

.occasion-section .homepage-section-title {
    color: #f7deae;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.occasion-subtitle {
    position: relative;
    z-index: 1;
    text-align: center;
    color: rgba(255, 240, 214, 0.85);
    font-family: var(--font-text);
    font-size: 0.92rem;
    margin: -8px 0 18px;
}

.occasion-track {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.occasion-track::-webkit-scrollbar {
    display: none;
}

.occasion-card {
    flex: 0 0 40%;
    scroll-snap-align: start;
    background: rgba(255, 252, 245, 0.97);
    border: 1px solid rgba(232, 184, 75, 0.4);
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.occasion-card:active {
    transform: scale(0.97);
}

.occasion-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff6e2, #ffe6ae);
    border: 1px solid rgba(240, 198, 116, 0.55);
}

.occasion-title {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 600;
    color: #6b2a17;
}

.occasion-subtitle-text {
    font-family: var(--font-text);
    font-size: 0.76rem;
    color: #7a5a3a;
}

@media (min-width: 900px) {
    .occasion-section {
        padding: 36px 32px 40px;
    }

    .occasion-track {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
        overflow: visible;
        padding: 4px 0 0;
    }

    .occasion-card {
        flex: unset;
    }

    .occasion-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
    }

    .occasion-icon {
        font-size: 1.9rem;
        width: 58px;
        height: 58px;
    }

    .occasion-title {
        font-size: 1.15rem;
    }

    .occasion-subtitle-text {
        font-size: 0.85rem;
    }
}

/* TESTIMONIALS SECTION - "Loved by Parents" */
.testimonials-section {
    margin: 24px 0 32px;
    width: 100%;
    max-width: 100%;
}

.testimonials-subtitle {
    text-align: center;
    color: #7a7a7a;
    font-family: var(--font-text);
    font-size: 0.95rem;
    margin: -8px 0 18px;
}

.testimonials-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    color: #f5a623;
    letter-spacing: 2px;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.testimonial-quote {
    font-family: var(--font-text);
    color: #3a3a3a;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 14px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--text-teal), #2fa3a9);
    color: #fff;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-meta {
    font-family: var(--font-text);
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

@media (min-width: 900px) {
    .testimonials-track {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 18px;
        overflow: visible;
        padding: 4px 0 8px;
    }

    .testimonial-card {
        flex: unset;
    }

    .testimonials-subtitle {
        font-size: 1.05rem;
        margin: -12px 0 24px;
    }
}

/* FAQ SECTION - clean collapsible accordion */
.faq-section {
    background: linear-gradient(135deg, #f8f4e6, #fdf8ef);
    border-radius: 12px;
    padding: 24px 16px;
    margin: 20px 0 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #fffdf8;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 16px;
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.faq-chevron {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--text-teal);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-inner p {
    font-family: var(--font-text);
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    padding: 0 16px 16px;
}

@media (min-width: 768px) {
    .faq-section {
        padding: 32px 24px;
    }

    .faq-question {
        font-size: 1.05rem;
        padding: 18px 20px;
    }

    .faq-answer-inner p {
        font-size: 0.95rem;
        padding: 0 20px 18px;
    }
}

/* STORY PANELS - marchtee.com-inspired full-bleed festive image sections.
   Text is baked into the image itself (no HTML overlay), so the whole image
   must stay visible without unpredictable cropping — design source images to
   the aspect ratios below per breakpoint. Sections carry [hidden] in the
   markup and are only revealed by JS once a matching Story slider is found,
   so an unconfigured panel never reserves a full-viewport-width empty block
   or shows a stuck spinner. */
.story-panel-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 28px;
    margin-bottom: 28px;
}

.story-panel {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Design mobile story images at 3:4, e.g. 1080x1440px */
    overflow: hidden;
    background: var(--bg-light);
    cursor: pointer;
}

.story-panel .image-container {
    width: 100%;
    height: 100%;
}

.story-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (min-width: 900px) {
    .story-panel-wrap {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .story-panel {
        aspect-ratio: 16 / 9;
        /* Design desktop story images at 16:9, e.g. 1920x1080px */
    }
}

/* ============================================================
   2026-07 optimization additions
   ============================================================ */

/* Alias for the widely-referenced (previously undefined) capitalized variable.
   Sidebar/nav CSS uses var(--font-Montserrat); Montserrat itself was never
   loaded, so text always rendered in the inherited body font. Pin that
   behavior explicitly. */
:root {
    --font-Montserrat: 'Roboto Flex', sans-serif;
}

/* Mobile section order: Shop-by-Age appears between the hero main card and
   the four small hero cards. Replaces the JS DOM re-parenting on resize. */
@media (max-width: 899px) {
    .homepage-container {
        display: flex;
        flex-direction: column;
    }

    .hero-section {
        display: contents;
    }

    .hero-main-card {
        order: 10;
        margin-bottom: 4px;
    }

    .shop-by-age-section {
        order: 20;
    }

    .hero-small-cards {
        order: 30;
        margin-bottom: 12px;
    }

    .story-panel-wrap--intro { order: 35; }
    .banner-section { order: 40; }
    .clothing-styles-section { order: 50; }
    .occasion-section { order: 60; }
    .story-panel-wrap--main { order: 65; }
    .crazy-deals-section { order: 67; }
    .new-arrivals-section { order: 70; }
    .best-sellers-section { order: 80; }
    .story-panel-wrap--brand { order: 85; }
    .brand-story-section { order: 90; }
    .testimonials-section { order: 100; }
    .faq-section { order: 110; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    body.index-new-page {
        scroll-behavior: auto;
    }

    .homepage-title-decoration,
    .sun-icon,
    .age-card,
    .style-card,
    .deals-track img,
    .age-card-skeleton,
    .category-card-skeleton,
    img[data-src] {
        animation: none !important;
    }

    .interactive-card,
    .age-card,
    .style-card {
        transition: none;
    }
}
