.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed !important;
    top: 1rem;
    left: 1rem;
    z-index: 3000;
    width: auto;
    height: auto;
    padding: .8rem 1rem;
    margin: 0;
    clip: auto;
    clip-path: none;
    color: #fff;
    background: var(--brand-red);
    font-weight: 800;
    white-space: normal;
}

body.hm-scroll-locked {
    padding-right: var(--hm-scrollbar-compensation, 0);
    overflow: hidden;
}

.hm-scroll-locked .main-header {
    padding-right: var(--hm-scrollbar-compensation, 0);
}

.main-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    border-bottom: 1px solid var(--brand-red-dark);
    background-color: rgba(0, 0, 0, .82);
    backdrop-filter: blur(12px);
}

.hm-header-static .main-header {
    position: relative;
}

.hm-header-static .hm-main {
    padding-top: 0;
}

.header-inner {
    width: min(100%, calc(100% - 7rem));
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-block a {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: max-content;
}

.logo-rune {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(204, 51, 51, .56);
    border-radius: 7px;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .16), transparent 42%), linear-gradient(135deg, var(--brand-red), #6e1111);
    font-weight: 900;
    letter-spacing: -.04em;
}

.logo-block .custom-logo {
    width: auto;
    height: 44px;
    object-fit: contain;
}

.logo-copy strong {
    display: block;
    color: #fff;
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.logo-copy small {
    display: block;
    margin-top: 2px;
    color: var(--brand-gray);
    font-size: .78rem;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.main-nav .header-menu-ul {
    display: flex;
    align-items: center;
    gap: 1.45rem;
    list-style: none;
}

.main-nav a {
    padding-bottom: .45rem;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 700;
    transition: color .2s ease, border-color .2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    border-bottom-color: var(--accent-color);
    color: var(--text-primary);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.header-icons > a,
.header-icons > button {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-secondary);
    background: transparent;
    font-size: 1.25rem;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.header-icons > a:hover,
.header-icons > button:hover,
.header-icons .cart-link {
    border-color: var(--border-red);
    color: var(--text-primary);
    background: rgba(204, 51, 51, .12);
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    background: var(--brand-red);
    font-size: .68rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 16px rgba(204, 51, 51, .42);
}

.mobile-menu-toggle {
    display: none !important;
}

.mobile-menu-toggle__icon {
    width: 19px;
    display: grid;
    gap: 4px;
}

.mobile-menu-toggle__icon i {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon i:first-child {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon i:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon i:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-backdrop[hidden],
.mobile-nav[hidden] {
    display: none !important;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1080;
    opacity: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(3px);
    transition: opacity .2s ease;
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1090;
    width: min(88vw, 390px);
    display: flex;
    padding: 1.25rem;
    flex-direction: column;
    color: var(--text-primary);
    background: linear-gradient(155deg, #181818, #050505 72%);
    box-shadow: -24px 0 70px rgba(0, 0, 0, .55);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    transition: transform .22s ease;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mobile-nav__header strong {
    font-size: 1.2rem;
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    color: var(--text-primary);
    background: rgba(255, 255, 255, .04);
    font-size: 1.5rem;
}

.mobile-menu-ul {
    display: grid;
    gap: .25rem;
    margin: 1rem 0;
    list-style: none;
}

.mobile-menu-ul .sub-menu {
    display: grid;
    gap: .2rem;
    margin: .2rem 0 .35rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-red);
    list-style: none;
}

.mobile-menu-ul .sub-menu a {
    padding-block: .65rem;
    font-size: .92rem;
    font-weight: 650;
}

.mobile-menu-ul a,
.mobile-nav__actions a,
.mobile-nav__actions button {
    width: 100%;
    display: flex;
    gap: .7rem;
    align-items: center;
    padding: .85rem .9rem;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--text-secondary);
    background: transparent;
    font-weight: 750;
    text-align: left;
}

.mobile-menu-ul a:hover,
.mobile-menu-ul .current-menu-item > a,
.mobile-nav__actions a:hover,
.mobile-nav__actions button:hover {
    border-color: var(--border-red);
    color: var(--text-primary);
    background: rgba(204, 51, 51, .12);
}

.mobile-nav__actions {
    display: grid;
    gap: .25rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

@media (min-width: 1041px) {
    .mobile-nav,
    .mobile-nav-backdrop {
        display: none !important;
    }
}

@media (max-width: 1040px) {
    .header-inner {
        width: var(--container);
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 70px;
        gap: .75rem;
    }

    .logo-copy strong {
        font-size: 1.05rem;
    }

    .logo-copy small,
    .header-wishlist,
    .header-account {
        display: none !important;
    }

    .logo-rune,
    .logo-block .custom-logo {
        height: 38px;
    }

    .logo-rune {
        width: 38px;
    }

    .header-icons {
        gap: .2rem;
    }

    .header-icons > a,
    .header-icons > button {
        min-width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 430px) {
    .logo-copy {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .mobile-nav-backdrop,
    .mobile-menu-toggle__icon i {
        transition-duration: .01ms;
    }
}
