:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --dark-color: #2f3550;
    --muted-color: #6f7693;
    --light-color: #ffffff;
    --surface-color: #fff7ee;
    --border-color: rgba(47, 53, 80, 0.08);
    --shadow-soft: 0 18px 50px rgba(90, 97, 138, 0.14);
    --shadow-card: 0 14px 30px rgba(90, 97, 138, 0.12);
    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Nunito', sans-serif;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--dark-color);
    background: linear-gradient(180deg, #fffdfb 0%, #fff8f4 100%);
}

body.drawer-open {
    overflow: hidden;
}

a {
    text-decoration: none;
}

.site-shell {
    overflow: clip;
}

.topbar {
    background: linear-gradient(90deg, #ffe66d 0%, #ffd56f 100%);
    color: var(--dark-color);
    font-size: 0.95rem;
}

.topbar-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-note,
.topbar-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-note {
    display: grid;
    grid-template-columns: auto 26px minmax(260px, 360px) 26px;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

.topbar-pill,
.mega-label,
.drawer-kicker,
.footer-bubble {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.topbar-pill {
    background: rgba(255, 255, 255, 0.72);
}

.topbar-slider {
    position: relative;
    min-width: 0;
    height: 24px;
    overflow: hidden;
}

.topbar-arrow {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--dark-color);
    padding: 0;
    transition: var(--transition);
}

.topbar-arrow:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.topbar-slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    text-align: center;
    white-space: nowrap;
    font-weight: 700;
}

.topbar-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.topbar-links a {
    color: var(--dark-color);
    font-weight: 700;
}

.header-wrap {
    position: relative;
    z-index: 50;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-wrap.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-100%);
    box-shadow: 0 18px 40px rgba(47, 53, 80, 0.12);
}

.header-wrap.show-sticky {
    transform: translateY(0);
}

.main-navbar {
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 220px;
    height: 64px;
    object-fit: contain;
}

.desktop-nav {
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list > li {
    position: static;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark-color);
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: 6px;
    width: calc(100% - 24px);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--dark-color);
    background: var(--light-color);
    box-shadow: 0 10px 24px rgba(90, 97, 138, 0.08);
    transition: var(--transition);
}

.action-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.action-cart {
    position: relative;
}

.action-cart span {
    position: absolute;
    top: -5px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--light-color);
    font-size: 0.75rem;
    font-weight: 800;
}

.btn {
    border: none;
    border-radius: 999px;
    font-weight: 800;
    padding: 13px 24px;
    transition: var(--transition);
}

.btn-primary-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #ff8b8b);
    color: var(--light-color);
    box-shadow: 0 16px 28px rgba(255, 107, 107, 0.25);
}

.btn-primary-soft:hover {
    color: var(--light-color);
    transform: translateY(-2px);
}

.mega-parent {
    position: static;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    width: min(1120px, calc(100vw - 32px));
    padding: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    transform: translate(-50%, 18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}

.mega-parent:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mega-card,
.mega-feature,
.footer-card,
.footer-brand-block {
    border-radius: 24px;
    padding: 24px;
}

.mega-card {
    background: #fff;
    border: 1px solid var(--border-color);
}

.mega-card h6,
.mega-feature h5,
.footer-brand-block h2,
.footer-card h5 {
    font-family: var(--font-heading);
}

.mega-card ul,
.footer-links,
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-card li + li,
.footer-links li + li,
.footer-contact-list li + li {
    margin-top: 10px;
}

.mega-card a,
.footer-links a {
    color: var(--dark-color);
    font-weight: 700;
    transition: var(--transition);
}

.mega-card a:hover,
.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.mega-feature {
    background: linear-gradient(145deg, rgba(78, 205, 196, 0.18), rgba(255, 230, 109, 0.24));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-alt {
    background: linear-gradient(145deg, rgba(205, 180, 255, 0.24), rgba(255, 107, 107, 0.18));
}

.mega-label,
.drawer-kicker,
.footer-bubble {
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-color);
}

.mega-feature p,
.footer-brand-block p,
.footer-bottom p {
    color: var(--muted-color);
    line-height: 1.75;
}

.menu-toggle {
    width: 52px;
    height: 52px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 13px;
    border: 0;
    border-radius: 18px;
    background: var(--light-color);
    box-shadow: 0 12px 24px rgba(90, 97, 138, 0.08);
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--dark-color);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(340px, 88vw);
    height: 100vh;
    padding: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ee 100%);
    z-index: 120;
    box-shadow: 24px 0 40px rgba(47, 53, 80, 0.12);
    transition: left 0.35s ease;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    left: 0;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 28, 47, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 110;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.drawer-header h5 {
    margin: 6px 0 0;
    font-family: var(--font-heading);
    font-size: 1.75rem;
}

.drawer-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
}

.drawer-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-link,
.drawer-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 0;
    background: #fff;
    color: var(--dark-color);
    box-shadow: 0 10px 24px rgba(90, 97, 138, 0.08);
    font-weight: 800;
}

.drawer-link {
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.drawer-toggle {
    justify-content: space-between;
    text-align: left;
}

.drawer-link.active,
.drawer-link:hover,
.drawer-toggle:hover,
.drawer-toggle.open {
    color: var(--primary-color);
}

.drawer-link i,
.drawer-toggle span i {
    margin-right: 10px;
}

.drawer-toggle span {
    display: inline-flex;
    align-items: center;
}

.drawer-toggle.open i:last-child {
    transform: rotate(180deg);
}

.drawer-panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    transition: max-height 0.3s ease;
}

.drawer-panel.open {
    max-height: 220px;
    padding-top: 10px;
}

.drawer-panel a {
    display: block;
    padding: 10px 14px;
    color: var(--muted-color);
    font-weight: 700;
}

.drawer-footer {
    margin-top: auto;
    padding-top: 24px;
}

.drawer-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.drawer-action-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 16px;
    background: #fff;
    color: var(--dark-color);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(90, 97, 138, 0.08);
}

.drawer-action-card:hover {
    color: var(--primary-color);
}

.drawer-socials {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.drawer-socials a,
.footer-socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--dark-color);
    background: #fff;
    transition: var(--transition);
}

.drawer-socials a:hover,
.footer-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-stage {
    min-height: 220px;
}

.site-footer {
    position: relative;
    padding: 40px 0 24px;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 32px 0 0;
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.32), rgba(78, 205, 196, 0.24), rgba(255, 107, 107, 0.18));
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
    z-index: 0;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.footer-brand-block,
.footer-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-card);
}

.footer-brand-block h2 {
    margin: 18px 0 12px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
}

.footer-logo {
    display: block;
    width: auto;
    max-width: 220px;
    height: 68px;
    object-fit: contain;
    margin-bottom: 14px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.footer-card h5 {
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--dark-color);
    font-weight: 700;
}

.footer-contact-list i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    margin-top: 22px;
    padding: 18px 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    font-weight: 700;
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--dark-color);
    font-weight: 700;
}

@media (max-width: 1199px) {
    .topbar-links {
        display: none;
    }

    .mega-menu {
        display: none;
    }

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand-block {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .topbar {
        display: none;
    }

    .main-navbar {
        padding: 14px 0;
    }

    .brand-logo {
        max-width: 170px;
        height: 52px;
    }

    .nav-actions .btn {
        display: none;
    }

    .action-mobile-hide {
        display: none;
    }

    .action-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .page-stage {
        min-height: 140px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-brand-block,
    .footer-card {
        padding: 22px;
    }

    .footer-logo {
        max-width: 170px;
        height: 54px;
    }

    .site-footer::before {
        inset: 20px 0 0;
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
    }
}
