/*
 * Site header — shared by every page through site-header.js.
 *
 * Layout: logo (left) · navigation (centre) · actions (right).
 * Themes (set with data-header-theme on the [data-site-header] mount):
 *   light   — dark text for pages with a light background (default)
 *   overlay — white text over a dark hero; switches to light once scrolled
 */

:root {
    --sh-height: 104px;
    --sh-height-scrolled: 74px;
    --sh-logo: 86px;
    --sh-logo-scrolled: 58px;
    --sh-ink: var(--lv-espresso);
    --sh-ink-soft: rgba(var(--lv-espresso-rgb), 0.68);
    --sh-gold: var(--lv-latte);
    --sh-gold-deep: var(--lv-cocoa);
    --sh-surface: rgba(var(--lv-linen-rgb), 0.94);
    --sh-hairline: rgba(var(--lv-espresso-rgb), 0.08);
    --sh-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/*
 * The mount is sticky rather than the header being position: fixed, because
 * body has `perspective` (for the 3D scroll effects), which turns fixed
 * elements into page-anchored ones. Zero height + its own block formatting
 * context keeps it out of the layout and stops page margins collapsing into it.
 */
[data-site-header] {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 0;
    display: flow-root;
}

.site-header {
    position: absolute;
    inset: 0 0 auto;
    color: var(--sh-ink);
    transition: background-color 0.4s var(--sh-ease), box-shadow 0.4s var(--sh-ease), color 0.4s var(--sh-ease);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--sh-ease);
}

.site-header__bar {
    max-width: 1320px;
    height: var(--sh-height);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    transition: height 0.4s var(--sh-ease);
}

/* ---------- Logo ---------- */

.site-header__brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: block;
    line-height: 0;
    text-decoration: none;
}

.site-header__logo {
    display: block;
    height: var(--sh-logo);
    width: auto;
    transition: height 0.4s var(--sh-ease), opacity 0.3s ease;
}

.site-header__logo--light {
    display: none;
}

/* ---------- Navigation ---------- */

.site-header__nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}

.site-header__links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__link {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    color: inherit;
    font-family: 'Manrope', var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-header__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--sh-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s var(--sh-ease);
}

.site-header__link:hover,
.site-header__link.active {
    color: var(--sh-gold-deep);
}

.site-header__link:hover::after,
.site-header__link.active::after {
    transform: scaleX(1);
}

.site-header__menu-footer {
    display: none;
}

/* ---------- Actions ---------- */

.site-header__actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.site-header__icon:hover,
.site-header__icon.is-current {
    color: var(--sh-gold-deep);
    border-color: rgba(var(--lv-latte-rgb), 0.45);
}

.site-header__icon:focus-visible,
.site-header__link:focus-visible,
.site-header__cta:focus-visible {
    outline: 2px solid var(--sh-gold);
    outline-offset: 3px;
}

.site-header__count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--sh-gold);
    color: var(--sh-ink);
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.site-header__count.has-items {
    opacity: 1;
    transform: scale(1);
}

.site-header__icon.is-bump {
    animation: cartBadgeBump 0.55s ease;
}

@keyframes cartBadgeBump {
    0% { transform: rotate(0deg) scale(1); }
    18% { transform: rotate(-11deg) scale(1.03); }
    36% { transform: rotate(9deg) scale(1.05); }
    54% { transform: rotate(-7deg) scale(1.03); }
    72% { transform: rotate(5deg) scale(1.01); }
    100% { transform: rotate(0deg) scale(1); }
}

.site-header__cta {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid var(--sh-ink);
    background: var(--sh-ink);
    color: #fff;
    font-family: 'Manrope', var(--font-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.site-header__cta:hover {
    background: var(--sh-gold);
    border-color: var(--sh-gold);
    color: var(--sh-ink);
}

.site-header__toggle {
    display: none;
    grid-column: 3;
    grid-row: 1;
    font-size: 20px;
}

/* ---------- Scrolled state ---------- */

.site-header.scrolled {
    color: var(--sh-ink);
}

.site-header.scrolled::before {
    opacity: 1;
    background: var(--sh-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sh-hairline);
    box-shadow: 0 10px 30px rgba(var(--lv-espresso-rgb), 0.05);
}

.site-header.scrolled .site-header__bar {
    height: var(--sh-height-scrolled);
}

.site-header.scrolled .site-header__logo {
    height: var(--sh-logo-scrolled);
}

/* ---------- Overlay theme (dark hero behind the header) ---------- */

.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open) {
    color: #fff;
}

.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open) .site-header__logo--dark {
    display: none;
}

.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open) .site-header__logo--light {
    display: block;
}

.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open) .site-header__link:hover,
.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open) .site-header__link.active,
.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open) .site-header__icon:hover,
.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open) .site-header__icon.is-current {
    color: var(--sh-gold);
}

.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open) .site-header__cta {
    background: var(--sh-gold);
    border-color: var(--sh-gold);
    color: var(--sh-ink);
}

.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open) .site-header__cta:hover {
    background: #fff;
    border-color: #fff;
}

/* ---------- Tablet & mobile ---------- */

@media (max-width: 1024px) {
    :root {
        --sh-height: 84px;
        --sh-height-scrolled: 68px;
        --sh-logo: 62px;
        --sh-logo-scrolled: 50px;
    }

    .site-header__bar {
        grid-template-columns: 1fr auto auto;
        padding: 0 20px;
        gap: 4px;
    }

    .site-header__toggle {
        display: inline-flex;
    }

    .site-header__actions {
        grid-column: 2;
        gap: 4px;
    }

    .site-header__actions > .site-header__cta {
        display: none;
    }

    .site-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 100%);
        overflow-y: auto;
        padding: 12px 24px 28px;
        background: var(--lv-linen);
        border-top: 1px solid var(--sh-hairline);
        box-shadow: 0 24px 40px rgba(var(--lv-espresso-rgb), 0.12);
    }

    .site-header.menu-open .site-header__nav {
        display: block;
        animation: siteHeaderMenuIn 0.3s var(--sh-ease);
    }

    .site-header.menu-open::before {
        opacity: 1;
        background: var(--lv-linen);
    }

    .site-header__links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-header__link {
        display: block;
        padding: 18px 0;
        font-size: 14px;
        border-bottom: 1px solid var(--sh-hairline);
    }

    .site-header__link::after {
        display: none;
    }

    .site-header__menu-footer {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding-top: 24px;
    }

    .site-header__menu-footer .site-header__cta {
        margin-left: 0;
        padding: 15px 24px;
    }

    .site-header__menu-contact {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 18px;
        font-size: 13px;
    }

    .site-header__menu-contact a {
        color: var(--sh-ink-soft);
        text-decoration: none;
    }

    .site-header__menu-contact i {
        margin-right: 6px;
        color: var(--sh-gold-deep);
    }
}

@media (max-width: 480px) {
    :root {
        --sh-height: 76px;
        --sh-logo: 56px;
    }

    .site-header__bar {
        padding: 0 12px;
    }

    .site-header__icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@keyframes siteHeaderMenuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header *,
    .site-header::before {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------- "Shop By" menu ---------- */
.site-header__mega-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
}

.site-header__mega-toggle i {
    font-size: 9px;
    transition: transform 0.3s var(--sh-ease);
}

.site-header__item--mega.is-open .site-header__mega-toggle i {
    transform: rotate(180deg);
}

.site-header__item--mega.is-open .site-header__mega-toggle::after {
    transform: scaleX(1);
}

.site-mega {
    display: none;
    color: var(--sh-ink);
}

@media (min-width: 1025px) {
    .site-mega {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: block;
        background: #fff;
        border-top: 1px solid var(--sh-hairline);
        box-shadow: 0 30px 60px rgba(var(--lv-espresso-rgb), 0.16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.25s var(--sh-ease), transform 0.25s var(--sh-ease), visibility 0s linear 0.25s;
    }

    .site-header__item--mega.is-open .site-mega {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.25s var(--sh-ease), transform 0.25s var(--sh-ease), visibility 0s;
    }

    /* Solid header while the menu is open, also over the homepage photo. */
    .site-header.mega-open {
        color: var(--sh-ink);
    }

    .site-header.mega-open::before {
        opacity: 1;
        background: #fff;
    }

    .site-mega__inner {
        max-width: 1240px;
        margin: 0 auto;
        padding: 40px 40px 44px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(240px, 1.15fr);
        gap: 36px;
    }
}

.site-mega__title {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--sh-ink);
}

.site-mega__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.site-mega__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--sh-ink-soft);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-mega__link:hover,
.site-mega__link:focus-visible {
    color: var(--sh-gold-deep);
    transform: translateX(3px);
}

.site-mega__swatch {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(var(--lv-espresso-rgb), 0.2);
    box-shadow: inset 0 0 0 2px #fff;
}

.site-mega__promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    border-radius: 16px;
    background: var(--lv-linen);
}

.site-mega__promo-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sh-gold-deep);
}

.site-mega__promo-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.2;
    color: var(--sh-ink);
}

.site-mega__promo-text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--sh-ink-soft);
}

.site-mega__promo-btn {
    padding: 12px 20px;
    border-radius: 6px;
    background: var(--sh-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.site-mega__promo-btn:hover {
    background: var(--sh-gold);
    color: var(--sh-ink);
}

.site-mega__all {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sh-gold-deep);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.site-mega__all i {
    font-size: 11px;
}

/* Mobile menu: fold-out section */
@media (max-width: 1024px) {
    .site-header__mega-toggle {
        width: 100%;
        justify-content: space-between;
        text-align: left;
        color: inherit;
    }

    .site-header__item--mega.is-open .site-mega {
        display: block;
        padding: 18px 0 22px;
        border-bottom: 1px solid var(--sh-hairline);
        animation: siteHeaderMenuIn 0.25s var(--sh-ease);
    }

    .site-mega__title {
        margin-bottom: 8px;
    }

    .site-mega__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 12px;
    }

    .site-mega__inner {
        display: grid;
        gap: 22px;
    }

    .site-mega__promo {
        padding: 20px;
        background: #fff;
    }
}

/* ---------- Announcement bar (above the header) ---------- */
.site-announcement {
    position: relative;
    z-index: 1001;
    background: linear-gradient(90deg, var(--lv-latte) 0%, #E2C9A6 50%, var(--lv-latte) 100%);
    color: var(--lv-espresso);
    border-bottom: 1px solid rgba(var(--lv-espresso-rgb), 0.18);
    font-family: 'Manrope', var(--font-body);
}

.site-announcement__inner {
    max-width: 1320px;
    min-height: 46px;
    margin: 0 auto;
    padding: 7px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px 22px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.site-announcement__text {
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
}

.site-announcement__text > i {
    font-size: 0.9em;
    color: var(--lv-cocoa);
}

.site-announcement__text strong {
    font-weight: 800;
}

.site-announcement__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--lv-espresso);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.site-announcement__phone:hover,
.site-announcement__phone:focus-visible {
    background: var(--lv-cocoa);
    transform: translateY(-1px);
}

.site-announcement__phone:focus-visible {
    outline: 2px solid var(--lv-espresso);
    outline-offset: 2px;
}

.site-announcement__phone i {
    font-size: 0.8em;
    color: var(--lv-latte);
}

@media (max-width: 768px) {
    .site-announcement__inner {
        min-height: 42px;
        padding: 6px 14px;
        gap: 10px;
    }

    .site-announcement__lead,
    .site-announcement__text > i {
        display: none;
    }

    .site-announcement__text {
        font-size: 13.5px;
    }

    .site-announcement__phone {
        padding: 5px 12px;
        font-size: 13.5px;
    }
}

/* ---------- Overlay header readability over photos ---------- */
.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open)::before {
    opacity: 1;
    background: linear-gradient(180deg, rgba(30, 20, 15, 0.88) 0%, rgba(30, 20, 15, 0.74) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(var(--lv-latte-rgb), 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open) .site-header__link {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.site-header--overlay:not(.scrolled):not(.menu-open):not(.mega-open) .site-header__icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

/* ---------- Promo popup (site-header.js) ---------- */
html.lv-popup-lock,
html.lv-popup-lock body {
    overflow: hidden;
}

.lv-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: var(--font-body);
    color: var(--lv-espresso);
    visibility: hidden;
    pointer-events: none;
}

.lv-popup.is-open {
    visibility: visible;
    pointer-events: auto;
}

.lv-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(var(--lv-espresso-rgb), 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lv-popup.is-open .lv-popup__backdrop {
    opacity: 1;
}

.lv-popup__dialog {
    position: relative;
    width: min(860px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    background: var(--lv-cream);
    border-radius: 22px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    outline: none;
}

.lv-popup.is-open .lv-popup__dialog {
    opacity: 1;
    transform: none;
}

.lv-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--lv-espresso-rgb), 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--lv-espresso);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.lv-popup__close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.lv-popup__media {
    position: relative;
    min-height: 100%;
    background: var(--lv-khaki);
}

.lv-popup__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lv-popup__media-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(var(--lv-espresso-rgb), 0.85);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lv-popup__media-badge i {
    color: var(--lv-latte);
}

.lv-popup__body {
    padding: 44px 40px 32px;
}

.lv-popup__title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--lv-espresso);
}

.lv-popup__text {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--lv-muted);
}

.lv-popup__points {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.lv-popup__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(var(--lv-espresso-rgb), 0.07);
    font-size: 0.95rem;
    font-weight: 600;
}

.lv-popup__spark {
    flex: none;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lv-linen);
    font-size: 14px;
}

.lv-popup__question {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--lv-cocoa);
}

.lv-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lv-popup__btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.lv-popup__btn--primary {
    background: var(--lv-espresso);
    color: #fff;
}

.lv-popup__btn--primary:hover {
    background: var(--lv-latte);
    color: var(--lv-espresso);
    transform: translateY(-2px);
}

.lv-popup__btn--ghost {
    border: 1px solid rgba(var(--lv-espresso-rgb), 0.25);
    color: var(--lv-espresso);
}

.lv-popup__btn--ghost:hover {
    border-color: var(--lv-espresso);
    background: #fff;
}

.lv-popup__dismiss {
    display: block;
    margin: 14px auto 0;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--lv-muted);
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.lv-popup__dismiss:hover {
    color: var(--lv-espresso);
}

.lv-popup__close:focus-visible,
.lv-popup__btn:focus-visible,
.lv-popup__dismiss:focus-visible {
    outline: 2px solid var(--lv-latte);
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .lv-popup {
        padding: 14px;
    }

    .lv-popup__dialog {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .lv-popup__media {
        min-height: 150px;
        height: 150px;
    }

    .lv-popup__body {
        padding: 24px 20px 20px;
    }

    .lv-popup__points li {
        padding: 9px 12px;
        font-size: 0.9rem;
    }

    .lv-popup__btn {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lv-popup__backdrop,
    .lv-popup__dialog {
        transition: none;
    }
}

/* ---------- WhatsApp chat widget (site-header.js) ---------- */
.lv-wa {
    --wa-green: #25D366;
    --wa-green-dark: #128C7E;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    font-family: 'Manrope', var(--font-body);
}

.lv-wa svg {
    width: 26px;
    height: 26px;
    flex: none;
}

.lv-wa__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    padding: 0 22px 0 17px;
    border: 0;
    border-radius: 999px;
    background: var(--wa-green);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.38), 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: padding 0.35s ease, gap 0.35s ease, transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    animation: lv-wa-in 0.5s ease 1s both;
}

.lv-wa__button svg {
    width: 28px;
    height: 28px;
}

.lv-wa__button:hover {
    background: var(--wa-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(18, 140, 126, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.lv-wa__button:focus-visible,
.lv-wa__start:focus-visible,
.lv-wa__close:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.45);
    outline-offset: 3px;
}

.lv-wa__label {
    max-width: 140px;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.35s ease, opacity 0.25s ease;
}

/* After a few seconds, shrink to a round button (label returns on hover). */
.lv-wa.is-compact .lv-wa__button {
    width: auto;
    gap: 0;
    padding: 0 16px;
}

.lv-wa.is-compact .lv-wa__label {
    max-width: 0;
    opacity: 0;
}

.lv-wa.is-compact .lv-wa__button:hover,
.lv-wa.is-compact.is-open .lv-wa__button {
    gap: 10px;
    padding: 0 22px 0 17px;
}

.lv-wa.is-compact .lv-wa__button:hover .lv-wa__label,
.lv-wa.is-compact.is-open .lv-wa__label {
    max-width: 140px;
    opacity: 1;
}

.lv-wa__card {
    width: min(340px, calc(100vw - 32px));
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    transform-origin: bottom right;
    animation: lv-wa-card-in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lv-wa__card[hidden] {
    display: none;
}

.lv-wa__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 16px 18px;
    background: var(--wa-green-dark);
    color: #fff;
}

.lv-wa__avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.lv-wa__who {
    flex: 1;
    display: grid;
    gap: 2px;
    min-width: 0;
}

.lv-wa__who strong {
    font-size: 15px;
}

.lv-wa__who small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.lv-wa__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7CF5A8;
}

.lv-wa__close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.lv-wa__close svg {
    width: 18px;
    height: 18px;
}

.lv-wa__close:hover {
    background: rgba(255, 255, 255, 0.26);
}

.lv-wa__body {
    padding: 20px 18px;
    background: #EFE7DD;
}

.lv-wa__bubble {
    position: relative;
    margin: 0;
    max-width: 92%;
    padding: 12px 14px;
    border-radius: 0 12px 12px 12px;
    background: #fff;
    color: #303030;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lv-wa__start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px 16px 16px;
    padding: 13px 18px;
    border-radius: 999px;
    background: var(--wa-green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.lv-wa__start svg {
    width: 22px;
    height: 22px;
}

.lv-wa__start:hover {
    background: var(--wa-green-dark);
}

@keyframes lv-wa-in {
    from { opacity: 0; transform: translateY(16px) scale(0.9); }
    to { opacity: 1; transform: none; }
}

@keyframes lv-wa-card-in {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
    .lv-wa {
        right: 16px;
        bottom: 16px;
    }

    .lv-wa__button {
        height: 54px;
    }

    .lv-wa.is-compact .lv-wa__button {
        padding: 0 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lv-wa__button,
    .lv-wa__card,
    .lv-wa__label {
        animation: none;
        transition: none;
    }
}

@media print {
    .lv-wa {
        display: none;
    }
}
