:root {
    --options-space: 1.25vw;
    --search-min-width: 400px;
    --header-spacing: 12px;
    --header-padding: var(--header-spacing) 70px;
    --header-icon-size: 2vw;
    --green-color: #42B029;
}

@font-face {
    font-family: 'Nestle-Text-Book';
    src: url(/static/Nestle_Text-Book.eot);
    src: url(/static/Nestle_Text-Book.woff2) format("woff2"), url(/static/Nestle_Text-Book.woff) format("woff"), url(/static/NestleText-Book.ttf) format("truetype"), url(/static/Nestle_Text-Book.eot#iefix) format("embedded-opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Nestle-Text-Book';
    src: url(/static/Nestle_Text-Light.eot);
    src: url(/static/Nestle_Text-Light.woff2) format("woff2"), url(/static/Nestle_Text-Light.woff) format("woff"), url(/static/NestleText-Light.ttf) format("truetype"), url(/static/Nestle_Text-Light.eot#iefix) format("embedded-opentype");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Nestle-Text-Book';
    src: url(/static/Nestle_Text-Bold.eot);
    src: url(/static/Nestle_Text-Bold.woff2) format("woff2"), url(/static/Nestle_Text-Bold.woff) format("woff"), url(/static/NestleText-Bold.ttf) format("truetype"), url(/static/Nestle_Text-Bold.eot#iefix) format("embedded-opentype");
    font-weight: bold;
    font-style: normal;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hdr-top-info {
    display: flex;
    background: var(--color-primary);
    justify-content: center;
    align-items: center;
    padding: 5px;
    font-size: 14px;
    z-index: 1000;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    height: 30px;
}


.hdr-top-info span {
    position: absolute;
    height: 100%;
    animation: marquee 30s linear infinite;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.hdr-top-info span:hover {
    color: white;
}

.hdr-top-info span > div {
    margin: 0 30px;
}

@keyframes marquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-size: 0.85vw;
    background-color: white;
    padding: var(--header-padding);
    border-bottom: 1px #B9B9B9 solid;
    z-index: 1001;
    width: 100%;
    top: 0;
}

.hdr:not(.hdr-mobile) a,
.hdr:not(.hdr-mobile) span {
    color: #3c3c3c;
}

.hdr-modal {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    position: absolute;
    z-index: 10000;
    background-color: rgba(255, 255, 255, 0.93);
    padding: 16px 20px;
    border-radius: 5px;
    top: 86px;
    overflow: hidden;
}

.hdr-options .hdr-modal {
    transform: translateX(-16px);
}
.hdr-right .hdr-modal {
    transform: translateX(var(--header-icon-size));
}

.hdr-modal a {
    color: var(--color-third);
}

.hdr-modal > a {
    text-align: left;
}

.hdr-modal > a:not(:last-of-type) {
    margin-bottom: 10px;
}

.hdr a:hover {
    cursor: pointer;
    color: #6D6D6D;
}

.hdr > a > img {
    width: 6vw;
    height: auto;
    object-fit: contain;
    align-self: center;
}

.hdr > *,
.hdr > div > * {
    display: flex;
    align-items: center;
}

.hdr-options > *:first-child {
    margin-left: var(--options-space);
}

.hdr-options > * {
    margin-right: var(--options-space);
}

.hdr-modal-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 10000;
    background-color: rgba(255, 255, 255, 0.9);
    min-width: 280px;
    max-height: 65vh;
    overflow-y: auto;
}

.hdr-modal-mobile > form {
    margin: 0;
}

.hdr-modal-mobile .option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.hdr-modal-mobile .option,
.hdr-modal-mobile .content {
    color: black;
}

.hdr-modal-mobile .option,
.hdr-modal-mobile .content {
    border-bottom: 1px #c1c1c1 solid;
}

.hdr-modal-mobile .content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px 20px 0 20px;
    background-color: white;
}

.hdr-modal-mobile .content > .manufacturer-option {
    font-size: 12px;
    color: black;
    margin-bottom: 15px;
}

.hdr-modal-mobile a > i {
    font-size: 24px;
    color: #737979;
}

.hdr-modal-mobile a > i[active="true"] {
    color: var(--color-primary);
    transform: rotate(180deg);
}

.hdr-modal-mobile .option.active {
    background-color: white;
}

.hdr-modal-mobile .option > a {
    color: black;
}
.hdr-modal-mobile .option.active > a, .hdr-modal-mobile .option.active > i {
    color: var(--color-primary);
}

.hdr-category-list {
    display: flex;
    flex-direction: column;
}

/* Search */

.hdr .hdr-search-container,
.hdr .hdr-search-input {
    position: relative;
    --height: 2.5vw;
}

.hdr-mobile .hdr-search-container {
    --height: 30px;
    width: 100%;
}

.hdr-search-input > input {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border: 0px;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    padding: 0.5vw 5vw 0.5vw 1vw;
    min-width: var(--search-min-width);
    height: var(--height);
}
.hdr-search-input > input::placeholder {
    color: var(--color-primary);
}

.hdr-search-input > div {
    position: absolute;
    transform: translate(0, -50%);
    top: 50%;
    right: 10px;
}

.hdr-search-input > div > img {
    height: 1.5vw;
}
.hdr-search-input > div > img:hover {
    cursor: pointer;
}

.hdr-search {
    --border-radius: 20px;
    margin: 0;
}

.hdr-search > button {
    display: flex;
    justify-content: center;
    height: var(--height);
    background-color: var(--color-primary);
    padding: 0.5vw;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.hdr-search > button > img {
    height: 100%;
}

.hdr-right > * {
    display: flex;
    align-items: center;
    margin: 0 0.75vw;
}

.hdr-right > div > a {
    display: flex;
    align-items: center;
}

.hdr-right > div img {
    height: var(--header-icon-size);
    width: var(--header-icon-size);
    min-width: var(--header-icon-size);
    margin: auto 0;
}

.hdr-right > div img + span {
    margin-left: 0.75vw;
}

/* Search autocomplete */

.hdr-autocomplete {
    top: 40px !important;
    box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.3);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.hdr-autocomplete > a {
    color: black;
    width: 100%;
}

.hdr-autocomplete > a:not(:last-of-type), .hdr-autocomplete > p {
    margin-bottom: 8px;
}

#desktop-cart {
    right: 10px;
    max-width:30vw;
    padding: 25px;
}

#desktop-cart, #desktop-cart a, #desktop-cart b, #desktop-cart span {
    color: black;
}

#desktop-cart .btn-nestle.nestle-dark {
    color: var(--color-secondary);
}
#desktop-cart .total-rows{
    padding: 0 20px;
}
/* Categories */

.hdr-categories {
    padding: 0;
    text-align: left;
}

.hdr-categories > a {
    padding: 5px 25px;
    margin: 0 !important;
    width: 100%;
    overflow: hidden;
}
.hdr-categories a.category {
    padding: 5px 50px 5px 25px;
}

.hdr-categories > a.category:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.hdr-categories > a.category:hover::after {
    position: absolute;
    right: 25px;
    font-family: 'FontAwesome';
    content: "\f105";
}

.hdr-categories > a.manufacturer {
    color: var(--color-primary);
}

.hdr-categories > a.back-btn {
    border-bottom: 1px solid var(--color-border);
}

.hdr-background {
    background: black;
    position: fixed !important;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0.4;
}

/* Cart */

.cart-quantity {
    position: absolute;
    background: transparent !important;
    color: #EC9F00 !important;
    border: none !important;
    font-size: 1.25vw;
    font-weight: bold;
    top: -3px;
    right: 45%;
    transform: translate(50%, 0px);
}

.cart-option > div {
    display: flex;
    width: 2.5vw;
    height: 2.5vw;
    position: relative;
}

.hdr .cart-option > div > img {
    width: 100%;
    height: 100%;
}

.cart-price {
    color: #6D6D6D;
    margin-left: 1vw;
}

.hdr-mobile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 2.75vw;
    --header-padding: 0;
}

.hdr-mobile > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 5px;
}

.hdr-mobile > .hdr-item-fill {
    justify-content: space-between;
}

.hdr-mobile > .hdr-item-center {
    justify-content: center;
}

.hdr-mobile-logo {
    height: 9vw;
}

.hdr-mobile-icon {
    width: 5vw;
    margin-right: 1vw;
}

.hdr-mobile a {
    color: inherit;
}

.hdr-mobile .cart-quantity {
    font-size: 3vw;
    top: 0.5vw;
    right: 45%;
    transform: translateX(50%);
}

.hdr-mobile a.hdr-menu-toggler {
    color: var(--color-primary);
    display: flex;
    font-size: 25px;
    margin-right: 15px;
}

.hdr-mobile .hdr-search {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center; 
    width: 100%;   
}

.hdr-mobile .hdr-search-input {
    --height: 30px;
    width: 100%;
}

.hdr-mobile .hdr-search-input > input {
    width: 100%;
    padding: 5px 10px;
}

.hdr-mobile .hdr-search > button {
    padding: 8px;
}

.hdr-item-center > a {
    margin: 5px 3vw;
    font-size: 12px;
}

#cart {
    margin-left: 0px !important;
}

#cempty img {
    text-align: center;
}

.cart-content img {
    max-width: 100% !important;
    height: auto;
}

/* general */

.hdr div a {
    display: flex;
    align-items: center;
}

.hdr a > i.fa-angle-down {
    margin: 0 auto;
    margin-left: 0.25vw !important;
}

.modal-locations-content > h3 {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-locations-content > h3 > img {
    width: 40px;
    margin-right: 8px;
}

.modal-locations-content > div {
    display: flex;
    flex-direction: column;
}

.modal-locations-content > button:first-of-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
}

.modal-locations-content > button > i.fa {
    font-size: 20px;
}

.modal-locations-content > button > i.fa[active=true] {
    transform: rotate(180deg);
}

.modal-locations-content > button:first-of-type,
.modal-locations-content > .nestle-filter-list {
    width: 360px;
    align-self: center;
}

.modal-locations-content > .nestle-filter-list {
    margin-top: -20px;
}

.modal-locations-content > *:not(:last-child) {
    margin-bottom: 30px;
}

@media screen and (max-width: 800px) {
    .modal-locations-content > button:first-of-type,
    .modal-locations-content > .nestle-filter-list {
        width: 100%;
    }
}

@media screen and (max-width: 1600px) {
    :root {
        --search-min-width: 350px;
    }
}

@media screen and (max-width: 1500px) {
    :root {
        --search-min-width: 300px;
        --header-padding: 1vw 2vw;
    }

    #cart {
        margin: 0px !important;
    }
}

@media screen and (max-width: 1200px) {
    :root {
        --search-min-width: 200px;
    }

    .hdr > a {
        min-width: 80px;
    }
}

@media screen and (max-width: 992px) {
    :root {
        --search-min-width: 250px;
        --header-padding: 12px;
        --header-icon-size: 23px;
    }

    .cart-price {
        display: none !important;
    }

    .hdr-right > div > a * {
        display: flex;
        font-size: 14px;
    }

    .hdr-options {
        display: none !important;
    }

    .hdr-search-container > .hdr-modal {
        width: 100%;
    }

    .hdr-right {
        margin-left: auto;
    }

    .hdr-right > * {
        margin: 0 8px;
    }

    .hdr > a {
        min-width: inherit;
    }

    .hdr > a > img {
        width: 12vw;
    }

    .hdr-modal {
        padding: 11px;
        top: 138px;
        right: 10px;
    }

    .cart-option > div {
        width: 34px;
        height: 34px;
    }
}