/* Modern QR Menü Stili */
:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: rgba(15, 23, 42, 0.7);
    --border: rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 6px 20px rgba(2, 6, 23, 0.06);
    --shadow-md: 0 14px 40px rgba(2, 6, 23, 0.12);
    --brand-1: #667eea;
    --brand-2: #764ba2;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.menu-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.14);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    text-decoration: none;
    color: #fff;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.back-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.26);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    color: #fff;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.menu-content {
    padding: 26px 14px 30px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.page-title {
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.page-description {
    color: var(--muted);
    font-size: 0.98rem;
    margin-bottom: 18px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 14px;
}

.category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
    min-height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.35);
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.25s ease;
}

.category-card:hover .category-image {
    transform: scale(1.08);
}

.category-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    font-size: 3.2rem;
}

.category-body {
    padding: 16px 16px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-name {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.category-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    flex: 1;
}

.category-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.12);
    color: #3b5adb;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.35);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.product-card:hover .product-image {
    transform: scale(1.06);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.35);
    font-size: 3rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 23, 42, 0.08) 100%);
}

.product-body {
    padding: 14px 14px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name {
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
}

.product-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.product-price {
    color: #3b5adb;
    font-size: 1.35rem;
    font-weight: 900;
}

.empty-state {
    text-align: center;
    padding: 50px 18px;
    color: rgba(15, 23, 42, 0.45);
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.6;
    margin-bottom: 10px;
}

.menu-footer {
    background: rgba(15, 23, 42, 0.98);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -8px 20px rgba(2, 6, 23, 0.06);
}

.menu-footer p {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .menu-content {
        padding: 18px 12px 24px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .category-image-wrapper {
        height: 180px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .product-image-wrapper {
        height: 150px;
    }

    .brand-title {
        font-size: 1.06rem;
    }
}

@media (max-width: 480px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-image-wrapper {
        height: 190px;
    }

    .product-image-wrapper {
        height: 165px;
    }

    .back-button span {
        display: none;
    }

    .back-button {
        padding: 10px;
        justify-content: center;
    }
}

