@font-face {
    font-family: 'AssistantLocal';
    src: url('./fonts/assistant-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AssistantLocal';
    src: url('./fonts/assistant-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AssistantLocal';
    src: url('./fonts/assistant-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AssistantLocal';
    src: url('./fonts/assistant-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --h-clr: #189197;
    --text-clr: #3b3229;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'AssistantLocal', Arial, sans-serif;
    text-decoration: none;
    text-underline-offset: 3px;
}

body {
    max-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;

    color: var(--text-clr);
    line-height: 1.4;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    background:
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.02), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02), transparent 30%),
        #f2f2f2;
}

.body-he {
    direction: rtl !important;
}

.body-en {
    direction: ltr !important;
}

header {
    min-width: 100vw;
    max-width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f2f2f2cc;
    z-index: 100;
    box-shadow: 0px 0px 1px 3px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(3px) saturate(400%);
    -webkit-backdrop-filter: blur(3px) saturate(400%);
    /* background: rgba(242, 242, 242, 0.9); */
}

.navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 25px;
}

.logo {
    width: 175px;
}

.logo-he {
    width: 150px;
}

.nav-lang-container {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-self: center;
    justify-self: center;
    gap: .2em;
    direction: rtl;
}

.nav-lang-container-home {
    position: unset;
    top: unset;
    right: unset;
    direction: ltr;
}

.home-main .nav-lang-container {
    align-self: unset;
    justify-self: unset;
}

.nav-lang {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-clr);
    text-decoration: none;
    z-index: 101;
}

.home-main h1 {
    font-size: 1.3rem;
}

.home-main h3 {
    font-size: 1rem;
}

.home-main .nav-lang {
    color: var(--h-clr);
}

.homepage .nav-lang.active {
    color: black !important;
    text-decoration: none !important;
}

.nav-lang.active {
    color: var(--h-clr);
    text-decoration: underline var(--h-clr);
}

.menu-wrapper {
    min-height: 1100%;
    position: relative;
    padding: 5em 0 0;
    display: flex;
    align-items: center;
    justify-content: center;

}

main {
    margin-top: 3em;
    columns: 2;
    max-width: 1200px;
    padding: 5em;
    column-count: 2;
    gap: 5em;
}

.home-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding-top: 2em;
}

.category {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.category-title {
    text-decoration: underline 3px dotted var(--h-clr);
    text-underline-offset: 5px;
    font-size: 1.6rem;
    letter-spacing: 1.5px;
}

.subcategory {}

.subcategory:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
}

.subcategory h3 {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--h-clr);
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    padding: 6px;
    min-height: 40px;
}

.menu-item:hover {
    background: #1891978e;
    /* background: linear-gradient(90deg,
            rgba(24, 145, 151, 0.12),
            rgba(24, 145, 151, 0.04)); */
    border-radius: 6px;
}

.menu-item:hover .name {
    /* color: white; */
}



.menu-item.out-of-stock {
    opacity: 0.5;
    text-decoration: line-through;
}

.menu-item.out-of-stock .price {
    opacity: 0.7;
}

.menu-item.out-of-stock>.name::after {
    content: "Out of stock";
    font-size: 0.8rem;
    color: red;
    margin: 0 10px;
}

.menu-item.out-of-stock>.spacer,
.menu-item.out-of-stock>.speak-btn {
    display: none;
}

.name {
    color: #2b2b2b;
}

.spacer {
    flex: 1;
    border-bottom: 2px dotted var(--h-clr);
    margin: 0 10px;
    transform: translateY(-2px);
}

.price {
    font-weight: 700;
}

.speak-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 3px;
    font-size: 14px;
    opacity: 0.6;
    transition: 0.2s ease;
}

.speak-btn:hover {
    opacity: 0.7;
}

.menu-item:hover .speak-btn {
    opacity: 1;
    transform: scale(1.1);
}

.btn-up {
    display: inline-flex;
    background: var(--h-clr);
    position: fixed;
    bottom: 20px;
    left: 15px;
    padding: 0;
    margin: 0;
    transition: 0.5s;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    z-index: 10;

    animation: btnAnim 15s linear infinite;
}

.btn-up.show-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.btn-up a {
    display: inline-flex;
    font-size: 2rem;
    color: black;
    transition: 0.5s;
    padding: 0;
    margin: 0;
    opacity: 1;
    text-decoration: none;
}

.btn-up:hover i,
.btn-up i:hover {
    color: var(--h-clr);
}

.btn-up:hover {
    border: 1px solid black;
    background: #189197b9;
    transform: scale(1.02) translateY(-2%);
}

@keyframes btnAnim {
    0% {
        border-radius: 0px 7px 0px 7px;
    }

    50% {
        border-radius: 7px 0px 7px 0px;
    }

    100% {
        border-radius: 0px 7px 0px 7px;
    }
}

@media (max-width: 900px) {
    main {
        min-width: 100vw;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 1em 0em 3em;
        gap: 1.5em;
    }

    .category {
        width: 90%;
        max-width: 533px;
        background: #ffffff;
        padding: 14px 16px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .category-title {
        font-size: 1.4rem;
    }

    .subcategory h3 {
        font-size: 1.15rem;
    }

    .block,
    .block-reverse {
        opacity: 0;
        transform: translateY(80px);
        will-change: transform, opacity;
    }

    .block.frozen {
        animation: appear 1s ease-out forwards;
        opacity: 1;
        transform: translateY(0px);
    }

    .block-reverse.frozen {
        animation: appearReverse 1.5s forwards;
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(200px);
    }

    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes appearReverse {
    from {
        opacity: 0;
        transform: translateX(800px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}