/* =========================================================
   CUDDLE STORY KIDS Ã¢â‚¬â€ "Once Upon a Story" fairytale theme
   ========================================================= */
:root {
    --night: #241a4a;
    --night2: #140f2e;
    --dusk1: #3c2d78;
    --dusk2: #6a4fae;
    --frost: #f3f9ff;
    --frost2: #e3f3fc;
    --lav: #8a6fd8;
    --lav-deep: #5f3fb0;
    --gold: #ffd873;
    --gold-deep: #eea93a;
    --blush: #ffb9cd;
    --parchment: #fffaf0;
    --parchment2: #fff2dd;
    --white: #fffdfb;
    --ink: #2b2050;
    --e1: 0 1px 3px rgba(43, 25, 74, .10), 0 1px 2px rgba(43, 25, 74, .08);
    --e2: 0 4px 14px rgba(69, 45, 120, .15), 0 2px 4px rgba(69, 45, 120, .08);
    --e3: 0 12px 28px rgba(69, 45, 120, .20), 0 4px 8px rgba(69, 45, 120, .10);
    --e4: 0 22px 48px rgba(20, 12, 45, .30);
    --glow: 0 0 0 3px rgba(255, 216, 115, .35), 0 8px 22px rgba(238, 169, 58, .35);
    --r-sm: 12px;
    --r-md: 22px;
    --r-lg: 34px;
    --r-pill: 999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle, hsla(258, 45%, 55%, .10) 1.4px, transparent 1.6px) 0 0/64px 64px, radial-gradient(circle, hsla(38, 85%, 55%, .12) 1.4px, transparent 1.6px) 32px 32px/64px 64px, var(--parchment);
    overflow-x: hidden;
}

/* faint drifting cloud + star dressing behind light sections, purely decorative */
.storyscape {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.storyscape svg {
    position: absolute;
    opacity: .5;
}

.storyscape .cl {
    color: var(--white);
    opacity: .8;
    filter: drop-shadow(0 2px 6px hsla(258, 40%, 60%, .15));
}

section>.wrap {
    position: relative;
    z-index: 2;
}

h1,
h2,
h3,
h4,
.display {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.script {
    font-family: 'Caveat', cursive;
    font-weight: 700;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lav-deep);
    background: var(--white);
    padding: 7px 16px 7px 12px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--gold);
    box-shadow: var(--e1);
}

.eyebrow svg {
    color: var(--gold-deep);
    flex-shrink: 0;
}

.section-head {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 40px;
    position: relative;
}

.section-kicker {
    display: block;
    font-size: 1.6rem;
    color: var(--lav-deep);
    margin-bottom: 2px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    color: var(--night);
    margin: 6px 0 10px;
}

.section-head p {
    color: hsl(258 25% 40%);
    font-size: 1.02rem;
}

section {
    padding: 70px 0;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: .95rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    box-shadow: var(--e2);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: var(--night2);
}

.btn-primary:hover {
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: hsla(0, 0%, 100%, .08);
    color: var(--white);
    border: 2px solid hsla(0, 0%, 100%, .5);
    backdrop-filter: blur(3px);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: var(--e2);
}

.btn-dark {
    background: var(--night);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--night2);
}

/* ---------- Sparkle star badge (signature motif) ---------- */
.spark-badge {
    --s: 74px;
    width: var(--s);
    height: var(--s);
    color: var(--white);
    background: linear-gradient(135deg, var(--lav), var(--lav-deep));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Fredoka';
    font-weight: 700;
    box-shadow: var(--e3);
    flex-direction: column;
    line-height: 1.05;
    position: relative;
}

.spark-badge::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px dashed hsla(0, 0%, 100%, .55);
}

/* ---------- Sparkle particles (ambient) ---------- */
.sparkles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.sparkles svg {
    position: absolute;
    color: var(--gold);
    opacity: .85;
    animation: twinkle 3.2s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: .25;
        transform: scale(.7);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* ---------- Starfield for night sections ---------- */
.starfield {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.starfield i {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--white);
    border-radius: 50%;
    opacity: .7;
    animation: twinkle 2.6s ease-in-out infinite;
}

/* ---------- Page-turn scallop divider ---------- */
.page-edge {
    display: block;
    width: 100%;
    height: 44px;
    margin-bottom: -1px;
    color: inherit;
}

.page-edge svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ================= Announcement bar ================= */
.announce {
    background: linear-gradient(90deg, var(--night2), var(--dusk1));
    color: var(--gold);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 9px 0;
    overflow: hidden;
    white-space: nowrap;
}

.announce .track {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 24s linear infinite;
}

.announce span {
    margin: 0 34px;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* ================= Header ================= */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: var(--e1);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-lg {
    width: auto !important;
    height: 50px;
}

.logo-sm {
    display: none;
}

.logo-block .lt {
    font-family: 'Fredoka';
    font-weight: 700;
    font-size: 1.26rem;
    color: var(--lav-deep);
    line-height: 1;
}

.logo-block .lt small {
    display: block;
    font-family: 'Caveat';
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .02em;
    color: var(--gold-deep);
    margin-top: 2px;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--frost);
    border: 2px solid transparent;
    border-radius: var(--r-pill);
    padding: 12px 20px;
    transition: border-color .15s;
}

.search-bar:focus-within {
    border-color: var(--lav);
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink);
}

.search-bar svg {
    flex-shrink: 0;
    color: var(--lav-deep);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.icon-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lav-deep);
    transition: background .15s;
}

.icon-btn:hover {
    background: var(--frost);
}

.icon-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--gold-deep);
    color: var(--night2);
    font-size: .62rem;
    font-weight: 800;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--e1);
}

.hamburger {
    display: none;
}

/* ================= Mega menu ================= */
nav.megabar {
    background: linear-gradient(90deg, var(--lav-deep), var(--dusk1));
    position: relative;
    z-index: 50;
}

.megabar ul.top-cats {
    display: flex;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.megabar .top-cats>li {
    position: relative;
}

.megabar .top-cats>li>a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--white);
    white-space: nowrap;
    transition: background .15s;
}

.megabar .top-cats>li:hover>a,
.megabar .top-cats>li.open>a {
    background: hsla(0, 0%, 100%, .14);
}

.megabar .top-cats>li>a svg {
    transition: transform .15s;
}

.megabar .top-cats>li:hover>a svg,
.megabar .top-cats>li.open>a svg {
    transform: rotate(180deg);
}

.mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 820px;
    max-width: 90vw;
    background: var(--white);
    border-radius: 0 0 var(--r-md) var(--r-md);
    box-shadow: var(--e4);
    padding: 28px 30px;
    display: none;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
}

.megabar .top-cats>li:hover .mega-panel,
.megabar .top-cats>li.open .mega-panel {
    display: grid;
}

.mega-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.mega-cols h4 {
    font-family: 'Fredoka';
    font-size: .86rem;
    color: var(--lav-deep);
    margin-bottom: 10px;
    font-weight: 700;
}

.mega-cols ul li a {
    display: block;
    padding: 6px 0;
    font-size: .86rem;
    color: hsl(258 20% 32%);
    border-radius: 6px;
    transition: color .15s, transform .15s;
}

.mega-cols ul li a:hover {
    color: var(--lav-deep);
    transform: translateX(3px);
}

.mega-promo {
    background: var(--frost);
    border-radius: var(--r-md);
    padding: 16px;
    text-align: center;
}

.mega-promo img {
    border-radius: var(--r-sm);
    margin-bottom: 12px;
    height: 130px;
    width: 100%;
    object-fit: cover;
}

.mega-promo strong {
    display: block;
    color: var(--lav-deep);
    font-family: 'Fredoka';
    font-size: 1rem;
}

.mega-promo span {
    font-size: .78rem;
    color: hsl(258 20% 40%);
}

/* mobile nav */
.mobile-nav {
    display: none;
}

/* ================= Hero Ã¢â‚¬â€ "Once Upon a Story" ================= */
.hero {
    background: linear-gradient(180deg, var(--night2) 0%, var(--night) 38%, var(--dusk1) 78%, var(--dusk2) 100%);
    position: relative;
    overflow: hidden;
    padding: 56px 0 0;
    color: var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse 900px 320px at 22% 100%, hsla(38, 90%, 65%, .30), transparent 70%);
}

.hero .moon {
    position: absolute;
    top: 8%;
    right: 9%;
    width: 64px;
    height: 64px;
    color: var(--gold);
    opacity: .9;
    filter: drop-shadow(0 0 14px rgba(255, 216, 115, .55));
}

.hero .castle {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    color: var(--night2);
    opacity: .9;
}

.hero .tower {
    position: absolute;
    left: 3%;
    bottom: 56px;
    width: 60px;
    height: 150px;
    color: var(--night2);
    opacity: .55;
}

.lantern-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.lantern-field svg {
    position: absolute;
    bottom: -60px;
    color: var(--gold);
    filter: drop-shadow(0 0 7px rgba(255, 216, 115, .6));
    animation: riselantern linear infinite;
}

@keyframes riselantern {
    0% {
        transform: translateY(0) translateX(0) rotate(-3deg);
        opacity: 0;
    }

    8% {
        opacity: .9;
    }

    85% {
        opacity: .55;
    }

    100% {
        transform: translateY(-460px) translateX(18px) rotate(3deg);
        opacity: 0;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 3;
    padding-bottom: 60px;
}

.hero-copy .script {
    font-size: 1.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
}

.hero-copy h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.3rem);
    line-height: 1.1;
    color: var(--white);
    font-weight: 700;
}

.hero-copy h1 em {
    font-style: normal;
    color: var(--gold);
}

.hero-copy p {
    margin: 18px 0 26px;
    font-size: 1.05rem;
    color: hsla(0, 0%, 100%, .82);
    max-width: 460px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 22px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-trust div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 700;
    color: hsla(0, 0%, 100%, .88);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}

.portal-frame {
    position: relative;
    width: 78%;
    aspect-ratio: 4/5;
    border-radius: 200px 200px 24px 24px;
    padding: 10px;
    background: linear-gradient(160deg, var(--gold), var(--lav));
    box-shadow: var(--e4);
}

.portal-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 190px 190px 16px 16px;
    border: 3px solid var(--night2);
}

.hero-visual .float-card {
    position: absolute;
    background: var(--parchment);
    border-radius: var(--r-md);
    box-shadow: var(--e3);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--gold);
}

.hero-visual .fc1 {
    top: 6%;
    left: -4%;
    width: 150px;
}

.hero-visual .fc1 img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.hero-visual .fc2 {
    bottom: 8%;
    right: -4%;
    padding: 14px 18px;
}

.hero-visual .fc2 strong {
    font-family: 'Fredoka';
    font-size: 1.1rem;
    color: var(--lav-deep);
    display: block;
}

.hero-visual .fc2 span {
    font-size: .72rem;
    color: hsl(258 20% 40%);
}

.hero-visual .starpop {
    position: absolute;
    top: 0%;
    right: 8%;
}

.hero-visual .starpop .spark-badge {
    --s: 88px;
    font-size: .78rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--night2);
}

/* ================= Trust strip ================= */
.trust-strip {
    background: var(--night2);
    padding: 26px 0;
    position: relative;
    overflow: hidden;
}

.trust-strip .wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

.trust-strip .item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--frost);
}

.trust-strip .item svg {
    flex-shrink: 0;
    color: var(--gold);
}

.trust-strip .item strong {
    display: block;
    font-family: 'Fredoka';
    font-size: .92rem;
}

.trust-strip .item span {
    font-size: .74rem;
    color: hsla(0, 0%, 100%, .6);
}

/* ================= Category grid (Enchanted Kingdom) ================= */
section.kingdom {
    background: var(--parchment);
}

.kingdom .vine-corner {
    position: absolute;
    color: var(--lav);
    opacity: .35;
}

.kingdom .vine-tl {
    top: 18px;
    left: 8px;
    width: 110px;
    transform: scaleX(-1);
}

.kingdom .vine-tr {
    top: 18px;
    right: 8px;
    width: 110px;
}

/* ================= Shop by Age ================= */
section.ageshop {
    background: linear-gradient(180deg, var(--parchment2), var(--parchment));
}

.ageshop .frost-fleck {
    position: absolute;
    color: var(--lav);
    opacity: .4;
    animation: floaty 5s ease-in-out infinite;
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
    position: relative;
    z-index: 2;
}

.age-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.age-arch {
    position: relative;
    width: 100%;
    aspect-ratio: 3/3.6;
    border-radius: 50% 50% 14px 14px;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: var(--e2);
    background: var(--white);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}

.age-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.age-arch::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50% 50% 18px 18px;
    border: 1.5px dashed var(--lav);
    opacity: 0;
    transition: opacity .2s, transform .2s;
}

.age-card:hover .age-arch {
    transform: translateY(-6px);
    box-shadow: var(--glow);
    border-color: var(--lav);
}

.age-card:hover .age-arch::after {
    opacity: .7;
    transform: rotate(6deg);
}

.age-label {
    margin-top: -16px;
    z-index: 2;
    background: linear-gradient(135deg, var(--lav), var(--lav-deep));
    color: var(--white);
    font-family: 'Fredoka';
    font-weight: 700;
    font-size: .78rem;
    padding: 8px 16px;
    border-radius: var(--r-pill);
    box-shadow: var(--e2);
    border: 2px solid var(--white);
    white-space: nowrap;
}

.age-garland {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 -4px;
    position: relative;
    z-index: 1;
}

.age-garland svg {
    color: var(--gold);
    opacity: .7;
}

.age-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.fashion-row {
    position: relative;
    z-index: 2;
    margin-bottom: 44px;
}

.fashion-row:last-child {
    margin-bottom: 0;
}

.fashion-row-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Fredoka';
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--night);
    margin-bottom: 22px;
}

.fashion-row-title svg {
    color: var(--gold-deep);
    flex-shrink: 0;
}

.fashion-row-title::before,
.fashion-row-title::after {
    content: "";
    height: 1.5px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--lav), transparent);
    align-self: center;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 18px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.cat-card .circle {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--e2);
    border: 3px solid var(--gold);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}

.cat-card .circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-card .circle::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1.5px dashed var(--lav);
    opacity: 0;
    transition: opacity .2s, transform .2s;
    transform: rotate(0deg);
}

.cat-card:hover .circle {
    transform: translateY(-6px) scale(1.04);
    box-shadow: var(--glow);
    border-color: var(--lav);
}

.cat-card:hover .circle::after {
    opacity: .7;
    transform: rotate(18deg);
}

.cat-card span {
    font-weight: 700;
    font-size: .82rem;
    color: var(--lav-deep);
}

/* ---------- Storybook market stalls (Shop by Category) ---------- */
.stall-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 26px 20px;
    position: relative;
    z-index: 2;
}

.stall-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.stall-window {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    margin-top: 10px;
}

.stall-window .awning {
    position: absolute;
    top: -10px;
    left: -4%;
    right: -4%;
    height: 18px;
    z-index: 2;
    background: repeating-linear-gradient(90deg, var(--lav) 0 11px, var(--white) 11px 22px);
    border-radius: 7px 7px 2px 2px;
    box-shadow: var(--e1);
    border: 1.5px solid var(--white);
}

.stall-window .awning::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--lav) 0 11px, transparent 11px 22px);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 90% 0, 85% 100%, 80% 0, 75% 100%, 70% 0, 65% 100%, 60% 0, 55% 100%, 50% 0, 45% 100%, 40% 0, 35% 100%, 30% 0, 25% 100%, 20% 0, 15% 100%, 10% 0, 5% 100%, 0 0);
}

.stall-photo {
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: 8px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: var(--e2);
    background: var(--white);
    transition: transform .2s ease, box-shadow .2s ease;
}

.stall-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stall-icon {
    position: absolute;
    bottom: -12px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    z-index: 3;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--night2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--e2);
    border: 2px solid var(--white);
}

.stall-card:hover .stall-photo {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--glow);
}

.stall-label {
    margin-top: 16px;
    font-weight: 700;
    font-size: .8rem;
    color: var(--lav-deep);
    line-height: 1.25;
}

/* ================= Frost Kingdom immersive banner ================= */
.frostrealm {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #0c1a3d 0%, #1b3f70 32%, #2f6f95 62%, #7fc4d4 100%);
    color: var(--white);
    padding: 70px 0;
}

.frostrealm .aurora {
    position: absolute;
    inset: 0;
    z-index: 1;
    mix-blend-mode: screen;
    background: radial-gradient(ellipse 900px 320px at 18% -5%, hsla(160, 75%, 60%, .4), transparent 60%), radial-gradient(ellipse 700px 280px at 68% -8%, hsla(280, 70%, 65%, .32), transparent 60%), radial-gradient(ellipse 650px 260px at 42% 6%, hsla(190, 85%, 62%, .3), transparent 65%);
    animation: auroraShift 11s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0% {
        transform: translateX(-3%) scaleY(1);
    }

    100% {
        transform: translateX(3%) scaleY(1.08);
    }
}

.frostrealm .ice-mountains {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: 210px;
    color: #dff2f6;
    opacity: .92;
    z-index: 2;
}

.frostrealm .ice-castle {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: 170px;
    height: auto;
    color: #f2fbfd;
    z-index: 2;
    filter: drop-shadow(0 0 26px rgba(170, 225, 255, .55));
}

.frostrealm .snowfall {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.frostrealm .snowfall span {
    position: absolute;
    top: -12px;
    background: var(--white);
    border-radius: 50%;
    opacity: .85;
    animation: snowdrift linear infinite;
}

@keyframes snowdrift {
    to {
        transform: translateY(500px);
    }
}

.frostrealm-copy {
    position: relative;
    z-index: 4;
    max-width: 560px;
    padding: 0 24px;
}

.frostrealm-copy h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    color: var(--white);
    margin: 14px 0 12px;
}

.frostrealm-copy p {
    color: hsla(0, 0%, 100%, .86);
    margin-bottom: 26px;
    max-width: 440px;
    font-size: 1rem;
}

.frost-eyebrow {
    background: hsla(0, 0%, 100%, .14);
    color: #eaf9fc;
    border-color: #bfe3ee;
}

@media (max-width: 900px) {
    .frostrealm .ice-castle {
        width: 120px;
        opacity: .7;
    }

    .frostrealm {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .frostrealm .ice-castle {
        display: none;
    }
}

/* ================= Flash sale Ã¢â€ â€™ Midnight Market ================= */
.flash {
    background: linear-gradient(180deg, var(--night2), var(--night) 60%, var(--dusk1));
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.flash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.flash-head h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-head p {
    color: hsla(0, 0%, 100%, .72);
    font-size: .9rem;
    margin-top: 4px;
}

.timer {
    display: flex;
    gap: 10px;
}

.timer .t {
    background: hsla(0, 0%, 100%, .08);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    border-radius: var(--r-sm);
    min-width: 62px;
    padding: 10px 8px;
    text-align: center;
    box-shadow: var(--e2);
}

.timer .t b {
    display: block;
    font-family: 'Fredoka';
    font-size: 1.4rem;
}

.timer .t small {
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: hsla(0, 0%, 100%, .6);
}

.prod-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

.prod-card {
    background: var(--white);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--e2);
    transition: transform .2s, box-shadow .2s;
    position: relative;
}

.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--e4);
}

.prod-card .ph {
    position: relative;
}

.prod-card .ph img {
    width: 100%;
    /* height: 190px; */
    object-fit: cover;
}

.prod-card .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--lav-deep);
    color: var(--white);
    font-size: .68rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: var(--r-pill);
}

.prod-card .wish {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--e1);
    color: var(--lav);
    transition: color .15s, transform .15s;
}

.prod-card .wish:hover {
    transform: scale(1.1);
}

.prod-card .wish.active {
    color: #e0568c;
}

.prod-body {
    padding: 14px 16px 16px;
}

.prod-body .cat {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gold-deep);
    font-weight: 700;
}

.prod-body h4 {
    font-size: .94rem;
    margin: 4px 0 6px;
    color: var(--night);
    font-weight: 700;
}

.stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gold-deep);
    font-size: .75rem;
    margin-bottom: 8px;
}

.stars span {
    color: hsl(258 10% 55%);
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-row .price {
    font-family: 'Fredoka';
    font-weight: 700;
    color: var(--lav-deep);
    font-size: 1.05rem;
}

.price-row .old {
    font-size: .78rem;
    color: hsl(258 10% 60%);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 500;
}

.add-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lav), var(--lav-deep));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--e2);
    transition: transform .15s, background .15s;
}

.add-btn:hover {
    background: var(--gold-deep);
    color: var(--night2);
    transform: rotate(90deg);
}

/* ================= Split banners ================= */
.split-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sb {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--e3);
    border: 3px solid var(--white);
    outline: 3px solid var(--gold);
}

.sb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(20, 12, 45, .82) 5%, transparent 62%);
    z-index: 1;
}

.sb-copy {
    position: relative;
    z-index: 2;
    padding: 28px;
    color: var(--white);
}

.sb-copy .eyebrow {
    background: hsla(0, 0%, 100%, .16);
    color: var(--white);
    backdrop-filter: blur(3px);
    border-color: hsla(0, 0%, 100%, .4);
}

.sb-copy .eyebrow svg {
    color: var(--gold);
}

.sb-copy h3 {
    font-size: 1.7rem;
    margin: 10px 0 14px;
}

/* ================= Product grid (new arrivals / bestsellers) ================= */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ================= Toy Kingdom banner ================= */
.toyworld {
    background: linear-gradient(120deg, var(--night2), var(--dusk1));
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    box-shadow: var(--e3);
}

.toyworld img.side {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 340px;
}

.toyworld .tw-copy {
    padding: 36px;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.toyworld .tw-copy .eyebrow {
    background: hsla(0, 0%, 100%, .12);
    color: var(--gold);
    border-color: hsla(0, 0%, 100%, .3);
}

.toyworld .tw-copy .eyebrow svg {
    color: var(--gold);
}

.toyworld .tw-copy h3 {
    font-size: 1.9rem;
    margin: 12px 0 12px;
}

.toyworld .tw-copy p {
    color: hsla(0, 0%, 100%, .75);
    margin-bottom: 20px;
    max-width: 420px;
}

.tw-tiles {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.tw-tiles a {
    flex: 1;
    border-radius: var(--r-sm);
    overflow: hidden;
    position: relative;
    box-shadow: var(--e2);
    border: 1.5px solid hsla(0, 0%, 100%, .25);
}

.tw-tiles img {
    height: 96px;
    width: 100%;
    object-fit: cover;
}

.tw-tiles span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsla(258, 50%, 10%, .78);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    padding: 6px;
    text-align: center;
}

/* ================= Value props ================= */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-card {
    background: var(--white);
    border: 1.5px solid var(--frost2);
    border-radius: var(--r-md);
    padding: 26px 20px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--e3);
    border-color: var(--gold);
}

.value-card .ic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lav), var(--lav-deep));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: var(--e2);
}

.value-card h4 {
    font-family: 'Fredoka';
    font-size: 1rem;
    color: var(--night);
    margin-bottom: 6px;
}

.value-card p {
    font-size: .82rem;
    color: hsl(258 20% 42%);
}

/* ================= Testimonials ================= */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testi-card {
    background: var(--white);
    border: 1.5px solid var(--frost2);
    border-radius: var(--r-md);
    padding: 26px 24px 24px;
    box-shadow: var(--e1);
    transition: box-shadow .2s, transform .2s;
    position: relative;
}

.testi-card::before {
    content: "Ã¢â‚¬Å“";
    position: absolute;
    top: 6px;
    right: 18px;
    font-family: 'Fredoka';
    font-size: 3rem;
    color: var(--frost2);
    line-height: 1;
}

.testi-card:hover {
    box-shadow: var(--e3);
    transform: translateY(-4px);
    border-color: var(--gold);
}

.testi-card .stars {
    margin-bottom: 12px;
}

.testi-card p {
    font-size: .92rem;
    color: hsl(258 20% 30%);
    line-height: 1.55;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.testi-who {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-who img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--e1);
    border: 2px solid var(--gold);
}

.testi-who strong {
    display: block;
    font-size: .86rem;
    color: var(--night);
}

.testi-who span {
    font-size: .72rem;
    color: hsl(258 15% 50%);
}

/* ================= Instagram gallery ================= */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.ig-item {
    position: relative;
    border-radius: var(--r-sm);
    overflow: hidden;
    aspect-ratio: 9/16;
    box-shadow: var(--e1);
    border: 2px solid var(--white);
    outline: 2px solid var(--gold);
}

.ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.ig-item:hover img {
    transform: scale(1.08);
}

.ig-item .ov {
    position: absolute;
    inset: 0;
    background: hsla(258, 50%, 15%, .0);
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
}

.ig-item:hover .ov {
    background: hsla(258, 50%, 15%, .5);
    opacity: 1;
}

/* ================= Newsletter Ã¢â‚¬â€ Join the Royal Circle ================= */
.newsletter {
    background: radial-gradient(120% 140% at 20% 0%, var(--dusk2), var(--night2) 75%);
    border-radius: var(--r-lg);
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    border: 2px solid var(--gold);
}

.newsletter .spark-badge {
    position: absolute;
    opacity: .25;
}

.newsletter .s1 {
    --s: 70px;
    top: 10%;
    left: 6%;
    transform: rotate(-12deg);
}

.newsletter .s2 {
    --s: 50px;
    bottom: 12%;
    right: 10%;
    transform: rotate(20deg);
}

.newsletter .s3 {
    --s: 36px;
    top: 20%;
    right: 20%;
    transform: rotate(8deg);
}

.newsletter .wand-ic {
    width: 34px;
    height: 34px;
    color: var(--gold);
    margin: 0 auto 12px;
}

.newsletter h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 10px;
    color: var(--white);
}

.newsletter p {
    color: hsla(0, 0%, 100%, .78);
    margin-bottom: 26px;
    max-width: 460px;
    margin-inline: auto;
}

.nl-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.nl-form input {
    padding: 14px 22px;
    border-radius: var(--r-pill);
    border: none;
    outline: none;
    width: 300px;
    max-width: 70vw;
    font-family: inherit;
    font-size: .92rem;
}

/* ================= Footer ================= */
footer {
    background: var(--night2);
    color: hsla(0, 0%, 100%, .72);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid hsla(0, 0%, 100%, .12);
    position: relative;
    z-index: 2;
}

.foot-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.foot-logo img {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
}

.foot-logo strong {
    font-family: 'Fredoka';
    color: var(--white);
    font-size: 1.1rem;
}

footer p.desc {
    font-size: .84rem;
    line-height: 1.6;
    color: hsla(0, 0%, 100%, .6);
    max-width: 280px;
}

.foot-col h5 {
    font-family: 'Fredoka';
    color: var(--gold);
    font-size: .9rem;
    margin-bottom: 14px;
}

.foot-col ul li {
    margin-bottom: 9px;
}

.foot-col ul li a {
    font-size: .83rem;
    color: hsla(0, 0%, 100%, .68);
    transition: opacity .15s, color .15s;
}

.foot-col ul li a:hover {
    opacity: 1;
    color: var(--gold);
}

.foot-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.foot-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background .15s;
}

.foot-social a:hover {
    background: var(--lav-deep);
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px 0;
    font-size: .78rem;
    color: hsla(0, 0%, 100%, .55);
    position: relative;
    z-index: 2;
}

.pay-icons {
    display: flex;
    gap: 8px;
}

.pay-icons span {
    background: hsla(0, 0%, 100%, .08);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 700;
    color: var(--white);
}

/* ================= Toast ================= */
.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--night2);
    color: var(--gold);
    padding: 14px 24px;
    border-radius: var(--r-pill);
    box-shadow: var(--e4);
    font-weight: 700;
    font-size: .86rem;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 200;
    border: 1.5px solid var(--gold);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ================= Fairy guide (playful, non-blocking corner touch) ================= */
.fairy-guide {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 150;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lav), var(--lav-deep));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--e3);
    border: 2.5px solid var(--gold);
    animation: floaty 3.2s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease;
}

.fairy-guide:hover {
    transform: scale(1.08);
    box-shadow: var(--glow);
}

.fairy-guide::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px dashed hsla(38, 90%, 65%, .6);
    animation: spin 12s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================= Scroll reveal ================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ================= Responsive ================= */
@media (max-width: 1100px) {
    .cat-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .stall-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .age-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 34px;
    }

    .age-grid-5 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .prod-row,
    .prod-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .toyworld {
        grid-template-columns: 1fr;
    }

    .toyworld img.side {
        min-height: 220px;
    }
}

@media (max-width: 900px) {
    .logo-sm {
        display: flex !important;
        width: 50px;
        height: 50px;
        border-radius: var(--r-pill);
        box-shadow: var(--e2);
        border: 2px solid var(--gold);
    }

    .logo-lg {
        display: none;
    }

    .search-bar {
        display: none;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        color: var(--lav-deep);
    }

    .megabar {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
        min-height: 320px;
    }

    .split-banners {
        grid-template-columns: 1fr;
    }

    .trust-strip .wrap {
        grid-template-columns: 1fr 1fr;
    }

    .ig-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mobile-nav.open {
        display: block;
    }

    .kingdom .vine-corner {
        display: none;
    }
}

@media (max-width: 640px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stall-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px 12px;
    }

    .age-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .age-grid-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .fashion-row-title {
        font-size: 1.1rem !important;
    }

    .prod-row,
    .prod-grid {
        grid-template-columns: 1fr 1fr;
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .foot-grid {
        grid-template-columns: 1fr;
    }

    .timer .t {
        min-width: 52px;
        padding: 8px 4px;
    }

    .flash-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .fairy-guide {
        width: 46px;
        height: 46px;
        left: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sparkles svg,
    .starfield i,
    .announce .track,
    .lantern-field svg,
    .fairy-guide,
    .fairy-guide::after,
    .frostrealm .aurora,
    .frostrealm .snowfall span {
        animation: none !important;
    }
}