/* ============================================================
   OCEANIA HEADER PLUGIN – v2
   Transparent overlay → solid on scroll (affix pattern)
   ============================================================ */

/* ── Reset ── */
.oceania-pattern-bar,
.oceania-header,
.oceania-header *,
.oceania-mobile-overlay,
.oceania-mobile-overlay * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Kill browser default pink/purple focus & tap highlights */
.oceania-header button,
.oceania-header a,
.oceania-mobile-overlay button,
.oceania-mobile-overlay a,
.oceania-mobile-menu button,
.oceania-mobile-menu a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.oceania-mobile-close:focus,
.oceania-mobile-close:active {
    outline: none;
    color: #d0a249;
}

/* ──────────────────────────────────────────────
   ROPE PATTERN BAR
   Solid bg so page never bleeds through
   ────────────────────────────────────────────── */
.oceania-pattern-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background-color: var(--oceania-bg, #1b2e4a);
    background-repeat: repeat-x;
    background-size: auto 6px;
    background-position: left center;
    z-index: 100001;
}

.oceania-header-wrap.is-affix .oceania-pattern-bar {
    position: fixed;
}

/* ──────────────────────────────────────────────
   HEADER WRAPPER
   ALWAYS position:fixed — no jump on scroll.
   --overlay  = homepage (transparent bg)
   --static   = other pages (solid bg + spacer in HTML)
   ────────────────────────────────────────────── */
.oceania-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
}

/* Bottom divider line */
.oceania-header-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

/* ▸ HOMEPAGE: semi-transparent dark wash */
.oceania-header-wrap.oceania-header--overlay::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    bottom: 0;
    z-index: -1;
    background-color: var(--oceania-bg, #1b2e4a);
    opacity: 0.40;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ▸ OTHER PAGES: solid background immediately */
.oceania-header-wrap.oceania-header--static .oceania-header {
    background-color: var(--oceania-bg, #1b2e4a);
}

.oceania-header-wrap.oceania-header--static::after {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ▸ HTML spacer for non-homepage pages (matches header height) */
.oceania-header-spacer {
    height: 80px;
}

@media (max-width: 992px) {
    .oceania-header-spacer {
        height: 60px;
    }
}

/* ──────────────────────────────────────────────
   SCROLLED STATE — only changes colours
   No position change = no jump
   ────────────────────────────────────────────── */
.oceania-header-wrap.is-scrolled .oceania-header {
    background-color: var(--oceania-bg, #1b2e4a);
}

.oceania-header-wrap.is-scrolled::after {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.oceania-header-wrap.oceania-header--overlay.is-scrolled::before {
    opacity: 1;
}

/* ── The <header> itself ── */
.oceania-header {
    position: relative;
    width: 100%;
    z-index: 100000;
    transition: background-color 0.3s ease;
    background-color: transparent;
}

/* (scroll state handled above — no position changes needed) */

/* ──────────────────────────────────────────────
   INNER LAYOUT
   ────────────────────────────────────────────── */
.oceania-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 80px;
    position: relative;
}

/* ──────────────────────────────────────────────
   LOGO (centered)
   ────────────────────────────────────────────── */
.oceania-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.oceania-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.oceania-logo img {
    max-height: 52px;
    width: auto;
}

.oceania-logo__text {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ──────────────────────────────────────────────
   DESKTOP NAV (left)
   ────────────────────────────────────────────── */
.oceania-nav--desktop {
    display: flex;
    align-items: center;
}

.oceania-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.oceania-menu li {
    position: relative;
}

.oceania-menu li a {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.oceania-menu li a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* (no dot dividers between menu items) */

/* Dropdown arrow (small ˅ chevron) for items with children */
.oceania-menu li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #d0a249;
    border-bottom: 1.5px solid #d0a249;
    transform: rotate(45deg);
    margin-left: 8px;
    margin-bottom: 3px;
    transition: transform 0.25s ease;
}

/* Desktop sub-menu */
.oceania-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--oceania-bg, #1b2e4a);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    list-style: none;
    padding: 10px 0;
    z-index: 10;
}

.oceania-menu li:hover > .sub-menu {
    display: block;
}

.oceania-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 400;
    display: block;
}

.oceania-menu .sub-menu a:hover {
    color: #d0a249;
}

/* ──────────────────────────────────────────────
   RIGHT ICONS with vertical line dividers
   ────────────────────────────────────────────── */
.oceania-icons {
    display: flex;
    align-items: center;
    gap: 0;
}

.oceania-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    padding: 0 16px;
    transition: color 0.3s ease;
}

.oceania-icon:hover {
    color: rgba(255, 255, 255, 0.6);
}

.oceania-icon:last-child {
    padding-right: 0;
}

/* Cart badge */
.oceania-cart-badge {
    position: absolute;
    top: -8px;
    right: 4px;
    background: #d0a249;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    font-family: sans-serif;
}

/* ──────────────────────────────────────────────
   SEARCH OVERLAY
   ────────────────────────────────────────────── */
.oceania-search-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--oceania-bg, #1b2e4a);
    padding: 20px 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.oceania-search-overlay.is-open {
    display: block;
}

.oceania-search-overlay form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.oceania-search-overlay input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    border-radius: 0;
    outline: none;
}

.oceania-search-overlay input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.oceania-search-overlay button[type="submit"] {
    padding: 10px 22px;
    background: #d0a249;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s;
}

.oceania-search-overlay button[type="submit"]:hover {
    background: #b8882e;
}

/* ──────────────────────────────────────────────
   HAMBURGER (mobile)
   ────────────────────────────────────────────── */
.oceania-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.oceania-hamburger:focus,
.oceania-hamburger:active {
    outline: none;
}

.oceania-hamburger:focus span,
.oceania-hamburger:active span {
    background: #d0a249;
}

.oceania-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.25s;
}

/* ──────────────────────────────────────────────
   MOBILE OVERLAY
   ────────────────────────────────────────────── */
.oceania-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 200000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.oceania-mobile-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

.oceania-mobile-menu {
    position: absolute;
    inset: 0;
    background: var(--oceania-bg, #1b2e4a);
    display: flex;
    flex-direction: column;
    padding: 24px 24px 30px;
    overflow-y: auto;
}

.oceania-mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.oceania-mobile-menu__logo img {
    max-height: 40px;
    width: auto;
}

.oceania-mobile-menu__logo .oceania-logo__text {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.oceania-mobile-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
}

/* ── Mobile nav ── */
.oceania-mobile-nav {
    /* no flex:1 — let it take only the space it needs */
}

.oceania-mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oceania-mobile-menu-list > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.oceania-mobile-link-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.oceania-mobile-menu-list a,
.oceania-mobile-parent-link {
    display: block;
    color: #d0a249;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 16px 0;
    letter-spacing: 0.3px;
    cursor: pointer;
    flex: 1;
}

.oceania-mobile-submenu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 400;
    padding: 10px 0 10px 16px;
}

.oceania-submenu-toggle {
    background: none;
    border: none;
    color: #d0a249;
    font-size: 18px;
    cursor: pointer;
    padding: 16px 8px;
    line-height: 1;
    transition: transform 0.25s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
}

.oceania-submenu-toggle:focus,
.oceania-submenu-toggle:active,
.oceania-submenu-toggle:hover {
    background: none;
    outline: none;
    color: #d0a249;
}

.oceania-submenu-toggle.is-open {
    transform: rotate(45deg);
}

.oceania-mobile-submenu {
    display: none;
    list-style: none;
    padding: 0 0 8px;
}

.oceania-mobile-submenu.is-open {
    display: block;
}

/* ── Mobile bottom icons ── */
.oceania-mobile-menu__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 40px;
}

.oceania-mobile-menu__bottom .oceania-icon {
    color: #fff;
    padding: 0;
}

.oceania-mobile-menu__bottom .oceania-cart-badge {
    background: #d0a249;
}

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */
@media (max-width: 992px) {
    .oceania-nav--desktop {
        display: none;
    }

    .oceania-hamburger {
        display: flex;
    }

    .oceania-header__inner {
        padding: 0 16px;
        height: 60px;
    }

    .oceania-logo img {
        max-height: 44px;
    }

    .oceania-icon--search {
        display: none;
    }
}

/* Narrow phones: hide cart in the main header — it's already available in
   the mobile overlay bottom, so we free up space for the language switcher. */
@media (max-width: 431px) {
    .oceania-icons .oceania-icon--cart {
        display: none;
    }
}

/* ──────────────────────────────────────────────
   LANGUAGE SWITCHER (Polylang) — Inline SVG flags
   ────────────────────────────────────────────── */
.oceania-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.oceania-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    padding: 5px 10px 5px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: inherit;
    line-height: 1;
    transition: all 0.2s ease;
}

.oceania-lang-toggle:hover,
.oceania-lang-toggle[aria-expanded="true"] {
    background: rgba(208, 162, 73, 0.15);
    border-color: rgba(208, 162, 73, 0.5);
    color: #d0a249;
}

.oceania-lang-flag {
    display: inline-block;
    width: 22px;
    height: 16px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    line-height: 0;
    background: #1b2e4a;
}

.oceania-lang-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.oceania-lang-code {
    font-variant-numeric: tabular-nums;
}

.oceania-lang-chevron {
    transition: transform 0.25s ease;
    opacity: 0.7;
    margin-left: 2px;
}

.oceania-lang-toggle[aria-expanded="true"] .oceania-lang-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown */
.oceania-lang-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #1b2e4a;
    border: 1px solid rgba(208, 162, 73, 0.25);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.25s ease, visibility 0.2s ease;
    z-index: 100;
}

/* Arrow above dropdown */
.oceania-lang-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: #1b2e4a;
    border-left: 1px solid rgba(208, 162, 73, 0.25);
    border-top: 1px solid rgba(208, 162, 73, 0.25);
    transform: rotate(45deg);
}

.oceania-lang-toggle[aria-expanded="true"] + .oceania-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.oceania-lang-dropdown li {
    margin: 0;
    padding: 0;
}

.oceania-lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.oceania-lang-dropdown a:hover {
    background: rgba(208, 162, 73, 0.15);
    color: #d0a249;
    transform: translateX(2px);
}

.oceania-lang-dropdown .oceania-lang-flag {
    width: 24px;
    height: 17px;
}

/* Disabled state — no translation available for this language */
.oceania-lang-item--disabled {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
    cursor: not-allowed;
    border-radius: 5px;
}

.oceania-lang-item--disabled .oceania-lang-flag {
    opacity: 0.4;
    filter: grayscale(60%);
}

.oceania-lang-name {
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Header scrolled state — tighten switcher */
.is-scrolled .oceania-lang-toggle {
    background: rgba(255, 255, 255, 0.08);
}

/* ──────────────────────────────────────────────
   SIRIUS ARCHIVE HEADER GRADIENT
   ────────────────────────────────────────────── */
.sirius-archive-header::after {
    background: linear-gradient(to bottom, rgb(0, 22, 44) 0%, rgba(27, 46, 74, 0.2) 100%);
}
