@import url(fontiran.css); /* لینک فایلی که وظیفه بارگذاری فونت ها را برعهده دارد */

body {
    font-family: IRANSans, "Tahoma", sans-serif !important;
    font-weight: 300;
    direction: rtl;
    background: #f8f8f8;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, input, textarea {
    font-family: IRANSans, "Tahoma", sans-serif !important;
}
h1 {
    font-weight: bold;
}

/* ----- نوار دسته‌بندی ----- */
.fixed-navbar {
    display: flex;
    overflow-x: auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    scrollbar-width: none;
}
.fixed-navbar::-webkit-scrollbar {
    display: none;
}
.categories-main-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 0 8px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.categories-main-box img {
    width: 40px;
    height: 40px;
    margin-left: 8px;
}
.categories-main-box:hover {
    background: #ffefea;
    transform: translateY(-3px);
}
.categories-item-text h3 {
    margin: 0;
    font-size: 14px;
}
.categories-item-text b {
    font-size: 12px;
    color: #999;
}

.categories-main-box.active {
    background: #ff6f61;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.4);
    transform: scale(1.05);
}
.categories-main-box.active h3,
.categories-main-box.active b {
    color: #fff;
}



/* ----- کانتینر ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ----- گرید کارت‌ها ----- */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    opacity:1;


}


/* ----- کارت غذا ----- */
.food-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    position: relative;
}
.food-card:hover {
    transform: translateY(-5px);
}
.food-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.food-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

/* برچسب قیمت */
.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4500;
    color: #fff;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
}

/* برچسب ویژه */
.special-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #00c853;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 15px;
}

/* محتوای کارت */
.food-content {
    padding: 15px;
    text-align: center;
}
.food-content h3 {
    margin: 10px 0 5px;
    font-size: 17px;
    color: #333;
}
.food-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #777;
}

/* دکمه سفارش */
.order-btn {
    display: inline-block;
    margin-top: 10px;
    background: linear-gradient(45deg, #ff4500, #ff6f61);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.2s ease, background 0.3s ease;
}
.order-btn:hover {
    background: linear-gradient(45deg, #e63e00, #ff5a4d);
    transform: scale(1.05);
}

/* موبایل */
@media (max-width: 480px) {
    .food-card img { height:auto; }
    .food-content h3 { font-size: 15px; }
}

/* دکمه تغییر حالت */
#darkModeToggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2000;
    background: #ff4500;
    border: none;
    color: #fff;
    padding: 10px 12px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background 0.3s ease, transform 0.2s ease;
}
#darkModeToggle:hover {
    background: #ff6f61;
    transform: scale(1.05);
}

/* حالت تاریک مدرن */
body.dark-mode {
    background: #181a1b;
    color: #e0e0e0;
}

/* نوار دسته‌بندی */
.dark-mode .fixed-navbar {
    background: #202324;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.dark-mode .categories-main-box {
    background: #262a2b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.dark-mode .categories-main-box:hover {
    background: #303436;
}
.dark-mode .categories-item-text h3 {
    color: #e8e8e8;
}
.dark-mode .categories-item-text b {
    color: #a0a0a0;
}

/* کارت‌ها */
.dark-mode .food-card {
    background: #202324;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.dark-mode .food-card:hover {
    transform: translateY(-5px);
}
.dark-mode .food-content h3 {
    color: #f5f5f5;
}
.dark-mode .food-content p {
    color: #b0b0b0;
}

/* برچسب‌ها */
.dark-mode .price-tag {
    background: linear-gradient(45deg, #ff8c42, #ff6f3c);
    color: #fff;
}
.dark-mode .special-badge {
    background: linear-gradient(45deg, #43d19f, #2bb673);
    color: #fff;
}

/* تصویر کارت */
.dark-mode .food-card img {
    filter: brightness(0.85);
}
.dark-mode .food-card:hover img {
    filter: brightness(0.75);
}

/* دکمه سفارش */
.dark-mode .order-btn {
    background: linear-gradient(45deg, #ff8c42, #ff5e3a);
    color: #fff;
}
.dark-mode .order-btn:hover {
    background: linear-gradient(45deg, #ff6f3c, #ff3b2e);
}

/* دکمه تغییر تم */
#darkModeToggle {
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    color: #fff;
}
#darkModeToggle:hover {
    background: linear-gradient(45deg, #ff6a4d, #fe9b6c);
}
