:root {
    --bg-primary: var(--theme-bg, #F8F9FA) !important;
    --bg-card: var(--theme-surface, #FFFFFF) !important;
    --accent-primary: var(--theme-primary, #0f766e) !important;
    --accent-secondary: var(--theme-secondary, #0a5c56) !important;
    --text-primary: var(--theme-text, #2D3436) !important;
    --text-secondary: var(--theme-text-muted, #636E72) !important;
    --border-color: var(--theme-border, #EFEFEF) !important;

    --primary-color: var(--theme-primary, #0f766e) !important;
    --secondary-color: var(--theme-secondary, #0a5c56) !important;
    --text-color: var(--theme-text, #2D3436) !important;

    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);

    --theme-success-bg: #e8f5e9;
    --theme-success-text: #2e7d32;
    --theme-success-bg-dark: #14532d;
    --theme-success-text-dark: #bbf7d0;
    --theme-danger-text: #dc3545;
    --theme-danger-text-dark: #fca5a5;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: var(--theme-bg, #F8F9FA) !important;
    color: var(--theme-text, #2D3436) !important;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto !important;
    background: var(--theme-surface, #FFFFFF) !important;
    padding: 24px 20px !important;
    text-align: center !important;
    border-top: 1px solid var(--theme-border, #EFEFEF) !important;
    color: var(--theme-text-muted, #636E72) !important;
    font-size: 14px !important;
}

footer a {
    color: var(--theme-primary, #0f766e) !important;
    font-weight: 500 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.header {
    background: var(--theme-header-bg, #FFFFFF) !important;
    color: var(--theme-text, #2D3436) !important;
    padding: 16px 20px !important;
    padding-top: calc(16px + env(safe-area-inset-top, 0px)) !important;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--theme-border, #EFEFEF) !important;
}
.header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    gap: 10px;
}
.header-logo-link {
    text-decoration: none;
    cursor: pointer;
}
.header-logo-img {
    min-height: 35px;
    height: auto;
    width: auto;
    object-fit: contain;
}
.restaurant-logo {
    margin: 0;
    font-size: 24px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.restaurant-logo {
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    color: var(--theme-text, #2D3436) !important;
    text-shadow: none !important;
    margin: 0 !important;
}

.header .lang-btn,
.header .favorites-header-btn {
    background: var(--theme-bg, #F8F9FA) !important;
    border: 1px solid var(--theme-border, #EFEFEF) !important;
    color: var(--theme-text, #2D3436) !important;
}

.header .lang-btn:hover,
.header .favorites-header-btn:hover {
    background: var(--theme-border, #EFEFEF) !important;
}

.popular-section {
    padding: 30px 0 !important;
    background: var(--theme-surface, #FFFFFF) !important;
}

.section-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--theme-text, #2D3436) !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    letter-spacing: -0.3px !important;
}

.popular-slider {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding: 10px 0 20px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.popular-slider::-webkit-scrollbar {
    display: none;
}

.popular-card {
    background: var(--theme-surface, #FFFFFF) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 200px;
    min-width: 200px;
}

.popular-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.popular-image-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: var(--theme-bg, #F8F9FA) !important;
    overflow: hidden;
}

.popular-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-card:hover .popular-image {
    transform: scale(1.05);
}

.popular-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-bg, #F8F9FA) !important;
    color: var(--theme-text-muted, #636E72) !important;
    font-size: 12px;
    font-weight: 500;
}

.popular-info {
    padding: 16px;
}

.popular-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--theme-text, #2D3436) !important;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--theme-primary, #0f766e) !important;
}

.categories-section {
    padding: 30px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.category-card {
    position: relative;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

.category-card:hover {
    transform: none !important;
    border-color: rgba(0,0,0,0.15) !important;
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-bg {
    transform: scale(1.15);
}

.category-bg-default {
    background: var(--theme-primary, #0f766e) !important;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    transition: all 0.4s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.category-name {
    position: relative;
    z-index: 10;
    color: white;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-align: left;
    text-shadow: none;
    padding: 20px;
    width: 100%;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.back-section {
    background: var(--theme-surface, #FFFFFF) !important;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    max-width: 832px;
    margin: 0 auto 10px auto;
    border-radius: var(--radius-lg);
}

.back-section .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    background: var(--theme-primary, #0f766e) !important;
    color: white !important;
    text-decoration: none;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 13px;
    transition: all 0.3s ease !important;
    margin-bottom: 0;
    border: none !important;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
    flex-shrink: 0;
    white-space: nowrap;
}

.back-btn:hover {
    background: var(--theme-secondary, #0a5c56) !important;
    transform: translateX(-3px) !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

.category-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--theme-text, #1a1a2e) !important;
    margin: 0 !important;
    letter-spacing: -0.3px;
    display: inline !important;
}

.back-section .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
}

.back-section .category-title {
    margin: 0 !important;
    flex: 1;
}

.products-list-section {
    padding: 30px 0;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
    max-width: 800px;
    margin: 0 auto;
}

.product-list-item {
    background: var(--theme-surface, #FFFFFF) !important;
    border-radius: var(--radius-lg) !important;
    padding: 14px;
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    position: relative;
    overflow: hidden;
}

.product-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--theme-primary, #0f766e) 0%, var(--theme-secondary, #0a5c56) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-list-item:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(15, 118, 110, 0.35) !important;
}

.product-list-item:hover::before {
    opacity: 1;
}

.product-list-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    background: #f1f5f9 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-list-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-list-item:hover .product-list-img {
    transform: scale(1.1);
}

.product-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9 !important;
    color: var(--theme-text-muted, #636E72) !important;
    font-size: 12px;
    font-weight: 500;
}

.product-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 8px;
}

.product-list-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--theme-text, #1a1a2e) !important;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-list-description {
    font-size: 13px !important;
    color: var(--theme-text-muted, #636E72) !important;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-list-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--theme-price, #0f766e) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-list-price .old-price {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #aaa !important;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--theme-text-muted, #636E72) !important;
    font-size: 16px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-content {
    background: var(--theme-surface, #FFFFFF) !important;
    border-radius: 0 !important;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    position: relative;
    box-shadow: none !important;
    animation: modalSlideUp 0.3s ease;
    border: none !important;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

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

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text, #2D3436) !important;
    cursor: pointer;
    z-index: 1001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    line-height: 1;
    border: none !important;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: var(--theme-surface, #FFFFFF) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.modal-body {
    padding: 0;
}

.modal-image-wrapper {
    width: 100%;
    height: 45vh;
    min-height: 280px;
    max-height: 400px;
    background: transparent !important;
    overflow: hidden;
    position: relative;
    border-radius: 0 !important;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent !important;
}

.modal-info {
    padding: 24px;
    padding-bottom: 100px;
}

.modal-info h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--theme-text, #2D3436) !important;
    margin-bottom: 8px;
    line-height: 1.3;
}

.modal-category {
    font-size: 12px !important;
    color: var(--theme-primary, #0f766e) !important;
    font-weight: 600 !important;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-description {
    font-size: 15px !important;
    color: var(--theme-text-muted, #636E72) !important;
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-price {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--theme-primary, #0f766e) !important;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--theme-border, #EFEFEF) !important;
}

.add-to-cart-btn,
.price-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px !important;
    background: var(--theme-primary, #0f766e) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    margin-top: 16px;
    box-shadow: none !important;
}

.add-to-cart-btn:hover,
.price-btn:hover {
    background: var(--theme-secondary, #0a5c56) !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (min-width: 769px) {
    .modal {
        padding: 0;
    }

    .modal-content {
        max-width: 100%;
        width: 100%;
        height: 100%;
        border-radius: 0 !important;
    }

    .modal-image-wrapper {
        height: 50vh;
        max-height: 500px;
    }

    .modal-info {
        max-width: 600px;
        margin: 0 auto;
        padding: 30px;
        padding-bottom: 100px;
    }

    .modal-info h2 {
        font-size: 28px !important;
    }

    .modal-price {
        font-size: 32px !important;
    }

    .modal-close {
        top: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .popular-card {
        width: 180px;
        min-width: 180px;
    }

    .category-card {
        height: 160px;
        border-radius: var(--radius-lg) !important;
    }

    .category-name {
        font-size: 15px !important;
        padding: 15px;
    }

    .category-name {
        font-size: 16px !important;
    }

    .product-list-image {
        width: 80px;
        height: 80px;
    }

    .product-list-name {
        font-size: 15px !important;
    }

    .product-list-price {
        font-size: 18px !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--theme-border, #EFEFEF);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ddd;
}


section.popular-section {
    padding: 25px 0 !important;
    background: var(--theme-surface, #FFFFFF) !important;
}

section.popular-section .section-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--theme-text, #2D3436) !important;
    margin-bottom: 15px !important;
    text-align: left !important;
    padding-left: 5px !important;
}

section.popular-section .popular-slider {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 18px !important;
    padding: 10px 5px 15px 5px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
}

section.popular-section .popular-slider::-webkit-scrollbar {
    display: none !important;
}

section.popular-section .popular-card {
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: 80px !important;
    min-width: 80px !important;
    padding: 0 !important;
}

section.popular-section .popular-card:hover {
    transform: scale(1.05) !important;
    box-shadow: none !important;
}

section.popular-section .popular-image-wrapper {
    width: 72px !important;
    height: 72px !important;
    padding-top: 0 !important;
    position: relative !important;
    overflow: visible !important;
    border-radius: 50% !important;
    padding: 3px !important;
    background: linear-gradient(45deg, var(--theme-primary, #0f766e) 0%, var(--theme-secondary, #0a5c56) 100%) !important;
}

section.popular-section .popular-image-wrapper::before {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    right: 3px !important;
    bottom: 3px !important;
    background: white !important;
    border-radius: 50% !important;
    z-index: 1 !important;
}

section.popular-section .popular-image {
    position: absolute !important;
    top: 5px !important;
    left: 5px !important;
    width: calc(100% - 10px) !important;
    height: calc(100% - 10px) !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    z-index: 2 !important;
    transition: none !important;
}

section.popular-section .popular-card:hover .popular-image {
    transform: none !important;
}

section.popular-section .popular-image-placeholder {
    position: absolute !important;
    top: 5px !important;
    left: 5px !important;
    width: calc(100% - 10px) !important;
    height: calc(100% - 10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--theme-primary, #0f766e) 0%, var(--theme-secondary, #0a5c56) 100%) !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: 50% !important;
    z-index: 2 !important;
}

section.popular-section .popular-info {
    padding: 8px 0 0 0 !important;
    text-align: center !important;
    width: 100% !important;
}

section.popular-section .popular-name {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--theme-text, #2D3436) !important;
    margin-bottom: 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 80px !important;
}

section.popular-section .popular-card .popular-price,
section.popular-section .popular-card .allergen-icons {
    display: none !important;
}

@media (max-width: 768px) {
    section.popular-section .popular-card {
        width: 72px !important;
        min-width: 72px !important;
    }

    section.popular-section .popular-image-wrapper {
        width: 66px !important;
        height: 66px !important;
    }

    section.popular-section .popular-name {
        font-size: 11px !important;
        max-width: 72px !important;
    }

    section.popular-section .popular-slider {
        gap: 14px !important;
    }
}


.category-nav,
.categories-nav {
    background: transparent !important;
    padding: 12px 0;
    position: sticky;
    top: 60px;
    z-index: 90;
}

.category-nav-list,
.categories-nav-list {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 8px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: transparent !important;
}

.category-nav-list::-webkit-scrollbar,
.categories-nav-list::-webkit-scrollbar {
    display: none;
}

.category-nav-item,
.categories-nav-item {
    flex-shrink: 0;
    padding: 10px 20px;
    background: transparent !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text-muted, #636E72) !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-decoration: none;
    white-space: nowrap;
}

.category-nav-item:hover,
.categories-nav-item:hover {
    color: var(--theme-text, #2D3436) !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

.category-nav-item.active,
.categories-nav-item.active {
    background: var(--theme-primary, #0f766e) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3) !important;
}


.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--theme-surface, #FFFFFF) !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 15;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.favorite-btn.active {
    animation: heartPop 0.3s ease;
    color: #e74c3c !important;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.favorites-header-btn {
    position: relative;
    background: var(--theme-bg, #F8F9FA) !important;
    border: 1px solid var(--theme-border, #EFEFEF) !important;
    padding: 10px 14px;
    border-radius: var(--radius-md) !important;
    cursor: pointer;
    font-size: 18px;
    color: var(--theme-text, #2D3436) !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.favorites-header-btn:hover {
    background: var(--theme-border, #EFEFEF) !important;
}

#favoritesCount {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--theme-primary, #0f766e) !important;
    color: white !important;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-sm);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.modal-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

.modal-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--theme-bg, #F8F9FA) !important;
    border: 2px solid var(--theme-border, #EFEFEF) !important;
    border-radius: var(--radius-md) !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-text-muted, #636E72) !important;
    transition: all 0.3s ease !important;
    flex: 1;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
}

.modal-favorite-btn:hover {
    background: #fff0f0 !important;
    border-color: #ffcdd2 !important;
    color: #e74c3c !important;
}

.modal-favorite-btn.active {
    background: #fff0f0 !important;
    border-color: #e74c3c !important;
    color: #e74c3c !important;
}

.modal-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #25D366 !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25) !important;
    flex: 1;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
}

.modal-whatsapp-btn:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35) !important;
}

.modal-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--theme-primary, #0f766e) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25) !important;
    flex: 1;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
}

.modal-call-btn:hover {
    background: var(--theme-secondary, #0a5c56) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.35) !important;
    color: white !important;
}


.daily-menu-section {
    padding: 20px 0;
}

.daily-menu-card {
    background: var(--theme-surface, #FFFFFF) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    display: flex;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: 2px solid var(--theme-primary, #0f766e) !important;
    position: relative;
}

.daily-menu-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.daily-menu-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--theme-primary, #0f766e) !important;
    color: white !important;
    padding: 6px 14px;
    border-radius: var(--radius-lg) !important;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.daily-menu-image {
    width: 140px;
    min-width: 140px;
    height: 140px;
    overflow: hidden;
}

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

.daily-menu-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    background: var(--theme-bg, #F8F9FA) !important;
}

.daily-menu-info {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.daily-menu-info h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--theme-text, #2D3436) !important;
    margin: 0 0 6px 0;
}

.daily-menu-desc {
    font-size: 13px !important;
    color: var(--theme-text-muted, #636E72) !important;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.daily-menu-price {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--theme-price, #0f766e) !important;
}

@media (max-width: 480px) {
    .daily-menu-image {
        width: 110px;
        min-width: 110px;
        height: 110px;
    }

    .daily-menu-info h3 {
        font-size: 16px !important;
    }

    .daily-menu-price {
        font-size: 18px !important;
    }

    .daily-menu-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}

.favorites-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2D3436 !important;
    color: white !important;
    padding: 14px 28px;
    border-radius: var(--radius-lg) !important;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

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

#favoritesModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    align-items: flex-end;
    justify-content: center;
}

.favorites-modal-content {
    background: var(--theme-surface, #FFFFFF) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15) !important;
    animation: modalSlideUp 0.3s ease;
}

.favorites-modal-header {
    position: sticky;
    top: 0;
    background: var(--theme-surface, #FFFFFF) !important;
    padding: 20px;
    border-bottom: 1px solid var(--theme-border, #EFEFEF) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.favorites-modal-header h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--theme-text, #2D3436) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorites-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--theme-bg, #F8F9FA) !important;
    border: none !important;
    cursor: pointer;
    font-size: 16px;
    color: var(--theme-text-muted, #636E72) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
}

.favorites-modal-close:hover {
    background: var(--theme-border, #EFEFEF) !important;
}

.favorites-modal-body {
    padding: 16px;
}

.favorites-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--theme-text-muted, #636E72) !important;
}

.favorites-empty p:first-child {
    font-size: 48px;
    margin-bottom: 15px;
}

.favorites-empty p:nth-child(2) {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--theme-text, #2D3436) !important;
    margin-bottom: 10px;
}

.favorites-empty small {
    font-size: 14px !important;
    color: var(--theme-text-muted, #636E72) !important;
}

.favorites-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: var(--theme-bg, #F8F9FA) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 10px;
    transition: all 0.3s ease !important;
}

.favorites-item:hover {
    background: var(--theme-border, #EFEFEF) !important;
}

.favorites-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--theme-border, #EFEFEF) !important;
}

.favorites-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorites-item-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--theme-text-muted, #636E72) !important;
}

.favorites-item-info {
    flex: 1;
    min-width: 0;
}

.favorites-item-info h4 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--theme-text, #2D3436) !important;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorites-item-category {
    display: block;
    font-size: 12px !important;
    color: var(--theme-text-muted, #636E72) !important;
    margin-bottom: 4px;
}

.favorites-item-price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--theme-primary, #0f766e) !important;
}

.favorites-item-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--theme-surface, #FFFFFF) !important;
    border: 1px solid var(--theme-border, #EFEFEF) !important;
    cursor: pointer;
    font-size: 14px;
    color: var(--theme-text-muted, #636E72) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
    flex-shrink: 0;
}

.favorites-item-remove:hover {
    background: #fee !important;
    border-color: #e74c3c !important;
    color: #e74c3c !important;
}

@media (min-width: 769px) {
    #favoritesModal {
        align-items: center;
        padding: 20px;
    }

    .favorites-modal-content {
        max-width: 500px;
        border-radius: var(--radius-lg) !important;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .favorites-header-btn {
        padding: 8px 12px;
        font-size: 16px;
    }

    .favorite-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

.fav-remove-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--theme-surface, #FFFFFF) !important;
    border: 1px solid var(--theme-border, #EFEFEF) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
    flex-shrink: 0;
}

.fav-remove-btn:hover {
    background: #fee !important;
    border-color: #e74c3c !important;
}


.hamburger-btn {
    display: none;
    background: var(--theme-bg, #F8F9FA) !important;
    border: 1px solid var(--theme-border, #EFEFEF) !important;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md) !important;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 101;
    position: relative;
}

.hamburger-btn:hover,
.hamburger-btn:active {
    background: var(--theme-border, #EFEFEF) !important;
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--theme-text, #2D3436) !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-menu-overlay.show {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15) !important;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-header {
    padding: 60px 24px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.5) !important;
}

.mobile-menu-header h3 {
    font-size: 26px !important;
    font-weight: 700 !important;
    margin: 0;
    color: var(--theme-text, #2D3436) !important;
    letter-spacing: -0.5px;
}

.mobile-menu-close {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    background: rgba(248, 249, 250, 0.95) !important;
    border: none !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text, #2D3436) !important;
    font-size: 20px;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-close:active {
    background: rgba(239, 239, 239, 0.9) !important;
    transform: scale(0.95);
}

.mobile-menu-content {
    padding: 24px;
}

.mobile-menu-section {
    margin-bottom: 8px;
}

.mobile-menu-section-title {
    display: none;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--theme-bg, #F8F9FA) !important;
    border-radius: var(--radius-lg) !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-decoration: none;
    color: var(--theme-text, #2D3436) !important;
    border: none !important;
    width: 100%;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px;
}

.mobile-menu-item:active {
    background: var(--theme-border, #EFEFEF) !important;
    transform: scale(0.98);
}

.mobile-menu-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #F0F0F0 !important;
    box-shadow: none !important;
}

.mobile-menu-item-icon svg {
    stroke: var(--theme-text, #2D3436) !important;
    fill: none !important;
}

.mobile-menu-item-icon.favorites {
    background: #F0F0F0 !important;
    box-shadow: none !important;
}

.mobile-menu-item-icon.favorites svg {
    stroke: #e74c3c !important;
    fill: none !important;
}

.mobile-menu-item-icon.lang-icon {
    background: #F0F0F0 !important;
    box-shadow: none !important;
}

.mobile-menu-item-icon.lang-icon svg {
    stroke: var(--theme-text, #2D3436) !important;
}

.mobile-menu-item-badge {
    margin-left: auto;
    background: var(--theme-primary, #0f766e) !important;
    color: white !important;
    font-size: 13px;
    font-weight: 600;
    min-width: 24px;
    height: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.mobile-lang-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: var(--theme-bg, #F8F9FA) !important;
    border-radius: var(--radius-md) !important;
    margin-top: 8px;
}

.mobile-menu-accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    background: var(--theme-bg, #F8F9FA) !important;
    border-radius: var(--radius-lg) !important;
    cursor: pointer;
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--theme-text, #2D3436) !important;
    letter-spacing: -0.2px;
    transition: all 0.3s ease !important;
}

.mobile-menu-accordion:active {
    background: var(--theme-border, #EFEFEF) !important;
    transform: scale(0.98);
}

.accordion-arrow {
    color: var(--theme-text-muted, #636E72) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-lang-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--theme-surface, #FFFFFF) !important;
    border-radius: var(--radius-md) !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-decoration: none;
    color: var(--theme-text, #2D3436) !important;
}

.mobile-lang-item:active {
    transform: scale(0.98);
}

.mobile-lang-item.active {
    background: var(--theme-primary, #0f766e) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25) !important;
}

.mobile-lang-item .lang-flag {
    font-size: 26px;
}

.mobile-lang-item .lang-name {
    font-size: 15px !important;
    font-weight: 500 !important;
}

.mobile-lang-item .lang-check {
    margin-left: auto;
}

.desktop-header-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
        position: relative;
    }

    .header-content img {
        max-width: calc(100% - 110px) !important;
        max-height: 50px !important;
        height: auto !important;
        width: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    .header-content a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .restaurant-logo {
        font-size: 20px !important;
        text-align: center;
        max-width: calc(100% - 110px) !important;
    }

    .hamburger-btn {
        display: flex;
        position: relative;
        right: auto;
    }

    .desktop-header-btns {
        display: none !important;
    }

    .language-selector .lang-dropdown,
    .language-selector .favorites-header-btn:not(.mobile-visible) {
        display: none !important;
    }
}


button,
.btn {
    font-family: 'Figtree', sans-serif !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

a {
    color: var(--theme-primary, #0f766e) !important;
    text-decoration: none;
    transition: all 0.3s ease !important;
}

a:hover {
    color: var(--theme-secondary, #0a5c56) !important;
}

::selection {
    background: var(--theme-primary, #0f766e) !important;
    color: white !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--theme-primary, #0f766e) !important;
    outline-offset: 2px;
}

::placeholder {
    color: var(--theme-text-muted, #636E72) !important;
    opacity: 0.7;
}

input,
textarea,
select {
    font-family: 'Figtree', sans-serif !important;
    border: 1px solid var(--theme-border, #EFEFEF) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease !important;
    background: var(--theme-surface, #FFFFFF) !important;
    color: var(--theme-text, #2D3436) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--theme-primary, #0f766e) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1) !important;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton {
    background: linear-gradient(90deg, var(--theme-bg, #F8F9FA) 25%, var(--theme-border, #EFEFEF) 50%, var(--theme-bg, #F8F9FA) 75%) !important;
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm) !important;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

html {
    scroll-behavior: smooth;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.allergen-icons {
    font-size: 14px !important;
    margin-top: 5px;
    color: var(--theme-text-muted, #636E72) !important;
}



body.dark-mode {
    /* Structural dark chrome — accent/button/price tokens stay from theme */
    --theme-bg: #121212 !important;
    --theme-surface: #1E1E1E !important;
    --theme-header-bg: #1E1E1E !important;
    --theme-text: #FFFFFF !important;
    --theme-text-muted: #A0A0A0 !important;
    --theme-border: #2D2D2D !important;
    --bg-primary: var(--theme-bg) !important;
    --bg-card: var(--theme-surface) !important;
    --text-primary: var(--theme-text) !important;
    --text-secondary: var(--theme-text-muted) !important;
    --text-color: var(--theme-text) !important;
    --border-color: var(--theme-border) !important;
    --accent-primary: var(--theme-primary, #0f766e) !important;
    --accent-secondary: var(--theme-secondary, #0a5c56) !important;
    --theme-success-bg: #14532d !important;
    --theme-success-text: #bbf7d0 !important;
    --theme-success-bg-dark: #14532d !important;
    --theme-success-text-dark: #bbf7d0 !important;
    --theme-danger-text: #fca5a5 !important;
    --theme-danger-text-dark: #fca5a5 !important;
}

body.dark-mode {
    background: var(--theme-bg, #121212) !important;
    color: var(--theme-text, #FFFFFF) !important;
}

body.dark-mode .header {
    background: var(--theme-header-bg, #1E1E1E) !important;
    border-bottom-color: var(--theme-border, #2D2D2D) !important;
}

body.dark-mode .restaurant-logo {
    color: #FFFFFF !important;
}

body.dark-mode .header-content img {
    /* Renkli logoları invert etme (FOUC / bozuk logo) */
    filter: none !important;
}

body.dark-mode .hamburger-btn {
    background: #2D2D2D !important;
    border-color: #3D3D3D !important;
}

body.dark-mode .hamburger-btn span {
    background: var(--theme-surface, #FFFFFF) !important;
}

body.dark-mode .header-icon-btn,
body.dark-mode .header-ops-btn,
body.dark-mode .favorites-header-btn,
body.dark-mode .wifi-header-btn,
body.dark-mode .lang-btn {
    background: #2D2D2D !important;
    border-color: #3D3D3D !important;
    color: #FFFFFF !important;
}

body.dark-mode .header-icon-btn svg,
body.dark-mode .header-ops-btn svg,
body.dark-mode .favorites-header-btn svg,
body.dark-mode .wifi-header-btn svg {
    stroke: #FFFFFF !important;
}

body.dark-mode .ops-badge {
    background: var(--theme-primary, #0f766e) !important;
    color: #FFFFFF !important;
}

body.dark-mode .popular-section {
    background: #1E1E1E !important;
}

body.dark-mode .section-title {
    color: #FFFFFF !important;
}

body.dark-mode .popular-card {
    background: #2D2D2D !important;
}

body.dark-mode .popular-name {
    color: #FFFFFF !important;
}

body.dark-mode .popular-image-placeholder {
    background: #2D2D2D !important;
}

body.dark-mode .category-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .product-list-item {
    background: #1E1E1E !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .product-list-item:hover {
    box-shadow: 0 12px 40px rgba(15, 118, 110, 0.2) !important;
    border-color: rgba(15, 118, 110, 0.3) !important;
}

body.dark-mode .product-list-image {
    background: #2D2D2D !important;
}

body.dark-mode .product-list-name {
    color: #FFFFFF !important;
}

body.dark-mode .product-list-description {
    color: #A0A0A0 !important;
}

body.dark-mode .product-list-placeholder {
    background: #2D2D2D !important;
}

body.dark-mode .back-section {
    background: #1E1E1E !important;
}

body.dark-mode .category-title {
    color: #FFFFFF !important;
}

body.dark-mode .modal-content {
    background: #1E1E1E !important;
}

body.dark-mode .modal-info h2 {
    color: #FFFFFF !important;
}

body.dark-mode .modal-description {
    color: #A0A0A0 !important;
}

body.dark-mode .modal-close {
    background: #2D2D2D !important;
    color: #FFFFFF !important;
}

body.dark-mode .modal-image-wrapper {
    background: transparent !important;
}

body.dark-mode .favorites-modal-content {
    background: #1E1E1E !important;
}

body.dark-mode .favorites-modal-header {
    background: #1E1E1E !important;
    border-bottom-color: #2D2D2D !important;
}

body.dark-mode .favorites-modal-header h3 {
    color: #FFFFFF !important;
}

body.dark-mode .favorites-item {
    background: #2D2D2D !important;
}

body.dark-mode .favorites-item:hover {
    background: #3D3D3D !important;
}

body.dark-mode .favorites-item-info h4 {
    color: #FFFFFF !important;
}

body.dark-mode .favorites-item-category {
    color: #A0A0A0 !important;
}

body.dark-mode .favorites-item-remove {
    background: #2D2D2D !important;
    border-color: #3D3D3D !important;
    color: #A0A0A0 !important;
}

body.dark-mode .favorites-empty p:nth-child(2) {
    color: #FFFFFF !important;
}

body.dark-mode .mobile-menu {
    background: rgba(30, 30, 30, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

body.dark-mode .mobile-menu-header {
    background: rgba(30, 30, 30, 0.5) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .mobile-menu-close {
    background: rgba(45, 45, 45, 0.8) !important;
}

body.dark-mode .mobile-menu-header {
    border-bottom-color: #2D2D2D !important;
}

body.dark-mode .mobile-menu-header h3 {
    color: #FFFFFF !important;
}

body.dark-mode .mobile-menu-close {
    background: #2D2D2D !important;
    color: #A0A0A0 !important;
}

body.dark-mode .mobile-menu-item {
    background: #2D2D2D !important;
    color: #FFFFFF !important;
}

body.dark-mode .mobile-menu-item:active {
    background: #3D3D3D !important;
}

body.dark-mode .mobile-menu-accordion {
    background: #2D2D2D !important;
    color: #FFFFFF !important;
}

body.dark-mode .mobile-lang-list {
    background: #2D2D2D !important;
}

body.dark-mode .mobile-lang-item {
    background: #1E1E1E !important;
    color: #FFFFFF !important;
}

body.dark-mode .mobile-hours-list {
    background: #2D2D2D !important;
}

body.dark-mode .mobile-hours-item {
    background: #1E1E1E !important;
    color: #FFFFFF !important;
}

body.dark-mode .mobile-hours-item .hours-time {
    color: #4CAF50 !important;
}

body.dark-mode .search-modal-content {
    background: #1E1E1E !important;
}

body.dark-mode .search-input-wrap {
    border-bottom-color: #2D2D2D !important;
}

body.dark-mode .search-input-wrap input {
    background: transparent !important;
    color: #FFFFFF !important;
}

body.dark-mode .search-result-item {
    border-bottom-color: #2D2D2D !important;
}

body.dark-mode .search-result-item:hover {
    background: #2D2D2D !important;
}

body.dark-mode .search-result-info h4 {
    color: #FFFFFF !important;
}

body.dark-mode .search-no-results {
    color: #A0A0A0 !important;
}

body.dark-mode .daily-menu-card {
    background: #1E1E1E !important;
}

body.dark-mode .daily-menu-info h3 {
    color: #FFFFFF !important;
}

body.dark-mode .daily-menu-desc {
    color: #A0A0A0 !important;
}

body.dark-mode .daily-menu-placeholder {
    background: #2D2D2D !important;
}

body.dark-mode .lang-menu {
    background: #1E1E1E !important;
    border-color: #2D2D2D !important;
}

body.dark-mode .lang-option {
    color: #FFFFFF !important;
}

body.dark-mode .lang-option:hover {
    background: #2D2D2D !important;
}

body.dark-mode .lang-option.active {
    background: #2D2D2D !important;
}

body.dark-mode footer {
    background: #1E1E1E !important;
    border-top-color: #2D2D2D !important;
    color: #A0A0A0 !important;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #3D3D3D !important;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #1E1E1E !important;
}

body.dark-mode .favorites-toast {
    background: #2D2D2D !important;
}

body.dark-mode .category-nav-item,
body.dark-mode .categories-nav-item {
    color: #A0A0A0 !important;
}

body.dark-mode .category-nav-item:hover,
body.dark-mode .categories-nav-item:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #2D2D2D !important;
    border-color: #3D3D3D !important;
    color: #FFFFFF !important;
}

body.dark-mode .modal-favorite-btn {
    background: #2D2D2D !important;
    border-color: #3D3D3D !important;
    color: #A0A0A0 !important;
}

body.dark-mode .modal-favorite-btn:hover {
    background: #3D3D3D !important;
}

/* Product modal v2 dark mode */
body.dark-mode .product-modal-content-v2 {
    background: #1E1E1E !important;
    color: #FFFFFF !important;
}

body.dark-mode .modal-close-v2 {
    background: #2D2D2D !important;
    color: #FFFFFF !important;
}

body.dark-mode .modal-image-wrapper-v2 {
    background: #2D2D2D !important;
}

body.dark-mode .modal-name-v2 {
    color: #FFFFFF !important;
}

body.dark-mode .modal-description-v2 {
    color: #A0A0A0 !important;
}

body.dark-mode .modal-price-v2,
body.dark-mode .modal-price-v2 .current-price {
    color: #FFFFFF !important;
}

body.dark-mode .modal-price-v2 .price-label {
    color: #A0A0A0 !important;
}

body.dark-mode .modal-prep-time-v2 {
    color: #A0A0A0 !important;
}

body.dark-mode .modal-action-btn-v2 {
    background: #2D2D2D !important;
    border-color: #3D3D3D !important;
    color: #FFFFFF !important;
}

body.dark-mode .modal-add-cart-btn {
    background: var(--theme-primary, #0f766e) !important;
    color: #FFFFFF !important;
}

body.dark-mode .modal-footer-v2 {
    background: #1E1E1E !important;
    border-top-color: #2D2D2D !important;
}

body.dark-mode .modal-info-v2,
body.dark-mode .modal-detail-left {
    background: transparent !important;
}

body.dark-mode .modal-breadcrumb {
    color: #A0A0A0 !important;
}

body.dark-mode .modal-meta-item {
    color: #A0A0A0 !important;
}

body.dark-mode .modal-meta-icon {
    color: #FFFFFF !important;
}

body.dark-mode .modal-diet-flags {
    color: #A0A0A0 !important;
}

body.dark-mode .modal-modifiers {
    background: transparent !important;
}

body.dark-mode .modal-mod-group {
    background: transparent !important;
    border-color: transparent !important;
}

body.dark-mode .modal-mod-title,
body.dark-mode .cart-line-mod {
    color: #94a3b8 !important;
}

body.dark-mode .modal-mod-name {
    color: #e2e8f0 !important;
}

body.dark-mode .modal-mod-item:hover {
    background: rgba(148, 163, 184, 0.08) !important;
}

body.dark-mode .modal-related-title {
    color: #FFFFFF !important;
}

body.dark-mode .modal-related-list {
    background: transparent !important;
}

body.dark-mode .modal-tag-v2 {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

/* Cart drawer dark mode */
body.dark-mode .cart-drawer {
    background: var(--theme-surface, #1E1E1E) !important;
    border-color: var(--theme-border, #2D2D2D) !important;
    color: var(--theme-text, #FFFFFF) !important;
}

body.dark-mode .cart-drawer-header {
    background: var(--theme-surface, #1E1E1E) !important;
    border-bottom-color: var(--theme-border, #2D2D2D) !important;
    color: var(--theme-text, #FFFFFF) !important;
}

body.dark-mode .cart-drawer-body {
    background: var(--theme-surface, #1E1E1E) !important;
    color: var(--theme-text, #FFFFFF) !important;
}

body.dark-mode .cart-drawer-footer {
    background: var(--theme-surface, #1E1E1E) !important;
    border-top-color: var(--theme-border, #2D2D2D) !important;
}

body.dark-mode .cart-total-row {
    color: var(--theme-text, #FFFFFF) !important;
    border-top-color: var(--theme-border, #2D2D2D) !important;
}

body.dark-mode .cart-note {
    background: var(--theme-bg, #2D2D2D) !important;
    border-color: var(--theme-border, #3D3D3D) !important;
    color: var(--theme-text, #FFFFFF) !important;
}

body.dark-mode .cart-note::placeholder {
    color: var(--theme-text-muted, #A0A0A0) !important;
}

body.dark-mode .cart-submit {
    background: var(--theme-button-bg, var(--theme-primary, #0f766e)) !important;
    color: var(--theme-button-text, #FFFFFF) !important;
}

body.dark-mode .cart-drawer-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

body.dark-mode .cart-line-name {
    color: var(--theme-text, #FFFFFF) !important;
}

body.dark-mode .cart-line-price {
    color: var(--theme-text, #FFFFFF) !important;
}

body.dark-mode .cart-line-mod,
body.dark-mode .cart-line-info {
    color: var(--theme-text-muted, #A0A0A0) !important;
}

body.dark-mode .cart-line-qty button {
    background: var(--theme-bg, #2D2D2D) !important;
    border-color: var(--theme-border, #3D3D3D) !important;
    color: var(--theme-text, #FFFFFF) !important;
}

body.dark-mode .cart-line-qty .qty-value {
    color: var(--theme-text, #FFFFFF) !important;
}

/* Bottom navigation dark mode */
body.dark-mode .ops-bottom-nav {
    background: var(--theme-surface, #1E1E1E) !important;
    border-top-color: var(--theme-border, #2D2D2D) !important;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .ops-bottom-nav__icon {
    color: var(--theme-text, #FFFFFF) !important;
}

body.dark-mode .ops-bottom-nav__label {
    color: var(--theme-text-muted, #A0A0A0) !important;
}

body.dark-mode .ops-bottom-nav__item:active,
body.dark-mode .ops-bottom-nav__item.is-active {
    background: var(--theme-bg, #2D2D2D) !important;
}

body.dark-mode .ops-bottom-nav__item--cart .ops-bottom-nav__icon {
    color: var(--theme-primary, #0f766e) !important;
}

body.dark-mode .ops-bottom-nav__badge {
    background: var(--theme-primary, #0f766e) !important;
    color: #FFFFFF !important;
}

/* Banners and overlays dark mode */
body.dark-mode .table-session-banner {
    background: #064e3b !important;
    color: #d1fae5 !important;
    border-bottom-color: #059669 !important;
}

body.dark-mode .table-session-banner--warn {
    background: #7c2d12 !important;
    color: #ffedd5 !important;
    border-bottom-color: #c2410c !important;
}

body.dark-mode .table-session-banner--select {
    background: #1e3a8a !important;
    color: #dbeafe !important;
    border-bottom-color: #3b82f6 !important;
}

body.dark-mode .table-session-banner--select:hover,
body.dark-mode .table-session-banner--select:focus {
    background: #172554 !important;
}

body.dark-mode .menu-hours-banner.is-open {
    background: #064e3b !important;
    color: #d1fae5 !important;
    border-bottom-color: #059669 !important;
}

body.dark-mode .menu-hours-banner.is-closed {
    background: #7f1d1d !important;
    color: #fee2e2 !important;
    border-bottom-color: #dc2626 !important;
}

body.dark-mode .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .mobile-menu-section {
    border-bottom-color: #2D2D2D !important;
}

body.dark-mode .mobile-menu-item-badge {
    background: var(--theme-primary, #0f766e) !important;
    color: #FFFFFF !important;
}

body.dark-mode .mobile-menu-table__label {
    color: #A0A0A0 !important;
}

body.dark-mode .mobile-menu-table__name {
    color: #FFFFFF !important;
}

body,
.header,
.popular-section,
.product-list-item,
.modal-content,
.favorites-modal-content,
.mobile-menu,
.search-modal-content,
footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}


.product-modal-v2 {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-modal-content-v2 {
    background: var(--theme-surface, #FFFFFF);
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    position: relative;
    box-shadow: none;
    animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

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

.modal-close-v2 {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--theme-text, #2D3436);
    backdrop-filter: blur(10px);
}

.modal-close-v2:hover {
    background: var(--theme-surface, #FFFFFF);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.modal-image-wrapper-v2 {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 280px;
    max-height: 400px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.modal-image-v2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modal-image-overlay {
    display: none !important;
}

.modal-tags-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 6px;
    justify-content: flex-start;
}

.modal-tag-v2 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    animation: tagFadeIn 0.4s ease forwards;
    opacity: 0;
}

.modal-tag-v2 svg {
    width: 12px;
    height: 12px;
}

.modal-tag-v2:nth-child(1) {
    animation-delay: 0.1s;
}

.modal-tag-v2:nth-child(2) {
    animation-delay: 0.2s;
}

.modal-tag-v2:nth-child(3) {
    animation-delay: 0.3s;
}

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

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

.modal-tag-v2.discount-tag-v2 {
    background: var(--theme-discount, #ee5a5a);
    animation: discountPulse 2s infinite;
}

@keyframes discountPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(238, 90, 90, 0.4);
    }

    50% {
        box-shadow: 0 6px 25px rgba(238, 90, 90, 0.6);
    }
}

.modal-info-v2 {
    padding: 16px 20px calc(100px + env(safe-area-inset-bottom, 0px));
}

.modal-category-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--theme-primary, #0f766e);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    box-shadow: none;
}

.modal-category-badge-v2 svg {
    opacity: 0.9;
}

.modal-name-v2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--theme-text, #1a1a2e);
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.modal-prep-time-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-prep-time-v2 svg {
    color: #28a745;
}

.modal-description-v2 {
    font-size: 14px;
    color: var(--theme-text-muted, #636E72);
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.modal-allergens-v2 {
    background: #fff3cd;
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
}

.allergen-header-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #856404;
    margin-bottom: 6px;
}

.allergen-header-v2 svg {
    color: #d39e00;
}

.allergen-list-v2 {
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

.modal-footer-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f1f3f4;
    margin-top: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1002;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.modal-price-v2 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-price-v2 .price-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-price-v2 .price-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--theme-primary, #0f766e);
    letter-spacing: -1px;
}

.modal-actions-v2 {
    display: flex;
    gap: 10px;
}

.modal-action-btn-v2 {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.favorite-btn-v2 {
    background: #f1f5f9;
    color: var(--theme-text-muted, #636E72);
    border: 2px solid #e9ecef;
}

.favorite-btn-v2:hover {
    background: #ffe6e6;
    border-color: #ffb3b3;
    color: #e74c3c;
    transform: scale(1.08);
}

.favorite-btn-v2.active {
    background: #ffe6e6;
    border-color: #e74c3c;
    color: #e74c3c;
}

.favorite-btn-v2.active svg {
    fill: #e74c3c;
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.whatsapp-btn-v2 {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #25D366;
    border: 2px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn-v2:hover {
    transform: scale(1.08) translateY(-2px);
    background: rgba(37, 211, 102, 0.15);
    border-color: #25D366;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn-v2 svg {
    stroke: #25D366 !important;
    fill: #25D366 !important;
}

.call-btn-v2 {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--theme-primary, #0f766e);
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.call-btn-v2:hover {
    transform: scale(1.08) translateY(-2px);
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--theme-primary, #0f766e);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.call-btn-v2 svg {
    stroke: var(--theme-primary, #0f766e) !important;
}

body.dark-mode .whatsapp-btn-v2,
body.dark-mode .call-btn-v2 {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .whatsapp-btn-v2:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25D366;
}

body.dark-mode .call-btn-v2:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--theme-primary, #0f766e);
}

@media (max-width: 480px) {
    .product-modal-v2 {
        padding: 0;
        align-items: stretch;
    }

    .product-modal-content-v2 {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .modal-close-v2 {
        position: fixed;
        top: calc(12px + env(safe-area-inset-top, 0px));
        left: calc(12px + env(safe-area-inset-left, 0px));
        width: 42px;
        height: 42px;
    }

    .modal-image-wrapper-v2 {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
    }

    .modal-info-v2 {
        padding: 16px 20px 100px;
    }

    .modal-name-v2 {
        font-size: 22px;
    }

    .modal-description-v2 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .modal-price-v2 .price-value {
        font-size: 26px;
    }

    .modal-action-btn-v2 {
        width: 48px;
        height: 48px;
        border-radius: var(--radius-md);
    }
}

body.dark-mode .product-modal-content-v2 {
    background: #1E1E1E;
}

body.dark-mode .modal-close-v2 {
    background: rgba(45, 45, 45, 0.95);
    color: #FFFFFF;
}

body.dark-mode .modal-image-wrapper-v2 {
    background: linear-gradient(135deg, #2D2D2D 0%, #1E1E1E 100%);
}

body.dark-mode .modal-image-overlay {
    display: none !important;
}

body.dark-mode .modal-name-v2 {
    color: #FFFFFF;
}

body.dark-mode .modal-description-v2 {
    color: #A0A0A0;
}

body.dark-mode .modal-footer-v2 {
    border-top-color: #2D2D2D;
    background: rgba(30, 30, 30, 0.98);
}

body.dark-mode .modal-price-v2 .price-label {
    color: #666;
}

body.dark-mode .favorite-btn-v2 {
    background: linear-gradient(135deg, #2D2D2D 0%, #3D3D3D 100%);
    border-color: #3D3D3D;
    color: #A0A0A0;
}

body.dark-mode .favorite-btn-v2:hover {
    background: linear-gradient(135deg, #3D3D3D 0%, #4D4D4D 100%);
    border-color: #e74c3c;
    color: #e74c3c;
}

body.dark-mode .modal-allergens-v2 {
    background: linear-gradient(135deg, #3D3D3D 0%, #2D2D2D 100%);
}

body.dark-mode .allergen-header-v2,
body.dark-mode .allergen-list-v2 {
    color: #ffc107;
}

body.dark-mode .modal-prep-time-v2 {
    background: linear-gradient(135deg, #2D3D2D 0%, #1E2E1E 100%);
    color: #4CAF50;
}


.desktop-header-btns .dark-mode-header-btn {
    background: var(--theme-bg, #F8F9FA) !important;
    border: 1px solid var(--theme-border, #EFEFEF) !important;
    box-shadow: none !important;
}

.desktop-header-btns .dark-mode-header-btn:hover {
    background: var(--theme-border, #EFEFEF) !important;
    transform: scale(1.05) !important;
}

.desktop-header-btns .dark-mode-header-btn svg {
    stroke: var(--theme-text, #2D3436) !important;
}

.desktop-header-btns .favorites-header-btn {
    background: var(--theme-bg, #F8F9FA) !important;
    border: 1px solid var(--theme-border, #EFEFEF) !important;
    box-shadow: none !important;
}

.desktop-header-btns .favorites-header-btn:hover {
    background: var(--theme-border, #EFEFEF) !important;
    transform: scale(1.05) !important;
}

.desktop-header-btns .favorites-header-btn svg {
    stroke: var(--theme-text, #2D3436) !important;
    fill: none !important;
}

.desktop-header-btns .lang-btn {
    background: var(--theme-bg, #F8F9FA) !important;
    border: 1px solid var(--theme-border, #EFEFEF) !important;
    color: var(--theme-text, #2D3436) !important;
    box-shadow: none !important;
}

.desktop-header-btns .lang-btn:hover {
    background: var(--theme-border, #EFEFEF) !important;
    transform: scale(1.05) !important;
}

.desktop-header-btns .lang-btn .lang-arrow {
    color: var(--theme-text-muted, #636E72) !important;
}

body.dark-mode .desktop-header-btns .dark-mode-header-btn {
    background: #2D2D2D !important;
    border-color: #3D3D3D !important;
}

body.dark-mode .desktop-header-btns .dark-mode-header-btn svg {
    stroke: #ffc107 !important;
}

body.dark-mode .desktop-header-btns .favorites-header-btn {
    background: #2D2D2D !important;
    border-color: #3D3D3D !important;
}

body.dark-mode .desktop-header-btns .favorites-header-btn svg {
    stroke: #FFFFFF !important;
}

body.dark-mode .desktop-header-btns .lang-btn {
    background: #2D2D2D !important;
    border-color: #3D3D3D !important;
    color: #FFFFFF !important;
}

body.dark-mode .desktop-header-btns .lang-btn .lang-arrow {
    color: #A0A0A0 !important;
}

.mobile-menu-item-icon.darkmode-icon {
    background: linear-gradient(145deg, var(--theme-primary, #0f766e), var(--theme-secondary, #0a5c56)) !important;
}

.mobile-menu-item-icon.darkmode-icon svg {
    stroke: white !important;
    fill: white !important;
}

body.dark-mode .mobile-menu-item-icon.darkmode-icon {
    background: linear-gradient(145deg, var(--theme-primary, #0f766e), var(--theme-secondary, #0a5c56)) !important;
}

body.dark-mode .mobile-menu-item-icon.darkmode-icon svg {
    stroke: white !important;
    fill: white !important;
}

/* ===== Category hero + list (reference layout) ===== */
.category-hero {
    position: relative;
    min-height: 200px;
    padding: 72px 20px 56px;
    background-color: #2c3e50;
    background-image: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.18) 100%);
    background-size: cover;
    background-position: center;
    color: #fff !important;
}
.category-hero.has-image {
    min-height: 240px;
    background-image:
        linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.18) 100%),
        var(--cat-hero);
}
.category-hero-back {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.2);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2;
}
.category-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding-top: 8px;
}
.category-hero-title {
    margin: 0 0 8px;
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff !important;
}
.category-hero-desc {
    margin: 0 auto 14px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255,255,255,.9) !important;
    max-width: 36em;
}
.category-hero-count {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: 600;
    color: #fff !important;
}
.products-list-section.category-sheet {
    margin-top: -22px;
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--theme-surface, #FFFFFF);
}
.category-sheet .container {
    background: var(--theme-surface, #FFFFFF);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-top: 8px;
    padding-bottom: 28px;
    max-width: 100%;
    width: 100%;
    flex: 1 1 auto;
    margin: 0;
    box-sizing: border-box;
}
.category-sheet .products-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}
.category-sheet .product-list-item {
    display: flex;
    gap: 14px;
    padding: 16px 4px;
    border-bottom: 1px solid #eef0f3;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
    align-items: flex-start;
    border-left: none !important;
}
.category-sheet .product-list-item::before {
    display: none !important;
}
.category-sheet .product-list-item:last-child { border-bottom: none; }
.category-sheet .product-list-item:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #eef0f3 !important;
    background: #fafbfc !important;
}
.category-sheet .product-list-image {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-md) !important;
    flex-shrink: 0;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: none;
}
.category-sheet .product-list-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-sheet .product-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-list-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.category-sheet .product-list-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}
.product-list-price-wrap { text-align: right; flex-shrink: 0; }
.product-list-price-wrap .old-price {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
}
.category-sheet .product-list-price {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}
.product-list-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
.pl-badge--popular { background: var(--theme-tag-popular, #0f766e); color: #fff; }
.pl-badge--chef { background: var(--theme-tag-chef, #2F5D50); color: #fff; }
.pl-badge--new { background: var(--theme-tag-new, #4ab14e); color: #fff; }
.category-sheet .product-list-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-list-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.pl-kcal {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}
.pl-diet {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.pl-diet--ok {
    background: var(--theme-diet-ok, #047857) !important;
    color: #ffffff !important;
}
.pl-diet--warn {
    background: var(--theme-diet-warn, #b45309) !important;
    color: #ffffff !important;
}
.pl-diet--spicy {
    background: var(--theme-diet-spicy, #b91c1c) !important;
    color: #ffffff !important;
}
.modal-diet-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.modal-diet-chip {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.modal-diet-chip--ok {
    background: var(--theme-diet-ok, #047857) !important;
    color: #ffffff !important;
}
.modal-diet-chip--warn {
    background: var(--theme-diet-warn, #b45309) !important;
    color: #ffffff !important;
}
.modal-diet-chip--spicy {
    background: var(--theme-diet-spicy, #b91c1c) !important;
    color: #ffffff !important;
}
.pl-allergens { display: flex; gap: 4px; }
.pl-allergen {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}
.modal-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.modal-detail-left { min-width: 0; flex: 1; }
.modal-breadcrumb {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
}
.modal-name-v2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
    color: #1e293b !important;
}
.modal-price-pill {
    flex-shrink: 0;
    background: var(--theme-price, #2F5D50);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.modal-price-pill .old-price {
    opacity: .7;
    line-height: 1.55 !important;
    margin: 0 0 14px !important;
}
.modal-meta-row {
    display: flex;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 14px;
}
.modal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}
.modal-meta-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #64748b;
}
.modal-allergens-v2 { margin-bottom: 16px; }
.allergen-header-v2 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}
.allergen-list-v2 { display: flex; flex-wrap: wrap; gap: 6px; }
.allergen-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid;
    font-size: 12px;
    font-weight: 600;
}
.modal-related { margin: 8px 0 16px; }
.modal-related-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.modal-related-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.modal-related-card {
    flex: 0 0 120px;
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.modal-related-card img,
.modal-related-ph {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: #f1f5f9;
    display: block;
    margin-bottom: 6px;
}
.modal-related-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}
.modal-related-price {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #2F5D50;
}
.modal-footer-v2 { border-top: none !important; padding-top: 0 !important; }
.modal-footer-v2 .modal-price-v2 { display: none; }
@media (max-width: 480px) {
    .category-hero-title { font-size: 24px; }
    .category-sheet .product-list-image { width: 76px; height: 76px; }
}



/* ---------------------------------------------------------------------------
   "Öne çıkanlar" bölümü — şablon/CSS sınıf adı uyuşmazlığı düzeltmesi.

   view.php şu adları kullanıyor:  popular-scroll · popular-card-image ·
   popular-card-placeholder · popular-card-body · popular-card-name · popular-star
   CSS ise eski adlarda kalmıştı:  popular-slider · popular-image-wrapper ·
   popular-image-placeholder · popular-info · popular-name  (popular-star hiç yoktu)

   Sonuç: bölüm hiç stil almıyordu — yuvarlak avatar tasarımı yerine çerçevesiz
   düz metin çıkıyor, "Öne çıkan" başlıkla aynı cümleye yapışıyordu.
   Aşağıdaki kurallar yeni adları mevcut tasarıma bağlar (takma ad).
   --------------------------------------------------------------------------- */
.popular-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding: 10px 0 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.popular-scroll::-webkit-scrollbar { display: none; }

section.popular-section .popular-scroll {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 18px !important;
    padding: 10px 5px 15px 5px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Yuvarlak avatar + degrade halka (popular-image-wrapper ile aynı) */
body section.popular-section .popular-card-image {
    width: 72px !important;
    height: 72px !important;
    padding: 3px !important;
    position: relative !important;
    overflow: visible !important;
    border-radius: 50% !important;
    background: linear-gradient(45deg, var(--theme-primary, #0f766e) 0%, var(--theme-secondary, #0a5c56) 100%) !important;
}
body section.popular-section .popular-card-image::before {
    content: '' !important;
    position: absolute !important;
    top: 3px !important; left: 3px !important; right: 3px !important; bottom: 3px !important;
    background: #fff !important;
    border-radius: 50% !important;
    z-index: 1 !important;
}
body section.popular-section .popular-card-image img {
    position: absolute !important;
    top: 5px !important; left: 5px !important;
    width: calc(100% - 10px) !important;
    height: calc(100% - 10px) !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    z-index: 2 !important;
}
body section.popular-section .popular-card-placeholder {
    position: absolute !important;
    top: 5px !important; left: 5px !important;
    width: calc(100% - 10px) !important;
    height: calc(100% - 10px) !important;
    background: linear-gradient(135deg, var(--theme-primary, #0f766e) 0%, var(--theme-secondary, #0a5c56) 100%) !important;
    border-radius: 50% !important;
    z-index: 2 !important;
}
section.popular-section .popular-card-body {
    padding: 8px 0 0 0 !important;
    text-align: center !important;
    width: 100% !important;
}
section.popular-section .popular-card-name {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--theme-text, #2D3436) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 80px !important;
}

/* "Öne çıkan" başlığa yapışmasın — üstte küçük etiket */
.popular-star {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--theme-primary, #0f766e);
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    body section.popular-section .popular-card-image { width: 66px !important; height: 66px !important; }
    section.popular-section .popular-card-name { font-size: 11px !important; max-width: 72px !important; }
    section.popular-section .popular-scroll { gap: 14px !important; }
}
