:root {
    --bg-primary: #0f0e0d;
    --bg-secondary: #1a1815;
    --bg-card: #1e1c1a;
    --bg-card-hover: #252220;
    --accent: #c8955c;
    --accent-light: #e5b07c;
    --accent-dark: #a07040;
    --text-primary: #f0ebe4;
    --text-secondary: #a09585;
    --text-muted: #6b6055;
    --border: #2a2520;
    --border-light: #352f28;
    --cat-active-bg: #c8955c;
    --cat-inactive-bg: #1e1c1a;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 20px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 80% at 50% 120%, rgba(200, 149, 92, 0.25) 0%, transparent 70%),
        linear-gradient(160deg, #1a0f05 0%, #0f0e0d 50%, #12090e 100%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8955c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px 10px;
}

.logo-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(200, 149, 92, 0.10);
    border: 2px solid rgba(200, 149, 92, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    backdrop-filter: blur(10px);
}

.logo {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.logo-icon {
    font-size: 40px;
    line-height: 1;
}

.brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 8vw, 42px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(200, 149, 92, 0.3);
}

.brand-tagline {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 6px;
    font-weight: 500;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

/* ===== CATEGORY NAV ===== */
.cat-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cat-nav-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

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

.cat-btn {
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    background: var(--cat-inactive-bg);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    scroll-snap-align: start;
    white-space: nowrap;
}

.cat-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cat-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(200, 149, 92, 0.35);
}

/* ===== SEARCH ===== */
.search-wrap {
    padding: 16px 16px 0;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

#searchInput {
    width: 100%;
    padding: 12px 44px 12px 42px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    /* 16px altı iOS'ta otomatik zoom yapar */
    outline: none;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

#searchInput::placeholder {
    color: var(--text-muted);
}

#searchInput:focus {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px rgba(200, 149, 92, 0.15);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-clear:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* ===== MENU MAIN ===== */
.menu-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* ===== SECTION ===== */
.menu-section {
    margin-bottom: 32px;
    scroll-margin-top: 72px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section-emoji {
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(200, 149, 92, 0.12);
    border: 1px solid rgba(200, 149, 92, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.section-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* ===== MENU GRID ===== */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 540px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 800px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== MENU ITEM CARD ===== */
.menu-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: default;
}

.menu-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

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

.item-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.1px;
    line-height: 1.4;
}

.item-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.4;
}

.item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    letter-spacing: -0.3px;
    flex-shrink: 0;
    padding-top: 1px;
}

/* ===== EXTRA SMALL CARD (for sauces/syrups) ===== */
.menu-item.extra-item {
    padding: 10px 14px;
}

.menu-item.extra-item .item-name {
    font-size: 12.5px;
}

/* ===== SEARCH NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results-emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

.no-results-text {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 32px 20px;
    text-align: center;
}

.footer-logo {
    font-size: 36px;
    margin-bottom: 8px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 4px 0 16px;
}

.footer-note {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    width: 80%;
    max-width: 250px;
}

.footer-social a:hover,
.footer-social a:active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(200, 149, 92, 0.1);
}

.footer-social svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(200, 149, 92, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    z-index: 200;
}

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

.scroll-top:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* ===== HIDDEN SECTION DURING SEARCH ===== */
.menu-section.hidden {
    display: none;
}

/* ===== HIGHLIGHT MATCH ===== */
.highlight {
    background: rgba(200, 149, 92, 0.25);
    border-radius: 3px;
    padding: 0 2px;
}