/* Header + navigation (uses variables from site_theme.css) */
.site-header {
    border-bottom: 2px solid var(--color-border-soft, #d4c4aa);
    margin: 0 0 18px;
    padding: 0;
    background: linear-gradient(
        180deg,
        rgba(240, 230, 208, 0.94) 0%,
        rgba(255, 254, 249, 0.9) 50%,
        rgba(221, 208, 184, 0.92) 100%
    );
    border-radius: var(--radius, 6px);
}

.site-header .site-tagline {
    text-shadow: 0 1px 2px rgba(255, 254, 249, 0.9);
}

.site-header .top-nav ul li a {
    text-shadow: 0 1px 2px rgba(255, 254, 249, 0.95);
}

.site-header-inner {
    max-width: var(--max-width, 1100px);
    margin: 0 auto;
    padding: 0.25em 20px 0;
}

.site-header .logo {
    text-align: center;
    margin: 0;
    line-height: 0;
    width: 100%;
}

.site-header .logo a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.site-header .logo picture {
    display: block;
    width: 100%;
}

.site-logo-img,
.site-brand-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.site-header .header-top {
    padding: 0.15em 0 0.35em;
}

.header-util-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.15rem 0 0.4rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid rgba(107, 83, 68, 0.22);
}

.header-util-left,
.header-util-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.header-util-search {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    max-width: min(280px, 38vw);
    margin: 0 auto;
}

.header-util-search .site-header-search {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
}

.site-header .header-bottom {
    padding: 0 0 0.55em;
}

.site-header .top-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0;
}

.site-header .shop-currency-switcher {
    position: static;
    transform: none;
    margin: 0;
    z-index: auto;
}

.site-header .shop-header-links {
    position: static;
    transform: none;
    margin: 0;
    z-index: auto;
}

.site-header .top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35em 0.72em;
    max-width: 100%;
}

.site-tagline {
    margin: 0.2em 0 0.45em;
    padding: 0;
    text-align: center;
    color: var(--color-green-dark, #3d2b1f);
    font-size: 0.88em;
    line-height: 1.2;
    font-style: italic;
    font-family: var(--font-family, Verdana, Geneva, Tahoma, sans-serif);
    text-transform: none;
}

.site-header .top-nav ul li {
    display: inline-block;
}

.site-header .top-nav ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    color: var(--color-green-dark, #3d2b1f);
    text-decoration: none;
    letter-spacing: 0.04em;
    font-size: 0.84em;
    text-transform: uppercase;
    padding: 0.42em 0.85em;
    font-family: var(--font-family, Verdana, Geneva, Tahoma, sans-serif);
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid rgba(74, 92, 66, 0.82);
    border-radius: 6px;
    background: linear-gradient(180deg, #fffef9 0%, #dce8d4 48%, #c0d0b4 100%);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.96) inset,
        0 -1px 0 rgba(74, 92, 66, 0.12) inset,
        0 4px 7px rgba(61, 43, 31, 0.24),
        0 2px 0 rgba(74, 92, 66, 0.28);
    transition: background 0.12s, box-shadow 0.12s, transform 0.12s, border-color 0.12s, color 0.12s;
}

.site-header .top-nav ul li:not(.active) a:hover,
.site-header .top-nav ul li:not(.active) a:focus-visible {
    color: #2f2318;
    background: linear-gradient(180deg, #fff 0%, #eef6e8 52%, #d4e4ca 100%);
    border-color: rgba(74, 92, 66, 0.92);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 1) inset,
        0 -1px 0 rgba(74, 92, 66, 0.1) inset,
        0 5px 9px rgba(61, 43, 31, 0.28),
        0 2px 0 rgba(74, 92, 66, 0.32);
}

.site-header .top-nav ul li:not(.active) a:active {
    background: linear-gradient(180deg, #b8c8ac 0%, #d0deca 100%);
    box-shadow:
        inset 0 3px 5px rgba(45, 56, 40, 0.32),
        inset 0 1px 0 rgba(45, 56, 40, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(2px);
}

.site-header .top-nav ul li.active a {
    color: var(--color-white, #fffef9);
    background: linear-gradient(180deg, #3a4f34 0%, var(--color-sage, #5c6f52) 46%, #32422c 100%);
    border-color: #283422;
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(2px);
}

.site-header .nav-label--mobile {
    display: none;
}

.site-header .nav-toggle {
    display: none;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid rgba(74, 92, 66, 0.82);
    background: linear-gradient(180deg, #fffef9 0%, #dce8d4 48%, #c0d0b4 100%);
    border-radius: 6px;
    cursor: pointer;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.96) inset,
        0 2px 5px rgba(61, 43, 31, 0.18);
}

.site-header .nav-toggle-bars {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-header .nav-toggle-label {
    display: none;
}

.site-header .nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: var(--color-green-dark, #3d2b1f);
    border-radius: 1px;
    transition: transform 0.15s, opacity 0.15s;
}

.site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Home: banner masthead */
.site-home-masthead {
    position: relative;
    max-width: var(--max-width, 1100px);
    margin: 0 auto 28px;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: var(--radius, 6px);
    overflow: hidden;
    border: 1px solid var(--color-border-soft, #d4c4aa);
    box-shadow: var(--shadow-panel, 0 2px 4px rgba(61, 43, 31, 0.06), 0 5px 16px rgba(107, 83, 68, 0.11));
}

.site-home-masthead__bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    pointer-events: none;
    z-index: 0;
}

.site-home-masthead__bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0.28;
}

.site-home-masthead__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(240, 230, 208, 0.94) 0%,
        rgba(255, 254, 249, 0.9) 50%,
        rgba(221, 208, 184, 0.92) 100%
    );
    pointer-events: none;
}

.site-home-masthead__inner {
    position: relative;
    z-index: 1;
    padding: 0.15em 0 0;
}

.site-header--masthead {
    position: relative;
    z-index: 3;
    border-bottom: none;
    margin-bottom: 0;
    background: transparent;
}

.site-header--masthead .site-header-inner {
    padding-top: 0.15em;
    /* The masthead already supplies the 20px side gutter; drop the inner
       padding so the logo matches its width on every other page. */
    padding-left: 0;
    padding-right: 0;
}

.site-header--masthead .top-nav ul li a {
    text-shadow: 0 1px 2px rgba(255, 254, 249, 0.95);
}

.site-header--masthead .site-tagline {
    text-shadow: 0 1px 2px rgba(255, 254, 249, 0.9);
}

@media (max-width: 1024px) {
    .site-header .top-nav ul {
        gap: 0.25em 0.55em;
    }

    .site-header .top-nav ul li a {
        font-size: 0.78em;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 768px) {
    .header-util-bar {
        flex-wrap: wrap;
        gap: 0.35rem 0.5rem;
        padding-bottom: 0.35rem;
    }

    .header-util-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-util-right {
        flex: 0 0 auto;
    }

    .header-util-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
    }

    .site-header .header-bottom {
        padding-bottom: 0.25em;
    }

    .site-header .top-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 0;
    }

    .site-header .nav-toggle {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        align-self: center;
        position: relative;
        z-index: 5;
        padding: 0.32rem 0.65rem;
        min-height: 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        margin: 0 auto 0.35rem;
    }

    .site-header .nav-toggle-label {
        display: inline;
        font-family: var(--font-family, Verdana, Geneva, Tahoma, sans-serif);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--color-green-dark, #3d2b1f);
        line-height: 1;
    }

    .site-header .nav-toggle-bar {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }

    .site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-header .top-nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        margin: 0;
        padding: 0.55rem 0 0.2rem;
        border-top: 1px solid rgba(212, 196, 170, 0.65);
        overflow: visible;
        width: 100%;
    }

    .site-header .top-nav ul.is-open {
        display: flex;
    }

    .site-header .nav-label--mobile {
        display: none !important;
    }

    .site-header .top-nav ul li a:has(.nav-label--mobile) .nav-label--full,
    .site-header .top-nav ul li a .nav-label--full {
        display: inline !important;
    }

    .site-header .top-nav ul li {
        display: block;
        width: 100%;
        text-align: left;
    }

    .site-header .top-nav ul li a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
        padding: 0.62em 0.9em;
        font-size: 0.92rem;
        line-height: 1.25;
        letter-spacing: 0.03em;
        text-transform: none;
        white-space: normal;
        border-radius: 6px;
        color: var(--color-green-dark, #3d2b1f);
    }

    .site-header .top-nav ul li:not(.active) a:hover,
    .site-header .top-nav ul li:not(.active) a:focus-visible {
        color: #2f2318;
    }

    .site-header .top-nav ul li.active a {
        color: var(--color-white, #fffef9);
        transform: none;
    }

    .site-home-masthead {
        padding: 0 8px;
        margin-bottom: 20px;
    }

    .site-home-masthead__bg-img {
        opacity: 0.2;
    }

    .site-header-inner {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 380px) {
    .site-header .top-nav ul li a {
        font-size: 0.88rem;
        padding: 0.55em 0.75em;
    }

    .site-header .nav-toggle {
        padding: 0.28rem 0.55rem;
        gap: 0.28rem;
    }

    .site-header .nav-toggle-label {
        font-size: 0.72rem;
    }

    .site-header .nav-toggle-bar {
        width: 18px;
    }
}
