* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Tahoma', sans-serif;
    direction: rtl;
    background-color: #e3dbd0;
    color: #333;
    margin: 0;
}

.container {
    display: flex;
    flex-direction: row-reverse; /* سایدبار سمت راست به چپ تغییر مکان می‌دهد */
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100px; /* Adjust this width as needed */
    background-color: #4d3b24;
    color: #fff;
    padding-top: 20px;
    overflow-y: auto;
    text-align: center;
}

.sidebar h2 {
    margin-bottom: 20px;
    font-size: 12px;
    border-bottom: 2px solid white;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.sidebar ul li {
    margin-bottom: 30px;
    font-size: 18px;
    padding-top: 35px;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 5px;
    
}
.sidebar ul li a:hover, 
.sidebar ul li a:focus {
    background-color: #a68658;
    color: #fff;
    transition: background-color 0.3s ease;
}

.sidebar ul li .active {
    color: #4d3b24;
    background-color: #d5ba94;
    font-size: 20px;
    padding: 8px;
    border-radius: 5px;
}

/* Add-to-cart button hover */
.add-to-cart button:hover {
    background-color: #d07915;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.active {
    color: #032f2c;
    background-color: #e3dbd0;
    font-size: 20px;
}
.category-icon {
    width: 30px;
    height: 30px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 50%; /* تصویر به صورت دایره نمایش داده شود */
}

.content {
    margin-left: 100px; /* Adjust this margin to accommodate the sidebar width */
    padding: 20px;
    margin-right: 5px;
}

.content h1 {
    text-align: center;
}

.content h2 {
    font-size: 30px;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.menu-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.menu-item {
    background-color: #4d3b24;
    padding: 0px 0px 15px;
    width: 100%;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 20px;
}

.menu-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.menu-item img {
    width: 100%; /* عرض تصویر همیشه 100% ظرف خود باشد */
    height: 200px; /* ارتفاع ثابت برای تصاویر */
    object-fit: cover; /* تناسب تصویر بدون برش */
    margin-bottom: 3px; /* کاهش مارجین پایین تصویر به حداقل */
    border-radius: 5px;
    border: 5px solid #d07915; /* کاهش ضخامت بردر تصویر */
}

.menu-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffff;
}

.menu-item p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ffff;
}
.add-to-cart button {
    text-decoration:none;
    background-color:inherit;
    padding:5px;
    border:none;
    color:white;
}
    

.menu-item .add-to-cart {
    background-color:inherit ;
    color: white;
    border-top: 2px dotted white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.menu-button {
    background-color: #4d3b24;
    color: white;
    padding: 10px 20px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu-button:hover {
    background-color: #4d3b24;
}

.active-button {
    background-color: #4d3b24;
    color: #032f2c;
}


.menu-button.active-button {
    background-color: #4d3b24;
    color: #ffff;
}
.cart-remove { 
    background-color:inherit;
    padding:5px 10px;
    margin-top:3px;
    margin-right:5px;
    border-radius:10px;
}
#cart-item li { 
    margin-top:3px;
}
.submit { 
    margin-top:30px;
    padding:10px 20px;
    background-color:inherit;
    display:inline;
    font-weight:600;
    border-radius:10px;
    color:#ffff;
}

.cart { 
    background-color:#4d3b24;
    width:100%;
    border:2px solid #d07915;
    margin-right:5px;
    text-align:center;
    border-radius:15px;
    min-height:150px;
    margin-bottom:20px;
    color:#ffff;
    padding-bottom:10px;
    
}
#scrollToTopBtn {
    position: fixed; /* ثابت روی صفحه */
    bottom: 20px; /* فاصله از پایین صفحه */
    right: 20px; /* فاصله از راست صفحه */
    background-color: #4d3b24; /* رنگ دکمه */
    color: white; /* رنگ متن */
    border: none; /* حذف حاشیه */
    border-radius: 50%; /* گرد کردن دکمه */
    width: 50px; /* عرض دکمه */
    height: 50px; /* ارتفاع دکمه */
    font-size: 18px; /* اندازه متن */
    cursor: pointer; /* نشانگر موس */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* سایه دکمه */
    transition: all 0.3s ease-in-out; /* انیمیشن تغییرات */
    z-index: 1000; /* بالاتر از سایر عناصر */
}
#scrollToTopBtn:hover {
    background-color: #4d3b24; /* رنگ دکمه هنگام هاور */
}