@layer reset, base, theme, components, utilities;

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

    html {
        -webkit-text-size-adjust: 100%;
        -moz-tab-size: 4;
        tab-size: 4;
    }

    body {
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
    }

    img, picture, video, canvas, svg {
        display: block;
        max-width: 100%;
        height: auto;
    }

    button, input, select, textarea {
        font: inherit;
        background: transparent;
        border: none;
        color: inherit;
    }

    button {
        cursor: pointer;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    ul, ol {
        list-style: none;
    }
}

@layer base {
    :root {
        color-scheme: light dark;
        
        /* Typography */
        --font-serif: 'Cormorant Garamond', Georgia, serif;
        --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
        
        /* Layout Spaces */
        --space-xs: 0.5rem;
        --space-sm: 0.75rem;
        --space-md: 1.25rem;
        --space-lg: 2rem;
        --space-xl: 3.5rem;
        
        /* Borders */
        --border-width: 1px;
        --border-radius-sm: 12px;
        --border-radius-md: 18px;
        --border-radius-lg: 28px;
        --border-radius-xl: 38px;
        --border-radius-full: 9999px;
        
        /* Transitions */
        --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
        --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        
        /* Safe Area Padding */
        --safe-top: env(safe-area-inset-top, 0px);
        --safe-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 100px;
    }

    body {
        font-family: var(--font-sans);
        background-color: var(--bg-color);
        color: var(--text-color);
        min-height: 100vh;
        overflow-x: hidden;
        transition: background-color var(--transition-normal), color var(--transition-normal);
    }
    
    /* Custom Scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--bg-color);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--border-strong);
        border-radius: var(--border-radius-full);
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }
}

@layer theme {
    :root {
        /* Premium Terracotta & Warm Gold/Brass Color Palette */
        --bg-color: light-dark(#FAF8F5, #12100E);
        --bg-surface: light-dark(#FFFFFF, #1A1715);
        --bg-surface-hover: light-dark(#F5EFE6, #24201D);
        --text-color: light-dark(#211A15, #F5EFEA);
        --text-muted: light-dark(#6A5E53, #A5978B);
        --text-inverse: light-dark(#FFFFFF, #12100E);
        
        --primary: light-dark(#B94A32, #D96048);
        --primary-dark: light-dark(#893221, #F08E7A);
        --primary-soft: light-dark(#FAF0ED, #241412);
        
        --accent: light-dark(#C0945C, #E2B67C);
        --accent-dark: light-dark(#926D3B, #F3D4A8);
        --accent-soft: light-dark(#F9F5EE, #241D14);
        
        --border-color: light-dark(rgba(185, 74, 50, 0.08), rgba(217, 96, 72, 0.12));
        --border-strong: light-dark(rgba(185, 74, 50, 0.18), rgba(217, 96, 72, 0.24));
        
        --shadow-sm: 0 4px 12px rgba(33, 26, 21, 0.03);
        --shadow-md: 0 12px 32px rgba(33, 26, 21, 0.06);
        --shadow-lg: 0 24px 50px rgba(33, 26, 21, 0.12);
        
        --glass-bg: light-dark(rgba(250, 248, 245, 0.85), rgba(18, 16, 14, 0.85));
        --glass-border: light-dark(rgba(185, 74, 50, 0.08), rgba(217, 96, 72, 0.12));
    }
}

@layer components {
    /* Main Layout */
    .page {
        max-width: 1200px;
        margin: 0 auto;
        padding: calc(var(--space-md) + var(--safe-top)) var(--space-md) calc(var(--space-xl) + var(--safe-bottom));
    }
    
    /* -------------------------------------------------------------
       1. DİL SEÇİM PORTALI (Language Selection Page)
       ------------------------------------------------------------- */
    .selector-shell {
        min-height: 100vh;
        display: grid;
        place-items: center;
        padding: calc(var(--space-md) + var(--safe-top)) var(--space-md) calc(var(--space-md) + var(--safe-bottom));
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    .selector-shell::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(185, 74, 50, 0.15), transparent 45%),
                    radial-gradient(circle at bottom left, rgba(192, 148, 92, 0.15), transparent 45%),
                    light-dark(rgba(250, 248, 245, 0.3), rgba(18, 16, 14, 0.4));
        backdrop-filter: blur(8px);
        z-index: 1;
    }

    .selector-card {
        width: min(480px, 100%);
        padding: var(--space-lg);
        border-radius: var(--border-radius-xl);
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-lg);
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        animation: rise var(--transition-slow) both;
    }
    
    .selector-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 32px;
        padding: 0 var(--space-sm);
        border-radius: var(--border-radius-full);
        background: var(--primary-soft);
        color: var(--primary);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        border: 1px solid var(--border-color);
        margin-bottom: var(--space-md);
    }
    
    .selector-lead {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: var(--space-xs);
    }
    
    .selector-card h1 {
        font-family: var(--font-serif);
        font-size: clamp(2.5rem, 8vw, 3.75rem);
        line-height: 1.05;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: var(--space-sm);
        letter-spacing: -0.02em;
    }
    
    .selector-copy {
        font-size: 14px;
        line-height: 1.6;
        color: var(--text-muted);
        max-width: 320px;
        margin-bottom: var(--space-lg);
    }
    
    .selector-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .language-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--border-radius-md);
        border: 1px solid var(--border-color);
        background: var(--bg-surface);
        transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    }
    
    .language-card:hover {
        transform: translateY(-2px);
        border-color: var(--primary);
        background-color: var(--bg-surface-hover);
        box-shadow: var(--shadow-md);
    }
    
    .language-meta {
        text-align: left;
    }
    
    .language-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-color);
        margin-bottom: 2px;
    }
    
    .language-copy {
        font-size: 12px;
        color: var(--text-muted);
    }
    
    .language-code {
        width: 44px;
        height: 44px;
        border-radius: var(--border-radius-full);
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: var(--text-inverse);
        display: grid;
        place-items: center;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.05em;
        box-shadow: 0 4px 10px rgba(185, 74, 50, 0.25);
    }
    
    /* -------------------------------------------------------------
       2. HERO BÖLÜMÜ (Hero Section)
       ------------------------------------------------------------- */
    .hero {
        position: relative;
        min-height: 360px;
        border-radius: var(--border-radius-xl);
        background-size: cover;
        background-position: center;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        box-shadow: var(--shadow-lg);
        margin-bottom: var(--space-md);
        border: 1px solid var(--border-color);
    }
    
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(18, 16, 14, 0.95) 0%, rgba(18, 16, 14, 0.4) 60%, rgba(18, 16, 14, 0.1) 100%);
        z-index: 1;
    }
    
    .hero-content {
        position: relative;
        z-index: 2;
        padding: var(--space-lg);
        color: #FFFFFF;
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .hero-badges {
        display: flex;
        gap: var(--space-xs);
        align-items: center;
    }
    
    .hero-badges .eyebrow {
        background: rgba(255, 255, 255, 0.15);
        color: #FFFFFF;
        border: 1px solid rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .hero-badges .table-badge {
        background: var(--primary);
        color: var(--text-inverse);
        font-weight: 800;
    }
    
    .eyebrow, .table-badge, .info-badge, .lang-label, .item-badge, .nav-label {
        display: inline-flex;
        align-items: center;
        height: 28px;
        padding: 0 var(--space-sm);
        border-radius: var(--border-radius-full);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    
    .hero-heading {
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);
        max-width: 800px;
    }
    
    .hero-title {
        font-family: var(--font-serif);
        font-size: clamp(2rem, 6vw, 3.25rem);
        line-height: 1.1;
        font-weight: 600;
        letter-spacing: -0.01em;
    }
    
    .hero-copy {
        font-size: 14px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.8);
        max-width: 600px;
    }
    
    .hero-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: var(--space-md);
        margin-top: var(--space-xs);
    }
    
    .hero-tags {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-xs);
    }
    
    .hero-tag {
        font-size: 11px;
        background: rgba(255, 255, 255, 0.1);
        padding: 4px 10px;
        border-radius: var(--border-radius-sm);
        color: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .hero-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        padding: 0 var(--space-md);
        border-radius: var(--border-radius-full);
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: var(--text-inverse);
        font-size: 13px;
        font-weight: 800;
        box-shadow: 0 4px 15px rgba(185, 74, 50, 0.35);
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }
    
    .hero-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(185, 74, 50, 0.45);
    }
    
    /* -------------------------------------------------------------
       3. DİL SEÇİCİ & STICKY KONTROLLER (Sticky Bar)
       ------------------------------------------------------------- */
    .sticky-bar {
        position: sticky;
        top: calc(10px + var(--safe-top));
        z-index: 100;
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
        border-radius: var(--border-radius-lg);
        padding: var(--space-sm);
        margin-bottom: var(--space-md);
        box-shadow: var(--shadow-md);
    }
    
    .sticky-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-sm);
    }
    
    .sticky-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .info-badge {
        background: var(--accent-soft);
        color: var(--accent-dark);
        border: 1px solid var(--border-color);
        font-weight: 800;
    }
    
    .lang-links {
        display: flex;
        gap: 4px;
        background: var(--bg-surface-hover);
        padding: 3px;
        border-radius: var(--border-radius-full);
        border: 1px solid var(--border-color);
    }
    
    .lang-link {
        height: 30px;
        padding: 0 var(--space-sm);
        border-radius: var(--border-radius-full);
        font-size: 11px;
        font-weight: 800;
        color: var(--text-muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background-color var(--transition-fast), color var(--transition-fast);
    }
    
    .lang-link:hover:not(.active) {
        color: var(--text-color);
        background: rgba(185, 74, 50, 0.05);
    }
    
    .lang-link.active {
        background: var(--primary);
        color: var(--text-inverse);
    }
    
    .sticky-links {
        display: flex;
        gap: var(--space-xs);
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 2px;
        position: relative;
    }
    
    .sticky-links::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    /* Scroll Fade Effect on Horizontal Navigation */
    .sticky-links-container {
        position: relative;
    }
    
    .sticky-links-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, var(--bg-color));
        pointer-events: none;
        z-index: 2;
    }
    
    .category-pill {
        white-space: nowrap;
        height: 38px;
        padding: 0 var(--space-md);
        border-radius: var(--border-radius-full);
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        font-size: 13px;
        font-weight: 700;
        color: var(--text-color);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    }
    
    .category-pill:hover {
        transform: translateY(-1px);
        border-color: var(--primary);
        background: var(--bg-surface-hover);
    }
    
    .category-pill.active {
        background: var(--primary);
        color: var(--text-inverse);
        border-color: transparent;
        box-shadow: 0 4px 10px rgba(185, 74, 50, 0.2);
    }
    
    /* -------------------------------------------------------------
       4. KATEGORİ DETAYLARI & KARTLAR (Menu Grid & Cards)
       ------------------------------------------------------------- */
    .category-section {
        margin-bottom: var(--space-lg);
        scroll-margin-top: 130px;
    }
    
    .category-cover {
        position: relative;
        height: 180px;
        border-radius: var(--border-radius-lg);
        background-size: cover;
        background-position: center;
        overflow: hidden;
        display: flex;
        align-items: flex-end;
        margin-bottom: var(--space-md);
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
    }
    
    .category-cover::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(18, 16, 14, 0.8) 0%, rgba(18, 16, 14, 0.1) 100%);
        z-index: 1;
    }
    
    .category-cover-copy {
        position: relative;
        z-index: 2;
        padding: var(--space-md);
        color: #FFFFFF;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .category-cover-copy .table-badge {
        align-self: flex-start;
        background: rgba(255, 255, 255, 0.2);
        color: #FFFFFF;
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(5px);
    }
    
    .category-cover-title {
        font-family: var(--font-serif);
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.1;
        font-weight: 600;
    }
    
    .category-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: var(--space-sm);
        border-bottom: 2px solid var(--border-color);
        padding-bottom: var(--space-xs);
    }
    
    .category-title-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .section-kicker {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--accent-dark);
    }
    
    .section-title {
        font-family: var(--font-serif);
        font-size: 28px;
        font-weight: 600;
        color: var(--text-color);
    }
    
    .category-count {
        font-size: 12px;
        font-weight: 700;
        color: var(--text-muted);
        background: var(--bg-surface-hover);
        padding: 4px 10px;
        border-radius: var(--border-radius-full);
        border: 1px solid var(--border-color);
        margin-bottom: 2px;
    }
    
    .menu-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: var(--space-md);
    }
    
    .menu-item {
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: var(--shadow-sm);
        transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
        position: relative;
        cursor: pointer;
    }
    
    .menu-item:hover {
        transform: translateY(-4px);
        border-color: var(--primary);
        box-shadow: var(--shadow-lg);
    }
    
    /* Featured item styling */
    .menu-item.featured {
        border-color: var(--accent);
        box-shadow: 0 4px 20px rgba(192, 148, 92, 0.1);
    }
    
    .menu-item.featured:hover {
        box-shadow: 0 8px 30px rgba(192, 148, 92, 0.2);
    }
    
    .menu-item-visual {
        position: relative;
        aspect-ratio: 16 / 10;
        background-color: var(--bg-surface-hover);
        overflow: hidden;
    }
    
    .menu-item-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--transition-slow);
    }
    
    .menu-item:hover .menu-item-visual img {
        transform: scale(1.06);
    }
    
    .price-stack {
        position: absolute;
        bottom: var(--space-xs);
        right: var(--space-xs);
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        z-index: 2;
    }
    
    .price-pill {
        background: var(--primary);
        color: var(--text-inverse);
        font-size: 13px;
        font-weight: 800;
        height: 28px;
        padding: 0 10px;
        border-radius: var(--border-radius-full);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-sm);
    }
    
    .price-pill-subtle {
        background: rgba(18, 16, 14, 0.7);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        color: rgba(255, 255, 255, 0.8);
        text-decoration: line-through;
        font-size: 11px;
        height: 24px;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .menu-item-body {
        padding: var(--space-md);
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        gap: var(--space-xs);
    }
    
    .menu-item-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2px;
    }
    
    .item-badge {
        background: var(--accent-soft);
        color: var(--accent-dark);
        border: 1px solid var(--border-color);
        font-weight: 800;
    }
    
    .menu-item.featured .item-badge {
        background: var(--accent);
        color: var(--text-inverse);
    }
    
    .menu-item-title {
        font-family: var(--font-serif);
        font-size: 20px;
        font-weight: 600;
        color: var(--text-color);
        line-height: 1.2;
    }
    
    .menu-item-copy {
        font-size: 13px;
        line-height: 1.6;
        color: var(--text-muted);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-wrap: pretty;
    }
    
    .empty-state {
        text-align: center;
        padding: var(--space-lg) var(--space-md);
        border: 1px dashed var(--border-strong);
        border-radius: var(--border-radius-lg);
        color: var(--text-muted);
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* -------------------------------------------------------------
       5. YENİ ÜRÜN DETAY MODALI (Interactive Product Detail Modal)
       ------------------------------------------------------------- */
    .detail-dialog {
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        background: var(--bg-surface);
        color: var(--text-color);
        width: min(540px, 94%);
        max-height: 90vh;
        margin: auto;
        padding: 0;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        opacity: 0;
        transform: scale(0.95);
        transition: opacity var(--transition-normal), transform var(--transition-normal), display var(--transition-normal) allow-discrete;
    }
    
    .detail-dialog[open] {
        opacity: 1;
        transform: scale(1);
    }
    
    @starting-style {
        .detail-dialog[open] {
            opacity: 0;
            transform: scale(0.95);
        }
    }
    
    .detail-dialog::backdrop {
        background: rgba(18, 16, 14, 0.4);
        backdrop-filter: blur(8px);
        opacity: 0;
        transition: opacity var(--transition-normal), display var(--transition-normal) allow-discrete;
    }
    
    .detail-dialog[open]::backdrop {
        opacity: 1;
    }
    
    @starting-style {
        .detail-dialog[open]::backdrop {
            opacity: 0;
        }
    }
    
    .detail-header {
        position: relative;
        aspect-ratio: 16 / 10;
        background-color: var(--bg-surface-hover);
        overflow: hidden;
    }
    
    .detail-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .detail-close-btn {
        position: absolute;
        top: var(--space-sm);
        right: var(--space-sm);
        width: 36px;
        height: 36px;
        border-radius: var(--border-radius-full);
        background: rgba(18, 16, 14, 0.6);
        color: #FFFFFF;
        display: grid;
        place-items: center;
        font-size: 20px;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        z-index: 10;
        transition: background-color var(--transition-fast), transform var(--transition-fast);
    }
    
    .detail-close-btn:hover {
        background: rgba(18, 16, 14, 0.85);
        transform: scale(1.05);
    }
    
    .detail-body {
        padding: var(--space-md) var(--space-lg) var(--space-lg);
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .detail-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .detail-title {
        font-family: var(--font-serif);
        font-size: clamp(24px, 5vw, 32px);
        font-weight: 600;
        line-height: 1.15;
        color: var(--text-color);
    }
    
    .detail-prices {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
        font-size: 18px;
        font-weight: 800;
        color: var(--primary);
    }
    
    .detail-price-original {
        color: var(--text-muted);
        text-decoration: line-through;
        font-weight: 500;
        font-size: 14px;
    }
    
    .detail-desc {
        font-size: 14px;
        line-height: 1.6;
        color: var(--text-muted);
        white-space: pre-line;
        border-top: 1px solid var(--border-color);
        padding-top: var(--space-sm);
    }
    
    /* -------------------------------------------------------------
       6. GARSON ÇAĞIRMA (Service FAB & Drawer)
       ------------------------------------------------------------- */
    .service-fab {
        position: fixed;
        right: var(--space-md);
        bottom: calc(var(--space-md) + var(--safe-bottom));
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: var(--space-sm);
        pointer-events: none;
    }
    
    .service-fab-launcher, .service-popup {
        pointer-events: auto;
    }
    
    .service-fab-launcher {
        width: 60px;
        height: 60px;
        border-radius: var(--border-radius-full);
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: var(--text-inverse);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: transform var(--transition-normal), box-shadow var(--transition-normal);
        gap: 2px;
    }
    
    .service-fab-launcher svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }
    
    .service-fab-launcher:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 12px 28px rgba(185, 74, 50, 0.4);
    }
    
    /* Floating bell bell ring animation */
    .service-fab:not(.open) .service-fab-launcher {
        animation: pulse 2.5s infinite;
    }
    
    /* Bottom Sheet Popup style */
    .service-popup {
        width: min(340px, calc(100vw - var(--space-lg)));
        background: var(--bg-surface);
        border: 1px solid var(--border-strong);
        border-radius: var(--border-radius-lg);
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px) scale(0.95);
        transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
    }
    
    .service-fab.open .service-popup {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    .service-popup-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .service-popup-title {
        font-family: var(--font-serif);
        font-size: 22px;
        font-weight: 600;
        color: var(--text-color);
        line-height: 1.2;
    }
    
    .service-popup-close {
        width: 28px;
        height: 28px;
        border-radius: var(--border-radius-full);
        background: var(--bg-surface-hover);
        color: var(--text-color);
        display: grid;
        place-items: center;
        font-size: 16px;
        border: 1px solid var(--border-color);
        transition: background-color var(--transition-fast);
    }
    
    .service-popup-close:hover {
        background-color: var(--border-strong);
    }
    
    .service-popup-copy {
        font-size: 13px;
        line-height: 1.5;
        color: var(--text-muted);
    }
    
    .call-button {
        width: 100%;
        height: 48px;
        border-radius: var(--border-radius-full);
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: var(--text-inverse);
        font-size: 14px;
        font-weight: 800;
        box-shadow: 0 4px 12px rgba(185, 74, 50, 0.25);
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-xs);
    }
    
    .call-button:hover:not([disabled]) {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(185, 74, 50, 0.35);
    }
    
    .call-button[disabled] {
        background: var(--border-strong);
        color: var(--text-muted);
        box-shadow: none;
        cursor: not-allowed;
    }
    
    .call-status {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-muted);
        text-align: center;
        min-height: 18px;
    }
    
    .call-status.success {
        color: #2E7D32;
    }
    
    .call-status.error {
        color: #C62828;
    }
}

@layer utilities {
    .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    
    /* Animations */
    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(185, 74, 50, 0.4);
        }
        70% {
            box-shadow: 0 0 0 15px rgba(185, 74, 50, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(185, 74, 50, 0);
        }
    }
    
    .animate-rise {
        animation: rise var(--transition-slow) both;
    }
}

/* -------------------------------------------------------------
   7. ERIŞILEBILIRLIK VE UYUMLULUK (A11y, Mobile, High Contrast)
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (forced-colors: active) {
    .language-card, .menu-item, .category-pill, .service-popup, .detail-dialog {
        border: 2px solid CanvasText !important;
    }
    .price-pill, .language-code, .hero-button, .call-button, .service-fab-launcher {
        background: ButtonFace !important;
        color: ButtonText !important;
        border: 1px solid ButtonText !important;
    }
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-sm);
    }
    .hero {
        min-height: 280px;
    }
    .hero-content {
        padding: var(--space-md);
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    .hero-button {
        width: 100%;
    }
    .category-cover {
        height: 140px;
    }
    .service-popup {
        width: calc(100vw - var(--space-md) * 2);
    }
}

@media (max-width: 480px) {
    .page {
        padding: calc(var(--space-sm) + var(--safe-top)) var(--space-sm) calc(var(--space-lg) + var(--safe-bottom));
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .menu-item-visual {
        aspect-ratio: 16 / 9;
    }
    .sticky-bar {
        border-radius: var(--border-radius-md);
        padding: var(--space-xs);
    }
    .lang-links {
        width: 100%;
        justify-content: space-around;
    }
    .lang-link {
        flex-grow: 1;
        text-align: center;
    }
    .sticky-controls {
        flex-direction: column;
        gap: var(--space-xs);
    }
    .info-badge {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
