/* HEADER MUST NEVER BE AFFECTED BY PAGE LAYOUT */
.top-header {
    max-width: none;
    border-bottom: 1px solid #d6d6d6;
}

/* =========================================================
   TOP BAR
   ========================================================= */

.top-bar {
    width: 100%;
    background-color: #2b2b2b;
    color: #ffffff;
    font-family: "PT Sans", Helvetica Neue, Arial, sans-serif;
    font-size: 12px;
    overflow: visible;
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7px 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: visible;
}

/* =========================================================
   TOP BAR — LEFT (username / login)
   ========================================================= */

.top-left a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    margin-right: 20px;
    transition: color 0.2s ease;
}

.top-left a:last-child { margin-right: 0; }
.top-left a:hover { color: #ffffff; }

.top-left a.top-login-link {
    color: #d4af37 !important;
}

.top-left a.top-login-link:hover {
    color: #ffffff !important;
}

/* Mod name display */
.top-left span[style] a { color: #ffffff; }

/* =========================================================
   TOP BAR — USERNAME DROPDOWN (collector)
   ========================================================= */

.top-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.top-username {
    color: #d4af37;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-username::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 2px solid #d4af37;
    border-bottom: 2px solid #d4af37;
    transform: rotate(45deg);
    position: relative;
    top: -1px;
}

.top-username:hover { color: #ffffff; background: transparent; }

.top-username:hover::after {
    border-color: #ffffff;
}

.top-user-menu:hover .top-user-submenu { display: block; }

.top-user-submenu a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    color: #d4af37 !important;
    text-align: left !important;
    text-decoration: none;
    text-transform: none;
}

.top-user-submenu a:hover {
    background: #2d3748 !important;
    color: #d4af37 !important;
}

.top-user-submenu .submenu-label {
    color: #d4af37;
    text-transform: none;
    font-size: 12px;
    margin-right: 8px;
}

.top-user-submenu .submenu-value {
    color: #ffffff;
    font-weight: bold;
}

/* =========================================================
   TOP BAR — RIGHT (nav links)
   ========================================================= */

.top-right {
    display: flex;
    align-items: center;
}

.top-right > a,
.top-right .menu-item {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Gold links — usable */
.top-nav-gold {
    color: #d4af37 !important;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    margin-left: 20px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.top-nav-gold:hover { color: #ffffff !important; text-decoration: none; }

/* Muted links — needs login */
.top-nav-muted {
    color: #ffffff !important;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    margin-left: 20px;
    white-space: nowrap;
    cursor: default;
    position: relative;
}

.top-nav-muted:hover { color: #888888 !important; text-decoration: none !important; }

.top-nav-muted[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
}

/* Language button — styled like gold nav link with chevron */
.top-bar .menu-label {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: "PT Sans", Helvetica Neue, Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: #d4af37 !important;
    text-transform: uppercase;
    margin-left: 20px;
    border-radius: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar .menu-label:hover {
    background: transparent;
    color: #ffffff !important;
}

/* Chevron after language button */
.top-bar .menu-label::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 2px solid #d4af37;
    border-bottom: 2px solid #d4af37;
    transform: rotate(45deg);
    margin-top: -2px;
}

.top-bar .menu-label:hover::after {
    border-color: #ffffff;
}

/* Language dropdown */
.top-bar .menu-item { position: relative; }
.top-bar .menu-item:hover .submenu { display: block; }

.top-bar .submenu {
    left: auto !important;
    right: 0 !important;
    margin-top: 0;
    padding: 6px 0 !important;
    text-align: left;
    background: #1a1a1a !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
}

.top-bar .menu-language .submenu a {
    font-size: 13px !important;
    padding: 6px 16px !important;
    text-align: left !important;
    color: #d4af37 !important;
    text-transform: none !important;
}

.top-bar .menu-language .submenu a:hover {
    background-color: #2d3748 !important;
    color: #d4af37 !important;
}

/* =========================================================
   LOGO / SEARCH / CATALOG TEXT
   ========================================================= */

.main-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
	padding: 30px 30px;
}

.header-left {
    justify-self: start;
}

.header-search {
    justify-self: center;
    width: 100%;
    max-width: 600px;
}

.header-right {
    justify-self: end;
}

.header-left { flex: 0 0 auto; }

.site-logo-text {
    font-family: 'Spectral SC', serif;
    font-size: 23px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    background-color: #d4af37;
    padding: 3px 9px;
    outline: 4px solid #ffffff;
    outline-offset: -6px;
    border: 1px solid #d4af37;
    transition: opacity 0.2s ease;
}

.site-logo-text:hover {
    opacity: 0.85;
    color: #ffffff;
    text-decoration: none;
}

.header-search {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.header-search form {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 320px;
    width: 100%;
}

.header-search input[type="text"] {
    width: 280px;
    height: 40px;
    box-sizing: border-box;
    border: 0;
    border-bottom: 2px solid #000;
    padding-left: 8px;
    padding-right: 40px;
    padding-top: 10px;
    background: #fff;
    color: #000;
    font-style: normal;
    font-size: 14px;
    font-family: "PT Sans", Helvetica Neue, Arial, sans-serif;
    text-align: left;
}

.header-search input::placeholder {
    text-transform: none;
    font-size: 12px;
    font-style: italic;
    color: #b5b5b5;
    opacity: 1;
}

.header-search input:focus {
    outline: none;
    box-shadow: none;
    border-color: #000;
}

.header-search input:focus::placeholder { color: transparent; }

.header-search button[type="submit"] {
    background: url("/media/magnifier.png") no-repeat center;
    background-size: 24px 24px;
    background-color: transparent;
    width: 40px;
    height: 40px;
    align-self: center;
    position: relative;
    top: 6px;
    border: none;
    font-size: 0;
    cursor: pointer;
}

.header-search button[type="submit"][data-tooltip] {
    cursor: not-allowed;
}

.header-search button[type="submit"][data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-family: "PT Sans", Helvetica Neue, Arial, sans-serif;
    padding: 4px 8px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
}

.search-error {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #c00;
    pointer-events: none;
}

.header-search input[name="website"] {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.header-right {
    flex: 0 0 auto;
    margin-left: auto;
}

.catalog-text-logo {
    font-family: 'Spectral SC', serif;
    font-weight: 400;
    font-size: 32px;
    color: #d4af37;
    letter-spacing: 2px;
    text-decoration: none;
    line-height: 1;
    display: block;
    transition: opacity 0.2s ease;
    text-transform: uppercase;
}

.catalog-text-logo:hover {
    opacity: 0.8;
    color: #d4af37;
    text-decoration: none;
}

/* =========================================================
   MAIN NAV
   ========================================================= */

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    background: #ffffff;
    padding: 18px 0;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    font-family: "PT Sans", Helvetica Neue, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #282828;
    padding-bottom: 10px;
}

.main-nav .menu-item { position: relative; }

.main-nav > .menu-item > a {
    font-family: "PT Sans", Helvetica Neue, Verdana, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    text-transform: uppercase;
    color: #282828;
    position: relative;
}

.main-nav > .menu-item > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    position: relative;
    top: -2px;
    border-right: 1.5px solid #282828;
    border-bottom: 1.5px solid #282828;
    transform: rotate(45deg);
}

.main-nav .menu-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -16px;
    height: 3px;
    background-color: #d4af37;
    pointer-events: none;
}

/* =========================================================
   SUBMENU (main nav)
   ========================================================= */

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 16px 40px;
    width: max-content;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    z-index: 1000;
}

.menu-item:hover .submenu { display: block; }

.submenu a {
    display: block;
    padding: 6px 0;
    color: #282828;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
}

.submenu a:hover { background-color: #f5f5f5; text-decoration: none; }

.top-user-submenu.submenu {
    left: 0 !important;
    right: auto !important;
}

.top-user-submenu {
    min-width: 200px;
    left: 0 !important;
    right: auto !important;
    padding: 6px 0 !important;
    top: 100%;
    position: absolute;
    background: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
    z-index: 1000;
    display: none;
}

.top-exchange-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Chevron after Collector Options trigger */
.top-exchange-trigger::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    top: -3px;
}

.top-exchange-menu .top-exchange-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f2933;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 5px 0;
}

.top-exchange-menu:hover .top-exchange-submenu {
    display: block;
}

.top-exchange-menu .top-exchange-submenu a {
    display: block;
    padding: 10px 16px;
    color: #d4af37;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: left;
}

.top-exchange-menu .top-exchange-submenu a:hover {
    background: #2d3748;
    color: #d4af37;
}

.top-exchange-guest-item {
    position: relative;
    color: #ffffff !important;
    cursor: default;
    pointer-events: auto;
}

.top-exchange-guest-item[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================================
   HEADER BADGE
   ========================================================= */
.header-msg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #d4af37;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}