/**
 * Site header — Engraven-inspired storefront bar + main nav (prefix: ec-h-)
 */

.ec-h-announcement {
    background: #000;
    color: #fff;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 40px;
    display: flex;
    align-items: stretch;
}

.ec-h-announcement .container-fluid {
    max-width: 1440px;
}

.ec-h-announcement-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
}

.ec-h-skip {
    flex-shrink: 0;
    align-self: center;
}

.ec-h-skip a {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: #000;
    transition: background 0.2s ease, color 0.2s ease;
}

.ec-h-skip a:hover,
.ec-h-skip a:focus {
    background: #fff;
    color: #000;
    outline: none;
}

.ec-h-carousel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.ec-h-carousel-btn {
    flex-shrink: 0;
    width: 36px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ec-h-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ec-h-carousel-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ec-h-mainnav-wrap {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    z-index: 1030;
}

.ec-h-mainnav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

.ec-h-navbar-row {
    align-items: center;
    min-height: 72px;
}

.ec-h-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111;
    flex-shrink: 0;
}

.ec-h-brand img {
    max-height: 44px;
    width: auto;
    display: block;
}

.ec-h-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.ec-h-brand-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #111;
}

.ec-h-brand-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #444;
}

.ec-h-toggler {
    border: none;
    background: transparent;
    padding: 8px;
    margin-left: auto;
    color: #111;
    cursor: pointer;
    border-radius: 4px;
}

.ec-h-toggler:focus {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.ec-h-toggler svg {
    display: block;
    width: 26px;
    height: 26px;
}

.ec-h-desktop-nav {
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.ec-h-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
}

.ec-h-nav-item {
    position: relative;
    margin: 0;
}

.ec-h-nav-link {
    display: block;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.ec-h-nav-link:hover,
.ec-h-nav-item.is-open > .ec-h-nav-link {
    color: #333;
    text-decoration: none;
}

.ec-h-nav-item--dropdown:hover > .ec-h-dropdown,
.ec-h-nav-item--dropdown.is-open > .ec-h-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.ec-h-dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    top: 100%;
    min-width: 260px;
    padding: 12px 0;
    margin-top: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1040;
}

.ec-h-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ec-h-dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ec-h-dropdown-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #111;
    text-decoration: none;
}

.ec-h-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.ec-h-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #111;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
    position: relative;
}

.ec-h-tool:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111;
    text-decoration: none;
}

.ec-h-tool svg {
    width: 22px;
    height: 22px;
}

.ec-h-cart-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ec-h-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(100%, 380px);
    height: 100%;
    background: #fff;
    z-index: 10050;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ec-h-mobile-drawer.is-active {
    transform: translateX(0);
}

.ec-h-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ec-h-mobile-close {
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    color: #111;
    border-radius: 4px;
}

.ec-h-mobile-close:focus {
    outline: 2px solid #111;
}

.ec-h-mobile-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 24px;
}

.ec-h-mobile-link {
    display: block;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ec-h-mobile-link:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #111;
}

.ec-h-mobile-subtoggle {
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    background: #fff;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ec-h-mobile-subtoggle::after {
    content: "+";
    font-size: 18px;
    font-weight: 400;
}

.ec-h-mobile-subpanel.is-expanded .ec-h-mobile-subtoggle::after {
    content: "−";
}

.ec-h-mobile-sublist {
    display: none;
    background: #fafafa;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ec-h-mobile-subpanel.is-expanded .ec-h-mobile-sublist {
    display: block;
}

.ec-h-mobile-sublink {
    display: block;
    padding: 12px 20px 12px 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ec-h-mobile-sublink:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #111;
}

.ec-h-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.ec-h-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

body.ec-h-no-scroll {
    overflow: hidden;
}
