body, html {
    margin: 0;
    font-family: 'Vazir', sans-serif;
    direction: rtl;
    background-color: #d6d8b5;
}

.login-page {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
}

.logo-img {
    width: 200px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50% , -50%);
    height: auto;
    max-width: 80%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.cta-box {
    max-width: 400px;
    margin: 0 auto;
}
.custom-btn {
    background-color: #0a3327; /* سبز تیره */
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

.custom-btn:hover {
    background-color: #3d593c; /* رنگ تیره‌تر هنگام هاور */
}
.login-box {
    background-color: #1f2937;
    width: 100%;
    max-width: 400px;
    color: white;
    border-radius: 1rem;
}

input.form-control {
    background-color: #374151;
    border: none;
    color: white;
}
input.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
    border: none;
}

/* کارت‌های منو */
h6{
    font-size: 14px;
}
.container h3{
    margin-bottom: 20px;
    border: 1px solid;
}

.text-muted{
    margin-top: 50px;
}

.category-box {
    background-color: #c1c2a3;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    transition: 0.2s;
    flex-direction: column;
    justify-content: flex-start;  /* محتوا از بالا شروع بشه */
    align-items: center;
    padding: 12px;
    height: 110px;
    aspect-ratio: 1 / 1;


}

.category-box p {
    font-size: 0.9rem;
    margin-top: 0.4rem;
}


.category-box:hover {
    background-color: #e5e7eb;
    cursor: pointer;
    transform: scale(1.03);
}

.category-box i {
    color: #10b981; /* سبز تیره */
}
.icon-wrapper {
    width: 40px;
    height: 40px;
    flex-shrink: 0;  /* اجازه نده کوچیک شه */
}

.icon-wrapper img,
.icon-wrapper svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-box p {
    margin-top: 8px;
    font-size: 0.9rem;
    text-align: center;
    flex-shrink: 0;
}

.container-custom {
    padding: 16px;
}

.page-header {
    position: relative; /* فقط برای اطمینان */
    z-index: 10; /* پایین‌تر از category-bar */
}

.category-bar {
    position: sticky;
    top: 0; /* می‌چسبه به بالای صفحه */
    z-index: 10; /* بالاتر از هدر */
    border-bottom: 1px solid #ccc;
    border-radius: 20px;
    width: 95%;
    margin: 0 auto;
    background-color: #fcfcfc !important; /* رنگ پس‌زمینه نوار */
}

.category-bar > div {
    overflow-x: auto; /* اسکرول افقی */
    white-space: nowrap; /* دکمه‌ها یک خط کنار هم */
    scroll-behavior: smooth; /* اسکرول نرم */
}

/* دکمه‌های دسته‌بندی */
.category-btn {
    display: inline-block; /* کنار هم */
    cursor: pointer;
    padding: 8px 16px;
    white-space: nowrap; /* متن دکمه‌ها نریزه خط بعد */
    border-radius: 30px;
}
.category-icon {
    width: 24px;   /* عرض مناسب */
    height: 24px;  /* ارتفاع مناسب */
    object-fit: contain;
    margin-left: 8px; /* فاصله از متن */
}
.category-btn.active,
.category-btn:hover {
    background-color: #264d00; /* رنگ پس‌زمینه تیره */
    color: white; /* متن سفید */
}

/* مخفی کردن اسکرولبار برای نوار دسته‌بندی */
.category-bar > div::-webkit-scrollbar {
    display: none; /* برای کروم و سافاری */
}

/* استایل کارت‌ها */
.menu-card {
    position: relative;
    height: 300px;
    width: 95%;
    margin: 20px auto;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    color: #ffffff; /* متن سفید روی کارت */

    /* ماسک برای محو کردن گوشه‌های پایین */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.menu-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); /* گرادینت تیره */
    padding: 15px;
}

.category-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 24px 0 12px;
    padding-right: 8px;
    color: #333;
}
.category-btn .image{
margin-left: 5px;
}

.product-category-section {
    clear: both;
    margin-bottom: 40px;
    width: 100%;
}

.category-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 24px 0 12px;
    padding-right: 8px;
    color: #333;
}

.d-flex.flex-wrap {
    justify-content: flex-start; /* یا center یا هرچی لازم داری */
}

.product-details{
    color: #ffffff;
    font-size: 14px;
}



.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 999;
    background-color: #69695b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    display: none; /* اول مخفی */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.scroll-to-top img{
    width: 30px;
    height: 30px;

}
.menu-card.sold-out {
    filter: grayscale(100%) brightness(0.7);
    position: relative;
}

.menu-card .sold-out-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    pointer-events: none; /* غیر قابل کلیک */
    z-index: 10;
}



/*.category-bar.sticky-top {*/
/*    top: 60px !important;*/
/*}*/
