.topbar {
    background: var(--dark);
    color: var(--silver);
    font-size: 13px;
    border-bottom: 1px solid #1a1a1a;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}
.topbar-links {
    display: flex;
    gap: 22px;
}
.topbar-links a:hover {
    color: var(--gold-light);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--black);
    border-bottom: 1px solid rgba(201, 150, 44, 0.25);
    transition: box-shadow var(--ease);
}
.site-header.scrolled {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 44px);
    min-height: 104px;
    padding-block: 12px;
}

.logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.logo img {
    display: block;
    width: auto;
    max-width: 180px;
    height: 78px;
    padding: 0px 20px;
    background-color: #fff;
    margin: 0;
    object-fit: contain;
    border-radius: 8px;
}
.logo-text {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(2px, .5vw, 8px);
}
.main-nav a,
.mega-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: #ececec;
    font: 500 15px var(--font-body);
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
    transition: color var(--ease);
}
.main-nav a::after,
.mega-toggle::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--ease);
}
.main-nav a:hover,
.mega-toggle:hover,
.main-nav a.active,
.mega-toggle.active {
    color: var(--gold-light);
}
.main-nav a:hover::after,
.mega-toggle:hover::after,
.main-nav a.active::after,
.mega-toggle.active::after {
    transform: scaleX(1);
}
.mega-toggle svg {
    transition: transform var(--ease);
}
.has-mega.open .mega-toggle svg {
    transform: rotate(180deg);
}

.has-mega {
    position: static;
}
.mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--black);
    border-top: 1px solid rgba(201, 150, 44, 0.3);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity var(--ease),
        transform var(--ease),
        visibility var(--ease);
}
.has-mega.open .mega {
    opacity: 1;
    visibility: visible;
    transform: none;
}
@media (hover: hover) {
    .has-mega:hover .mega {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .has-mega:hover .mega-toggle svg {
        transform: rotate(180deg);
    }
}
.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 32px 0;
}
.mega-title {
    display: block;
    font: 600 18px var(--font-head);
    color: var(--gold-light);
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #262626;
}
.mega-col li a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: #cfcfcf;
    transition:
        color var(--ease),
        padding var(--ease);
}
.mega-col li a::after {
    display: none;
}
.mega-col li a:hover {
    color: var(--gold-light);
    padding-left: 6px;
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
}
.search-link {
    color: #ececec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: color var(--ease);
}
.search-link:hover {
    color: var(--gold-light);
}
.header-search-panel {
    position: absolute;
    z-index: 130;
    top: calc(100% + 10px);
    right: max(4%, calc((100% - 1200px) / 2));
    width: min(520px, 92vw);
    overflow: visible;
    border: 1px solid rgba(201, 150, 44, .5);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.header-search-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-search-form {
    display: flex;
    min-height: 54px;
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
}
.header-search-form .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}
.header-search-form input {
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
    border: 0;
    outline: 0;
    background: #fff;
    color: #222;
    font: 400 15px var(--font-body);
}
.header-search-form input::placeholder {
    color: #777;
}
.header-search-form button {
    display: grid;
    width: 58px;
    flex: 0 0 58px;
    place-items: center;
    border: 0;
    background: var(--black);
    color: var(--gold-light);
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
}
.header-search-form button:hover {
    background: var(--gold);
    color: var(--black);
}
.header-search-results {
    max-height: min(65vh, 480px);
    overflow-y: auto;
    padding: 6px 0;
    border-top: 1px solid #eee;
}
.header-search-results[hidden] {
    display: none;
}
.header-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    color: #222;
    transition: background var(--ease);
}
.header-search-result:hover,
.header-search-result:focus-visible {
    background: #fbf6eb;
}
.header-search-result-title {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-search-result-type {
    flex: 0 0 auto;
    color: #8c6417;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.header-search-message {
    margin: 0;
    padding: 16px;
    color: #666;
    font-size: 14px;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px;
    background: none;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--gold-light);
    transition:
        transform var(--ease),
        opacity var(--ease);
}

/* mobile drawer (base state: hidden off-canvas) */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
}
.drawer-overlay[hidden] {
    display: none;
}
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: var(--black);
    color: #fff;
    z-index: 210;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 18px 20px 28px;
    border-left: 2px solid var(--gold);
    visibility: hidden;
}
.mobile-drawer.open {
    transform: none;
    visibility: visible;
}
.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.drawer-close {
    background: none;
    border: 0;
    color: var(--gold-light);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
}
.drawer-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.drawer-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    border-radius: var(--radius);
    border: 1px solid #2a2a2a;
    background: #151515;
    color: #fff;
    font: inherit;
}
.drawer-search .btn {
    padding: 0 16px;
}
.drawer-nav > li > a,
.acc-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 4px;
    color: #ececec;
    background: none;
    border: 0;
    border-bottom: 1px solid #1d1d1d;
    font: 500 16px var(--font-body);
    text-align: left;
    cursor: pointer;
}
.drawer-nav a:hover,
.acc-btn:hover {
    color: var(--gold-light);
}
.acc-icon {
    color: var(--gold);
    font-size: 20px;
    transition: transform var(--ease);
}
.acc-btn[aria-expanded="true"] .acc-icon {
    transform: rotate(45deg);
}
.acc-panel {
    display: none;
    padding-left: 12px;
}
.acc-btn[aria-expanded="true"] + .acc-panel {
    display: block;
}
.acc-panel a {
    display: block;
    padding: 9px 4px;
    font-size: 14px;
    color: #bdbdbd;
    border-bottom: 1px solid #161616;
}
.acc-panel a.view-all {
    color: var(--gold-light);
    font-weight: 600;
}
.acc-sub {
    font-size: 15px;
    color: var(--gold-light);
}
.drawer-cta {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
}
body.drawer-open {
    overflow: hidden;
}
