header,
footer {
    width: 100%;
}

header {
    z-index: 1000;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    flex-flow: column;
}

header>div {
    width: 100%;
    display: flex;
    justify-content: center;
}

header svg {
    overflow: visible;
}

header a {
    cursor: pointer;
}

header a:hover {
    color: black;
}

header .active-page {
    color: black;
}

#top-menu {
    background-color: var(--color-white);
}

#top-menu>div,
.hidden-mobile-content-first {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 8px min(var(--side-spacing), 80px);
    color: var(--color-black);
}

div .logo-ilma-sloganita, #footer-logo {
    width: 200px;
    height: auto;
    padding: 1rem;
}

#top-menu a,
#top-menu img,
.hidden-mobile-content-first>a:first-of-type,
.hidden-mobile-content-first img {
    height: 100%;
    display: flex;
    object-fit: contain;
}

#top-menu>div>div {
    display: flex;
    gap: 16px;
    align-items: center;
}

#top-menu>div>a,
.hidden-mobile-content-first>a:first-of-type {
    aspect-ratio: 906/500;
}

.language-select {
    padding: 0 10px;
    cursor: pointer;
}

.language-dropdown-anchor {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: center;
}

.language-dropdown-content {
    display: none;
    position: absolute;
    flex-flow: column;
    background-color: var(--color-white);
    top: 100%;
    right: -13px;
    width: min-content;
    white-space: nowrap;
    box-shadow: 0px 8px 12px 0px rgba(170, 170, 170, 0.40);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.language-dropdown-content svg {
    padding: 0;
    right: 14px;
    top: -14px;
    position: absolute;
    color: var(--color-primary-blue);
}

.language-dropdown-content button,
.language-dropdown-content a {
    padding: 10px 20px;
    color: var(--color-black);
    align-items: flex-start;
    justify-content: flex-start;
    font-weight: 400;
}

.language-dropdown-content a:hover,
.language-dropdown-content button:hover {
    color: var(--color-gray-4);
}

.language-dropdown-anchor:hover .language-dropdown-content {
    display: flex;
}

.dropdown-anchor {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    flex-flow: column;
    background-color: var(--color-white);
    top: 100%;
    right: -16px;
    width: min-content;
    white-space: nowrap;
    box-shadow: 0px 8px 12px 0px rgba(170, 170, 170, 0.40);
}

.dropdown-content svg {
    padding: 0;
    right: 14px;
    top: -14px;
    position: absolute;
    color: var(--color-primary-beige);
}

.dropdown-content button,
.dropdown-content a {
    padding: 16px 24px;
    min-width: 128px;
    color: var(--color-black);
    font-size: 16px;
    font-weight: 400;
    background-color: var(--color-white);
    border: none;
    text-align: left;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
    color: var(--color-gray-4);
}

.dropdown-anchor:hover .dropdown-content {
    display: flex;
}

/* CATEGORIES IN HEADER */
.categories {
    display: none;
}

.category-toggle {
    display: inline !important;
    position: relative;
}

.category-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid rgba(0, 0, 0, 0);
    border-bottom: 0;
    border-left: .3em solid rgba(0, 0, 0, 0);
}

.categories {
    position: absolute;
    border-top: 1px solid rgba(0, 0, 0, 0.20);
    top: 4.5rem;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 2rem;
    flex-flow: column wrap;
    max-height: 300px;
}

.categories a {
    margin-bottom: 1rem;
}

.categories a:hover {
    color: black;
}


footer {
    display: flex;
    align-items: center;
    flex-flow: column;
    margin-top: auto;
    color: white;
    background-color: #000;
    padding: 80px 0px;
}

footer>div {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#footer-content {
    max-width: var(--max-page-width);
    gap: calc(100vw * (61/1440));
    padding: calc(100vw * (76/1440)) min(var(--side-spacing), 80px);
}

#footer-content>div {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    gap: 8px;
}

#footer-content div:first-child {
    border-right: 1px solid var(--color-gray-1);
    flex-grow: 1;
    padding-right: calc(100vw * (61/1440));
    padding-top: 20px;
    gap: 16px;
}

#footer-content>form {
    width: 30%;
    padding-left: calc(100vw * (61/1440));
}

#footer-content h3 {
    font-size: 1.25rem;
}

#footer-content p,
#footer-content a,
#footer-content label,
.footer-end a,
.footer-end p {
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    color: #b4b4b4;
}

#footer-content a:hover,
.footer-end a:hover {
    color: #7e90b3;
}

#footer-content a {
    text-transform: capitalize;
}

.footer-end a {
    text-transform: uppercase;
}

#menu-links a {
    color: white;
}

#footer-content img {
    width: calc(100vw * (112/1440));
    min-width: 88px;
}

#footer-content svg {
    stroke: var(--color-gray-3);
    color: var(--color-gray-3);
}

#footer-content input {
    color: white;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid rgb(232, 232, 232);
}

#footer-content input:focus-within {
    border-bottom: 2px solid white;
}

.footer-separator {
    width: 100%;
    max-width: 1275px;
    height: 1px;
    border: none;
    border-top: 1px solid rgb(92, 92, 92);
    fill: black;
    margin: 1rem 5rem;
}

.cart-small {
    position: absolute;
    display: none;
    top: 70px;
    right: 40px;
    border: 1px solid #0000002a;
    background-color: white;
    z-index: 10;
    padding: 1rem;
    max-width: 500px;
}

.search-form {
    display: none;
    width: 340px;
    min-width: 140px;
}

.search-absolute {
    position: absolute;
    top: 40px;
    background-color: white;
    z-index: 5;
    width: 340px;
}

.search-autocomplete-result {
    position: absolute;
    border: 1px solid rgba(191, 191, 191, 0.3);
    left: 0;
    width: 340px;
    top: 2.4em;
    background-color: #fff;
    z-index: 10;
}

.search-autocomplete-result a {
    display: grid !important;
    border-bottom: 1px solid rgba(191, 191, 191, 0.3);
    padding: 1em;
    color: var(--color-black);
    text-decoration: none;
    background-color: #fff;
    overflow: hidden;
    grid-template-areas:
        "name img"
        "name img"
        "price img";
}

.search-autocomplete-result img {
    grid-area: img;
}

.search-autocomplete-result p {
    max-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    grid-area: name;
}

.search-autocomplete-result div {
    grid-area: price;
    font-size: 0.8em;
}


#nothing-here {
    display: flex;
    color: var(--color-gray-3);
    flex-flow: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: calc(100vh * (192/1358));
}

#nothing-here svg {
    width: 135px;
    margin-bottom: 64px;
}

#nothing-here h2,
#noting-here p {
    margin: 0;
}

/* FOR CONTACT US FORM */
.pb-100 {
    padding-bottom: 100px;
}

.mb-150 {
    margin-bottom: 150px;
}

/* PRODUCT CARD PARTIAL */

.product-card {
    background: #F5F6F8;
    width: 100%;
    text-decoration: none;
    color: #000;
    padding: 1rem;
    max-width: 48%;
    min-width: 400px;
    min-height: 370px;
}

.category-products .product-card {
    min-width: 400px;
    min-height: 370px;
}

.product-image {
    object-fit: contain;
    height: 348px;
    width: 100%;
}

.product-name {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.9px;
    color: #888;
}

.product-price {
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    letter-spacing: -1.6px;
}

.product-row {
    overflow: hidden;
}

@media only screen and (max-width: 1300px) {
    .product-card {
        width: auto;
    }

    .product-image {
        object-fit: contain;
        height: 240px;
    }

    .category-products .product-card {
        min-width: 300px;
    }
}

@media screen and (max-width: 1000px) {
    .category-products .product-card {
        min-width: 280px;
    }

    .mobile-menu-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        z-index: 5;
        display: none;
        flex-direction: column;
        gap: 1rem;
        justify-content: space-between;
        overflow-y: auto;
    }
}

@media screen and (max-width: 900px) {
    .category-products .product-card {
        min-width: 230px;
    }
}

/* Start tablet specific rules */
@media only screen and (max-width: 850px) {
    #footer-content form div {
        flex-flow: column;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-products .product-card {
        min-width: 340px;
    }
}

@media only screen and (max-width: 700px) {
    .category-products .product-card {
        min-width: 250px;
    }
}

@media only screen and (max-width: 650px) {
    .search-form {
        display: block;
    }

    .search-autocomplete-result {
        position: static;
        width: 100%;
    }
}

/* Start mobile specific rules */
@media only screen and (max-width: 600px) {
    .categories {
        display: none;
        position: static;
        flex-flow: column nowrap;
        border-top: none;
        max-height: fit-content;
        padding: 0 2rem;
    }

    header .banner>div {
        justify-content: flex-start;
    }

    header .banner p {
        display: none;
    }

    .product-row {
        overflow-x: scroll;
    }

    .product-block {
        width: 100%;
    }

    .category-products {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer .banner div {
        align-items: flex-start;
        flex-flow: column;
        gap: 8px;
    }

    #footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, min-content);
        gap: 40px 24px;
        grid-template-areas:
            "footer-logo footer-logo"
            "links follow-us"
            "categories categories"
            "newsletter newsletter";
    }

    #footer-content>* {
        justify-content: center;
        border: none;
    }

    #footer-content form {
        border-width: 1px 0;
        padding: 40px 0;
        width: 100%;
        grid-area: newsletter;
    }

    #footer-content form h3 {
        padding: 0;
        margin: 0;
    }

    #footer-logo {
        grid-area: footer-logo;
    }

    #menu-links {
        grid-area: links;
    }

    #categories {
        grid-area: categories;
    }

    .mobile-categories-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #follow-us {
        grid-area: follow-us;
    }


    #footer-content form div {
        flex-flow: row nowrap;
        width: 100%;
    }

    .footer-end {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .product-row {
        flex-direction: row;
    }
}

@media only screen and (max-width: 520px) {
    .product-card {
        min-width: 100% !important;
        max-width: 100%;
    }
}