body.sweetlife-v2-shell {
    --sl-shell-paper: #fcfbf9;
    --sl-shell-eucalyptus: #667a73;
    --sl-shell-eucalyptus-deep: #40544d;
    --sl-shell-ink: #303633;
    --sl-shell-muted: #68706d;
    --sl-shell-line: #d9dedb;
    --sl-shell-max: 1360px;
}

body.sweetlife-v2-shell.menu-open {
    overflow: hidden;
}

body.sweetlife-v2-shell .skip-link {
    position: fixed;
    z-index: 100000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--sl-shell-eucalyptus-deep);
    color: #fff;
    font: 600 13px/1.4 "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    text-decoration: none;
    transform: translateY(-160%);
}

body.sweetlife-v2-shell .skip-link:focus {
    transform: translateY(0);
}

body.sweetlife-v2-shell .site-header {
    box-sizing: border-box;
    width: 100%;
    height: 76px;
    margin: 0;
    padding: 0;
    display: block;
    position: sticky;
    z-index: 10000;
    top: 0;
    border: 0;
    border-bottom: 1px solid rgba(217, 222, 219, .82);
    background: rgba(252, 251, 249, .98);
    box-shadow: none;
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body.admin-bar.sweetlife-v2-shell .site-header {
    top: 32px;
}

body.sweetlife-v2-shell .site-header .header-inner {
    width: min(calc(100% - 48px), var(--sl-shell-max));
    height: 100%;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(22px, 3vw, 48px);
}

body.sweetlife-v2-shell .site-header .brand {
    width: 170px;
    min-width: 170px;
    height: auto;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-self: center;
    border: 0;
    background: transparent;
    text-decoration: none;
}

body.sweetlife-v2-shell .site-header .brand img {
    width: 170px;
    height: 58px;
    margin: 0;
    padding: 0;
    display: block;
    object-fit: contain;
}

body.sweetlife-v2-shell .site-header .header-nav {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.1vw, 32px);
}

body.sweetlife-v2-shell .site-header .header-nav-left {
    justify-self: start;
}

body.sweetlife-v2-shell .site-header .header-nav-right {
    justify-self: end;
}

body.sweetlife-v2-shell .site-header .header-nav a,
body.sweetlife-v2-shell .site-header .mobile-nav a {
    min-height: 44px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: var(--sl-shell-ink) !important;
    font: 500 13px/1.4 "Manrope", "Avenir Next", "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body.sweetlife-v2-shell .site-header .header-nav a:not(.button-link),
body.sweetlife-v2-shell .site-header .mobile-nav a:not(.button-link) {
    position: relative;
}

body.sweetlife-v2-shell .site-header .header-nav a:not(.button-link)::after,
body.sweetlife-v2-shell .site-header .mobile-nav a:not(.button-link)::after {
    content: "";
    height: 1px;
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 0;
    background: var(--sl-shell-eucalyptus);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .28s ease;
}

body.sweetlife-v2-shell .site-header .header-nav a:hover::after,
body.sweetlife-v2-shell .site-header .header-nav a[aria-current="page"]::after,
body.sweetlife-v2-shell .site-header .mobile-nav a:hover::after,
body.sweetlife-v2-shell .site-header .mobile-nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

body.sweetlife-v2-shell .site-header .button-link {
    min-height: 44px;
    padding: 0 20px;
    justify-content: center;
    border: 1px solid var(--sl-shell-eucalyptus-deep);
    border-radius: 999px;
    background: var(--sl-shell-eucalyptus-deep);
    color: #fff !important;
    font-weight: 600 !important;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

body.sweetlife-v2-shell .site-header .button-link:hover {
    background: transparent;
    color: var(--sl-shell-eucalyptus-deep) !important;
    transform: translateY(-2px);
}

body.sweetlife-v2-shell .site-header .mobile-nav {
    display: none;
}

body.sweetlife-v2-shell .site-header .menu-button {
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--sl-shell-ink);
    cursor: pointer;
}

body.sweetlife-v2-shell .site-header .menu-button span,
body.sweetlife-v2-shell .site-header .menu-button span::before,
body.sweetlife-v2-shell .site-header .menu-button span::after {
    width: 24px;
    height: 1px;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
}

body.sweetlife-v2-shell .site-header .menu-button span::before,
body.sweetlife-v2-shell .site-header .menu-button span::after {
    content: "";
    position: absolute;
    left: 0;
}

body.sweetlife-v2-shell .site-header .menu-button span::before {
    top: -7px;
}

body.sweetlife-v2-shell .site-header .menu-button span::after {
    top: 7px;
}

body.sweetlife-v2-shell .site-header .menu-button[aria-expanded="true"] span {
    background: transparent;
}

body.sweetlife-v2-shell .site-header .menu-button[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
}

body.sweetlife-v2-shell .site-header .menu-button[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
}

body.sweetlife-v2-shell .site-footer {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 75px 0 26px;
    display: block;
    position: relative;
    z-index: 2;
    clear: both;
    border: 0;
    border-top: 1px solid var(--sl-shell-line);
    background: var(--sl-shell-paper);
    color: var(--sl-shell-ink);
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

body.sweetlife-v2-shell .site-footer .wrap {
    width: min(calc(100% - 48px), var(--sl-shell-max));
    margin: 0 auto;
    padding: 0;
}

body.sweetlife-v2-shell .site-footer .footer-main {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(280px, .7fr) 1fr;
    gap: 80px;
    align-items: end;
}

body.sweetlife-v2-shell .site-footer .footer-logo {
    width: 180px;
    height: 72px;
    margin: 0;
    padding: 0;
    display: block;
    object-fit: contain;
}

body.sweetlife-v2-shell .site-footer .footer-copy {
    max-width: 530px;
    margin: 18px 0 0;
    padding: 0;
    color: var(--sl-shell-muted);
    font: 400 13px/1.72 "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

body.sweetlife-v2-shell .site-footer .footer-actions {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 26px;
}

body.sweetlife-v2-shell .site-footer .footer-links,
body.sweetlife-v2-shell .site-footer .footer-social {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

body.sweetlife-v2-shell .site-footer .footer-links a,
body.sweetlife-v2-shell .site-footer .footer-blog {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sl-shell-ink) !important;
    font: 500 13px/1.5 "Manrope", "Avenir Next", "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body.sweetlife-v2-shell .site-footer .footer-social a:not(.footer-blog) {
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    border: 0;
    background: transparent;
}

body.sweetlife-v2-shell .site-footer .footer-social svg {
    width: 100%;
    height: 100%;
    display: block;
}

body.sweetlife-v2-shell .site-footer .footer-bottom {
    width: 100%;
    margin: 55px 0 0;
    padding: 20px 0 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid var(--sl-shell-line);
    color: var(--sl-shell-muted);
    font: 400 11px/1.5 "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

body.sweetlife-v2-shell .to-top {
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9000;
    right: 24px;
    bottom: 24px;
    border: 1px solid var(--sl-shell-line);
    border-radius: 50%;
    background: rgba(252, 251, 249, .96);
    color: var(--sl-shell-eucalyptus-deep);
    box-shadow: 0 8px 24px rgba(46, 59, 53, .12);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

body.sweetlife-v2-shell .to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.sweetlife-v2-shell .to-top svg {
    width: 22px;
    height: 22px;
}

/*
 * Keep legacy templates and scripts loaded for their page-specific behaviour,
 * but replace their visible chrome with the shared V2 shell.
 */
body.sweetlife-v2-shell:not(.sweetlife-v2-native) #close_mobile_menu,
body.sweetlife-v2-shell:not(.sweetlife-v2-native) .mobile_menu_wrapper,
body.sweetlife-v2-shell:not(.sweetlife-v2-native) .header_style_wrapper,
body.sweetlife-v2-shell:not(.sweetlife-v2-native) #footer-wrapper,
body.sweetlife-v2-shell:not(.sweetlife-v2-native) #toTop,
body.sweetlife-v2-shell:not(.sweetlife-v2-native) .c2-nav,
body.sweetlife-v2-shell:not(.sweetlife-v2-native) .c2-footer {
    display: none !important;
}

body.sweetlife-v2-shell:not(.sweetlife-v2-native) #wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 1180px) {
    body.sweetlife-v2-shell .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body.sweetlife-v2-shell .site-header .header-nav {
        display: none;
    }

    body.sweetlife-v2-shell .site-header .header-inner {
        grid-template-columns: 48px 1fr 48px;
    }

    body.sweetlife-v2-shell .site-header .brand {
        grid-column: 2;
    }

    body.sweetlife-v2-shell .site-header .menu-button {
        display: flex;
        grid-column: 3;
        justify-self: end;
    }

    body.sweetlife-v2-shell .site-header .mobile-nav {
        position: fixed;
        z-index: 9999;
        top: 76px;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 30px max(24px, calc((100vw - var(--sl-shell-max)) / 2));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        overflow-y: auto;
        background: var(--sl-shell-paper);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    }

    body.sweetlife-v2-shell .site-header .mobile-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    body.sweetlife-v2-shell .site-header .mobile-nav a {
        min-height: 56px;
        border-bottom: 1px solid var(--sl-shell-line);
        font-size: 16px !important;
    }

    body.sweetlife-v2-shell .site-header .mobile-nav .button-link {
        width: 100%;
        margin-top: 18px;
        border-bottom: 1px solid var(--sl-shell-eucalyptus-deep);
    }
}

@media (max-width: 782px) {
    body.admin-bar.sweetlife-v2-shell .site-header {
        top: 46px;
    }
}

@media (max-width: 680px) {
    body.sweetlife-v2-shell .site-header {
        height: 68px;
    }

    body.sweetlife-v2-shell .site-header .header-inner,
    body.sweetlife-v2-shell .site-footer .wrap {
        width: min(calc(100% - 32px), var(--sl-shell-max));
    }

    body.sweetlife-v2-shell .site-header .mobile-nav {
        top: 68px;
    }

    body.sweetlife-v2-shell .site-header .brand,
    body.sweetlife-v2-shell .site-header .brand img {
        width: 145px;
        min-width: 145px;
    }

    body.sweetlife-v2-shell .site-header .brand img {
        height: 52px;
    }

    body.sweetlife-v2-shell .site-footer .footer-main {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    body.sweetlife-v2-shell .site-footer .footer-actions {
        align-items: flex-start;
    }

    body.sweetlife-v2-shell .site-footer .footer-links {
        gap: 18px;
    }

    body.sweetlife-v2-shell .site-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    body.sweetlife-v2-shell .to-top {
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sweetlife-v2-shell .site-header .header-nav a::after,
    body.sweetlife-v2-shell .site-header .mobile-nav,
    body.sweetlife-v2-shell .site-header .button-link,
    body.sweetlife-v2-shell .to-top {
        transition: none;
    }
}
