@import url("./Variables.css");

.pusher {
    overflow: unset !important;
}

.header {
    background: #fff;
    font-size: 16px;
    max-width: 1440px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__actions {
    display: flex;
    flex-direction: row;
    padding: 1.5em 1em;
    align-items: center;
    justify-content: start;
}

.header__desktop-search {
    display: none;
    width: 100%;
}

.header__search-form {
    margin: 0;
    width: 100%;
    position: relative;
}

.quick-search {
    position: absolute;
    width: 100%;
    top: calc(100% + .5em);
    background: #fff;
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0 0 10px 0 rgba(0,0,0,.1);
    opacity: 1;
    z-index: 1000;

    max-height: 50dvh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

.quick-search h3 {
    margin: 0;
    padding: 0;
    margin-bottom: .5em;
}

.quick-search__product-content {
    max-width: 400px;
}

.quick-search__results {
    display: grid;
    gap: .2em;
}

.quick-search__autocomplete-container {
    margin-top: 1em;
    margin-bottom: 1em;
}

.quick-search__cms-container {
    margin-top: 1em;
}

.quick-search__cms-results {
    margin-top: 1em;
}

.quick-search__result-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
    padding: .35em 0;
}

.quick-search__product-image {
    width: 64px;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.header__search-container {
    background: var(--header-white);
    border-radius: 5px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.header__search-container:focus-within {
    outline: 2px solid black;
}

.header__search-icon {
    padding: 18px 16px;
    box-sizing: content-box;
    width: 24px;
    height: auto;
}

.header__search-input {
    padding: 16px;
    padding-left: 0;
    border: none;
    background: inherit;
    border-radius: inherit;
    height: 100%;
    width: 100%;
    outline: none;
    font-family: var(--sans-font);
    font-size: 16px;

}

.header__search-input::placeholder {
    font-family: var(--sans-font) !important;
}

.header__icon-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .5em;
    padding-left: 1em;
    margin-left: auto;
}

.header__icon-action {
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.header__icon-action-count {
    position: absolute;
    left: -.5em;
    top: -.5em;
    background: var(--text-red);
    color: var(--header-white);
    border-radius: 50%;
    font-size: .75em;
    align-content: center;

    width: 1.8em;
    aspect-ratio: 1;
}

.header__icon-action-count:empty {
    display: none;
}

.header__icon-action img {
    width: 24px;
}

.header__search-input::placeholder {
    color: var(--stalands-gray) !important;
}

.header__logo-link {
    padding-left: .5em;
    display: block;
    line-height:0;
}

.header__logo-image {
    width: 160px;
}

.header__navigation {
    width: 100%;
    padding: 0px 32px;
    display: none;
}

.header__navigation .menu-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    height: auto;
    position: relative;
    gap: 2.25em;
}

.header__navigation .menu-list a {
    color: var(--title-black);
}

.menu-list__nav-item {
    color: var(--title-black);
    font-size: 1em;
    display: inline-block;
    padding: 1.2em 0;
    line-height: 1.4em;
    width: 100%;
    line-height: 1.5em;
}

.menu-list__nav-item-title {
    font-weight: 600;
}

.menu-list__nav-accordion summary {
    list-style: none;
    display: flex;
    border-bottom: 1px solid #000;
    display: flex;
    justify-content: space-between;
}

.menu-list__nav-accordion[open] summary img {
    transform: rotate(90deg);
}


.menu-list__nav-accordion summary::--webkit-details-market {
    display: none;
}

.menu-list__submenu-dialog {
    background: white;
    padding: 4em 5em;
    border-top: 1px solid rgba(0,0,0,.3);
    z-index: 10;
    top: 170px;
}

.menu-list__submenu {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    text-align: left;
}

.menu-list__column {
    width: 170px;
}

.menu-list__top-submenu-item {
    font-size: 1.25em;
    font-weight: 700;
}

.menu-list__list {
    padding: 0;
    list-style: none;
    margin-top: 1em;
    display: grid;
    gap: .8em;
}

.menu-list__list li {
    margin: 0;
    list-style: none;
    line-height: 1.5em;
}

.menu-list__list li a {
    padding: 4px 0;
}

.hidden {
    display: none;
}

.header__icon-action--user,
.header__icon-action--favorites {
    display: none;
}

.header__hamburger {
    padding: 0;
}

.header__hamburger img {
    width: 32px;
    height: auto;
}

.menu-list__mobile-dialog {
    background: #fff;
    margin: 0;
    height: calc(100dvh - 80px);
    border: none;
    z-index: 10000;
    overflow-y: auto;
    position: absolute;
    scrollbar-gutter: stable;
}

.menu-list__mobile-dialog::backdrop {
    background: white;
}

.header__navigation--mobile {
    overflow: visible;
    width: 100%;
    height: auto;
}

.menu-list__list--sub {
    padding-left: 1em;
}

.header__mobile-search-small {
    padding: 0 1em 1em;
}

.header__mobile-search-dialog {
    display: none;
}

.header__icon-action--search {
    display: none;
}

@media (min-width: 340px) {
    .header__mobile-search-small {
        display: none;
    }
    .header__mobile-search-dialog {
        display: revert-layer;
    }
    .header__icon-action--search {
        display: block;
    }
}

@media (min-width: 992px) {
    .header__desktop-search {
        display: block;
    }
    .header__icon-action--user,
    .header__icon-action--favorites {
        display: block;
    }
    .header__icon-action--search {
        display: none;
    }
    .header__hamburger {
        display: none;
    }
    .header__navigation--mobile {
        display: none;
    }
    .header__navigation {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .header__logo-image {
        width: 232px;
    }
    .header__actions {
        gap: 50px;
    }
    .header__icon-actions {
        gap: 32px;
    }
    .menu-list__list {
        gap: .2em;
    }
    .header {
        position: relative;
    }
}

.quick-search__product-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.quick-search__heading {
    font-size: 1.15em;
    font-weight: 700;
}

.quick-search__product-content-left {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.quick-search__product-name {
    font-weight: 500;
}

.quick-search__product-stock-status {
    font-size: 0.875em;
}

.quick-search__product-price {
    font-weight: 600;
    white-space: nowrap;
    font-size: .8em;
}