/* ============================================================
   MENU.CSS - Menü Sayfası Stilleri — Modern v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Bebas+Neue&display=swap');

:root { --font: 'Poppins', sans-serif; --font-display: 'Bebas Neue', sans-serif; --menu-bg-image: none; }

/* Tüm menü sayfasında metin seçimi kapalı */
body {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.12) transparent;
}

/* Ultra-thin scrollbar for iframe/phone preview */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 3px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.10);
    border-radius: 99px;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.22);
}

body.comment-modal-open {
    overflow: hidden;
}

body.has-menu-background {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.24) 0%, rgba(248, 250, 252, 0.42) 100%),
        var(--menu-bg-image) center / cover fixed no-repeat !important;
}

body.has-menu-background .menu-header {
    background: linear-gradient(135deg, rgba(18, 25, 39, 0.58) 0%, rgba(31, 41, 55, 0.44) 100%) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.18) !important;
}

body.has-menu-background .menu-header::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0.14) 100%) !important;
}

body.has-menu-background .cat-nav-wrap,
body.has-menu-background .cat-scroll-btn {
    background: rgba(255, 255, 255, 0.44) !important;
    backdrop-filter: blur(16px);
    border-color: rgba(255,255,255,0.28) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10) !important;
}

body.has-menu-background .menu-content {
    background: transparent !important;
}

body.has-menu-background .menu-footer {
    background: rgba(255,255,255,0.48) !important;
    backdrop-filter: blur(18px);
    border-color: rgba(255,255,255,0.24) !important;
}

/* ===== FIXED TOP BAR (header + category nav birlikte) ===== */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
}

/* ===== HEADER ===== */
.menu-header {
    background: linear-gradient(120deg,
        var(--primary) 0%,
        var(--primary) 35%,
        var(--primary-dark, #0d1520) 100%);
    color: #fff;
    padding: 14px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    box-sizing: border-box;
    position: relative;
}
.menu-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.10) 100%);
    pointer-events: none;
}

.menu-header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
}

.menu-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.menu-back-btn {
    position: absolute;
    left: 14px;
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s;
    z-index: 2;
}
.menu-back-btn:hover { background: rgba(255,255,255,0.28); }

.menu-logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    border: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    animation: logoEntrance 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes logoEntrance {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.menu-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-restoran-adi {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.40);
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: fadeSlideUp 0.4s 0.05s ease both;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.menu-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Cart button */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.45);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
}
.cart-btn:hover { background: rgba(255,255,255,0.28); }
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Lang select button */
.menu-lang-row { display: flex; align-items: center; flex-shrink: 0; }
.social-links--header {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
    max-width: 180px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.social-links--header .social-link {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.42);
    box-shadow: none;
    backdrop-filter: blur(8px);
}
.social-links--header .social-link svg {
    width: 16px;
    height: 16px;
}
.social-links--header .social-link[data-platform],
.social-links--floating .social-link[data-platform] {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.32);
}
.social-comment-link {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
    color: #fff;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    border-color: rgba(255,255,255,0.42);
}
.social-links--header .social-comment-link,
.social-links--floating .social-comment-link {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95) 0%, rgba(239, 68, 68, 0.92) 100%);
    border-color: rgba(255,255,255,0.42);
}
.social-comment-link:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f87171 100%);
}
.lang-select-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 9px;
    border-radius: 20px;
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.65);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.lang-current-flag { display: none; }
.lang-flag-sm {
    display: inline-block;
    width: 22px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    background-size: cover;
    vertical-align: middle;
}
.lang-flag-lg {
    display: inline-block;
    width: 26px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.20);
    background-size: cover;
    vertical-align: middle;
}
/* Emoji flag fallback for languages without CSS flag-icons entry */
.lang-flag-emoji {
    font-size: 1.15em;
    line-height: 1;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.lang-arrow-icon {
    color: rgba(255,255,255,0.85);
    font-size: 0.70rem;
    pointer-events: none;
    flex-shrink: 0;
}

/* Lang popup (fixed, on body) */
.lang-popup {
    position: fixed;
    z-index: 99999;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow-y: auto;
    min-width: 160px;
    max-height: 50vh;
    animation: langPopIn 0.15s ease;
}
@keyframes langPopIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lang-popup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    cursor: pointer;
    transition: background 0.12s;
}
.lang-popup-item:hover { background: #f3f4f6; }
.lang-popup-item--active { background: #eff6ff; }
.lang-popup-flag { display: none; }
.lang-popup-name {
    font-size: 0.90rem;
    color: #1e293b;
    font-weight: 500;
}

body.auto-lang-modal-open {
    overflow: hidden;
}

.auto-lang-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auto-lang-dialog {
    width: min(100%, 420px);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, #ffffff 100%);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    padding: 28px 24px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auto-lang-dialog::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.auto-lang-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.09);
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.auto-lang-title {
    font-size: 1.3rem;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 10px;
}

.auto-lang-message {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 22px;
}

.auto-lang-summary-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
    text-align: left;
}

.auto-lang-summary {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.auto-lang-summary.hidden,
.auto-lang-summary-title.hidden {
    display: none;
}

.auto-lang-summary-line {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 0.93rem;
    font-weight: 600;
    text-align: left;
}

.auto-lang-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 22px;
}

.auto-lang-progress.hidden {
    display: none;
}

.auto-lang-progress-copy {
    min-width: 0;
}

.auto-lang-progress-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}

.auto-lang-progress-message {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #64748b;
}

.auto-lang-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #cbd5e1;
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.auto-lang-actions {
    display: flex;
    gap: 10px;
}

.auto-lang-btn {
    flex: 1;
    min-height: 46px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
}

.auto-lang-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.auto-lang-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.auto-lang-btn-secondary {
    background: #eef2f7;
    color: #334155;
}

@media (max-width: 480px) {
    .auto-lang-dialog {
        border-radius: 24px;
        padding: 24px 18px 18px;
    }

    .auto-lang-actions {
        flex-direction: column-reverse;
    }
}

/* ===== CATEGORY NAV ===== */
.cat-nav-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cat-scroll-btn {
    flex-shrink: 0;
    width: 32px;
    border: none;
    background: var(--card-bg);
    color: var(--text-light);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.cat-scroll-btn:hover { color: var(--accent); }
.cat-scroll-left  { box-shadow:  4px 0 8px rgba(0,0,0,0.07); }
.cat-scroll-right { box-shadow: -4px 0 8px rgba(0,0,0,0.07); }
.cat-scroll-btn.hidden { display: none; }

.category-nav {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
}
.category-nav::-webkit-scrollbar { display: none; }

.category-nav-inner {
    display: flex;
    gap: 0;
    padding: 0 8px;
    white-space: nowrap;
    justify-content: flex-start;
}

.category-tab {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border-radius: 8px 8px 0 0;
}
.category-tab.active {
    color: #fff;
    background: var(--accent);
    border-bottom-color: transparent;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-radius: 8px 8px 0 0;
}

.category-nav {
    cursor: grab;
}
.category-nav.is-dragging {
    cursor: grabbing;
    user-select: none;
}

@media (min-width: 768px) {
    .category-nav-inner {
        justify-content: flex-start;
        padding: 0 24px;
    }
    .category-tab {
        padding: 11px 22px;
        font-size: 0.95rem;
    }
}

/* ===== PAGE OFFSET (compensates for fixed top-bar) ===== */
#menu-page { padding-top: 128px; }

/* ===== MENU CONTENT ===== */
.menu-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 32px;
    background: var(--bg);
}

/* ===== CATEGORY SECTION ===== */
.category-section {
    margin-bottom: 16px;
    animation: sectionEntrance 0.4s ease both;
}
.category-section:nth-child(2) { animation-delay: 0.05s; }
.category-section:nth-child(3) { animation-delay: 0.10s; }
.category-section:nth-child(4) { animation-delay: 0.15s; }
.category-section:nth-child(5) { animation-delay: 0.20s; }
@keyframes sectionEntrance {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cat-hero {
    position: relative;
    width: calc(100% - 24px);
    margin: 12px 12px 0;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.cat-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.cat-hero:hover img { transform: scale(1.04); }
.cat-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.25) 50%,
        transparent 100%);
    border-radius: 16px;
}
.cat-hero-name {
    position: absolute;
    bottom: 18px;
    left: 20px;
    right: 20px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.cat-header-simple {
    padding: 18px 18px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--accent);
    background: var(--card-bg);
.menu-announcements {
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 14px;
    display: grid;
    gap: 12px;
    box-sizing: border-box;
}

.menu-announcements.hidden {
    display: none;
}

.menu-announcement {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(251, 191, 36, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.24);
    box-shadow: 0 12px 30px rgba(148, 64, 0, 0.08);
}

.menu-announcement-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.menu-announcement-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #92400e;
}

.menu-announcement-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #a16207;
    background: rgba(255, 255, 255, 0.52);
    padding: 4px 10px;
    border-radius: 999px;
}

.menu-announcement-close {
    appearance: none;
    border: 0;
    background: rgba(255, 255, 255, 0.65);
    color: #92400e;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.menu-announcement-body {
    color: #6b3e06;
    line-height: 1.65;
    white-space: pre-wrap;
}

.menu-announcement-media {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(245, 158, 11, 0.16);
}

.menu-announcement-media img {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
}

@media (max-width: 640px) {
    .menu-announcement {
        padding: 14px 14px 15px;
        border-radius: 16px;
    }

    .menu-announcement-head {
        align-items: flex-start;
    }

    .menu-announcement-date {
        font-size: 0.74rem;
    }
}
    margin: 12px 12px 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.cat-header-simple h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    flex: 1;
    margin: 0;
}
.cat-header-simple .cat-count {
    font-size: 0.74rem;
    color: var(--text-light);
    background: var(--bg);
    border-radius: 10px;
    padding: 2px 10px;
    border: 1px solid var(--border);
}

/* ===== PRODUCT LIST ===== */
.product-list {
    background: var(--card-bg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    margin: 8px 4px 0;
}

.product-list-header {
    display: flex;
    align-items: center;
    background: var(--primary-light, rgba(44,62,80,0.09));
    padding: 8px 10px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}
.product-list-header .ph-name { flex: 1; }
.product-list-header .ph-price { flex-shrink: 0; }

.product-row {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
    position: relative;
}
.product-row.cart-added::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0;
    transform: scale(0.82);
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(22,163,74,0.22);
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 2;
}
.product-row.cart-added::after {
    opacity: 1;
    transform: scale(1);
}
.product-row:last-child { border-bottom: none; }
.product-row:hover { background: transparent; }
.product-row.has-image { cursor: pointer; }
.product-row.has-image:hover::before { width: 0; }
.product-row.has-image:active { transform: none; }

.pr-thumb {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px;
    min-height: 58px;
    max-width: 58px;
    max-height: 58px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.16);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

html[data-menu-card-style="standard"][data-menu-thumb-fit="contain"] .pr-thumb,
body[data-menu-card-style="standard"][data-menu-thumb-fit="contain"] .pr-thumb {
    object-fit: contain;
    object-position: center;
    padding: 2px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border: 1px solid rgba(148, 163, 184, 0.28);
}

html[data-menu-card-style="standard"][data-menu-thumb-fit="contain"] .pr-thumb-default,
body[data-menu-card-style="standard"][data-menu-thumb-fit="contain"] .pr-thumb-default {
    padding: 5px;
}
.product-row:hover .pr-thumb {
    transform: none;
    box-shadow: 0 3px 12px rgba(0,0,0,0.16);
}

.pr-info { flex: 1; min-width: 0; }

.pr-name-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.pr-name {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    text-transform: capitalize;
}

html[data-menu-theme="midnight"] .pr-name,
html[data-menu-theme="velvet"] .pr-name,
html[data-menu-theme="cinema"] .pr-name,
html[data-menu-theme="newyear"] .pr-name {
    color: var(--text);
}

.pr-name-metrics {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    flex-wrap: wrap;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
}

.pr-name-metric {
    color: var(--text-light);
    opacity: 0.82;
    white-space: nowrap;
}

.pr-name-metric-separator {
    color: var(--text-light);
    opacity: 0.52;
    margin: 0;
}

.pr-desc-inline {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.85;
}

.pr-desc {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.78;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.3;
    margin-top: 1px;
}

.pr-orig-name-inline {
    font-size: 0.80rem;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.60;
    font-style: italic;
    margin-left: 4px;
}

.cat-orig-name-inline {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.65;
    font-style: italic;
    margin-left: 5px;
}

.cat-orig-name-hero {
    color: rgba(255,255,255,0.75);
    opacity: 1;
}

.pr-thumb-default {
    opacity: 0.45;
    filter: grayscale(0.3);
}

.pr-price {
    font-size: 0.95rem;
    font-weight: 300;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.4px;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--primary-light, rgba(120, 137, 154, 0.07));
    padding: 3px 3px;
    border-radius: 5px;
}

.pr-cart-btn {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border-radius: 6px;
    opacity: 0.45;
    transition: color 0.15s, background 0.12s, transform 0.12s, opacity 0.15s;
}
.pr-cart-btn:hover {
    background: rgba(0,0,0,0.06);
    opacity: 1;
    transform: scale(1.12);
}
.pr-cart-btn:active { transform: scale(0.88); }
.pr-cart-btn.in-cart {
    color: #f97316;
    opacity: 1;
}
.pr-cart-btn.in-cart:hover {
    background: rgba(249,115,22,0.1);
}
.pr-cart-btn {
    position: relative;
}
.pr-cart-qty {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    font-size: 0.6rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
    padding: 0 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.pr-cart-btn.in-cart .pr-cart-qty {
    display: flex;
}
/* Cart icon outline/filled toggle */
.cart-icon-filled {
    display: none;
}
.pr-cart-btn.in-cart .cart-icon-outline {
    display: none;
}
.pr-cart-btn.in-cart .cart-icon-filled {
    display: block;
}
.pr-comment-btn {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border-radius: 6px;
    opacity: 0.62;
    transition: color 0.15s, background 0.12s, transform 0.12s, opacity 0.15s;
}
.pr-comment-btn:hover {
    background: rgba(0,0,0,0.06);
    opacity: 1;
    transform: scale(1.12);
}
.pr-comment-btn:active {
    transform: scale(0.88);
}
.pr-comment-btn svg {
    width: 15px;
    height: 15px;
}
/* Filled cart icon in header when items exist */
.cart-btn.has-items svg path {
    fill: rgba(255,255,255,0.30);
}

/* Seçenek badge'i olan fiyat alanı */
.pr-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 2px;
}

.pr-side-actions {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.pr-side-actions.has-badge {
    padding-top: 18px;
}

.pr-price-line {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.pr-allergen-indicator {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.24);
    flex-shrink: 0;
}

.pr-allergen-trigger {
    cursor: pointer;
}

.pr-allergen-trigger:focus-visible {
    outline: 2px solid rgba(220, 38, 38, 0.45);
    outline-offset: 2px;
}

.pr-allergen-indicator svg {
    width: 14px;
    height: 14px;
}

.pr-secenek-badge {
    position: absolute;
    top: -7px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    padding: 1px 5px 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
    opacity: 0.93;
}

.pr-indirim-rate {
    font-size: 0.62rem;
    font-weight: 400;
    color: #fff;
    border-radius: 2px;
    padding: 0 3px;
    letter-spacing: 0;
    text-shadow: none;
}

.pr-indirim-badge {
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.4px;
    color: #fff;
    background: #ef4444;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.5;
    display: block;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.22);
}
.pr-indirim-solo {
    background: #ef4444;
}

.price-left .pr-price { order: -1; }
.price-left .pr-price-wrap { order: -1; align-items: flex-start; }
.price-left .pr-price-line { justify-content: flex-start; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}
.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    opacity: 0.5;
}
.empty-state p { font-size: 1rem; }

/* ===== FOOTER ===== */
.menu-footer {
    padding: 16px 16px 20px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.menu-footer.hidden { display: none; }

/* Social row: icons left, copyright right */
.footer-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.footer-left-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
#menu-footer .social-links {
    justify-content: flex-start;
}

.footer-adres {
    margin-top: 14px;
    font-size: 0.80rem;
    color: var(--text-light);
    opacity: 0.72;
    line-height: 1.5;
    padding: 0 8px;
}
.footer-adres.hidden { display: none; }

.footer-validity {
    margin-top: 10px;
    font-size: 0.80rem;
    color: var(--text-light);
    opacity: 0.82;
    line-height: 1.5;
    padding: 0 8px;
}
.footer-validity.hidden { display: none; }

/* Override common.css social-link for menu footer context */
#menu-footer .social-links { gap: 10px; }
#menu-footer .social-link {
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    width: 44px;
    height: 44px;
}
#menu-footer .social-link:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    background: var(--card-bg);
    opacity: 1;
}
#menu-footer .social-comment-link,
#menu-footer .social-comment-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}
.social-link.qrmenu-link {
    display: none !important;
}

/* Footer copyright brand */
.footer-qrbrand { display: none; }

/* Footer copyright + info button wrapper */
.footer-copyright-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hakkında info button in footer */
.footer-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-light);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.footer-info-btn:hover  { opacity: 1; border-color: var(--primary); color: var(--primary); }
.footer-info-btn.hidden { display: none; }
.footer-qr-btn {
    width: 28px;
    height: 28px;
    opacity: 0.72;
}

/* Hakkında Modal */
.hakkinda-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hakkinda-modal-overlay.open {
    display: flex;
}
.hakkinda-modal {
    background: var(--card-bg);
    border-radius: 14px;
    width: 100%;
    max-width: 540px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    overflow: hidden;
    animation: hakkindaSlideIn 0.22s ease;
}
@keyframes hakkindaSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hakkinda-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.hakkinda-modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}
.hakkinda-modal-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.hakkinda-modal-close:hover { background: var(--border); color: var(--text); }
.hakkinda-modal-body {
    padding: 16px 18px 20px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.menu-qr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.62);
    backdrop-filter: blur(6px);
    z-index: 9050;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.menu-qr-modal-overlay.open {
    display: flex;
}
.menu-qr-modal {
    width: min(100%, 360px);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 56px rgba(15,23,42,0.28);
    overflow: hidden;
}
.menu-qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.menu-qr-modal-header h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
}
.menu-qr-modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.menu-qr-modal-close:hover {
    background: var(--bg);
    color: var(--text);
}
.menu-qr-modal-body {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.menu-qr-canvas {
    min-height: 192px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-qr-canvas canvas,
.menu-qr-canvas img {
    display: block;
    max-width: 192px;
    height: auto;
    border-radius: 10px;
}
.menu-qr-link {
    width: 100%;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-light);
    text-align: center;
    word-break: break-all;
    text-decoration: none;
}
.menu-qr-link:hover {
    color: var(--primary);
}

.menu-comment-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.menu-comment-modal-overlay.open {
    display: flex;
}
.menu-comment-modal {
    width: min(100%, 560px);
    max-height: 88vh;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, #ffffff 100%);
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.34);
    display: flex;
    flex-direction: column;
}
.menu-comment-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.menu-comment-modal-heading {
    min-width: 0;
}
.menu-comment-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}
.menu-comment-modal-subtitle {
    margin: 6px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
}
.menu-comment-modal-close {
    appearance: none;
    border: none;
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}
.menu-comment-modal-close:hover {
    background: rgba(148, 163, 184, 0.2);
}
.menu-comment-modal-body {
    padding: 20px 22px 22px;
    overflow-y: auto;
}
.menu-license-warning-shell {
    width: min(100%, 520px);
}

.menu-admin-announcement-shell {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    max-width: calc(100vw - 32px);
    max-height: 84vh;
    overflow: visible;
    background: transparent;
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-comment-modal-overlay.open .menu-admin-announcement-shell {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.menu-admin-announcement-close {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 2;
}

.menu-admin-announcement-media {
    width: auto;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    background: #050505;
    box-shadow: 0 18px 48px rgba(0,0,0,0.48);
}

.menu-admin-announcement-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 56vh;
    min-width: 0;
    object-fit: contain;
    transform: scale(0.94);
    transition: transform 0.22s ease;
}

.menu-comment-modal-overlay.open .menu-admin-announcement-media img {
    transform: scale(1);
}

.menu-admin-announcement-body {
    width: 100%;
    max-width: 100%;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(10px);
    border-radius: 0 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.48);
}

.menu-admin-announcement-text {
    color: rgba(255,255,255,0.94);
    font-size: 0.98rem;
    line-height: 1.7;
    white-space: pre-wrap;
    text-align: left;
}

.menu-admin-announcement-dismiss-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    color: rgba(255,255,255,0.88);
    font-size: 0.86rem;
    cursor: pointer;
    user-select: none;
}

.menu-admin-announcement-dismiss-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #f59e0b;
    cursor: pointer;
}

.menu-admin-announcement-dismiss-copy {
    line-height: 1.35;
}

.menu-admin-announcement-media[style*="display:none"] + .menu-admin-announcement-body {
    border-radius: 14px;
}

.menu-license-warning-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.menu-license-warning-restaurant {
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.menu-license-warning-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 700;
}
.menu-license-warning-message {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #334155;
}
.menu-license-warning-date {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
}
.menu-license-warning-actions {
    display: flex;
    justify-content: flex-end;
}
.menu-license-warning-btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}
.menu-license-warning-btn:hover {
    filter: brightness(0.96);
}
.menu-comment-google-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
}
.menu-comment-google-hint {
    margin: 0;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #475569;
}
.menu-comment-google-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
}
.menu-comment-google-btn-container > div {
    max-width: 100%;
}
.menu-comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.menu-comment-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.menu-comment-rating-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.menu-comment-rating-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}
.menu-comment-rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.menu-comment-rating-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.menu-comment-rating-stars label {
    font-size: 2rem;
    line-height: 1;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}
.menu-comment-rating-stars label:hover,
.menu-comment-rating-stars label:hover ~ label,
.menu-comment-rating-stars input:checked ~ label {
    color: #f59e0b;
}
.menu-comment-rating-stars label:active {
    transform: scale(0.96);
}
.menu-comment-rating-hint {
    font-size: 0.78rem;
    color: #64748b;
}
.menu-comment-field span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}
.menu-comment-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: #0f172a;
    resize: vertical;
}
.menu-comment-field textarea {
    min-height: 130px;
}
.menu-comment-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.menu-comment-feedback {
    display: none;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.menu-comment-feedback.error {
    background: rgba(254, 242, 242, 0.96);
    border: 1px solid rgba(248, 113, 113, 0.24);
    color: #b91c1c;
}
.menu-comment-feedback.success {
    background: rgba(236, 253, 245, 0.96);
    border: 1px solid rgba(16, 185, 129, 0.24);
    color: #047857;
}
.menu-comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.menu-comment-cancel-btn,
.menu-comment-submit-btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}
.menu-comment-cancel-btn {
    background: #eef2f7;
    color: #334155;
}
.menu-comment-submit-btn {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}
.menu-comment-submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.footer-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-light);
    font-size: 0.95rem;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
    line-height: 1;
}
.footer-copy-btn:hover { opacity: 1; border-color: var(--accent); color: var(--accent); }
.footer-exp {
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
    opacity: 1;
}

/* ===== LIGHTBOX ===== */
.img-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.img-lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-close {
    align-self: flex-end;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-inner {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 72vw;
}
.lightbox-inner img {
    width: auto;
    height: auto;
    max-width: 72vw;
    max-height: 55vh;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    display: block;
    transform: scale(0.92);
    transition: transform 0.2s;
}
.img-lightbox.open .lightbox-inner img { transform: scale(1); }
.lightbox-caption {
    width: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 4px;
}
.lightbox-title-row {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.lightbox-ingredients {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.lightbox-ingredient-allergen-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(239,68,68,0.18);
    color: #fecaca;
    border: 1px solid rgba(254,202,202,0.22);
    flex: 0 0 auto;
}

.lightbox-ingredient-allergen-icon svg {
    width: 16px;
    height: 16px;
}
.lightbox-ingredient-item {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.88);
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}
.lightbox-ingredient-name {
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    flex: 0 0 auto;
    min-width: 0;
}
.lightbox-ingredient-metrics {
    color: rgba(255,255,255,0.72);
    white-space: nowrap;
    flex-shrink: 0;
}
.lightbox-meta-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.lightbox-name-metrics {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    flex-wrap: wrap;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255,255,255,0.78);
}

.lightbox-name-metric {
    white-space: nowrap;
    color: rgba(255,255,255,0.82);
}

.lightbox-name-metric-separator {
    color: rgba(255,255,255,0.46);
    margin: 0;
}

.lightbox-price {
    margin-left: auto;
    order: 2;
}

.lightbox-product-metrics {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.lightbox-metric-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
}

.lightbox-metric-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.lightbox-metric-value {
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}
.lightbox-allergen-indicator {
    width: 100%;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    background: transparent;
    color: #fecaca;
    border: none;
    flex-shrink: 0;
    order: 3;
}

.lightbox-allergen-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fecaca;
    border: 1px solid rgba(254,202,202,0.22);
    flex: 0 0 auto;
}
.lightbox-allergen-indicator svg {
    width: 16px;
    height: 16px;
}

.lightbox-allergen-icon svg {
    width: 12px;
    height: 12px;
}

.lightbox-allergen-copy {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    font-size: 0.74rem;
    line-height: 1.4;
}

.lightbox-allergen-label {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
}

.lightbox-allergen-value {
    color: rgba(255,255,255,0.84);
}

.lightbox-allergen-list {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 0;
}

.lightbox-allergen-entry {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
}

.lightbox-allergen-entry-media {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.9);
    color: #0f172a;
    flex: 0 0 auto;
}

.lightbox-allergen-entry-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.lightbox-allergen-entry-media.is-fallback {
    background: rgba(255,255,255,0.12);
    color: #fecaca;
    border: 1px solid rgba(254,202,202,0.22);
}

.lightbox-allergen-entry-media.is-fallback svg {
    width: 12px;
    height: 12px;
}

.lightbox-allergen-entry-name {
    color: rgba(255,255,255,0.88);
    font-size: 0.73rem;
    font-weight: 500;
    line-height: 1.3;
}
.lightbox-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
}
.lightbox-desc {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    width: 100%;
}
.lightbox-price {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(255,255,255,0.12);
    border-radius: 5px;
    padding: 3px 12px;
}
.lightbox-share-row {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding-top: 9px; 
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 8px;
}
.lightbox-share-row.active {
    display: flex;
    flex-direction: column;
}
.lightbox-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.lightbox-share-btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}
.lightbox-share-actions .lightbox-share-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lightbox-share-btn:hover {
    transform: translateY(-1px);
}
.lightbox-share-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.78rem;
}
.lightbox-floating-comment-btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(15,23,42,0.82);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transition: transform 0.16s ease, background 0.16s ease, opacity 0.16s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.lightbox-floating-comment-btn:hover {
    transform: translateY(-1px);
    background: rgba(30,41,59,0.92);
}
.lightbox-floating-comment-btn:active {
    transform: scale(0.98);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(231,76,60,0.4);
    z-index: 30;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    pointer-events: none;
    border: none;
    cursor: pointer;
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    animation: pulseShadow 2s 1s infinite;
}
@keyframes pulseShadow {
    0%   { box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(231,76,60,0.4); }
    60%  { box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 10px rgba(231,76,60,0); }
    100% { box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(231,76,60,0); }
}
.scroll-top-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.3); }

.social-float-stack {
    position: fixed;
    bottom: 82px;
    z-index: 29;
    display: none;
}

.social-float-stack-right {
    right: 20px;
}

.social-float-stack-left {
    left: 20px;
}

.social-float-stack.is-active {
    display: block;
}

.social-links--floating {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-links--floating .social-link {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.92);
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.social-links--header .social-link:hover,
.social-links--floating .social-link:hover {
    background: rgba(255,255,255,0.24);
}

/* ===== ERROR ===== */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 24px;
    gap: 12px;
}
.error-container .error-icon { font-size: 3rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .menu-header { padding: 20px 16px 16px; }
    .menu-logo-wrap { width: 68px; height: 68px; }
    .menu-restoran-adi { font-size: 1.45rem; letter-spacing: 2px; }
    .cat-hero { height: 120px; width: calc(100% - 16px); margin: 8px 8px 0; }
    .cat-hero-name { font-size: 1.1rem; }
    .cat-header-simple { margin: 8px 8px 0; }
    .product-list { margin: 6px 6px 0; }
    .product-row { padding: 5px 2px; }
    .pr-name { font-size: 0.93rem; }
    .pr-name-line { gap: 6px; }
    .pr-name-metrics { font-size: 0.64rem; gap: 0; }
    .pr-side-actions.has-badge { padding-top: 16px; }
    .pr-secenek-badge { top: -5px; right: 9px; }
    .lightbox-title-row { gap: 6px; }
    .lightbox-name-metrics { font-size: 0.74rem; gap: 0; }
    #menu-footer .social-link { width: 36px; height: 36px; }
    #menu-footer .social-links { gap: 8px; }
    .social-float-stack { bottom: 64px; }
    .social-float-stack-right { right: 14px; }
    .social-float-stack-left { left: 14px; }
    .social-links--header .social-link { width: 30px; height: 30px; }
    .social-links--header .social-link svg { width: 14px; height: 14px; }
    .pr-thumb { width: 48px !important; height: 48px !important; min-width: 48px; max-width: 48px; min-height: 48px; max-height: 48px; }
    .product-list-header { padding: 7px 8px; }
    .scroll-top-btn { bottom: 16px; right: 14px; }
    .lightbox-inner { max-width: 88vw; }
    .lightbox-inner img { max-width: 88vw; max-height: 42vh; }
    .lightbox-floating-comment-btn {
        padding: 9px 14px;
        font-size: 0.8rem;
    }
    .pr-cart-btn {
        width: 34px;
        height: 34px;
        margin-left: 4px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.05);
        opacity: 0.92;
    }
    .pr-cart-btn svg { width: 18px; height: 18px; }
    .pr-cart-btn.in-cart { background: rgba(249,115,22,0.12); }
    .pr-cart-qty {
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
    .menu-comment-modal {
        border-radius: 18px;
    }
    .menu-comment-modal-header,
    .menu-comment-modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }
    .menu-comment-rating-stars label {
        font-size: 1.85rem;
    }
    .menu-comment-cancel-btn,
    .menu-comment-submit-btn {
        width: 100%;
        justify-content: center;
    }
    .menu-comment-actions {
        flex-direction: column-reverse;
    }
}

/* ===== CART DRAWER ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% - 32px);
    max-width: 480px;
    max-height: 82vh;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    z-index: 301;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -46%);
    transition: opacity 0.22s ease, transform 0.24s ease;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}
.cart-drawer.open {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%);
}
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 8px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}
.cart-drawer-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}
.cart-close-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}
.cart-close-btn:hover { background: var(--bg); }
.cart-items {
    overflow-y: auto;
    flex: 1;
    padding: 8px 0;
}
.cart-empty {
    text-align: center;
    padding: 36px 0;
    color: var(--text-light);
    font-size: 0.95rem;
}
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px;
    border-bottom: 1px solid var(--border);
    gap: 6px;
    user-select: none;
    -webkit-user-select: none;
}
.cart-item.is-scanned {
    background: rgba(22, 163, 74, 0.08);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.cart-item-scan-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.18s ease, transform 0.18s ease;
    vertical-align: middle;
}
.cart-item.is-scanned .cart-item-scan-mark {
    opacity: 1;
    transform: scale(1);
}
.cart-item-orig {
    font-size: 0.76rem;
    font-style: italic;
    opacity: 0.55;
    font-weight: 400;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.cart-qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}
.cart-qty-btn:hover { background: var(--primary-light); }
.cart-qty {
    font-size: 0.88rem;
    font-weight: 700;
    min-width: 14px;
    text-align: center;
    color: var(--primary);
}
.cart-item-price {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    min-width: 44px;
    text-align: right;
    margin-left: 4px;
}
.cart-drawer-footer {
    padding: 10px 16px 18px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--card-bg, #fff);
    user-select: none;
    -webkit-user-select: none;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}
.cart-total-row span:last-child {
    color: var(--accent);
    font-size: 1.1rem;
}
.cart-actions-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.cart-actions-row > * {
    min-width: 0;
}
.cart-clear-btn {
    flex: 1;
    padding: 11px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: var(--font);
}
.cart-clear-btn:hover { background: #fef2f2; border-color: #ef4444; color: #ef4444; }
.cart-comment-btn {
    flex: 1;
    padding: 11px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: var(--font);
}
.cart-comment-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}
/* Cart QR code */
.cart-qr-wrap {
    flex: 1;
    flex-shrink: 0;
    min-width: 0;
}
.cart-qr-toggle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--font);
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    min-width: 0;
}
.cart-qr-toggle > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}
.cart-qr-toggle:hover { background: var(--bg-card, #f8fafc); }
.cart-qr-arrow {
    font-size: 0.72rem;
    transition: transform 0.2s;
    display: inline-block;
    opacity: 0.5;
    flex: 0 0 auto;
}
.cart-qr-toggle.open .cart-qr-arrow { transform: rotate(90deg); }
.cart-qr-body {
    display: none;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.cart-qr-body canvas,
.cart-qr-body img {
    display: block;
    margin: 0 auto;
    max-width: 192px;
    height: auto;
    border-radius: 8px;
}
.cart-qr-error {
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
    padding: 8px 0;
}
/* Cart feedback */
.product-row.cart-added {
    background: rgba(34,197,94,0.14) !important;
    transition: background 0.1s !important;
}
/* Cart toast */
.cart-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15,23,42,0.88);
    color: #fff;
    padding: 9px 22px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
    white-space: nowrap;
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
