:root {
    --accent: #2388d8;
    --site-text: #282d36;
    --site-bg: #fff;
    --header-height: 100px;
}

html {
    scroll-padding-top: 90px;
}

body {
    color: var(--site-text);
    background: var(--site-bg);
    padding-bottom: 0;
}

body.modal-open,
body.menu-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 55%, white);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    left: 12px;
    top: 10px;
    transform: translateY(-150%);
    background: #fff;
    color: #111;
    padding: 10px 14px;
    box-shadow: 0 6px 20px #0004;
}

.skip-link:focus {
    transform: none;
}

.page-loading-bar {
    position: fixed;
    z-index: 3000;
    inset: 0 0 auto;
    height: 3px;
    pointer-events: none;
    opacity: 1;
    transition: opacity .2s;
}

.page-loading-bar span {
    display: block;
    width: 42%;
    height: 100%;
    background: var(--red);
    animation: pageLoading 1s ease-in-out infinite;
}

body.is-ready .page-loading-bar {
    opacity: 0;
}

body.is-navigating .page-loading-bar {
    opacity: 1;
}

@keyframes pageLoading {
    from { transform: translateX(-120%); }
    to { transform: translateX(340%); }
}

.site-header {
    background: #fff;
    position: relative;
    z-index: 100;
}

.brand img {
    max-height: 72px;
    object-fit: contain;
}

.brand span {
    white-space: pre-line;
}

.header-product-search {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    width: min(360px, 31vw);
    border: 1px solid var(--line);
    border-radius: 3px;
    overflow: hidden;
}

.header-product-search input {
    min-width: 0;
    border: 0;
    padding: 12px;
}

.header-product-search button {
    border-radius: 0;
    background: var(--dark);
}

.quick {
    align-items: stretch;
}

.quick a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quick .quick-primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.mobile-menu-button,
.mobile-menu-head,
.mobile-menu-search,
.mobile-account-links,
.mobile-menu-backdrop,
.store-mobile-menu,
.mobile-bottom-nav,
.mobile-search-modal {
    display: none;
}

.nav .wrap > a:first-child {
    background: var(--red);
}

.nav .nav-about {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav .nav-about span {
    font-size: 10px;
    opacity: .7;
}

.mega button {
    appearance: none;
    width: 100%;
    background: #fff;
    color: #353b45;
    border-radius: 0;
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid #edf0f2;
    font-size: 12px;
}

.mega button:hover {
    background: #f7f8f9;
    color: var(--red);
}

.site-notification {
    background: #e8f7ee;
    color: #15693b;
    border-bottom: 1px solid #c8ead6;
}

.site-notification .wrap {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-notification p {
    flex: 1;
    margin: 0;
}

.site-notification button {
    background: transparent;
    color: inherit;
    font-size: 22px;
    padding: 7px;
}

.site-breadcrumb {
    padding-top: 18px;
    padding-bottom: 18px;
}

.site-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: #7a8290;
    font-size: 12px;
}

.site-breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #aab0b8;
}

.site-breadcrumb li:last-child {
    color: var(--site-text);
    font-weight: 700;
}

.site-empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 300px;
    padding: 55px 22px;
    background: #f6f8fa;
    border: 1px dashed #d5dce4;
}

.site-empty-state .site-empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    color: var(--red);
    font-size: 28px;
    box-shadow: 0 8px 25px #17203312;
}

.site-empty-state h2 {
    margin: 17px 0 7px;
}

.site-empty-state p {
    max-width: 540px;
    margin: 0 0 18px;
    color: #6c7480;
    line-height: 1.6;
}

.site-empty-state .checkout {
    margin-left: 0;
}

.responsive-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.responsive-grid > * {
    grid-column: span 4;
}

.form-control {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 11px 12px;
    background: #fff;
}

.form-field {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pagination a {
    min-width: 38px;
    text-align: center;
    border-radius: 3px;
}

.reveal,
.reveal.visible {
    opacity: 1;
    transform: none;
}

.favorite-form {
    margin-top: 10px;
}

.favorite-form button {
    width: 100%;
    background: #fff;
    color: var(--red);
    border: 1px solid var(--red);
}

.favorite-form button.active {
    background: #fff0f0;
}

.favorite-remove {
    background: #fff !important;
    color: var(--red) !important;
    border: 1px solid var(--red) !important;
}

.error-secondary {
    background: var(--dark);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.footer-socials a {
    border: 1px solid #ffffff26;
    padding: 7px 9px;
    margin: 0;
    border-radius: 3px;
}

.store-site-header {
    background: #fff;
    position: relative;
    z-index: 90;
}

.store-tools .wrap {
    min-height: 92px;
}

.store-logo img {
    max-height: 64px;
    object-fit: contain;
}

.mobile-search-modal {
    position: fixed;
    z-index: 1700;
    inset: 0;
    background: #111b;
    padding: 14vh 20px 20px;
}

.mobile-search-modal[hidden] {
    display: none;
}

.mobile-search-modal form {
    width: min(640px, 100%);
    margin: auto;
    background: #fff;
    padding: 25px;
    position: relative;
    box-shadow: 0 25px 70px #0005;
}

.mobile-search-modal form > button {
    position: absolute;
    right: 10px;
    top: 8px;
    background: transparent;
    color: #333;
    font-size: 25px;
}

.mobile-search-modal label {
    display: block;
    font-size: 23px;
    font-weight: 800;
    margin: 8px 0 18px;
}

.mobile-search-modal form div {
    display: grid;
    grid-template-columns: 1fr auto;
}

.mobile-search-modal input {
    min-width: 0;
    border: 1px solid var(--line);
    padding: 14px;
}

.error-page,
.maintenance-page {
    min-height: 72vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(145deg, #f8fafc, #e9eef4);
}

.error-page-card,
.maintenance-card {
    width: min(700px, 100%);
    background: #fff;
    padding: 50px;
    box-shadow: 0 25px 65px #17203317;
    border-top: 5px solid var(--red);
}

.error-page-code {
    display: block;
    color: var(--red);
    font-size: clamp(70px, 13vw, 130px);
    font-weight: 900;
    line-height: .9;
}

.error-page p,
.maintenance-card p {
    color: #69717e;
    line-height: 1.7;
}

@media (max-width: 1120px) {
    .brand span,
    .header-product-search {
        display: none;
    }

    .quick a {
        padding: 10px 8px;
    }

    .responsive-grid > * {
        grid-column: span 6;
    }
}

@media (max-width: 800px) {
    body {
        padding-bottom: calc(66px + env(safe-area-inset-bottom));
    }

    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .top .wrap {
        height: 32px;
    }

    .top .wrap > span,
    .top .wrap div a:first-child {
        display: none;
    }

    .top .wrap div {
        margin-left: auto;
    }

    .top a {
        margin-left: 0;
    }

    .brandrow {
        height: 76px;
        justify-content: center;
        position: relative;
    }

    .brand img {
        width: min(180px, 54vw);
        max-height: 58px;
    }

    .quick {
        position: absolute;
        right: 16px;
    }

    .quick a {
        display: none;
    }

    .quick a:last-child {
        display: flex;
        width: 42px;
        height: 42px;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    .quick a:last-child span {
        display: none;
    }

    .quick a:last-child::before {
        content: "▣";
        font-size: 18px;
    }

    .mobile-menu-button {
        appearance: none;
        display: grid;
        gap: 5px;
        position: absolute;
        left: 16px;
        width: 42px;
        height: 42px;
        place-content: center;
        background: #f1f3f6;
        padding: 0;
        border-radius: 50%;
    }

    .mobile-menu-button span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--dark);
    }

    .nav {
        display: block;
        position: fixed;
        z-index: 1500;
        inset: 0 auto 0 0;
        width: min(360px, 88vw);
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 18px 0 45px #0003;
    }

    .nav.open {
        transform: none;
    }

    .nav .wrap {
        display: block;
        width: auto;
        padding: 0 0 30px;
    }

    .nav .wrap > a,
    .nav .nav-about {
        width: 100%;
        justify-content: space-between;
        padding: 15px 20px;
        border-bottom: 1px solid #ffffff12;
        text-align: left;
    }

    .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #ffffff1a;
    }

    .mobile-menu-head button {
        background: transparent;
        font-size: 27px;
        padding: 0;
    }

    .mobile-menu-search {
        display: grid;
        grid-template-columns: 1fr auto;
        padding: 14px;
        border-bottom: 1px solid #ffffff1a;
    }

    .mobile-menu-search input {
        min-width: 0;
        padding: 11px;
        border: 0;
    }

    .mobile-menu-search button {
        border-radius: 0;
    }

    .dropdown .mega,
    .dropdown:hover .mega {
        display: none;
        position: static;
        min-width: 0;
        box-shadow: none;
        background: #151c27;
        color: #dce3ec;
    }

    .dropdown.submenu-open .mega {
        display: block;
    }

    .mega a,
    .mega button {
        background: #151c27;
        color: #dce3ec;
        padding-left: 32px;
        border-color: #ffffff10;
    }

    .mobile-account-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        background: #ffffff18;
        margin: 18px 14px 0;
    }

    .mobile-account-links a {
        padding: 13px 7px !important;
        text-align: center !important;
        font-size: 10px !important;
    }

    .mobile-menu-backdrop {
        position: fixed;
        display: block;
        z-index: 1400;
        inset: 0;
        background: #1119;
        border: 0;
        padding: 0;
    }

    .mobile-menu-backdrop[hidden] {
        display: none;
    }

    .store-promo .wrap span {
        display: none;
    }

    .store-promo .wrap {
        justify-content: center;
    }

    .store-tools .wrap {
        min-height: 78px;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .store-mobile-menu {
        display: grid;
        place-items: center;
        padding: 0;
        height: 42px;
        background: var(--dark);
        font-size: 18px;
    }

    .store-mobile-menu span {
        display: none;
    }

    .store-logo {
        justify-self: center;
    }

    .store-logo img {
        width: min(190px, 54vw);
        max-height: 56px;
    }

    .store-search {
        grid-column: 1 / -1;
        order: 4;
        width: 100%;
    }

    .store-search select {
        display: none;
    }

    .store-account-links {
        display: block;
    }

    .store-account-links > a {
        display: none;
    }

    .store-account-links .store-cart-link {
        display: grid;
        width: 44px;
        height: 42px;
        place-content: center;
        padding: 0;
        border: 1px solid var(--line);
    }

    .store-cart-link small {
        display: none;
    }

    .store-cart-link b {
        font-size: 0;
    }

    .store-cart-link b::after {
        content: "▣";
        font-size: 18px;
    }

    .store-category-nav {
        display: none;
    }

    .store-category-nav.open {
        display: block;
    }

    .store-category-nav .wrap {
        display: grid;
        width: 100%;
        padding: 0;
    }

    .store-category-nav a {
        padding: 14px 18px;
        border-bottom: 1px solid #ffffff12;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 1300;
        inset: auto 0 0;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        min-height: 64px;
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff;
        border-top: 1px solid #dce2e8;
        box-shadow: 0 -8px 24px #17203318;
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        position: relative;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 3px;
        min-width: 0;
        background: #fff;
        color: #4e5663;
        border: 0;
        border-radius: 0;
        padding: 6px 2px;
        font-size: 9px;
        font-weight: 700;
    }

    .mobile-bottom-nav span {
        font-size: 20px;
        line-height: 1;
        color: var(--dark);
    }

    .mobile-bottom-nav small {
        position: absolute;
        top: 5px;
        left: calc(50% + 8px);
        min-width: 17px;
        height: 17px;
        display: grid;
        place-items: center;
        border-radius: 20px;
        background: var(--red);
        color: #fff;
        font-size: 9px;
    }

    .mobile-search-modal {
        display: block;
    }

    .cookie-panel {
        bottom: calc(75px + env(safe-area-inset-bottom));
        left: 10px;
        right: 10px;
    }

    .responsive-grid > * {
        grid-column: 1 / -1;
    }

    .error-page-card,
    .maintenance-card {
        padding: 35px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
