:root {
    --primary-color: #2c3e50;
    --accent-color: #27ae60;
    --accent-hover: #229954;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --border-radius: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

* {
    box-sizing: border-box;
}

/* Telefon tarzı scrollbar: ince, şeffaf, overlay */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

body {
    font-family: var(--template-font-family, 'Inter'), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--template-page-bg-color, #f5f7fa);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[data-bg-type="image"] {
    background-image: var(--template-page-bg-image);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: transparent;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow-x: hidden;
    font-family: var(--template-font-family, 'Inter'), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Scrollbar container'da da aynı ince/şeffaf stil */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.mobile-container::-webkit-scrollbar {
    width: 6px;
}

.mobile-container::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.mobile-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Header */
.restaurant-header {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, var(--template-header-bg, var(--primary-color)) 0%, #34495e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    overflow: hidden;
    margin-bottom: 0;
}

.restaurant-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.restaurant-header img.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* Kampanya — kategori grid ile aynı yatay hiza (16px) */
.campaign-slot {
    width: 100%;
    padding: 0 16px 12px;
    box-sizing: border-box;
}

.campaign-slot--text {
    padding-top: 12px;
}

.campaign-strip {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: var(--border-radius, 20px);
    overflow: hidden;
    position: relative;
    height: 110px;
    background: #1f2937;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
    box-sizing: border-box;
}

/* Görsel banner — sadece tasarım görseli (overlay HTML'de yok) */
.campaign-strip-has-image,
.campaign-strip:has(> img) {
    height: auto;
    min-height: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.campaign-strip-has-image img,
.campaign-strip:has(> img) img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    display: block;
    border-radius: var(--border-radius, 20px);
    box-shadow: var(--shadow-md);
    vertical-align: top;
}

.campaign-strip-has-image .campaign-strip-overlay,
.campaign-strip:has(> img) .campaign-strip-overlay {
    display: none !important;
}

/* Landing iframe — modal telefon içinde kırpılmasın */
body.menu-embed .campaign-modal-backdrop {
    display: none !important;
}

body.menu-embed .campaign-strip {
    pointer-events: none;
    cursor: default;
}

.campaign-strip-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #1e3a8a 0%, #5b21b6 45%, #9d174d 100%);
}

.campaign-strip-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 55%, rgba(0, 0, 0, 0.08) 100%);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
}

.campaign-strip-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.campaign-strip-text {
    font-size: 0.85rem;
    line-height: 1.25;
    opacity: 0.95;
}

.campaign-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.campaign-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    position: relative;
}

.campaign-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.campaign-modal img {
    width: 100%;
    height: auto;
    max-height: min(56vh, 360px);
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f1f5f9;
}

.campaign-modal-body {
    padding: 14px;
}

.campaign-modal-body h3 {
    margin: 0 0 8px;
    font-size: 1.06rem;
    font-weight: 700;
    color: #1f2937;
}

.campaign-modal-body p {
    margin: 0 0 8px;
    color: #374151;
    font-size: 0.92rem;
}

/* Ürün detay modalı */
.product-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.product-modal {
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    animation: productModalSlideUp 0.28s ease;
}

@keyframes productModalSlideUp {
    from { transform: translateY(100%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

.product-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #374151;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-modal img {
    width: 100%;
    height: auto;
    max-height: min(42vh, 260px);
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
}

.product-modal-body {
    padding: 18px 20px 28px;
}

.product-modal-body h3 {
    margin: 0 44px 6px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.product-modal-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--template-product-price-color, #e67e22);
    margin-bottom: 10px;
}

.product-modal-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.product-kcal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.14), rgba(255, 159, 67, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.22);
    color: #c2410c;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.product-kcal-icon {
    display: inline-flex;
    color: #ea580c;
}

.product-kcal-value {
    font-size: 0.82rem;
    letter-spacing: -0.02em;
}

.product-kcal-unit {
    font-size: 0.62rem;
    font-weight: 600;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-kcal-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    border: 1px solid rgba(251, 146, 60, 0.25);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.08);
}

.product-kcal-stat-icon {
    display: inline-flex;
    color: #ea580c;
    align-self: center;
}

.product-kcal-stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #9a3412;
    line-height: 1;
    letter-spacing: -0.03em;
}

.product-kcal-stat-unit {
    font-size: 0.78rem;
    font-weight: 600;
    color: #c2410c;
    opacity: 0.8;
}

.product-allergen-symbols {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-allergen-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.82rem;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.product-allergen-detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-allergen-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 600;
}

.product-allergen-detail-symbol {
    font-size: 1rem;
    line-height: 1;
}

.product-box-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.product-box-clickable:focus-visible {
    outline: 2px solid var(--accent-color, #27ae60);
    outline-offset: 2px;
}

.product-modal-desc {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-modal-section h4 {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.product-modal-section p {
    margin: 0 0 14px;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-line;
}

.restaurant-logo-badge {
    position: relative;
    width: 118px;
    height: 118px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
}

/* Logo görseli varken (PNG şeffaf arka plan): beyaz arka plan yok, çerçeve logoyla bir */
.restaurant-logo-badge:has(img) {
    background: transparent;
}

/* Logo kare (köşeleri yuvarlatılmış); çerçeve yok, gölge ile ön plan */
.logo-badge-square {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.star-badge {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border: 3px solid #d4af37;
    border-radius: 0;
}

.restaurant-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    vertical-align: middle;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    width: 100%;
    height: 100%;
}

.logo-placeholder i {
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 6px;
}

.logo-placeholder span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.1;
    letter-spacing: 0.5px;
}


/* Categories Grid - şablon değişkenleri .mobile-container üzerinden gelir */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(var(--template-category-columns, 2), 1fr);
    gap: 14px;
    padding: 16px;
    background: transparent;
}

.category-card {
    background: var(--card-bg);
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    outline: none;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: var(--template-category-height, 140px);
    cursor: pointer;
    isolation: isolate;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Kategori kart stilleri */
.mobile-container[data-category-style="2"] .category-card {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.mobile-container[data-category-style="3"] .category-card {
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.mobile-container[data-category-style="3"] .category-title-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card:active {
    transform: translateY(-2px) scale(0.98);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.95);
    display: block;
    border-radius: inherit;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.category-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.category-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: var(--template-category-justify, center);
    background: var(--template-category-overlay, linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%));
    color: var(--template-category-name-color, white);
    font-weight: 700;
    font-size: var(--template-category-font-size, 16px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 2;
    padding: 12px;
    text-align: var(--template-category-text-align, center);
    border-radius: inherit;
}

.premium-card {
    border: none;
}

/* Category Page Header */
.category-page-header {
    padding: 16px 20px;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
    border: none;
    flex-shrink: 0;
}

.back-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-button:active {
    transform: scale(0.95);
}

.back-button i {
    margin: 0;
}

.category-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.5px;
    flex: 1;
}

/* Product List - kolon sayısı şablondan */
.product-list {
    padding: 12px 20px 24px;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(var(--template-product-columns, 1), 1fr);
    gap: 12px;
}

.product-box {
    background: var(--template-product-bg, var(--card-bg));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    cursor: pointer;
    min-height: var(--template-product-image-size, 110px);
}

/* Ürün kolon sayısı > 1 iken kartlar dikey (görsel üstte) */
.mobile-container[data-product-columns="2"] .product-list .product-box,
.mobile-container[data-product-columns="3"] .product-list .product-box {
    flex-direction: column;
    min-height: 0;
}

.mobile-container[data-product-columns="2"] .product-list .product-box-image,
.mobile-container[data-product-columns="3"] .product-list .product-box-image {
    width: 100%;
    min-width: 100%;
    height: var(--template-product-image-size, 110px);
}

/* Ürün kart stilleri */
.mobile-container[data-product-style="2"] .product-box {
    flex-direction: column;
    min-height: 0;
}

.mobile-container[data-product-style="2"] .product-box-image {
    width: 100%;
    min-width: 100%;
    height: var(--template-product-image-size, 110px);
}

.mobile-container[data-product-style="3"] .product-box {
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 10px;
}

.mobile-container[data-product-style="3"] .product-box-image {
    width: 64px;
    min-width: 64px;
    height: 64px;
    border-radius: 8px;
}

.mobile-container[data-product-style="4"] .product-box {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.product-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

.product-box-image {
    width: var(--template-product-image-size, 110px);
    min-width: var(--template-product-image-size, 110px);
    height: var(--template-product-image-size, 110px);
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
    flex-shrink: 0;
}

.product-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.product-box-name {
    font-weight: 700;
    font-size: var(--template-product-font-size, 15px);
    color: var(--template-product-name-color, var(--text-color));
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-box-desc {
    font-size: 0.75rem;
    color: var(--template-product-desc-color, #6c757d);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-box-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 6px;
}

.product-box-price {
    font-weight: 700;
    font-size: var(--template-product-price-font-size, 16px);
    color: var(--template-product-price-color, #e67e22);
    letter-spacing: 0.2px;
}

.product-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25);
}

.product-add-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.08);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.35);
}

.product-add-btn:active {
    transform: scale(0.95);
}

.product-add-btn i {
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.2;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.animate-fade-in:nth-child(1) {
    animation-delay: 0.05s;
}

.animate-fade-in:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-fade-in:nth-child(3) {
    animation-delay: 0.15s;
}

.animate-fade-in:nth-child(4) {
    animation-delay: 0.2s;
}

.animate-fade-in:nth-child(5) {
    animation-delay: 0.25s;
}

.animate-fade-in:nth-child(6) {
    animation-delay: 0.3s;
}

.animate-fade-in:nth-child(7) {
    animation-delay: 0.35s;
}

.animate-fade-in:nth-child(8) {
    animation-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .campaign-slot {
        padding-inline: 12px;
    }

    .categories-grid {
        gap: 12px;
        padding: 12px;
    }

    .category-card {
        height: 120px;
    }

    .restaurant-header {
        height: 190px;
    }

    .restaurant-logo-badge {
        width: 100px;
        height: 100px;
    }

    .category-page-header {
        padding: 12px 16px;
    }

    .category-page-title {
        font-size: 1.3rem;
    }

    .product-list {
        gap: 10px;
        padding: 10px 16px 20px;
    }

    .product-box {
        min-height: 100px;
        border-radius: 10px;
    }

    .product-box-image {
        width: 100px;
        min-width: 100px;
        height: 100px;
    }

    .product-box-content {
        padding: 10px 12px;
    }

    .product-box-name {
        font-size: 0.9rem;
    }

    .product-box-desc {
        font-size: 0.7rem;
    }

    .product-box-price {
        font-size: 1rem;
    }

    .product-add-btn {
        width: 32px;
        height: 32px;
    }
}

/* --- Layout Type 2: Sticky category nav, tek sayfa --- */
/* Wrapper: spacer (yer kaplar) + sticky nav; fixed olunca menü zıplamaz */
.category-nav-wrapper {
    position: relative;
}

.category-nav-spacer {
    height: 0;
    transition: height 0.15s ease;
}

.category-nav-wrapper.is-fixed .category-nav-sticky {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 90;
}

.category-nav-sticky {
    position: relative;
    z-index: 90;
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-nav-scroll {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-nav-scroll::-webkit-scrollbar {
    display: none;
}

.category-nav-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    min-height: 44px;
    border-radius: 8px;
    border: 2px solid #c0392b;
    background: #fff;
    color: #c0392b;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

.category-nav-tab:hover {
    background: #fdf2f2;
}

.category-nav-tab.active {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.menu-content-type2 {
    padding-bottom: 24px;
}

.category-section {
    padding: 0 0 24px;
}

.category-section-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.category-section-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.category-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 16px 12px;
    letter-spacing: 0.5px;
}

.menu-content-type2 .product-list {
    padding: 0 16px;
}

.type2-header {
    margin-bottom: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent-color);
    color: white;
}

/* ─── Masadan sipariş ─── */
body.table-ordering-active .mobile-container {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

body.table-ordering-active.has-table-order-thumbs .mobile-container {
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

body.table-ordering-active.has-table-order-cart:not(.has-table-order-thumbs) .mobile-container {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}

.product-box-add-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-color, #27ae60);
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.35);
}

.product-modal-add-cart {
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: var(--accent-color, #27ae60);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.table-order-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.14);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: 480px;
    margin: 0 auto;
    transition: box-shadow 0.25s ease;
}

body.has-table-order-cart .table-order-bar {
    box-shadow: 0 -16px 40px rgba(39, 174, 96, 0.18);
}

.table-order-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.table-order-bar-table {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.table-order-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}

.table-order-status--pending { background: #fef3c7; color: #92400e; }
.table-order-status--approved { background: #dbeafe; color: #1d4ed8; }
.table-order-status--preparing { background: #e0e7ff; color: #4338ca; }
.table-order-status--served { background: #dcfce7; color: #166534; }
.table-order-status--billed { background: #f3f4f6; color: #374151; }

.table-order-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 4px 0;
}

.table-order-thumb-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    cursor: pointer;
    scrollbar-width: none;
}

.table-order-thumb-strip::-webkit-scrollbar { display: none; }

.table-order-thumb {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    background: #f1f5f9;
}

.table-order-thumb--server {
    opacity: 0.85;
    border-color: #dbeafe;
}

.table-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.table-order-thumb-more {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    padding: 0 4px;
}

.table-order-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.table-order-btn {
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.table-order-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.table-order-btn-cart {
    position: relative;
    background: #f1f5f9;
    color: #334155;
    min-width: 44px;
    padding: 10px 12px;
}

.table-order-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.table-order-badge--pulse {
    animation: tableOrderBadgePulse 0.45s ease;
}

@keyframes tableOrderBadgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.table-order-btn-primary {
    flex: 1;
    background: var(--accent-color, #27ae60);
    color: #fff;
}

.table-order-btn-bill {
    background: #1e293b;
    color: #fff;
    white-space: nowrap;
}

.table-order-btn-block {
    width: 100%;
}

.table-order-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: background 0.22s ease;
}

.table-order-sheet-backdrop.is-open {
    background: rgba(15, 23, 42, 0.45);
}

.table-order-sheet {
    width: 100%;
    max-width: 480px;
    max-height: 78vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px 20px;
    overflow: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.table-order-sheet-backdrop.is-open .table-order-sheet {
    transform: translateY(0);
}

.table-order-sheet-tabs {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px;
}

.table-order-sheet-tab {
    flex: 1;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.table-order-sheet-tab.is-active {
    background: var(--accent-color, #27ae60);
    border-color: var(--accent-color, #27ae60);
    color: #fff;
}

.table-order-tab-count {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
    font-size: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.table-order-sheet-tab:not(.is-active) .table-order-tab-count {
    background: #e2e8f0;
    color: #475569;
}

.table-order-sheet-panel {
    display: none;
}

.table-order-sheet-panel.is-active {
    display: block;
}

.table-order-sheet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 12px;
    color: #94a3b8;
    gap: 6px;
}

.table-order-sheet-empty i {
    font-size: 2rem;
    margin-bottom: 4px;
}

.table-order-sheet-empty p {
    margin: 0;
    font-weight: 700;
    color: #64748b;
}

.table-order-sheet-empty span {
    font-size: 0.8rem;
}

.table-order-sheet-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.table-order-sheet-list {
    list-style: none;
    margin: 12px 0 16px;
    padding: 0;
}

.table-order-sheet-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.table-order-sheet-item--order {
    grid-template-columns: auto 1fr auto;
}

.table-order-sheet-item-body {
    min-width: 0;
}

.table-order-sheet-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.25;
}

.table-order-sheet-item-unit {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

.table-order-sheet-item-note {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 4px;
}

.table-order-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.table-order-sheet-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-order-qty-val {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.table-order-server-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 4px;
    border-top: 1px dashed #e2e8f0;
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.table-order-sheet-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}

.table-order-notes-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.table-order-notes-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 10px;
    font-family: inherit;
}

.table-order-item-note-input {
    width: 100%;
    margin-top: 6px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.78rem;
    font-family: inherit;
}

.table-order-sheet-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.table-order-toast {
    position: fixed;
    left: 50%;
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(12px);
    z-index: 1300;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    max-width: 90vw;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.table-order-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Menü dil seçici */
.menu-lang-switcher {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 1200;
}
.menu-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    cursor: pointer;
}
.menu-lang-btn .fa-globe { font-size: 0.85rem; opacity: 0.9; }
.menu-lang-chevron { font-size: 0.65rem; opacity: 0.85; }
.menu-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 148px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.menu-lang-menu[hidden] { display: none !important; }
.menu-lang-option {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #f8fafc;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}
.menu-lang-option:hover,
.menu-lang-option.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
html[dir="rtl"] .menu-lang-switcher {
    right: auto;
    left: max(12px, env(safe-area-inset-left));
}
html[dir="rtl"] .menu-lang-menu {
    right: auto;
    left: 0;
}