/* =============================================
   LATTESA — GLOBAL
   Loaded on every page: nav, mobile nav overlay, footer,
   cart sidebar, newsletter popup, wholesale, benefits strip.
   ============================================= */

@keyframes fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    .wholesale__bottom.reveal {
        transition-delay: 0.15s;
    }

    .faq__list .reveal:nth-child(1) { transition-delay: 0s; }
    .faq__list .reveal:nth-child(2) { transition-delay: 0.08s; }
    .faq__list .reveal:nth-child(3) { transition-delay: 0.16s; }
    .faq__list .reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* =============================================
   LATTESA — NAV
   ============================================= */

@keyframes nav-in {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; }
}

/* --- Site Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: clamp(16px, 1.111vw, 28px) 0;
    color: var(--color-vanilla-cream);
    transition: color 0.4s ease, background-color 0.4s ease;
    animation: nav-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: calc(8px + max(0px, (100vw - var(--site-max-width)) / 2));
    right: calc(8px + max(0px, (100vw - var(--site-max-width)) / 2));
    bottom: 8px;
    background-color: var(--color-vanilla-cream);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(19, 47, 29, 0.12);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.site-header.is-scrolled,
.site-header.nav-is-open {
    color: var(--color-dark-green);
}

.site-header.is-scrolled::before {
    opacity: 1;
}

.site-header.nav-is-open::before {
    opacity: 0;
}

.site-header.is-scrolled .site-header__nav-left a.is-active,
.site-header.is-scrolled .site-header__nav-right a.is-active {
    color: var(--color-dark-green);
}

.site-header.is-scrolled .site-header__nav-left a.is-active::after,
.site-header.is-scrolled .site-header__nav-right a.is-active::after {
    background-color: var(--color-matcha-green);
}

.site-header.is-scrolled .cart-count,
.site-header.nav-is-open .cart-count {
    background-color: var(--color-dark-green-10);
    color: var(--color-dark-green);
}

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

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

.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* --- Mobile toggle — hidden on desktop --- */
.site-header__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    width: 44px;
    height: 44px;
    color: inherit;
}

.site-header__toggle-bar {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.site-header__toggle-bar:nth-child(1) { top: 16px; }
.site-header__toggle-bar:nth-child(2) { top: 21px; }
.site-header__toggle-bar:nth-child(3) { top: 26px; }

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .site-header__toggle {
        width: 56px;
        height: 56px;
    }

    .site-header__toggle-bar {
        width: 26px;
    }

    .site-header__toggle-bar:nth-child(1) { top: 20px; }
    .site-header__toggle-bar:nth-child(2) { top: 27px; }
    .site-header__toggle-bar:nth-child(3) { top: 34px; }

    .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1),
    .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
        top: 27px;
    }
}

.site-header__mobile-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.site-header__mobile-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(16px, 1.111vw, 20px);
    font-weight: 500;
    letter-spacing: 0.16px;
    color: inherit;
}

/* --- Left nav --- */
.site-header__nav-left ul {
    display: flex;
    align-items: center;
    gap: clamp(24px, 1.667vw, 40px);
}

.site-header__nav-left a {
    font-size: clamp(16px, 1.111vw, 20px);
    font-weight: 500;
    letter-spacing: 0.16px;
    color: inherit;
    position: relative;
}

.site-header__nav-left a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-matcha-green);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header__nav-left a:hover::after {
    width: 100%;
}

.site-header__nav-left a.is-active {
    color: var(--color-dark-green);
}

.site-header__nav-left a.is-active::after {
    width: 100%;
    background-color: var(--color-dark-green);
}

/* --- Logo --- */
.site-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header__logo img {
    height: clamp(35px, 2.431vw, 52px);
    width: auto;
    display: block;
}

/* --- Right section --- */
.site-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(24px, 1.667vw, 40px);
}

.site-header__nav-right ul {
    display: flex;
    align-items: center;
    gap: clamp(24px, 1.667vw, 40px);
}

.site-header__nav-right a {
    font-size: clamp(16px, 1.111vw, 20px);
    font-weight: 500;
    letter-spacing: 0.16px;
    color: inherit;
    position: relative;
}

.site-header__nav-right a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-matcha-green);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header__nav-right a:hover::after {
    width: 100%;
}

/* --- Cart item — Korpa + badge in one li --- */
.site-header__cart-item a,
.site-header__cart-item .cart-count {
    vertical-align: middle;
}

.site-header__cart-item .cart-count {
    margin-left: 6px;
}

/* --- Cart count badge --- */
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(26px, 1.806vw, 36px);
    height: clamp(26px, 1.806vw, 36px);
    border-radius: 50%;
    background-color: var(--color-vanilla-10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-vanilla-cream);
    font-size: clamp(14px, 1.111vw, 18px);
    font-weight: 500;
    letter-spacing: 0.16px;
    line-height: 1;
    flex-shrink: 0;
}

.cart-count.has-items {
    background-color: var(--color-matcha-green);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--color-dark-green);
}

/* --- Nav forced dark (always-scrolled look) — pages with a solid/no hero at the top --- */
body.single-product .site-header,
body.page-template-page-blog-php .site-header,
body.single-post .site-header,
body.page-kontakt .site-header,
body.page-template-page-legal-php .site-header,
body.error404 .site-header {
    color: var(--color-dark-green);
}

body.single-product .site-header::before,
body.page-template-page-blog-php .site-header::before,
body.single-post .site-header::before,
body.page-kontakt .site-header::before,
body.page-template-page-legal-php .site-header::before,
body.error404 .site-header::before {
    opacity: 1;
}

body.single-product .site-header.nav-is-open::before,
body.page-template-page-blog-php .site-header.nav-is-open::before,
body.single-post .site-header.nav-is-open::before,
body.page-kontakt .site-header.nav-is-open::before,
body.page-template-page-legal-php .site-header.nav-is-open::before,
body.error404 .site-header.nav-is-open::before {
    opacity: 0;
}

body.single-product .site-header .site-header__nav-left a.is-active,
body.single-product .site-header .site-header__nav-right a.is-active,
body.page-template-page-blog-php .site-header .site-header__nav-left a.is-active,
body.page-template-page-blog-php .site-header .site-header__nav-right a.is-active,
body.single-post .site-header .site-header__nav-left a.is-active,
body.single-post .site-header .site-header__nav-right a.is-active,
body.page-kontakt .site-header .site-header__nav-left a.is-active,
body.page-kontakt .site-header .site-header__nav-right a.is-active,
body.page-template-page-legal-php .site-header .site-header__nav-left a.is-active,
body.page-template-page-legal-php .site-header .site-header__nav-right a.is-active,
body.error404 .site-header .site-header__nav-left a.is-active,
body.error404 .site-header .site-header__nav-right a.is-active {
    color: var(--color-dark-green);
}

body.single-product .site-header .site-header__nav-left a.is-active::after,
body.single-product .site-header .site-header__nav-right a.is-active::after,
body.page-template-page-blog-php .site-header .site-header__nav-left a.is-active::after,
body.page-template-page-blog-php .site-header .site-header__nav-right a.is-active::after,
body.single-post .site-header .site-header__nav-left a.is-active::after,
body.single-post .site-header .site-header__nav-right a.is-active::after,
body.page-kontakt .site-header .site-header__nav-left a.is-active::after,
body.page-kontakt .site-header .site-header__nav-right a.is-active::after,
body.page-template-page-legal-php .site-header .site-header__nav-left a.is-active::after,
body.page-template-page-legal-php .site-header .site-header__nav-right a.is-active::after,
body.error404 .site-header .site-header__nav-left a.is-active::after,
body.error404 .site-header .site-header__nav-right a.is-active::after {
    background-color: var(--color-matcha-green);
}

body.single-product .site-header .cart-count,
body.page-template-page-blog-php .site-header .cart-count,
body.single-post .site-header .cart-count,
body.page-kontakt .site-header .cart-count,
body.page-template-page-legal-php .site-header .cart-count,
body.error404 .site-header .cart-count {
    background-color: var(--color-dark-green-10);
    color: var(--color-dark-green);
}

/* =============================================
   MOBILE NAV OVERLAY
   ============================================= */

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background-color: var(--color-dark-vanilla);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

/* --- Mobile nav content area --- */
.mobile-nav__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 96px 20px 60px;
}

/* --- Mobile nav links --- */
.mobile-nav__links {
    display: flex;
    flex-direction: column;
}

.mobile-nav__links li {
    border-bottom: 1px solid var(--color-dark-green-20);
}

.mobile-nav__links a {
    display: flex;
    align-items: center;
    height: 60px;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--color-dark-green);
    transition: color 0.2s ease;
}

.mobile-nav__links a.is-active {
    color: var(--color-dark-green);
}

/* --- Social icons --- */
.mobile-nav__social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
}

.mobile-nav__social-link {
    display: block;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.mobile-nav__social-link:hover {
    opacity: 0.7;
}

.mobile-nav__social-link img {
    width: 100%;
    height: 100%;
    display: block;
}

@media (orientation: landscape) and (max-height: 500px) {
    .mobile-nav__content {
        padding: 70px 20px 32px;
        justify-content: center;
        gap: 24px;
    }

    .mobile-nav__links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
    }

    .mobile-nav__links a {
        height: 48px;
        font-size: 24px;
    }

    .mobile-nav__social {
        margin-top: 0;
    }
}

/* --- Nav responsive --- */
@media (max-width: 1024px) {
    .site-header {
        padding: 16px 0;
    }

    .site-header__inner {
        display: flex;
        justify-content: space-between;
    }

    .site-header__toggle {
        display: flex;
    }

    .site-header__nav-left {
        display: none;
    }

    .site-header__nav-right {
        display: none;
    }

    .site-header__mobile-actions {
        display: flex;
    }
}



/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background-color: var(--color-dark-green);
    height: 100vh;
}

.site-footer__inner {
    height: 100%;
    padding-top: 60px;
    padding-bottom: 23px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.site-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.site-footer__left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.site-footer__logo {
    display: none;
}

.site-footer__logo img {
    width: 100%;
    height: auto;
    display: block;
}

.site-footer__tagline {
    font-size: var(--text-lead);
    font-weight: 500;
    color: var(--color-vanilla-cream);
    line-height: 1.1;
    max-width: 17.125em;
}

.site-footer__tagline-link {
    position: relative;
    color: var(--color-vanilla-cream);
    text-decoration: none;
}

.site-footer__tagline-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-vanilla-cream);
    transition: background-color 0.35s ease;
}

.site-footer__tagline-link:hover::after {
    background-color: var(--color-matcha-green);
}

.site-footer__socials {
    display: flex;
    gap: 14px;
    align-items: center;
}

.site-footer__social-link {
    display: block;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    transition: opacity 0.5s ease;
}

.site-footer__social-link:hover {
    opacity: 0.7;
}

.site-footer__social-link img {
    width: 100%;
    height: 100%;
    display: block;
}

.site-footer__nav {
    display: flex;
    gap: clamp(24px, 4.167vw, 60px);
    align-items: flex-start;
}

.site-footer__nav-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.site-footer__nav-link {
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--color-vanilla-cream);
    line-height: 1.25;
    letter-spacing: 0.16px;
    text-decoration: none;
    position: relative;
    align-self: flex-end;
}

button.site-footer__nav-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.site-footer__nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-matcha-green);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer__nav-link:hover::after {
    width: 100%;
}

.site-footer__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer__bar span {
    font-size: var(--text-s);
    font-weight: 500;
    color: var(--color-vanilla-cream);
    line-height: 1.1;
}

.site-footer__bar-link {
    position: relative;
    color: var(--color-vanilla-cream);
    text-decoration: none;
}

.site-footer__bar-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-matcha-green);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer__bar-link:hover::after {
    width: 100%;
}

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.site-footer__wordmark {
    width: 100%;
}

.site-footer__wordmark img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1024px) and (orientation: portrait) {
    .site-footer {
        height: auto;
    }

    .site-footer__inner {
        height: auto;
        gap: 60px;
        padding-top: clamp(40px, 5.208vw, 54px);
        padding-bottom: clamp(24px, 3.125vw, 32px);
    }

    .site-footer__top {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .site-footer__left {
        align-items: center;
        text-align: center;
    }

    .site-footer__logo {
        display: block;
        width: 100%;
    }

    .site-footer__nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .site-footer__nav-col {
        text-align: center;
    }

    .site-footer__nav-link {
        align-self: center;
    }

    .site-footer__wordmark {
        display: none;
    }

    .site-footer__bar {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .site-footer {
        height: auto;
    }

    .site-footer__inner {
        height: auto;
        gap: 32px;
    }
}

/* =============================================
   CART SIDEBAR
   ============================================= */

.cart-sidebar {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}

.cart-sidebar.is-open {
    pointer-events: auto;
}

.cart-sidebar__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cart-sidebar.is-open .cart-sidebar__overlay {
    opacity: 1;
}

.cart-sidebar__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(480px, 25vw, 640px);
    max-width: 100%;
    height: 100%;
    background-color: var(--color-vanilla-cream);
    border-radius: 24px 0 0 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.is-open .cart-sidebar__panel {
    transform: translateX(0);
}

.cart-sidebar__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 250, 240, 0.6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cart-sidebar.is-loading .cart-sidebar__loading {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-dark-green-20);
    border-top-color: var(--color-dark-green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* Header */
.cart-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px 20px;
    border-bottom: 1.5px solid var(--color-dark-green-10);
    flex-shrink: 0;
}

.cart-sidebar__title {
    font-size: var(--text-lead);
    font-weight: 500;
    color: var(--color-dark-green);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.cart-sidebar__close {
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.cart-sidebar__close:hover {
    opacity: 0.6;
}

/* Body */
.cart-sidebar__body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 40px 20px;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(19, 47, 29, 0.15) transparent;
}

.cart-sidebar__body::-webkit-scrollbar { width: 4px; }
.cart-sidebar__body::-webkit-scrollbar-track { background: transparent; }
.cart-sidebar__body::-webkit-scrollbar-thumb { background-color: rgba(19, 47, 29, 0.15); border-radius: 4px; }

/* Empty state — overlay-specific: vertically centers within the panel's full height */
.cart-sidebar .cart-sidebar__empty {
    flex: 1;
    justify-content: center;
}

.cart-sidebar__totals-wrap {
    flex-shrink: 0;
}

.cart-sidebar__totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 40px 0;
    border-top: 1.5px solid var(--color-dark-green-10);
}

.cart-sidebar__subtotal-row,
.cart-sidebar__shipping-row,
.cart-sidebar__discount-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--color-dark-green);
    line-height: 1.25;
}

.cart-sidebar__discount-row span:last-child {
    color: var(--color-matcha-green);
}

.cart-sidebar__total-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    font-size: var(--text-lead);
    font-weight: 500;
    color: var(--color-dark-green);
    line-height: 1.1;
    padding-top: 8px;
    border-top: 1.5px solid var(--color-dark-green-10);
}

/* Footer */
.cart-sidebar__footer {
    padding: 16px 40px 32px;
    flex-shrink: 0;
}

/* CTA button */
.cart-sidebar__add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background-color: var(--color-matcha-green);
    color: var(--color-dark-green);
    font-size: var(--text-body);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.16px;
    text-decoration: none;
    border-radius: 100px;
    padding: 6px 6px 6px 18px;
    transition: background-color 0.25s ease, color 0.25s ease;
    border: none;
    cursor: pointer;
}

.cart-sidebar__add-btn:hover {
    background-color: var(--color-dark-green);
    color: var(--color-white);
}

.cart-sidebar__add-btn:hover .cart-sidebar__btn-icon {
    background-color: var(--color-matcha-green);
    color: var(--color-dark-green);
}

.cart-sidebar__btn-icon {
    width: 32px;
    height: 32px;
    background-color: var(--color-dark-green);
    border-radius: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white);
}

body.cart-sidebar-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .cart-sidebar__panel {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 80vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .cart-sidebar.is-open .cart-sidebar__panel {
        transform: translateY(0);
    }

    .cart-sidebar__header,
    .cart-sidebar__body,
    .cart-sidebar__totals,
    .cart-sidebar__footer {
        padding-left: var(--edge-inset);
        padding-right: var(--edge-inset);
    }

    .cart-sidebar.is-empty .cart-sidebar__panel {
        height: auto;
        max-height: 80vh;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .cart-sidebar__panel {
        height: 90vh;
        display: grid;
        grid-template-columns: 1fr 320px;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "header header"
            "body   totals"
            "body   footer";
    }

    .cart-sidebar__header {
        grid-area: header;
    }

    .cart-sidebar__body {
        grid-area: body;
        min-height: 0;
        border-right: 1.5px solid var(--color-dark-green-10);
    }

    .cart-sidebar__totals-wrap {
        grid-area: totals;
    }

    .cart-sidebar__footer {
        grid-area: footer;
    }

    .cart-sidebar__item {
        gap: 12px;
        padding: 12px 0;
        align-items: center;
    }

    .cart-sidebar__item-img-wrap {
        width: 60px;
        height: 70px;
    }

    .cart-sidebar__item-details {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 0;
        gap: 12px;
    }

    .cart-sidebar__sizes {
        display: none;
    }

    .cart-sidebar__item-bottom {
        margin-top: 0;
        flex-shrink: 0;
    }
}


/* =============================================
   NEWSLETTER POPUP
   ============================================= */

.newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.newsletter-popup.is-open {
    pointer-events: auto;
}

.newsletter-popup__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.newsletter-popup.is-open .newsletter-popup__overlay {
    opacity: 1;
}

.newsletter-popup__step {
    display: none;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.newsletter-popup__step.is-active {
    display: flex;
}

.newsletter-popup.is-open .newsletter-popup__step.is-active {
    opacity: 1;
    transform: scale(1);
}

/* --- Form step --- */
.newsletter-popup__step--form {
    width: clamp(780px, 58vw, 1160px);
    max-width: 100%;
    max-height: 100%;
    background-color: var(--color-matcha-green);
}

.newsletter-popup__media {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.newsletter-popup__media-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

.newsletter-popup__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 56px;
    padding: 64px 24px 24px;
}

.newsletter-popup__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.newsletter-popup__heading {
    font-size: var(--text-h2);
    font-weight: 500;
    line-height: 1;
    color: var(--color-dark-green);
}

.newsletter-popup__body {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-dark-green);
    max-width: 34ch;
    margin: 0 auto;
}

.newsletter-popup__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.newsletter-popup__fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-popup__input {
    height: 48px;
    padding: 0 14px;
    border: none;
    border-radius: 14px;
    background-color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--text-body);
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--color-dark-green);
}

.newsletter-popup__input::placeholder {
    color: var(--color-dark-green-50);
}

.newsletter-popup__submit {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: clamp(44px, 3.056vw, 60px);
    padding: 0 24px;
    border: none;
    border-radius: 100px;
    background-color: var(--color-dark-green);
    color: var(--color-vanilla-cream);
    font-family: var(--font-primary);
    font-size: var(--text-body);
    font-weight: 500;
    letter-spacing: 0.16px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.newsletter-popup__submit:hover {
    background-color: var(--color-dark-vanilla);
    color: var(--color-dark-green);
}

.newsletter-popup__submit:active {
    transform: scale(0.97);
}

.newsletter-popup__submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.newsletter-popup__submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    opacity: 0.6;
    animation: spin 0.7s linear infinite;
}

.newsletter-popup__submit.is-loading .newsletter-popup__submit-spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Success step --- */
.newsletter-popup__step--success {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    width: 432px;
    max-width: 100%;
    padding: 64px 46px;
    background-color: var(--color-vanilla-cream);
}

.newsletter-popup__emoji {
    font-size: 36px;
    line-height: 1;
}

.newsletter-popup__success-heading {
    font-size: var(--text-h3);
    font-weight: 500;
    line-height: 1;
    color: var(--color-dark-green);
}

.newsletter-popup__success-body {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-dark-green);
    max-width: 340px;
}

/* --- Close button — shared by both steps --- */
.newsletter-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-vanilla-cream);
    border: none;
    border-radius: 50%;
    color: var(--color-dark-green);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.newsletter-popup__close:hover {
    opacity: 0.7;
}

@media (max-width: 1024px) and (orientation: portrait) {
    .newsletter-popup__step--form {
        flex-direction: column;
    }

    .newsletter-popup__media {
        display: none;
    }

    .newsletter-popup__content {
        padding: 56px 20px 24px;
        gap: 32px;
    }

    .newsletter-popup__step--success {
        padding: 56px 24px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .newsletter-popup {
        padding: 12px;
    }

    .newsletter-popup__content {
        justify-content: flex-start;
        gap: 16px;
        padding: 20px 24px 16px;
    }

    .newsletter-popup__intro {
        gap: 4px;
    }

    .newsletter-popup__heading {
        font-size: var(--text-h3);
    }

    .newsletter-popup__form {
        gap: 10px;
    }

    .newsletter-popup__fields {
        gap: 6px;
    }

    .newsletter-popup__input {
        height: 40px;
    }

    .newsletter-popup__submit {
        height: 44px;
    }
}

body.newsletter-popup-open {
    overflow: hidden;
}

/* =============================================
   LATTESA — WHOLESALE SECTION
   ============================================= */

.wholesale {
    display: flex;
    min-height: 98vh;
}

/* --- Left — image panel --- */
.wholesale__image-wrap {
    flex: 0 0 50%;
    overflow: hidden;
    position: relative;
}

.wholesale__image {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
}

/* --- Right — content panel --- */
.wholesale__content {
    flex: 0 0 50%;
    background-color: var(--color-matcha-green);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding:
        clamp(40px, 4.167vw, 96px)
        var(--edge-inset)
        clamp(40px, 4.306vw, 96px)
        clamp(48px, 6vw, 100px);
}

/* --- Top block — icon + label + heading --- */
.wholesale__top {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.25vw, 26px);
}

.wholesale__icon {
    display: block;
    width: clamp(28px, 1.944vw, 42px);
    height: auto;
    flex-shrink: 0;
}

.wholesale__label {
    font-size: var(--text-m);
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-dark-green);
}

.wholesale__heading {
    font-size: var(--text-h2);
    font-weight: 500;
    line-height: var(--lh-headings);
    color: var(--color-dark-green);
    max-width: 800px;
}

/* --- Bottom block — body + CTA --- */
.wholesale__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(28px, 2.778vw, 56px);
}

.wholesale__body {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.389vw, 28px);
}

.wholesale__body p {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-dark-green);
    max-width: 900px;
}

.wholesale__body strong {
    font-weight: 500;
}

@media (max-width: 1024px) and (orientation: portrait) {
    .wholesale {
        flex-direction: column;
        height: auto;
    }

    .wholesale__image-wrap {
        order: 1;
        flex: none;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .wholesale__content {
        order: 0;
        flex: none;
        width: 100%;
        align-items: center;
        text-align: center;
        padding: clamp(80px, 15.625vw, 160px) var(--edge-inset);
        justify-content: center;
        gap: clamp(24px, 4.167vw, 32px);
    }

    .wholesale__top {
        align-items: center;
        gap: clamp(18px, 3.125vw, 24px);
    }

    .wholesale__bottom {
        align-items: center;
        gap: clamp(40px, 7.031vw, 54px);
    }

    .wholesale__body {
        gap: clamp(20px, 3.516vw, 27px);
    }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .wholesale__heading,
    .wholesale__body p {
        max-width: 46rem;
    }
}

@media (min-width: 1025px) and (max-height: 900px), (orientation: landscape) and (max-height: 500px) {
    .wholesale__content {
        gap: clamp(24px, 4.167vw, 32px);
    }
}

@media (orientation: landscape) and (hover: none) and (pointer: coarse) and (min-height: 501px) {
    .wholesale {
        min-height: 70vh;
    }
}

/* =============================================
   LATTESA — BENEFITS STRIP
   ============================================= */

.benefits {
    background-color: var(--color-vanilla-cream);
    overflow: hidden;
    height: clamp(56px, 5.139vw, 110px);
    display: flex;
    align-items: center;
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.benefits__track {
    display: inline-flex;
    align-items: center;
    gap: clamp(40px, 4.167vw, 100px);
    white-space: nowrap;
    will-change: transform;
}

.benefits__track.is-ready {
    animation: benefits-scroll var(--benefits-speed, 30s) linear infinite;
}

@keyframes benefits-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--track-width))); }
}

.benefits__item {
    font-size: clamp(12px, 0.833vw, 16px);
    font-weight: 500;
    color: var(--color-dark-green);
    flex-shrink: 0;
}

.benefits__dot {
    width: clamp(4px, 0.278vw, 6px);
    height: clamp(4px, 0.278vw, 6px);
    border-radius: 50%;
    background-color: var(--color-dark-green);
    flex-shrink: 0;
}

/* --- Benefits responsive --- */
@media (max-width: 1024px) {
    .benefits {
        height: clamp(74px, 13.021vw, 100px);
    }

    .benefits__item {
        font-size: clamp(14px, 2.083vw, 16px);
    }
}

/* --- CTA button (hero-style) --- */
.btn-hero {
    animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.62s both;
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 0.694vw, 14px);
    padding: clamp(5px, 0.347vw, 7px) clamp(5px, 0.347vw, 7px) clamp(5px, 0.347vw, 7px) clamp(14px, 0.972vw, 18px);
    background-color: var(--color-matcha-green);
    border-radius: clamp(22px, 1.528vw, 30px);
    height: clamp(44px, 3.056vw, 60px);
    font-family: var(--font-primary);
    font-size: clamp(16px, 1.111vw, 20px);
    font-weight: 500;
    letter-spacing: 0.16px;
    color: var(--color-dark-green);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.btn-hero:active {
    transform: scale(0.97);
}

.btn-hero__label {
    transition: color 0.25s ease;
}

.btn-hero__arrow {
    width: clamp(34px, 2.361vw, 46px);
    height: clamp(34px, 2.361vw, 46px);
    background: var(--color-dark-green);
    color: var(--color-matcha-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-hero__arrow svg {
    width: clamp(18px, 1.389vw, 22px);
    height: clamp(18px, 1.389vw, 22px);
}

.btn-hero:hover {
    background-color: var(--color-dark-green);
    color: var(--color-white);
}

.btn-hero:hover .btn-hero__arrow {
    background-color: var(--color-matcha-green);
    color: var(--color-dark-green);
}

.btn-hero--full {
    width: 100%;
    justify-content: space-between;
    animation: none;
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .btn-hero {
        font-size: 24px;
        height: 68px;
        border-radius: 100px;
    }

    .mobile-nav__links a {
        font-size: 40px;
        height: 72px;
    }

    .mobile-nav__social-link {
        width: 60px;
        height: 60px;
    }

    .site-footer__social-link {
        width: 52px;
        height: 52px;
    }

    .site-header__mobile-cart {
        font-size: 20px;
    }

    .cart-count {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .benefits__item {
        font-size: 20px;
    }

    .btn-hero__arrow {
        width: 48px;
        height: 48px;
    }

    .btn-hero__arrow svg {
        width: 24px;
        height: 24px;
    }

    .wholesale__icon {
        width: 48px;
    }
}

/* --- Cart toast --- */
.cart-toast {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 210;
    transform: translateY(150%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.cart-toast.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.cart-toast__btn {
    box-shadow: 0 4px 24px rgba(19, 47, 29, 0.25);
}

@media (min-width: 1025px) {
    .cart-toast {
        left: 50%;
        right: auto;
        width: 480px;
        transform: translateX(-50%) translateY(150%);
    }

    .cart-toast.is-visible {
        transform: translateX(-50%) translateY(0);
    }
}

/* =============================================
   LATTESA — COMMUNITY CTA
   ============================================= */

.community {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(120px, 12.847vw, 296px) var(--edge-inset) clamp(112px, 12.153vw, 280px);
}

.community__image-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.community__image {
    position: absolute;
    top: -11%;
    left: 0;
    width: 100%;
    height: 122%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
}

.community__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(193deg, rgba(0,0,0,0.066) 32.3%, rgba(0,0,0,0.73) 80.7%);
}

.community__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 1.389vw, 28px);
    max-width: clamp(480px, 45.833vw, 900px);
}

.community__heading {
    font-size: var(--text-h1);
    font-weight: 500;
    line-height: 1;
    color: var(--color-vanilla-cream);
}

@media (max-width: 1024px) and (orientation: portrait) {
    .community {
        padding: clamp(80px, 15.625vw, 160px) var(--edge-inset);
    }

    .community__content {
        max-width: 100%;
    }
}

/* =========================================================
   FAQ
   ========================================================= */

.faq {
    background-color: var(--color-vanilla-cream);
}

.faq__inner {
    padding-top: clamp(60px, 6.944vw, 161px);
    padding-bottom: clamp(60px, 6.944vw, 161px);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.faq__title {
    font-size: var(--text-h2);
    font-weight: 500;
    color: var(--color-dark-green);
    text-align: center;
    line-height: 1;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq__item {
    border: 2px solid var(--color-dark-green-20);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq__item.is-open {
    border-color: var(--color-dark-green);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq__question-text {
    font-size: var(--text-lead);
    font-weight: 500;
    color: var(--color-dark-green);
    line-height: 1.1;
}

.faq__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-dark-green);
    border-radius: 2px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq__icon::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq__icon::after {
    height: 2px;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.faq__item.is-open .faq__icon::before {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq__answer-inner {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq__answer-text {
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--color-dark-green);
    line-height: 1.25;
}

.faq__images {
    display: flex;
    gap: 18px;
}

.faq__image {
    width: clamp(140px, 21.181vw, 491px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

@media (max-width: 1024px) {
    .faq__inner {
        padding-left: var(--edge-inset);
        padding-right: var(--edge-inset);
        padding-top: clamp(80px, 15.625vw, 160px);
        padding-bottom: clamp(80px, 15.625vw, 160px);
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    .faq__images {
        flex-direction: column;
    }

    .faq__image {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .faq__images {
        flex-direction: row;
    }

    .faq__image {
        width: clamp(140px, 21.181vw, 491px);
    }
}
