:root {
    --bg-primary: #1a1614;
    --bg-card: #241f1c;
    --bg-card-hover: #2e2824;
    --accent-amber: #d4a04a;
    --accent-amber-dim: #b8872e;
    --text-primary: #f0e6d6;
    --text-secondary: #a89a8a;
    --text-english: #8a7e70;
    --border-subtle: #3a322c;
    --price-color: #d4a04a;
    --category-bg: #2a2320;
    --nav-bg: rgba(26, 22, 20, 0.95);
    --shadow: 0 2px 16px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
    font-family: 'Noto Sans Georgian', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 48px 20px 32px;
    background: linear-gradient(180deg, #2a2118 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-logo-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
}

.hero-logo-wrap::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 160, 74, 0.35) 0%, rgba(212, 160, 74, 0) 70%);
    z-index: -1;
    animation: glow-pulse 3.2s ease-in-out infinite;
}

.hero-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif Georgian', serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--bg-primary);
    letter-spacing: -1px;
    overflow: hidden;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero h1 {
    font-family: 'Noto Serif Georgian', serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo-wrap { animation: fade-in-up 0.6s ease both; }
.hero h1 { animation: fade-in-up 0.6s ease 0.1s both; }
.hero-title-en { animation: fade-in-up 0.6s ease 0.18s both; }
.hero-subtitle { animation: fade-in-up 0.6s ease 0.24s both; }
.hero-meta { animation: fade-in-up 0.6s ease 0.3s both; }

.hero-title-en {
    display: block;
    font-family: 'Noto Sans Georgian', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-amber);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-meta span,
.hero-meta a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-meta a:hover {
    color: var(--accent-amber);
}

/* ── Category Nav ── */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0;
    transition: box-shadow 0.3s ease;
}

.category-nav.scrolled {
    box-shadow: var(--shadow);
}

/* ── Search Bar ── */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.search-icon {
    font-size: 14px;
    opacity: 0.7;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder { color: var(--text-secondary); }

.search-input:focus {
    border-color: var(--accent-amber);
    box-shadow: 0 0 0 3px rgba(212, 160, 74, 0.15);
}

.category-nav-inner {
    position: relative;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 12px;
    max-width: 900px;
    margin: 0 auto;
}

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

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent-amber);
    border-radius: 2px;
    transform: translateX(0);
    transition: transform 0.3s ease, width 0.3s ease;
    pointer-events: none;
}

.category-nav a {
    position: relative;
    flex-shrink: 0;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.category-nav a:hover,
.category-nav a.active {
    color: var(--accent-amber);
}

/* ── Menu Content ── */
.menu-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px 100px;
}

/* ── Category Section ── */
.category-section {
    padding-top: 24px;
}

.category-section.hidden-section { display: none; }

.section-label {
    font-size: 13px;
    color: var(--accent-amber);
    font-weight: 600;
    padding: 12px 0 4px;
    letter-spacing: 1px;
}

.section-label-spaced { padding-top: 16px; }

.category-header {
    padding: 20px 0 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}

.category-title {
    font-family: 'Noto Serif Georgian', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 2px;
}

.category-title-en {
    font-size: 12px;
    color: var(--text-english);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Menu Item ── */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 -10px;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(58, 50, 44, 0.5);
    border-radius: 10px;
    gap: 12px;
    transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.5s ease, box-shadow 0.2s ease;
}

.menu-item:last-child { border-bottom: none; }

.menu-item:hover,
.menu-item:active {
    background: var(--bg-card-hover);
}

.menu-item.reveal-init {
    opacity: 0;
    transform: translateY(14px);
}

.menu-item.reveal-init.revealed {
    opacity: 1;
    transform: translateY(0);
}

.menu-item.hidden-item { display: none; }

.item-info { flex: 1; }

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.item-name-en {
    font-size: 12px;
    color: var(--text-english);
    margin-top: 1px;
    line-height: 1.3;
}

.item-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--price-color);
    white-space: nowrap;
    padding-top: 2px;
}

.item-price .lari {
    font-size: 13px;
    font-weight: 400;
}

/* ── Special/Featured Item ── */
.menu-item.featured {
    background: linear-gradient(135deg, var(--bg-card) 0%, #2a2118 100%);
    border: 1px solid rgba(212, 160, 74, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
    box-shadow: 0 4px 20px rgba(212, 160, 74, 0.08);
}

.menu-item.featured:hover {
    border-color: rgba(212, 160, 74, 0.55);
    box-shadow: 0 6px 28px rgba(212, 160, 74, 0.16);
}

.featured-badge {
    display: inline-block;
    background: var(--accent-amber);
    color: var(--bg-primary);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    animation: badge-shimmer 2.4s ease-in-out infinite;
}

@keyframes badge-shimmer {
    0%, 100% { box-shadow: 0 0 0 rgba(212, 160, 74, 0); }
    50% { box-shadow: 0 0 10px rgba(212, 160, 74, 0.6); }
}

/* ── Volume Badge ── */
.volume {
    display: inline-block;
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(212, 160, 74, 0.1);
    border: 1px solid rgba(212, 160, 74, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 400;
}

/* ── Footer ── */
.footer {
    text-align: center;
    padding: 32px 20px;
    border-top: 1px solid var(--border-subtle);
    max-width: 600px;
    margin: 0 auto;
}

.footer-name {
    font-family: 'Noto Serif Georgian', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 8px;
}

.footer p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer a {
    color: var(--accent-amber-dim);
    text-decoration: none;
}

/* ── No Results ── */
.no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.no-results.visible { display: block; }

/* ── Back to Top ── */
.to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-amber);
    color: var(--bg-primary);
    border: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
    z-index: 90;
}

.to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.to-top:hover { background: var(--accent-amber-dim); }
.to-top:active { transform: scale(0.92); }

/* ── Responsive ── */
@media (min-width: 768px) {
    .hero h1 { font-size: 44px; }
    .hero-title-en { font-size: 13px; }
    .menu-content { padding: 0 24px 100px; }
    .category-title { font-size: 26px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .hero-logo-wrap,
    .hero-logo-wrap::after,
    .hero h1,
    .hero-title-en,
    .hero-subtitle,
    .hero-meta,
    .featured-badge {
        animation: none;
    }

    .menu-item.reveal-init {
        opacity: 1;
        transform: none;
    }

    .menu-item,
    .to-top,
    .category-nav a,
    .nav-indicator,
    .search-input {
        transition: none;
    }
}
