/* ============================================
   استایل‌های سفارشی روی Bootstrap
   ============================================ */

* {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

body {
    background: #F8FAFC !important;
}

/* ==================== دسته‌بندی‌های جدید (اسکرول افقی) ==================== */
.categories-scroll-wrapper {
    overflow-x: auto;
    padding: 0 12px;
    margin: 0 -12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.categories-scroll {
    display: flex;
    gap: 10px;
    padding: 4px 4px 12px;
    min-width: max-content;
}

.category-card-new {
    flex-shrink: 0;
    width: 90px;
    background: white;
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #F1F5F9;
    position: relative;
}

.category-card-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.15);
    border-color: #FCE4EC;
}

.category-card-new:active {
    transform: scale(0.97);
}

.category-icon-new {
    font-size: 2rem;
    margin-bottom: 6px;
    line-height: 1;
}

.category-label-new {
    font-size: 12px;
    font-weight: 700;
    color: #1A1A1A;
}

.coming-soon-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #f59e0b;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* ==================== سایر استایل‌ها ==================== */
.category-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(233, 30, 99, .15) !important;
}

.food-card-horizontal {
    min-width: 250px;
    max-width: 250px;
}

.food-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #FCE4EC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-btn {
    transition: all 0.2s;
}

.nav-btn:focus {
    box-shadow: none;
}

#mapPicker {
    z-index: 1;
}

.leaflet-control-zoom {
    direction: ltr !important;
}

/* Toast */
.simple-toast {
    background: #1A1A1A;
    color: white;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    margin-bottom: 10px;
    text-align: center;
    animation: toastIn 0.3s ease;
}

.simple-toast.error {
    background: #ef4444;
}

.simple-toast.success {
    background: #10b981;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Splash */
#splash-screen {
    transition: opacity 0.5s, visibility 0.5s;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* اسکرول */
.page-section {
    min-height: 100vh;
}

#restaurantsList,
#categoryRestaurantsList,
#menuList,
#ordersList {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-bottom: 100px;
    scrollbar-width: thin;
    scrollbar-color: #E91E63 #F1F5F9;
}

#restaurantsList::-webkit-scrollbar,
#categoryRestaurantsList::-webkit-scrollbar,
#menuList::-webkit-scrollbar,
#ordersList::-webkit-scrollbar {
    width: 6px;
}

#restaurantsList::-webkit-scrollbar-thumb,
#categoryRestaurantsList::-webkit-scrollbar-thumb,
#menuList::-webkit-scrollbar-thumb,
#ordersList::-webkit-scrollbar-thumb {
    background: #E91E63;
    border-radius: 3px;
}

/* پیام بسته بودن رستوران */
#restaurantClosedNotice {
    background: #FEF2F2;
    border-radius: 16px;
    padding: 40px 20px;
    border: 1px dashed #FCA5A5;
}

/* ==================== ستاره‌های امتیازدهی ==================== */
.rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    direction: ltr;
}

.rating-stars .star {
    font-size: 2.2rem;
    color: #D1D5DB;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #f59e0b;
    transform: scale(1.15);
}

.rating-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FEF3C7;
    color: #92400E;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;

}


/* ==================== استایل درگاه پرداخت ==================== */
.gateway-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.25s;
    background: white;
}

.gateway-option:hover {
    border-color: #E91E63;
    background: #FDF2F8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.1);
}

.gw-logo {
    font-size: 1.2rem;
    font-weight: 900;
    width: 80px;
    text-align: center;
}

.gw-desc {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
}

/* نوار پایین مخفی */
.bottom-nav-hidden {
    transform: translateX(-50%) translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bottom-nav {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
}

/* ==================== استایل دقیق عکس دسته‌بندی‌ها ==================== */
.category-card-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    overflow: hidden;
    /* جلوگیری از بیرون زدن */
    min-height: 100px;
}

.category-card-new .cat-img {
    width: 48px !important;
    height: 48px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    /* کل عکس دیده بشه بدون کشیدگی */
    margin: 0 auto 6px auto !important;
    border-radius: 12px;
    display: block !important;
}

/* فالبک برای آیکون‌های SVG */
.category-card-new .category-icon-new {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.category-card-new .category-icon-new svg {
    width: 100%;
    height: 100%;
}

.category-label-new {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* ==================== برچسب به‌زودی ==================== */
.coming-soon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    /* رنگ نارنجی جذاب */
    color: white;
    font-size: 11px;
    /* بزرگ‌تر شد */
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
    /* سایه برای جدا شدن از کادر */
    border: 2px solid white;
    /* حاشیه سفید برای اینکه از کارت جدا بشه */
    z-index: 10;
    /* روی همه چیز باشه */
    white-space: nowrap;
    transform: rotate(-5deg);
    /* کمی چرخش برای زیبایی */
}

/* برای اینکه کارت دسته‌بندی اجازه بده برچسب از گوشه بیرون بزنه */
.category-card-new {
    position: relative;
    overflow: visible !important;
    /* تغییر از hidden به visible تا برچسب دیده بشه */
}

/* ==================== رفع اسکرول افقی (سراسری) ==================== */
html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    /* جلوگیری از اسکرول افقی در کل سایت */
}

/* اصلاح فوتر به جای 100vw از 100% استفاده کن تا اسکرول‌بار رو حساب کنه */
.buin-footer {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    max-width: 100% !important;
}

/* برای اینکه فوتر از عرض container (760px) بیرون بزنه بدون ایجاد اسکرول */
@media (min-width: 761px) {
    .buin-footer {
        width: 100vw !important;
        margin-right: calc(-50vw + 50%) !important;
        margin-left: calc(-50vw + 50%) !important;
        max-width: 100vw !important;
    }
}

/* اطمینان از اینکه کانتینر اصلی از عرض بیرون نمی‌زنه */
.container {
    overflow-x: hidden;
}


.rating-stars .star {
    font-size: 2rem;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #f59e0b !important;
    transform: scale(1.15);
}

/* ==================== فوتر ==================== */
.buin-footer {
    background-color: #FFF5F7;
    /* صورتی خیلی خیلی کم‌رنگ */
    color: #1A1A1A;
    padding: 50px 20px 24px;
    margin-top: 60px;
    border-top: 1px solid #FCE4EC;
}

.footer-container {
    max-width: 760px;
    margin: 0 auto;
}

.footer-main-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* ستون‌ها */
.footer-col {
    flex: 1;
    min-width: 150px;
}

.brand-col {
    flex: 2;
    min-width: 250px;
}

.contact-col {
    flex: 1.5;
    min-width: 200px;
}

/* لوگو و شعار */
.footer-logo-big {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 700;
    color: #E91E63;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* نمادهای اعتماد */
.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-box {
    width: 70px;
    height: 90px;
    background: white;
    border-radius: 10px;
    border: 1px solid #FCE4EC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #9CA3AF;
    text-align: center;
    padding: 8px;
}

/* تیترها و لینک‌ها */
.footer-heading {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1A1A1A;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #6B7280;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #E91E63;
}

/* اطلاعات تماس */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    color: #E91E63;
}

/* آیکون‌های شبکه‌های اجتماعی */
.footer-social-icons {
    display: flex;
    gap: 12px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #FCE4EC;
    border-radius: 50%;
    color: #6B7280;
    transition: all 0.3s;
}

.footer-social-icons a:hover {
    background: #E91E63;
    border-color: #E91E63;
    color: white;
    transform: translateY(-2px);
}

.footer-social-icons svg {
    width: 18px;
    height: 18px;
}

/* پایین فوتر */
.footer-bottom-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #FCE4EC;
    flex-wrap: wrap;
    gap: 12px;
    color: #9CA3AF;
    font-size: 12px;
    font-weight: 500;
}

/* ریسپانسیو */
@media (max-width: 600px) {
    .footer-main-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-col {
        min-width: 100%;
    }

    .footer-bottom-new {
        flex-direction: column;
        text-align: center;
    }
}