/* CLICK QR - Mobile-First Public QR Menu Experience */

.menu-page-body {
    background-color: var(--menu-bg, #F7F9FC);
    color: #1E293B;
    font-family: var(--menu-font, 'Tajawal'), sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    -webkit-tap-highlight-color: transparent;
}

.menu-container {
    max-width: 640px;
    margin: 0 auto;
    background: #FFFFFF;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.06);
    position: relative;
    padding-bottom: 70px;
}

/* Restaurant Cover & Header */
.menu-cover {
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--menu-primary, #0A345B);
}

.menu-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
}

.menu-header-card {
    position: relative;
    margin-top: -55px;
    padding: 0 20px 15px;
    text-align: center;
}

.menu-logo-wrapper {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    background: #FFFFFF;
    margin: 0 auto 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-restaurant-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--menu-primary, #0A345B);
    margin: 0 0 6px;
}

.menu-restaurant-tagline {
    font-size: 0.95rem;
    color: #64748B;
    margin: 0 0 14px;
    line-height: 1.5;
}

/* Quick Action Badges (Phone, WhatsApp, Maps) */
.menu-action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.menu-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #E2E8F0;
    color: #334155;
    background: #F8FAFC;
    transition: all 0.2s ease;
}

.menu-btn-action:hover, .menu-btn-action:active {
    background: #EDF2F7;
    color: #0F172A;
}

.menu-btn-whatsapp {
    background: #DCFCE7;
    color: #15803D;
    border-color: #BBF7D0;
}

.menu-btn-maps {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

/* Search Bar */
.menu-search-wrapper {
    padding: 0 16px 14px;
}

.menu-search-input-group {
    position: relative;
    background: #F1F5F9;
    border-radius: 25px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-search-input-group input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
    color: #1E293B;
    font-family: inherit;
}

.menu-search-icon {
    color: #94A3B8;
}

/* Sticky Category Navigation Bar */
.menu-categories-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    z-index: 900;
    border-bottom: 1px solid #F1F5F9;
    padding: 10px 16px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu-categories-nav::-webkit-scrollbar {
    display: none;
}

.category-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.category-nav-pill.active {
    background: var(--menu-primary, #0A345B);
    color: #FFFFFF;
    border-color: var(--menu-primary, #0A345B);
    box-shadow: 0 4px 10px rgba(10, 52, 91, 0.2);
}

/* Category Section */
.category-section {
    padding: 20px 16px 8px;
}

.category-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--menu-primary, #0A345B);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-section-desc {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 16px;
}

/* Product Card */
.menu-product-card {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

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

.product-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F8FAFC;
    position: relative;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.product-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-desc {
    font-size: 0.85rem;
    color: #64748B;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price-tag {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--menu-primary, #0A345B);
}

.product-old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: #94A3B8;
    margin-left: 6px;
}

.badge-tag-food {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: #FEF3C7;
    color: #92400E;
    font-weight: 700;
    display: inline-block;
}

/* Modal Details */
.modal-product-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.modal-price-big {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--menu-primary, #0A345B);
}

/* Powered by Click QR footer badge */
.menu-footer-badge {
    text-align: center;
    padding: 30px 16px 20px;
    font-size: 0.85rem;
    color: #94A3B8;
}

.menu-footer-badge a {
    color: var(--brand-blue, #0A345B);
    text-decoration: none;
    font-weight: 800;
}
