
:root {
    --nools-pink: #ff5d8f;
    --nools-purple: #2d2a40;
    --nools-blue: #6ecbff;
    --nools-yellow: #ffd84d;
    --nools-mint: #8ff7d2;
    --nools-muted: #655f7c;
    --nools-white-glass: rgba(255, 255, 255, 0.78);
}

/* Base */
html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: "Baloo 2", "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--nools-purple);
}

a {
    color: inherit;
}

main,
.page {
    background: transparent !important;
}

.nools-app-layout {
    min-height: 100vh;
    background: transparent;
}

/* Page shell */
.nools-page-shell {
    min-height: 100vh;
    transition: background 0.35s ease, color 0.35s ease;
}

    .nools-page-shell.rtl {
        direction: rtl;
        font-family: "Cairo", "Baloo 2", system-ui, sans-serif;
    }

    .nools-page-shell.ltr {
        direction: ltr;
        font-family: "Baloo 2", "Cairo", system-ui, sans-serif;
    }

    .nools-page-shell.theme-light {
        background: radial-gradient(circle at 10% 10%, rgba(255, 93, 143, 0.28), transparent 28%), radial-gradient(circle at 86% 12%, rgba(110, 203, 255, 0.35), transparent 30%), radial-gradient(circle at 50% 95%, rgba(255, 216, 77, 0.22), transparent 32%), linear-gradient(135deg, #fff7fb, #f5fbff 55%, #fffaf0);
        color: var(--nools-purple);
    }

    .nools-page-shell.theme-dark {
        background: radial-gradient(circle at 12% 10%, rgba(255, 93, 143, 0.22), transparent 28%), radial-gradient(circle at 86% 18%, rgba(124, 58, 237, 0.34), transparent 32%), radial-gradient(circle at 50% 90%, rgba(37, 211, 102, 0.14), transparent 30%), linear-gradient(135deg, #120824, #1c1238 55%, #071827);
        color: #ffffff;
    }

/* Top controls */
.nools-topbar {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 40px;
    padding-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
}

.nools-topbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nools-language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: var(--nools-white-glass);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 35px rgba(63, 40, 110, 0.12);
}

.nools-lang-btn,
.nools-theme-toggle {
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nools-lang-btn {
    padding: 9px 14px;
    background: transparent;
    color: var(--nools-muted);
}

    .nools-lang-btn.active {
        background: linear-gradient(135deg, var(--nools-pink), #ff9a5c);
        color: #fff;
        box-shadow: 0 10px 22px rgba(255, 93, 143, 0.28);
    }

.nools-theme-toggle {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--nools-purple);
    box-shadow: 0 16px 35px rgba(63, 40, 110, 0.12);
}

    .nools-lang-btn:hover,
    .nools-theme-toggle:hover {
        transform: translateY(-3px) scale(1.04);
    }

/* Hero */
.nools-hero {
    position: relative;
    min-height: 500px;
    padding: 0 24px 70px;
    display: block;
    text-align: center;
    overflow: hidden;
}

    .nools-hero::before {
        content: "";
        position: absolute;
        inset: 34px;
        border-radius: 50px;
        background: linear-gradient(135deg, rgba(255,255,255,0.58), rgba(255,255,255,0.16));
        border: 1px solid rgba(255,255,255,0.7);
        box-shadow: 0 30px 120px rgba(63, 40, 110, 0.08);
        z-index: 0;
    }

.nools-hero-content {
    width: min(980px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: nools-hero-rise 0.9s ease both;
}

.nools-hero h1 {
    margin: 0;
    font-size: clamp(3.3rem, 8vw, 7rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.055em;
    color: var(--nools-purple);
}

.nools-page-shell.rtl .nools-hero h1 {
    letter-spacing: -0.03em;
}

.nools-hero h1 span {
    display: block;
    background: linear-gradient(135deg, #ff5d8f, #7c3aed, #00b8d9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nools-hero p {
    max-width: 720px;
    margin: 26px auto 0;
    color: var(--nools-muted);
    font-size: 1.28rem;
    line-height: 1.75;
}

.nools-page-shell.rtl .nools-hero p {
    line-height: 1.9;
}

.nools-hero-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nools-primary-cta {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    padding: 15px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--nools-pink), #ff9a5c);
    color: white;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(255, 93, 143, 0.34);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .nools-primary-cta:hover {
        color: white;
        transform: translateY(-4px) scale(1.04);
        box-shadow: 0 24px 55px rgba(255, 93, 143, 0.42);
    }

.nools-trust-note {
    color: var(--nools-muted);
    font-weight: 800;
}

/* Decorative shapes */
.nools-floating-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(0.2px);
    opacity: 0.9;
    z-index: 1;
    animation: nools-float-dance 4.5s ease-in-out infinite;
}

.shape-one {
    width: 86px;
    height: 86px;
    background: var(--nools-yellow);
    top: 120px;
    left: 10%;
    box-shadow: 0 0 45px rgba(255, 216, 77, 0.65);
}

.shape-two {
    width: 62px;
    height: 62px;
    background: var(--nools-mint);
    right: 13%;
    top: 145px;
    animation-delay: 0.8s;
    box-shadow: 0 0 45px rgba(143, 247, 210, 0.65);
}

.shape-three {
    width: 48px;
    height: 48px;
    background: var(--nools-pink);
    right: 22%;
    bottom: 120px;
    animation-delay: 1.4s;
    box-shadow: 0 0 45px rgba(255, 93, 143, 0.65);
}

/* Search */
.nools-search-section {
    width: min(820px, calc(100% - 32px));
    margin: 0 auto 36px;
    position: relative;
    z-index: 5;
}

.nools-search-box {
    position: relative;
    background: rgba(255,255,255,0.78);
    border-radius: 999px;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(63,40,110,0.12);
    overflow: hidden;
}

.nools-search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 22px;
    font-size: 1.2rem;
}

.rtl .nools-search-icon {
    left: auto;
    right: 22px;
}

.nools-search-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 18px 22px 18px 58px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--nools-purple);
}

.rtl .nools-search-input {
    padding: 18px 58px 18px 22px;
}

/* Catalog */
.nools-catalog-section {
    padding: 40px 0 100px;
}

.nools-section-header {
    width: min(780px, calc(100% - 32px));
    margin: 0 auto 36px;
    text-align: center;
}

    .nools-section-header span {
        color: var(--nools-pink);
        font-weight: 900;
    }

    .nools-section-header h2 {
        margin: 10px 0 8px;
        font-size: clamp(2rem, 4vw, 3.6rem);
        font-weight: 900;
        letter-spacing: -0.05em;
        color: var(--nools-purple);
    }

    .nools-section-header p {
        margin: 0;
        color: var(--nools-muted);
        font-size: 1.1rem;
    }

.nools-page-shell.rtl .nools-section-header p,
.nools-page-shell.rtl .nools-toy-description {
    line-height: 1.9;
}

.nools-page-shell.rtl .nools-toy-footer {
    direction: rtl;
}

.nools-page-shell.ltr .nools-toy-footer {
    direction: ltr;
}

/* Loading / error */
.nools-loading,
.nools-error {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.86);
    padding: 34px;
    border-radius: 34px;
    box-shadow: 0 24px 70px rgba(63, 40, 110, 0.14);
    text-align: center;
    font-weight: 900;
}

.nools-error {
    color: #c0392b;
}

.nools-loader {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 5px solid rgba(255, 93, 143, 0.18);
    border-top-color: var(--nools-pink);
    animation: nools-spin 0.8s linear infinite;
}

/* Footer */
.nools-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 28px;
    border-radius: 34px;
    background: radial-gradient(circle at 10% 20%, rgba(255, 216, 77, 0.22), transparent 28%), linear-gradient(135deg, rgba(45, 42, 64, 0.95), rgba(89, 40, 120, 0.92));
    color: #fff;
    box-shadow: 0 24px 70px rgba(45, 42, 64, 0.22);
}

.nools-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.nools-footer strong {
    font-size: 1.6rem;
    font-weight: 900;
}

.nools-footer p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.nools-footer-whatsapp {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .nools-footer-whatsapp:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 22px 45px rgba(37, 211, 102, 0.38);
    }

/* Floating WhatsApp */
.nools-floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #25d366, #12b76a);
    color: #fff;
    box-shadow: 0 24px 60px rgba(37,211,102,0.42);
    z-index: 999;
    animation: nools-whatsapp-float 2.8s ease-in-out infinite;
    transition: transform 0.2s ease;
}

    .nools-floating-whatsapp:hover {
        transform: scale(1.08);
        color: #fff;
    }

/* Dark theme */
.theme-dark .nools-hero h1,
.theme-dark .nools-section-header h2,
.theme-dark .nools-toy-title {
    color: #ffffff;
}

.theme-dark .nools-hero p,
.theme-dark .nools-section-header p,
.theme-dark .nools-toy-description,
.theme-dark .nools-trust-note {
    color: rgba(255, 255, 255, 0.72);
}

.theme-dark .nools-hero::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    border-color: rgba(255,255,255,0.12);
}

.theme-dark .nools-toy-card,
.theme-dark .nools-language-toggle,
.theme-dark .nools-search-box {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(18px);
}

.theme-dark .nools-toy-card {
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.theme-dark .nools-toy-chip {
    background: rgba(255, 255, 255, 0.16);
    color: var(--nools-yellow);
}

.theme-dark .nools-theme-toggle {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.theme-dark .nools-search-input {
    color: #ffffff;
}

    .theme-dark .nools-search-input::placeholder {
        color: rgba(255, 255, 255, 0.62);
    }

/* Shine motion */
.nools-primary-cta::after,
.nools-whatsapp-button::after,
.nools-footer-whatsapp::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: nools-shine 2.8s ease-in-out infinite;
}

/* Animations */
@keyframes nools-hero-rise {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes nools-float-dance {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    35% {
        transform: translateY(-24px) rotate(12deg) scale(1.08);
    }

    70% {
        transform: translateY(12px) rotate(-8deg) scale(0.96);
    }
}

@keyframes nools-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes nools-shine {
    0% {
        transform: translateX(-120%);
    }

    45%, 100% {
        transform: translateX(120%);
    }
}

@keyframes nools-whatsapp-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Responsive */
@media (max-width: 760px) {
    .nools-topbar {
        padding-top: 18px;
        margin-bottom: 28px;
    }

    .nools-topbar-actions {
        gap: 8px;
    }

    .nools-lang-btn,
    .nools-theme-toggle {
        padding: 8px 11px;
        font-size: 0.9rem;
    }

    .nools-hero {
        min-height: 500px;
        padding: 0 18px 54px;
    }

        .nools-hero::before {
            inset: 18px;
            border-radius: 34px;
        }

        .nools-hero h1 {
            font-size: clamp(3rem, 17vw, 4.7rem);
        }

        .nools-hero p {
            font-size: 1.05rem;
        }

    .shape-one,
    .shape-two,
    .shape-three {
        opacity: 0.45;
    }

    .nools-footer {
        margin-bottom: 18px;
    }

    .nools-footer-inner {
        align-items: flex-start;
    }

    .nools-floating-whatsapp {
        width: 58px;
        height: 58px;
        right: 18px;
        bottom: 18px;
        font-size: 1.5rem;
    }
}

.nools-whatsapp-button::after,
.nools-primary-cta::after,
.nools-footer-whatsapp::after {
    pointer-events: none;
}

.nools-whatsapp-button {
    cursor: pointer;
    border: 0;
}

.nools-js-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(11, 8, 28, 0.82);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    padding: 24px;
}

.nools-js-lightbox-image {
    max-width: min(980px, 95vw);
    max-height: 85vh;
    object-fit: contain;
    border-radius: 28px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.45);
}

.nools-js-lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #ff5d8f;
    color: white;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    z-index: 100000;
}

.nools-gallery-count {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #2d2a40;
    font-weight: 900;
}