* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -webkit-force-dark: none;
    direction: rtl;
    text-wrap:nowrap !important;
    white-space: nowrap !important;
}

html {
    background-color: white;
    color: black;
    -webkit-force-dark: none;
    color-scheme: light;

}

@media (prefers-color-scheme: dark) {
    html {
        background-color: white;
        color: black;
        -webkit-force-dark: none;
        color-scheme: light;
        color-scheme: light;
    }
}

:root {
    --color-dark: #3d3d3d;
    --color-dark2: #515151;
    --color-gray: #9d9d9d;
    --color-gray-op: #9d9d9d4d;
    --color-dark-op: rgba(0, 0, 0, 0.459);
    --color-brown: #937951;
    --color-brown-op: #3a2f21c2;
    --color-white: #ffffff;
    --transition: all 0.3s;
}

a {
    text-decoration: none;
    color: var(--color-dark2);
}

ul {
    list-style: none;
}

@font-face {
    font-family: Proxima Nova Rg;
    src: url(../../fonts/Proxima-Nova-Regular.00bc12ca04f78303.woff2) format("woff2"),
        url(../../fonts/Proxima-Nova-Regular.46438a01f621fe1e.woff) format("woff");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: vazir;
    src: url(../../fonts/Vazirmatn-VariableFont_wght.ttf) format("ttf");
}

@font-face {
    font-family: yekan;
    src: url(../../fonts/Yekan.woff) format("woff");
}


body {
    font-family: vazir;
    color: var(--color-dark2);
    background-color: #fafafa;
}

.header {
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* box-shadow: 0px 0px 1px var(--color-dark); */
    padding: 30px 10px 0px 10px;
    margin-bottom: 30px;
}

.header .logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header .logo img {
    width: 40px;
}

.header .logo .welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 1rem; /* تغییر از left به right */
}

.header .logo .welcome span {
    font-size: 8px;
    color: var(--color-dark);
    text-wrap: nowrap;
}

.header .logo .welcome h1 {
    font-size: 12px;
    text-wrap: nowrap;
    color: var(--color-brown);
}

.navbar {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    margin: 25px 0;
    padding: 0 16px;
}

.navbar a,
.navbar span {
    color: var(--color-gray);
    font-size: calc(10px + 0.3vw);
}

.navbar img {
    color: var(--color-gray);
    width: 10px;

    color: var(--color-brown);

}

.navbar .active {
    color: var(--color-brown);
}

.main-category {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 25px 0;
    padding: 0 10px;
}

.main-category img {
    width: 35px;
    margin: 0 0 0 16px; /* تغییر: جای مقادیر margin */
    opacity: 0.5;
}

.main-category h4 {
    text-transform: uppercase;
}

.main-category span {
    font-size: 12px;
    color: var(--color-gray);
}

main .categories {
    position: sticky;
    top: 0;
    right: 0; /* تغییر از left به right */
    background-color: var(--color-white);
    border-bottom: 1px solid #00000021;
    padding: 25px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    overflow: auto;
}

main .categories a {
    text-wrap: nowrap;
    text-transform: uppercase;
    white-space: nowrap !important;
    display: inline-block;
}

main .categories .active {
    background-color: var(--color-gray-op);
    border: 1px solid var(--color-gray-op);
    padding: 5px 12px;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
    font-weight: bold;
}

main .menu .category-title {
    margin: 30px 0 5px 0;
    padding: 0 10px;
}

main .menu .category-title h4 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: calc(20px + 0.3vw);
}

main .menu .items {
    display: grid;
    grid-template-columns: calc(50% - 7.5px) calc(50% - 7.5px);
    grid-gap: 15px;
    padding: 15px 5px;
}

@media only screen and (min-width: 769px) {
    main .menu .items {
        display: grid;
        grid-template-columns:
            calc((100% - 9vw) / 4) calc((100% - 9vw) / 4) calc((100% - 9vw) / 4) calc((100% - 9vw) / 4);
        grid-column-gap: 3vw;
    }
}

main .menu .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #00000021;
    border-radius: 15px;
    margin-bottom: 15px;
    padding: 0 0 20px 0;
}


main .menu .item img {
    /* width: 200px; */
    border-radius: 15px;
    margin-bottom: 15px;
    object-fit: cover;
    width: 100%;
}

main .menu .item .item-description {
    text-align: center;
    font-size: 13px;
    padding: 5px 5px 10px 5px;
}

main .menu .item .item-price span:first-child {
    font-weight: bold;
}

footer {
    width: 100%;
    display: flex;
    justify-content: center;
}
footer span{
    font-size: 12px;
}
footer a{
    font-weight: bold;
    font-size: 14px;
    color: #937951;
}