/* Cafe Martin menu — scoped to .page-cafe */

.page-cafe main {
  padding-top: var(--navbar-offset);
}

.page-cafe .cafe-top {
  position: relative;
  overflow: visible;
  padding-bottom: 0;
}

.page-cafe .cafe-top-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% -20%, rgba(59, 130, 246, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(224, 242, 254, 0.55) 0%, transparent 100%);
  pointer-events: none;
}

.page-cafe .cafe-top .container {
  position: relative;
  z-index: 1;
}

.page-cafe .page-hero {
  padding-top: 16px;
  padding-bottom: 0;
  background: transparent;
}

.page-cafe .page-hero .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: var(--font-weight-heading);
  line-height: 1.35;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(30, 86, 160, 0.1);
  backdrop-filter: blur(8px);
}

.page-cafe .page-hero .section-tag::before {
  content: '\f0f4';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85em;
  color: var(--primary-light);
}

.page-cafe .page-hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.page-cafe .cafe-hero-tools {
  margin-top: 12px;
  padding-bottom: 14px;
}

.page-cafe .cafe-page-intro {
  text-align: center;
  padding: 0 0 8px;
  margin: 0;
}

.page-cafe .cafe-hero-search {
  max-width: 720px;
  margin: 0 auto;
}

.page-cafe .cafe-sticky-header {
  position: relative;
  z-index: 950;
  margin-top: 0;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(255, 248, 243, 0.97) 0%, rgba(244, 248, 255, 0.98) 100%);
}

.page-cafe .cafe-info-btn {
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s, box-shadow 0.25s;
}

.page-cafe .cafe-info-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.35);
}

.page-cafe .fa,
.page-cafe .fas,
.page-cafe .far,
.page-cafe .fab {
  font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.page-cafe .fas,
.page-cafe .fa-solid {
  font-weight: 900 !important;
}

.page-cafe .fab,
.page-cafe .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

.page-cafe .cafe-page {
  position: relative;
  z-index: 0;
}

        /* مودال پاپ آپ برای نمایش عکس بزرگ و توضیحات کامل - سبک و روان */
        .cafe-image-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            z-index: 1200;
            display: flex;
            align-items: center;
            justify-content: center;
            visibility: hidden;
            opacity: 0;
            transition: visibility 0.2s, opacity 0.2s ease;
            cursor: pointer;
        }
        .cafe-image-modal.active {
            visibility: visible;
            opacity: 1;
        }
        .image-modal-content {
            max-width: 90vw;
            max-height: 85vh;
            background: #fff;
            border-radius: var(--radius-lg);
            overflow: hidden;
            direction: rtl;
            cursor: default;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            width: auto;
            min-width: 280px;
        }
        .modal-image-wrap {
            position: relative;
        }
        .modal-big-image {
            width: 100%;
            max-height: 55vh;
            object-fit: cover;
            background: #2c2c2c;
            display: block;
        }
        .modal-info {
            padding: 20px 24px 24px;
        }
        .modal-food-name {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary-dark);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .modal-food-name i {
            font-size: 1.4rem;
            color: var(--primary);
        }
        .modal-name-price-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 12px;
        }
        .modal-food-name {
            margin-bottom: 0;
        }
        .modal-food-price {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--primary);
            background: #eff6ff;
            display: inline-block;
            padding: 5px 16px;
            border-radius: 40px;
            white-space: nowrap;
        }
        .modal-food-desc {
            font-size: 1rem;
            color: #5a4a3a;
            line-height: 1.5;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #f0e2d4;
        }
        .close-image-modal {
            position: absolute;
            top: 12px;
            right: 12px;
            left: auto;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(4px);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            font-size: 1.4rem;
            transition: 0.2s;
            z-index: 2;
        }
        .close-image-modal:hover {
            background: var(--primary);
            transform: scale(1.02);
        }

        .cafe-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(4px);
            z-index: 1100;
            display: flex;
            align-items: center;
            justify-content: center;
            visibility: hidden;
            opacity: 0;
            transition: visibility 0.2s, opacity 0.2s ease;
        }
        .cafe-modal-overlay.active {
            visibility: visible;
            opacity: 1;
        }
        /* مودال اطلاعات - کوتاه‌تر در دسکتاپ */
        .info-modal {
            background: #fff;
            max-width: 520px;
            width: 85%;
            border-radius: var(--radius-lg);
            box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
            overflow: hidden;
            direction: rtl;
            transform: scale(0.96);
            transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        }
        .cafe-modal-overlay.active .info-modal {
            transform: scale(1);
        }
        .modal-header {
            background: var(--primary-dark);
            padding: 16px 24px;
            color: #FEF0D9;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .modal-header h3 {
            font-size: 1.4rem;
            font-weight: 700;
        }
        .modal-close {
            background: rgba(255,255,240,0.2);
            border: none;
            font-size: 1.6rem;
            cursor: pointer;
            color: #ffdfb8;
            width: 34px;
            height: 34px;
            border-radius: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
        }
        .modal-close:hover {
            background: #A5673F;
            color: white;
        }
        .modal-body {
            padding: 16px 22px 22px;
        }
        
        /* استایل جدید برای نمایش عنوان و مقدار روبروی هم - بدون هیچ اسکرولی */
        .info-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: nowrap;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #f0e2d4;
        }
        .info-row:last-of-type {
            border-bottom: none;
        }
        .info-label-box {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 100px;
            flex-shrink: 0;
        }
        .info-label-icon {
            font-size: 1.3rem;
            color: var(--primary);
            width: 32px;
            text-align: center;
        }
        .info-label-text {
            font-weight: 700;
            color: var(--primary);
            font-size: 0.95rem;
            white-space: nowrap;
        }
        .info-value-box {
            flex: 1;
            text-align: left;
            min-width: 0;
            display: flex;
            justify-content: flex-end;
        }
        
        /* آدرس: باکس بهینه برای نمایش کامل متن در یک خط در موبایل */
        .address-badge-box {
            background: #f6efea;
            border-radius: 40px;
            padding: 6px 14px;
            display: inline-block;
            font-weight: 500;
            font-size: 0.88rem;
            color: #2e2c2a;
            max-width: 100%;
            white-space: nowrap;
            direction: rtl;
            transition: all 0.2s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            cursor: default;
            letter-spacing: 0;
        }
        
        /* استایل باکس‌دار برای اینستاگرام */
        .instagram-box {
            background: #f6efea;
            border-radius: 40px;
            padding: 6px 14px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: #2e2c2a;
            font-weight: 500;
            transition: 0.2s;
            white-space: nowrap;
            font-family: 'Vazir', 'Tahoma', sans-serif;
            font-size: 0.88rem;
            direction: ltr;
        }
        .instagram-box:hover {
            background: #e4d5c8;
            color: var(--primary-dark);
            transform: scale(1.01);
        }
        
        .phone-link-row {
            text-decoration: none;
            direction: ltr;
            font-family: 'Vazir', 'Tahoma', sans-serif;
            font-size: 0.9rem;
            color: #2e2c2a;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #f6efea;
            padding: 6px 12px;
            border-radius: 40px;
            transition: 0.2s;
            white-space: nowrap;
        }
        .phone-link-row:hover {
            background: #e4d5c8;
            color: var(--primary-dark);
        }
        
        /* تنظیمات ریسپانسیو برای موبایل - متن آدرس کاملاً خوانا */
        @media (max-width: 640px) {
            .info-row {
                gap: 8px;
            }
            .info-label-box {
                min-width: 80px;
                gap: 6px;
                flex-shrink: 0;
            }
            .info-label-icon {
                font-size: 1.1rem;
                width: 26px;
            }
            .info-label-text {
                font-size: 0.82rem;
            }
            .phone-link-row {
                font-size: 0.78rem;
                padding: 4px 10px;
            }
            .instagram-box {
                font-size: 0.78rem;
                padding: 4px 10px;
                gap: 6px;
            }
            .address-badge-box {
                font-size: 0.78rem;
                padding: 4px 10px;
                white-space: nowrap;
                letter-spacing: -0.2px;
            }
        }
        
        @media (max-width: 500px) {
            .address-badge-box {
                font-size: 0.74rem;
                padding: 4px 8px;
            }
            .phone-link-row {
                font-size: 0.72rem;
                padding: 3px 8px;
            }
            .instagram-box {
                font-size: 0.72rem;
                padding: 3px 8px;
            }
            .info-label-text {
                font-size: 0.75rem;
            }
            .info-label-box {
                min-width: 70px;
            }
        }
        
        @media (max-width: 420px) {
            .address-badge-box {
                font-size: 0.7rem;
                padding: 3px 6px;
            }
            .info-label-box {
                min-width: 65px;
            }
        }
        
        .work-hours {
            background: #fef3e8;
            border-radius: 28px;
            padding: 10px 14px;
            margin: 12px 0;
        }
        .hours-row {
            display: flex;
            justify-content: space-between;
            padding: 5px 0;
            font-size: 0.85rem;
            border-bottom: 1px dashed #ecd9c6;
        }
        .hours-day {
            font-weight: 700;
            color: #6b4e33;
        }
        .hours-time {
            font-family: monospace;
            font-weight: 600;
            color: #a5622e;
            font-size: 0.9rem;
        }
        
        .route-buttons-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin: 16px 0 8px;
        }
        .route-btn {
            background: var(--primary);
            border: none;
            width: 100%;
            padding: 10px 0;
            border-radius: 60px;
            color: white;
            font-weight: 800;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: 0.2s ease;
            box-shadow: 0 5px 12px rgba(30, 86, 160, 0.25);
        }
        .route-btn:hover {
            background: var(--primary-dark);
            transform: scale(0.98);
        }
        
        @media (max-width: 560px) {
            .route-buttons-row {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }
            .route-btn {
                font-size: 0.7rem;
                padding: 8px 4px;
            }
        }
        
        .cafe-sticky-header {
            background: transparent;
            border: none;
            padding-bottom: 0;
        }

        .cafe-toolbar {
            position: relative;
            z-index: 951;
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .cafe-toolbar.is-fixed {
            position: fixed;
            left: 0;
            right: 0;
            top: var(--navbar-offset, 78px);
            z-index: 951;
            padding: 6px 0 4px;
            background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
            border-bottom: 1px solid rgba(147, 197, 253, 0.35);
            box-shadow: 0 8px 24px rgba(30, 86, 160, 0.1);
        }

        .cafe-toolbar-placeholder {
            display: none;
            width: 100%;
        }

        .cafe-toolbar-placeholder.is-active {
            display: block;
        }

        .search-sticky-wrapper {
            padding: 0 0 2px;
        }
        .search-box {
            max-width: 720px;
            margin: 0 auto;
            position: relative;
        }
        .page-cafe .search-box {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 6px 6px 18px;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 999px;
            box-shadow: 0 8px 32px rgba(30, 86, 160, 0.1);
            backdrop-filter: blur(12px);
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .page-cafe .search-box:focus-within {
            border-color: rgba(59, 130, 246, 0.45);
            box-shadow: 0 12px 40px rgba(37, 99, 235, 0.16), 0 0 0 4px rgba(59, 130, 246, 0.08);
        }
        .page-cafe .search-icon {
            position: static;
            transform: none;
            flex-shrink: 0;
            color: var(--primary);
        }
        .page-cafe #searchInput {
            flex: 1;
            min-width: 0;
            padding: 10px 4px;
            border: none;
            background: transparent;
            box-shadow: none;
            border-radius: 0;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
        }
        .page-cafe #searchInput:focus,
        .page-cafe #searchInput:focus-visible {
            outline: none;
            border: none;
            box-shadow: none;
            background: transparent;
        }
        .page-cafe .clear-search {
            display: none;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 34px;
            height: 34px;
            padding: 0;
            margin-inline-start: 2px;
            border: none;
            border-radius: 50%;
            background: rgba(59, 130, 246, 0.12);
            color: var(--primary);
            cursor: pointer;
            transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
        }
        .page-cafe .clear-search.is-visible {
            display: inline-flex;
        }
        .page-cafe .clear-search:hover {
            background: rgba(59, 130, 246, 0.22);
            transform: scale(1.06);
        }
        .page-cafe .clear-search:active {
            transform: scale(0.96);
        }
        .page-cafe .clear-search i {
            font-size: 0.95rem;
            line-height: 1;
        }
        .categories-outer {
            position: relative;
            width: 100%;
            display: flex;
            justify-content: center;
            background: transparent;
            border: none;
            padding: 0;
            margin-top: 0;
            --categories-bar-opacity: 1;
        }

        .categories-sentinel {
            width: 100%;
            height: 1px;
            margin: 0;
            pointer-events: none;
        }

        .categories-outer::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            background: linear-gradient(180deg, #ffffff 0%, #e8f2ff 55%, #dbeafe 100%);
            border-top: 1px solid rgba(147, 197, 253, 0.3);
            border-bottom: 1px solid rgba(147, 197, 253, 0.2);
            opacity: var(--categories-bar-opacity);
            transition: opacity 0.25s ease;
            pointer-events: none;
        }

        .cafe-toolbar.is-fixed .categories-outer::before {
            opacity: 0;
        }

        .categories-wrapper {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 1200px;
            overflow-x: auto;
            overflow-y: visible;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            padding: 6px 8px 10px;
            white-space: nowrap;
            direction: rtl;
        }
        .categories-wrapper::-webkit-scrollbar {
            height: 0;
            background: transparent;
        }
        .categories-wrapper {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .categories {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            gap: 20px;
            padding: 0 16px;
            min-width: max-content;
            flex-wrap: wrap;
        }
        .category-btn {
            background: transparent;
            border: none;
            width: auto;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            font-family: inherit;
            min-width: 80px;
        }
        .category-circle {
            width: 75px;
            height: 75px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            box-shadow: 0 6px 20px rgba(30, 86, 160, 0.1);
            border: 2px solid rgba(59, 130, 246, 0.1);
        }
        .category-btn i {
            font-size: 2.2rem;
            color: var(--primary-light);
            transition: all 0.2s;
        }
        .category-btn span {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text);
            white-space: nowrap;
            transition: color 0.2s;
        }
        .category-btn.active .category-circle {
            background: var(--primary);
            border: 3px solid var(--sea-light);
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 8px 20px rgba(15, 23, 42, 0.1);
            transform: scale(1.03);
        }
        .category-btn.active i {
            color: #fff;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        .category-btn.active span {
            color: var(--primary-dark);
            font-weight: 800;
        }
        .category-btn:hover .category-circle {
            background: #dbeafe;
            transform: translateY(-3px);
            box-shadow: 0 10px 18px rgba(30, 86, 160, 0.12);
        }
        .category-btn:hover i {
            color: var(--primary);
        }
        
        @media (max-width: 820px) {
            .categories {
                gap: 18px;
                justify-content: flex-start;
                flex-wrap: nowrap;
            }
            .category-circle {
                width: 70px;
                height: 70px;
            }
            .category-btn i {
                font-size: 2rem;
            }
            .category-btn {
                min-width: 70px;
            }
        }
        @media (max-width: 680px) {
            .category-circle {
                width: 65px;
                height: 65px;
            }
            .category-btn i {
                font-size: 1.8rem;
            }
            .category-btn {
                min-width: 65px;
            }
            .categories {
                gap: 14px;
                padding: 0 12px;
            }
        }
        @media (max-width: 540px) {
            .category-circle {
                width: 58px;
                height: 58px;
            }
            .category-btn i {
                font-size: 1.6rem;
            }
            .category-btn span {
                font-size: 0.7rem;
            }
            .category-btn {
                min-width: 58px;
                gap: 6px;
            }
        }
        .menu-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 16px 0 56px;
        }
        .category-section {
            position: relative;
            z-index: 1;
            margin-bottom: 56px;
            scroll-margin-top: var(--cafe-scroll-offset, 200px);
            padding: 28px 24px;
            background: rgba(255, 255, 255, 0.88);
            border: 1px solid rgba(59, 130, 246, 0.1);
            border-radius: var(--radius-lg);
            box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
        }
        .page-cafe .category-section:nth-child(even) {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(239, 246, 255, 0.75) 100%);
        }
        .category-title {
            font-size: clamp(1.25rem, 2.5vw, 1.55rem);
            font-weight: var(--font-weight-heading);
            border-right: none;
            padding: 0 0 16px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 2px solid rgba(59, 130, 246, 0.12);
        }
        .category-title i {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: #fff;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            border-radius: 14px;
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
            flex-shrink: 0;
        }
        .items-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 14px;
        }
        @media (min-width: 640px) {
            .items-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (min-width: 992px) {
            .items-grid { grid-template-columns: repeat(3, 1fr); }
        }
        .food-card {
            background: #fff;
            border-radius: 18px;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            gap: 14px;
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
            border: 1px solid rgba(59, 130, 246, 0.1);
            transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.22s, border-color 0.22s;
            cursor: pointer;
        }
        .food-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 36px rgba(30, 86, 160, 0.14);
            border-color: rgba(59, 130, 246, 0.25);
        }
        .food-image {
            width: 76px;
            height: 76px;
            border-radius: 16px;
            object-fit: cover;
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(30, 86, 160, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.9);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .food-card:hover .food-image {
            transform: scale(1.04);
            box-shadow: 0 8px 20px rgba(30, 86, 160, 0.18);
        }
        .food-details {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 6px;
            cursor: default;
        }
        .food-name {
            width: 100%;
            font-size: 1rem;
            font-weight: 700;
            line-height: 1.4;
            color: var(--primary-dark);
            cursor: default;
        }
        .food-desc {
            width: 100%;
            font-size: 0.78rem;
            color: var(--text-muted);
            line-height: 1.5;
            overflow-wrap: break-word;
            word-break: break-word;
            cursor: default;
        }
        .price {
            font-weight: 700;
            font-size: 0.88rem;
            color: var(--primary-dark);
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            padding: 6px 16px;
            border-radius: 999px;
            white-space: nowrap;
            margin-top: 4px;
            align-self: center;
            text-align: center;
            cursor: default;
            border: 1px solid rgba(59, 130, 246, 0.12);
        }
        .search-mode .category-section:not(.has-matches) { display: none; }
        .search-mode .food-card:not(.match-highlight) { display: none; }
        .match-highlight { background: #eff6ff; border-right: 4px solid var(--primary); }
        .search-highlight { background: #bfdbfe; color: var(--primary-dark); border-radius: 12px; padding: 0 4px; }
        .no-result-msg { text-align: center; padding: 45px; background: #eff6ff; border-radius: var(--radius-lg); margin-top: 20px; font-size: 1.1rem; }

        .search-stats {
            text-align: center;
            font-size: 0.8rem;
            margin-top: 2px;
            color: var(--primary);
            font-weight: 500;
            min-height: 0;
        }

        .search-stats:empty {
            display: none;
            margin: 0;
            padding: 0;
        }

        .cafe-modal-map-hint {
            font-size: 0.95rem;
            color: var(--text-muted);
            text-align: center;
            margin-top: 8px;
            margin-bottom: 6px;
        }

        @media (max-width: 550px) {
            .menu-container {
                padding: 10px 0 40px;
            }
            .category-section {
                padding: 20px 16px;
                margin-bottom: 28px;
                border-radius: var(--radius);
            }
            .category-section .category-banner {
                margin: -20px -16px 16px;
            }
            .food-card {
                padding: 14px;
                gap: 12px;
            }
            .food-image {
                width: 65px;
                height: 65px;
                border-radius: 18px;
            }
            .food-desc {
                font-size: 0.72rem;
            }
            .price {
                padding: 4px 10px;
            }
        }
        
        @media (max-width: 400px) {
            .food-card {
                gap: 10px;
            }
            .food-image {
                width: 60px;
                height: 60px;
            }
            .food-details {
                flex: 1;
                min-width: 0;
            }
        }
        
        @media (min-width: 551px) and (max-width: 768px) {
            .food-image {
                width: 75px;
                height: 75px;
            }
            .food-name {
                font-size: 1rem;
            }
            .food-desc {
                font-size: 0.78rem;
            }
        }

/* ===== Delight + performance enhancements ===== */

.page-cafe .cafe-hero-inner {
  text-align: center;
}

.page-cafe .cafe-hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cafe-coral, #ff6b4a);
  margin-bottom: 6px;
  animation: cafeFadeDown 0.5s ease both;
}

.page-cafe .cafe-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 0;
  animation: cafeFadeDown 0.55s 0.1s ease both;
}

.page-cafe .cafe-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.14);
  box-shadow: 0 4px 14px rgba(30, 86, 160, 0.07);
}

.page-cafe .cafe-chip i {
  color: var(--primary-light);
  font-size: 0.85em;
}

.page-cafe .cafe-chip--gold {
  background: linear-gradient(135deg, #fff9e6, #fff3cd);
  border-color: rgba(245, 166, 35, 0.35);
}

.page-cafe .cafe-chip--gold i {
  color: var(--cafe-gold, #f5a623);
}

.page-cafe .page-hero .section-tag {
  animation: cafeFadeDown 0.5s 0.05s ease both;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(239,246,255,0.9));
}

.page-cafe .page-hero-subtitle {
  animation: cafeFadeDown 0.5s 0.08s ease both;
}

.page-cafe .cafe-info-btn {
  animation: cafeFadeDown 0.5s 0.14s ease both;
  background-size: 200% 200%;
  transition: transform 0.25s, box-shadow 0.25s, background-position 0.4s;
}

.page-cafe .cafe-info-btn:hover {
  background-position: 100% 0;
}

.page-cafe .cafe-top-bg::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  top: -60px;
  left: 8%;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.12), transparent 70%);
  animation: cafeFloat 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cafeFadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cafeFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(12px) scale(1.04); }
}

/* Skeleton loader */
.cafe-menu-skeleton {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 8px 0 24px;
}

@media (min-width: 640px) {
  .cafe-menu-skeleton { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .cafe-menu-skeleton { grid-template-columns: repeat(3, 1fr); }
}

.cafe-skel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.08);
}

.cafe-skel-img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #eef2ff 25%, #f8fafc 50%, #eef2ff 75%);
  background-size: 200% 100%;
  animation: cafeShimmer 1.2s ease-in-out infinite;
}

.cafe-skel-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cafe-skel-lines span {
  display: block;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2ff 25%, #f8fafc 50%, #eef2ff 75%);
  background-size: 200% 100%;
  animation: cafeShimmer 1.2s ease-in-out infinite;
}

.cafe-skel-lines span:last-child {
  width: 55%;
  height: 10px;
}

@keyframes cafeShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.menu-container.is-loaded .cafe-menu-skeleton {
  display: none;
}

/* Category accents */
.category-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.category-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.category-section[data-cat="colddrink"] { --cat-accent: #0ea5e9; --cat-soft: #e0f7ff; }
.category-section[data-cat="hotdrink"] { --cat-accent: #d97706; --cat-soft: #fff7ed; }
.category-section[data-cat="hookah"] { --cat-accent: #7c3aed; --cat-soft: #f3e8ff; }
.category-section[data-cat="main"] { --cat-accent: #ff6b4a; --cat-soft: #fff1ec; }
.category-section[data-cat="appetizer"] { --cat-accent: #059669; --cat-soft: #ecfdf5; }
.category-section[data-cat="dessert"] { --cat-accent: #db2777; --cat-soft: #fdf2f8; }
.category-section[data-cat="tea"] { --cat-accent: #16a34a; --cat-soft: #f0fdf4; }
.category-section[data-cat="smoothie"] { --cat-accent: #84cc16; --cat-soft: #f7fee7; }
.category-section[data-cat="newest"] { --cat-accent: #f5a623; --cat-soft: #fffbeb; }

.category-section .category-banner {
  height: 88px;
  margin: -28px -24px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.category-section .category-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.15));
}

.category-section .category-title {
  border-bottom-color: color-mix(in srgb, var(--cat-accent) 25%, transparent);
}

.category-section .category-title i {
  background: linear-gradient(135deg, var(--cat-accent), color-mix(in srgb, var(--cat-accent) 70%, #fff));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cat-accent) 35%, transparent);
}

.food-card {
  contain: layout style paint;
  cursor: pointer;
  background: linear-gradient(135deg, #fff 0%, var(--cat-soft, #fff) 100%);
}

.food-card:active {
  transform: scale(0.98);
}

.food-card.is-new .price {
  background: linear-gradient(135deg, #fff9e6, #ffe8a3);
  border-color: rgba(245, 166, 35, 0.35);
  color: #92400e;
}

.food-image {
  width: 80px;
  height: 80px;
}

.food-card .food-tap-hint {
  display: none;
}

@media (max-width: 640px) {
  .food-image {
    width: 72px;
    height: 72px;
  }
}

/* Modal polish */
.cafe-image-modal.active .image-modal-content {
  animation: cafeModalIn 0.28s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.cafe-modal-overlay.active .info-modal {
  animation: cafeModalIn 0.28s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes cafeModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.page-cafe .search-box {
  border: 1.5px solid rgba(59, 130, 246, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.category-btn.active .category-circle {
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
}

@media (prefers-reduced-motion: reduce) {
  .page-cafe .cafe-hero-eyebrow,
  .page-cafe .cafe-hero-chips,
  .page-cafe .page-hero .section-tag,
  .page-cafe .page-hero-subtitle,
  .page-cafe .cafe-info-btn,
  .food-card,
  .category-section {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .cafe-top-bg::after {
    animation: none;
  }
}
