:root {
    --logo-forest-900: #173f39;
    --logo-forest-700: #1f5b54;
    --logo-forest-500: #3d7c72;
    --logo-cream: #f4efdf;
    --action-icon-size: 48px;
    --action-icon-gap: 8px;
    --action-rail-top: 16px;
    --action-rail-right: 16px;
    --action-logo-left: 16px;
}

.site-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.site-lockup--compact {
    gap: 14px;
}

.site-lockup--logo-only {
    align-items: center;
}

.site-logo {
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(23, 63, 57, 0.12));
}

.site-logo--hero {
    width: 116px;
    height: 116px;
}

.site-logo--compact {
    width: 104px;
    height: 104px;
}

.site-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.site-copy--minimal {
    gap: 2px;
}

.site-kicker {
    margin: 0;
    color: var(--logo-forest-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-title {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    line-height: 1.02;
    color: var(--logo-forest-700);
}

.site-title--compact {
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
}

.site-subtitle {
    margin: 0;
    color: var(--logo-forest-700);
    font-size: 14px;
    line-height: 1.5;
    max-width: 48ch;
}

.page-label {
    margin: 0;
    color: var(--logo-forest-700);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.page-intro,
.top-leading,
.buy-header {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.page-intro--tight {
    gap: 8px;
}

.page-context {
    margin: 0;
    color: var(--logo-forest-700);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-copy--minimal .page-context {
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-nav-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.page-nav-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(31, 91, 84, 0.28);
    background: rgba(255, 244, 234, 0.96);
    color: var(--logo-forest-700);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.page-nav-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(84, 42, 20, 0.12);
    background: #fff8f2;
}

.page-nav-chip--home {
    background: linear-gradient(120deg, #fff3e5, #ffe8d4);
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    align-self: flex-start;
    gap: 12px;
}

.top-actions > * {
    flex: 0 0 auto;
}

.top-actions .page-nav-chip,
.profile-btn,
.cart-link {
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid rgba(31, 91, 84, 0.28);
    background: rgba(255, 244, 234, 0.96);
    color: var(--logo-forest-700);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(84, 42, 20, 0.08);
}

.profile-btn,
.cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    appearance: none;
}

.profile-btn {
    cursor: pointer;
    font: inherit;
}

.top-actions .page-nav-chip:hover,
.profile-btn:hover,
.cart-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(84, 42, 20, 0.14);
    background: #fff9f3;
}

.top-actions--icon {
    gap: var(--action-icon-gap);
    flex-wrap: nowrap;
}

.has-page-actions .top.container,
.has-page-actions .topbar,
.has-page-actions .buy-header {
    min-height: 128px;
}

.has-page-actions .top-leading,
.has-page-actions .topbar .top-leading,
.has-page-actions .buy-header .top-leading {
    position: fixed;
    top: calc(var(--action-rail-top) - 6px);
    left: var(--action-logo-left);
    z-index: 11950;
    display: grid;
    gap: 0;
}

.has-page-actions .top-leading .site-lockup,
.has-page-actions .topbar .top-leading .site-lockup,
.has-page-actions .buy-header .top-leading .site-lockup {
    gap: 0;
}

.has-page-actions .top-actions--icon,
.has-page-actions .topbar .top-actions--icon,
.has-page-actions .buy-header .top-actions--icon {
    position: fixed;
    top: var(--action-rail-top);
    right: var(--action-rail-right);
    z-index: 20000;
    display: flex;
    align-items: center;
}

.has-page-actions .top-actions--icon > *,
.has-page-actions .topbar .top-actions--icon > *,
.has-page-actions .buy-header .top-actions--icon > * {
    flex: 0 0 var(--action-icon-size);
}

.has-page-actions .buy-header .top-actions--icon {
    min-width: 0;
    width: auto;
    justify-content: flex-start;
}

.action-icon {
    position: relative;
    width: var(--action-icon-size);
    height: var(--action-icon-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(31, 91, 84, 0.34);
    background: rgba(255, 255, 255, 0.96);
    color: var(--logo-forest-700);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

button.action-icon {
    cursor: pointer;
    appearance: none;
    font: inherit;
}

.action-icon:hover,
.action-icon:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    background: #f6fffc;
    outline: none;
}

.action-icon::before {
    content: "";
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.action-icon--home::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5b54' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.8 12 3l9 7.8'/%3E%3Cpath d='M5.5 9.9V21h13V9.9'/%3E%3Cpath d='M9.5 21v-5.5h5V21'/%3E%3C/svg%3E");
}

.action-icon--profile::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5b54' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E");
}

.action-icon--cart::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5b54' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.7'/%3E%3Ccircle cx='18' cy='20' r='1.7'/%3E%3Cpath d='M3 4h2l2.2 10.2a1 1 0 0 0 1 .8h8.9a1 1 0 0 0 1-.8L20 7H7.1'/%3E%3C/svg%3E");
}

.action-icon--bell::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5b54' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.3 9.7a5.7 5.7 0 1 1 11.4 0c0 6.4 2.6 7.7 2.6 7.7H3.7s2.6-1.3 2.6-7.7'/%3E%3Cpath d='M10 20a2.3 2.3 0 0 0 4 0'/%3E%3C/svg%3E");
}

.action-icon-count,
.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    border: 1.5px solid #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.action-icon--profile[data-profile-ready="true"]::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #22a447;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(34, 164, 71, 0.24);
}

.site-title--stacked {
    display: inline-grid;
    gap: 1px;
    align-self: start;
    line-height: 0.98;
}

.site-title-line {
    display: block;
    white-space: nowrap;
}

.site-title--compact.site-title--stacked {
    font-size: clamp(1.24rem, 2.2vw, 1.7rem);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .site-lockup {
        align-items: flex-start;
    }

    .site-logo--hero {
        width: 94px;
        height: 94px;
    }

    .site-logo--compact {
        width: 90px;
        height: 90px;
    }

    .site-subtitle {
        font-size: 13px;
    }

    .top-actions {
        width: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    :root {
        --action-icon-size: 44px;
        --action-icon-gap: 6px;
        --action-rail-top: 10px;
        --action-rail-right: 10px;
        --action-logo-left: 10px;
    }

    .site-lockup {
        gap: 10px;
    }

    .site-logo {
        width: 78px;
        height: 78px;
    }

    .site-logo--hero {
        width: 86px;
        height: 86px;
    }

    .site-logo--compact {
        width: 72px;
        height: 72px;
    }

    .site-title {
        font-size: 1.35rem;
    }

    .site-title--compact {
        font-size: 1.2rem;
    }

    .site-kicker {
        font-size: 11px;
    }

    .page-label {
        font-size: 12px;
    }

    .page-context {
        font-size: 12px;
    }

    .page-nav-chip {
        min-height: 32px;
        padding: 6px 11px;
        font-size: 11px;
    }

    .site-title--stacked {
        gap: 0;
    }

    .site-title--compact.site-title--stacked {
        font-size: 1.08rem;
    }

    .action-icon::before {
        width: 20px;
        height: 20px;
    }

    .has-page-actions .top.container,
    .has-page-actions .topbar,
    .has-page-actions .buy-header {
        min-height: 104px;
    }
}

@media (max-width: 380px) {
    :root {
        --action-icon-gap: 5px;
    }

    .site-logo--compact {
        width: 70px;
        height: 70px;
    }

    .has-page-actions .top.container,
    .has-page-actions .topbar,
    .has-page-actions .buy-header {
        min-height: 98px;
    }
}
