/* =============================================
   VUDOLIX QR MENU
   ============================================= */

:root {
    --bg: #111111;
    --bg-nav: #1a1a1a;
    --bg-card: #1c1c1c;
    --bg-card-hover: #242424;
    --border: rgba(255, 255, 255, 0.08);
    --border-active: #c9a96e;
    --text: #e0e0e0;
    --text-white: #ffffff;
    --text-dim: #888888;
    --text-muted: #666666;
    --gold: #c9a96e;
    --gold-dim: rgba(201, 169, 110, 0.12);
    --red: #e74c3c;
    --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: var(--font);
    cursor: pointer;
}

img {
    display: block;
}

/* =============================================
   TOP NAVBAR
   ============================================= */
.top-nav {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 52px;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 0;
    user-select: none;
}

.logo-script {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 22px;
    font-weight: 400;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.logo-dot {
    color: var(--red);
    font-size: 22px;
    font-weight: 700;
    margin: 0 1px;
}

.logo-et {
    color: var(--red);
}

.nav-right {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.nav-lang:hover {
    color: var(--text);
}

.nav-login {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s;
}

.nav-login:hover {
    color: var(--text);
}

.nav-wifi {
    background: none;
    border: none;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: color 0.2s;
    position: relative;
}

.nav-wifi:hover {
    color: var(--gold);
}

.nav-wifi:active {
    transform: scale(0.95);
}

.nav-hamburger {
    background: none;
    border: none;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: color 0.2s;
}

.nav-hamburger:hover {
    color: var(--text);
}

/* =============================================
   RESTAURANT INFO
   ============================================= */
.restaurant-info {
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--border);
}

.info-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.info-left {
    flex: 1;
    min-width: 0;
}

.restaurant-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.menu-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    cursor: pointer;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.menu-selector:hover {
    color: var(--gold);
}

.menu-selector-text {}

.menu-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 820px;
}

.info-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.info-logo {
    display: flex;
    align-items: baseline;
}

.logo-script-lg {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 42px;
    font-weight: 400;
    color: var(--text-white);
}

.logo-dot-lg {
    color: var(--red);
    font-size: 42px;
    font-weight: 700;
    margin: 0 2px;
}

.logo-et-lg {
    color: var(--red);
}

.give-feedback {
    font-size: 13px;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s;
}

.give-feedback:hover {
    color: var(--gold);
}

/* =============================================
   CATEGORY TABS
   ============================================= */
.category-tabs-section {
    position: sticky;
    top: 52px;
    z-index: 90;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.tabs-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.tabs-scroll::-webkit-scrollbar {
    display: none;
}

.cat-tab {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cat-tab:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.cat-tab.active {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold);
}

.tabs-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tab-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-action-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

/* =============================================
   MENU CONTENT
   ============================================= */
.menu-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
}

/* Section */
.menu-section {
    padding: 24px 0 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Items Grid - 3 columns */
.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Item Card */
.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    min-height: 120px;
}

.item-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

.item-card-info {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.item-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 2px;
}

.item-card-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.item-card-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    margin-top: 4px;
}

.item-card-allergens {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.allergen-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    cursor: help;
}

.ingredient-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--gold);
    background: var(--gold-dim);
    cursor: help;
}

.item-card-ingredients {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.item-card-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.item-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-card:hover .item-card-image img {
    transform: scale(1.05);
}

.item-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border);
    border-radius: 8px;
}

.item-card-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* No image state */
.item-card.no-img .item-card-image {
    display: none;
}

.item-card.no-img .item-card-info {
    padding-right: 20px;
}

/* =============================================
   ITEM DETAIL PANEL (top overlay)
   ============================================= */
.item-detail-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
}

.item-detail-panel.hidden {
    display: none;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    animation: fadeIn 0.25s ease;
}

.detail-container {
    position: relative;
    max-width: 1200px;
    margin: 52px auto 0;
    background: var(--bg-nav);
    border: 1px solid var(--border);
    animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.detail-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.detail-inner {
    display: flex;
    gap: 0;
}

.detail-image-col {
    width: 45%;
    max-width: 480px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.detail-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
    max-height: 400px;
}

.detail-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border);
}

.detail-image-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    opacity: 0.5;
}

.detail-image-col.no-img {
    display: none;
}

.detail-info-col {
    flex: 1;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.detail-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    white-space: pre-line;
}

.detail-allergens {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.detail-icon-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    min-width: 60px;
}

.detail-icon-item i {
    font-size: 18px;
    color: var(--gold);
}

.detail-icon-item span {
    font-size: 10px;
    color: var(--text-dim);
    text-align: center;
}

.detail-prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.detail-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-price-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}

.detail-price-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}

/* =============================================
   MENU SELECTOR MODAL
   ============================================= */
.menu-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-modal.hidden {
    display: none;
}

.menu-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.2s ease;
}

.menu-modal-content {
    position: relative;
    background: var(--bg-nav);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.menu-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.menu-modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.menu-modal-close:hover {
    color: var(--text);
}

.menu-modal-list {
    padding: 8px 0;
}

.menu-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.menu-modal-item:last-child {
    border-bottom: none;
}

.menu-modal-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.menu-modal-item.active {
    color: var(--gold);
}

/* =============================================
   LANGUAGE DROPDOWN
   ============================================= */
.lang-dropdown {
    position: fixed;
    top: 44px;
    right: 120px;
    z-index: 150;
    background: var(--bg-nav);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    min-width: 140px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.15s ease;
}

.lang-dropdown.hidden {
    display: none;
}

.lang-dd-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.lang-dd-item:last-child {
    border-bottom: none;
}

.lang-dd-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-powered {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-link {
    color: var(--red);
    font-weight: 700;
}

.footer-link:hover {
    text-decoration: underline;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    to {
        transform: translateX(-50%) translateY(-30px);
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card {
    animation: fadeInUp 0.35s ease backwards;
}

.items-grid .item-card:nth-child(1) {
    animation-delay: 0.02s;
}

.items-grid .item-card:nth-child(2) {
    animation-delay: 0.04s;
}

.items-grid .item-card:nth-child(3) {
    animation-delay: 0.06s;
}

.items-grid .item-card:nth-child(4) {
    animation-delay: 0.08s;
}

.items-grid .item-card:nth-child(5) {
    animation-delay: 0.10s;
}

.items-grid .item-card:nth-child(6) {
    animation-delay: 0.12s;
}

.items-grid .item-card:nth-child(7) {
    animation-delay: 0.14s;
}

.items-grid .item-card:nth-child(8) {
    animation-delay: 0.16s;
}

.items-grid .item-card:nth-child(9) {
    animation-delay: 0.18s;
}

/* =============================================
   RESPONSIVE - TABLET
   ============================================= */
@media (max-width: 900px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-right {
        display: none;
    }

    .detail-image-col {
        width: 40%;
    }
}

/* =============================================
   RESPONSIVE - MOBILE
   ============================================= */
@media (max-width: 600px) {
    .items-grid {
        grid-template-columns: 1fr;
    }

    .nav-login {
        display: none;
    }

    .restaurant-name {
        font-size: 18px;
    }

    .info-inner {
        padding: 0 16px;
    }

    .tabs-inner {
        padding: 0 16px;
    }

    .menu-content {
        padding: 0 16px;
    }

    .item-card-image {
        width: 120px;
        height: 120px;
    }

    .detail-inner {
        flex-direction: column;
    }

    .detail-image-col {
        width: 100%;
    }

    .detail-image-col img {
        max-height: 250px;
    }

    .detail-info-col {
        padding: 20px;
    }

    .detail-container {
        margin: 0;
        min-height: 100vh;
    }

    .tabs-actions {
        gap: 4px;
    }

    .tab-action-btn {
        width: 32px;
        height: 32px;
    }

    .lang-dropdown {
        right: 16px;
    }
}

/* =============================================
   PRODUCT CARD META & EXTRAS
   ============================================= */
.item-card-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.item-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-card-meta i {
    font-size: 10px;
    color: var(--gold);
}

/* Square images on product cards */
.item-card-image {
    aspect-ratio: 1;
    width: 120px;
    height: 120px;
}

.item-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail panel video */
.detail-image-col video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
    max-height: 400px;
}

/* Detail meta row */
.detail-meta-row {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dim);
}

.detail-meta i {
    color: var(--gold);
}

/* Variants in detail */
.detail-variants {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.variant-group {
    margin-bottom: 8px;
}

.variant-group-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.variant-item {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px 4px 2px 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text);
}

.variant-item small {
    color: var(--gold);
}

/* =============================================
   SEARCH OVERLAY
   ============================================= */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
}

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.search-overlay-content {
    position: relative;
    max-width: 600px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.search-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--text-white);
    outline: none;
}

.search-input:focus {
    border-color: var(--gold);
}

.search-close {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: var(--text);
    cursor: pointer;
}

.search-results {
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--bg-card-hover);
}

.search-result-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-white);
}

.search-result-cat {
    font-size: 12px;
    color: var(--text-dim);
}

.search-no-results {
    text-align: center;
    color: var(--text-dim);
    padding: 40px 20px;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    position: fixed;
    inset: 0;
    z-index: 300;
}

.sidebar-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.sidebar-content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 85%;
    background: var(--bg-nav);
    animation: slideInLeft 0.3s ease;
}

.sidebar-content.sidebar-right {
    left: auto;
    right: 0;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.sidebar-categories {
    padding: 12px 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.sidebar-cat-item {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sidebar-cat-item:hover, .sidebar-cat-item.active {
    background: var(--gold-dim);
    color: var(--gold);
}

/* =============================================
   FILTER PANEL
   ============================================= */
.filter-panel {
    position: fixed;
    inset: 0;
    z-index: 300;
}

.filter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.filter-content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 85%;
    background: var(--bg-nav);
    animation: slideInRight 0.3s ease;
    padding: 20px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.filter-close {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.filter-options::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

.filter-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.filter-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.filter-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.filter-ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}

.filter-ingredient-item {
    cursor: pointer;
    display: block;
}

.filter-ing-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-ing-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.02);
}

.filter-ing-box i {
    color: var(--text-dim);
    font-size: 14px;
    flex-shrink: 0;
}

.filter-ing-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
}

.filter-ing-check:checked + .filter-ing-box {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold);
}

.filter-ing-check:checked + .filter-ing-box i {
    color: var(--gold);
}

.btn-filter-apply {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-filter-clear {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}

/* =============================================
   UTILITY
   ============================================= */
.hidden {
    display: none !important;
}