/* iOS Safari global color fix */
@supports (-webkit-touch-callout: none) {
    /* Force consistent color rendering on iOS devices */
    html {
        -webkit-text-size-adjust: 100% !important;
        -webkit-font-smoothing: antialiased !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Override any iOS automatic color adjustments */
    * {
        -webkit-appearance: none !important;
        appearance: none !important;
        -webkit-text-fill-color: unset !important;
    }
    
    /* Ensure root color variables work properly on iOS */
    :root {
        color-scheme: dark !important;
    }
    
    /* iOS body spacing fix */
    body {
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 0 !important;
        -webkit-margin-before: 0 !important;
        -webkit-margin-after: 0 !important;
        -webkit-padding-start: 0 !important;
    }
}

:root {
    /* Basit 3 renk şeması - Siyah, Beyaz, Turuncu */
    --background-color: #000000;
    --secondary-background: #000000;
    --text-color: #ffffff;
    --highlight-color: #ff6600;
    --secondary-highlight: #ff6600;
    --heading-color: #ff6600;
    --price-color: #ff6600; /* Turuncu fiyat rengi */
    --border-color: #333333;
    --card-background: #000000;
    --button-color: #ff6600;
    --button-text: #ffffff;
    --button-hover: #ff6600;
    --link-color: #ff6600;
    --link-hover: #ff6600;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --success-color: #ff6600;
    --warning-color: #ff6600;
    --error-color: #ff6600;
    
    /* Transparent color variations for consistent theming */
    --highlight-transparent-light: rgba(255, 102, 0, 0.1);
    --highlight-transparent-medium: rgba(255, 102, 0, 0.3);
    --highlight-transparent-strong: rgba(255, 102, 0, 0.5);
    --success-transparent-light: rgba(255, 102, 0, 0.1);
    --success-transparent-medium: rgba(255, 102, 0, 0.3);
    
    /* Shadow and overlay colors */
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-strong: rgba(0, 0, 0, 0.4);
    --shadow-extra: rgba(0, 0, 0, 0.8);
    --border-transparent: rgba(255, 255, 255, 0.2);
    
    --low-data-bg: #000000;
    --low-data-secondary: #000000;
    --low-data-card: #000000;
    --low-data-element: #000000;
}

/* ==============================================
   RESPONSIVE COLOR ADAPTATIONS FOR ALL DEVICES
   ============================================== */

/* Mobile devices (320px - 768px) */
@media screen and (max-width: 768px) {
    :root {
        /* Basit 3 renk şeması - Siyah, Beyaz, Turuncu */
        --background-color: #000000;
        --secondary-background: #000000;
        --card-background: #000000;
        --highlight-color: #ff6600;
        --button-hover: #ff6600;
        --border-color: #333333;
        --shadow-color: rgba(0, 0, 0, 0.5);
        --shadow-light: rgba(0, 0, 0, 0.2);
        --shadow-medium: rgba(0, 0, 0, 0.3);
        --shadow-strong: rgba(0, 0, 0, 0.4);
        --price-color: #ff6600; /* Turuncu fiyat rengi */
    }
    
    /* Force consistent colors on all mobile elements */
    body, html {
        background-color: var(--background-color) !important;
        color: var(--text-color) !important;
    }
    
    /* Enhanced contrast for text elements */
    h1, h2, h3, h4, h5, h6 {
        color: var(--highlight-color) !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }
    
    p, span, div, li, a {
        color: var(--text-color) !important;
    }
      .price, .menu-item-details p.price {
        color: var(--price-color) !important; /* Turuncu fiyat rengi */
        font-weight: 600;
    }
    
    /* Enhanced button visibility on mobile */
    .add-to-cart, .checkout-button, #checkout-button {
        background-color: var(--highlight-color) !important;
        color: var(--button-text) !important;
        box-shadow: 0 3px 8px rgba(255, 102, 0, 0.4);
    }
    
    /* Enhanced card visibility on mobile */
    .menu-item, .cart-item {
        background-color: var(--card-background) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 2px 8px var(--shadow-medium) !important;
    }
}

/* Tablet devices (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    :root {
        /* Basit 3 renk şeması - Siyah, Beyaz, Turuncu */
        --background-color: #000000;
        --secondary-background: #000000;
        --card-background: #000000;
        --highlight-color: #ff6600;
        --button-hover: #ff6600;
        --border-color: #333333;
        --shadow-color: rgba(0, 0, 0, 0.5);
        --price-color: #ff6600; /* Turuncu fiyat rengi */
    }
      /* Enhanced visibility for tablet screens */
    .menu-item, .cart-item {
        background-color: var(--card-background);
        border: 1px solid var(--border-color);
        box-shadow: 0 3px 10px var(--shadow-medium);
    }
    
    /* Header optimizations for tablet */
    header {
        padding: 18px 0;
    }
    
    .header-container {
        padding: 0 25px;
    }
    
    .header-content h1 {
        font-size: 26px;
    }
    
    .header-subtitle {
        font-size: 15px;
    }
    
    .header-nav {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 15px;
        padding: 9px 18px;
    }
    
    .cart-count {
        font-size: 12px;
        padding: 2px 7px;
        min-width: 18px;
    }
    
    .menu-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px var(--shadow-strong);
    }
    
    /* Enhanced button styling for tablets */
    .add-to-cart, .checkout-button {
        transition: all 0.3s ease;
    }
    
    .add-to-cart:hover {
        background-color: var(--button-hover);
        transform: scale(1.1);
    }
}

/* Laptop devices (1024px - 1366px) - Standard laptop resolution */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
    :root {
        /* Optimized colors for laptop screens */
        --background-color: #000000;
        --secondary-background: #111111;
        --card-background: #1a1a1a;
        --text-color: #ffffff;
        --highlight-color: #ff6600;
        --button-hover: #ff7733;
        --border-color: #333333;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --price-color: #ff6600;
        --shadow-light: rgba(0, 0, 0, 0.15);
        --shadow-medium: rgba(0, 0, 0, 0.25);
        --shadow-strong: rgba(0, 0, 0, 0.35);
    }
    
    /* Laptop-optimized layout */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }      /* Header optimizations for laptop */
    header {
        padding: 20px 0;
        position: relative;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(255, 102, 0, 0.2);
    }
    
    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 30px;
    }
    
    .header-content h1 {
        font-size: 28px;
        font-weight: 700;
    }
    
    .header-subtitle {
        font-size: 16px;
        margin-top: 4px;
    }
    
    .header-nav {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 10px 20px;
        border-radius: 8px;
        font-weight: 500;
    }
    
    .nav-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
    }
      .cart-count {
        font-size: 13px;
        padding: 3px 8px;
        min-width: 20px;
    }
    
    /* Navigation optimizations */
    #category-nav {
        background-color: var(--secondary-background);
        border-bottom: 2px solid var(--highlight-color);
        margin-bottom: 30px;
    }
    
    #category-nav ul {
        max-width: 1200px;
        margin: 0 auto;
        padding: 15px 30px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    #category-nav a {
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
        background-color: transparent;
        border: 2px solid transparent;
    }
    
    #category-nav a:hover {
        background-color: var(--highlight-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    }
    
    /* Main content optimizations */
    main {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 20px;
    }
    
    /* Menu category optimizations */
    .menu-category {
        margin-bottom: 40px;
        background-color: var(--card-background);
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 4px 20px var(--shadow-medium);
        border: 1px solid var(--border-color);
    }
    
    .menu-category h2 {
        font-size: 24px;
        color: var(--highlight-color);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--highlight-color);
        text-align: center;
    }
    
    /* Menu items grid for laptop */
    .menu-items {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
    
    /* Enhanced menu item styling for laptop */
    .menu-item {
        display: flex;
        background-color: var(--secondary-background);
        border-radius: 10px;
        padding: 20px;
        border: 2px solid var(--border-color);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        min-height: 120px;
    }
    
    .menu-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px var(--shadow-strong);
        border-color: var(--highlight-color);
        background-color: var(--card-background);
    }
    
    .menu-item-details {
        flex: 1;
        padding-right: 15px;
    }
    
    .menu-item-details h3 {
        font-size: 18px;
        color: var(--text-color);
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .menu-item-details .description {
        font-size: 14px;
        color: #cccccc;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .menu-item-details .price {
        font-size: 18px;
        color: var(--price-color);
        font-weight: bold;
    }
    
    .menu-item-image {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid var(--border-color);
        margin-left: 15px;
    }
    
    /* Enhanced button styling for laptop */
    .add-to-cart {
        position: absolute;
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background-color: var(--highlight-color);
        color: white;
        border: none;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 3px 10px rgba(255, 102, 0, 0.3);
    }
    
    .add-to-cart:hover {
        background-color: var(--button-hover);
        transform: scale(1.15);
        box-shadow: 0 5px 15px rgba(255, 102, 0, 0.5);
    }
    
    .add-to-cart:active {
        transform: scale(0.95);
        background-color: var(--highlight-color);
    }
    
    /* Footer optimizations for laptop */
    .footer-content {
        max-width: 1200px;
        margin: 50px auto 0;
        padding: 30px;
        background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
        border-radius: 12px;
        border-top: 3px solid var(--highlight-color);
    }
    
    .footer-content h1 {
        font-size: 24px;
        color: var(--highlight-color);
    }
    
    .footer-content .footer-description {
        font-size: 16px;
        max-width: 800px;
        margin: 0 auto 20px;
    }
}

/* Desktop devices (1367px - 1440px) */
@media screen and (min-width: 1367px) and (max-width: 1440px) {
    :root {
        /* Basit 3 renk şeması - Siyah, Beyaz, Turuncu */
        --background-color: #000000;
        --secondary-background: #000000;
        --card-background: #000000;
        --highlight-color: #ff6600;
        --button-hover: #ff6600;
        --border-color: #333333;
        --shadow-color: rgba(0, 0, 0, 0.4);
        --price-color: #ff6600; /* Turuncu fiyat rengi */
    }
      /* Enhanced desktop interactions */
    .menu-item {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
      /* Header optimizations for desktop */
    header {
        padding: 25px 0;
        box-shadow: 0 -6px 25px rgba(255, 102, 0, 0.15);
    }
    
    .header-container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .header-content h1 {
        font-size: 32px;
        font-weight: 800;
    }
    
    .header-subtitle {
        font-size: 18px;
        margin-top: 5px;
    }
    
    .header-nav {
        gap: 30px;
    }
    
    .nav-link {
        font-size: 17px;
        padding: 12px 24px;
        border-radius: 10px;
        font-weight: 600;
    }
    
    .nav-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(255, 102, 0, 0.4);
    }
    
    .cart-count {
        font-size: 14px;
        padding: 4px 10px;
        min-width: 22px;
    }
    
    .menu-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px var(--shadow-strong);
        border-color: var(--highlight-color);
    }
    
    /* Enhanced button effects for desktop */
    .add-to-cart:hover {
        background-color: var(--button-hover);
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
    }
    
    /* Enhanced card styling for desktop */
    .menu-category {
        box-shadow: 0 4px 15px var(--shadow-medium);
    }
}

/* Large desktop and ultra-wide screens (1441px+) */
@media screen and (min-width: 1441px) {
    :root {
        /* Basit 3 renk şeması - Siyah, Beyaz, Turuncu */
        --background-color: #000000;
        --secondary-background: #000000;
        --card-background: #000000;
        --highlight-color: #ff6600;
        --button-hover: #ff6600;
        --border-color: #333333;
        --shadow-color: rgba(0, 0, 0, 0.5);
        --price-color: #ff6600; /* Turuncu fiyat rengi */
    }
    
    /* Enhanced visual effects for large screens */
    .menu-item {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .menu-item:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 35px var(--shadow-strong);
        border-color: var(--highlight-color);
    }
    
    /* Enhanced gradient backgrounds for large screens */
    .menu-category {
        background: linear-gradient(135deg, var(--card-background), var(--secondary-background));
        box-shadow: 0 6px 20px var(--shadow-medium);
    }
    
    /* Enhanced button styling for large screens */
    .add-to-cart:hover {
        transform: scale(1.2);
        box-shadow: 0 6px 18px rgba(255, 102, 0, 0.5);
    }
}

/* High DPI displays (Retina, 4K, etc.) */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    :root {
        /* Desktop-consistent colors for high DPI displays */
        --text-color: #f5f5f5;
        --highlight-color: #ff6600;
        --price-color: #ff6600; /* Turuncu fiyat rengi */
    }
    
    /* Sharper shadows for high DPI */
    .menu-item, .cart-item, .menu-category {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
                    0 1px 2px rgba(0, 0, 0, 0.24);
    }
    
    .menu-item:hover {
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
                    0 3px 6px rgba(0, 0, 0, 0.23);
    }
}

/* Dark mode preference adaptation */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #000000;
        --secondary-background: #000000;
        --card-background: #000000;
        --text-color: #ffffff;
        --border-color: #404040;
    }
}

/* Light mode preference adaptation (for users who prefer light themes) */
@media (prefers-color-scheme: light) {
    :root {
        --background-color: #ffffff;
        --secondary-background: #ffffff;
        --card-background: #ffffff;
        --text-color: #000000;
        --highlight-color: #ff6600;
        --price-color: #ff6600;
        --border-color: #333333;
        --shadow-color: rgba(0, 0, 0, 0.1);
    }
    
    .menu-item, .cart-item {
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .menu-item:hover {
        transform: none;
    }
}

/* High contrast preference */
@media (prefers-contrast: high) {
    :root {
        --background-color: #000000;
        --text-color: #ffffff;
        --highlight-color: #ff6600;
        --price-color: #ff6600;
        --border-color: #ffffff;
    }
    
    .menu-item, .cart-item {
        border: 2px solid var(--border-color);
    }
}

/* ==============================================
   DEVICE-SPECIFIC COLOR OPTIMIZATIONS
   ============================================== */

/* iOS devices */
@supports (-webkit-touch-callout: none) {
    :root {
        --text-color: #f5f5f5 !important;
        --highlight-color: #ff6600 !important;
        --price-color: #ff6600 !important; /* Turuncu fiyat rengi */
    }
    
    /* Force colors for iOS Safari */
    body, html {
        background-color: var(--background-color) !important;
        color: var(--text-color) !important;
        -webkit-text-fill-color: var(--text-color) !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: var(--highlight-color) !important;
        -webkit-text-fill-color: var(--highlight-color) !important;
    }
    
    .price, .menu-item-details p.price {
        color: var(--price-color) !important; /* Turuncu fiyat rengi */
        -webkit-text-fill-color: var(--price-color) !important;
    }
}

/* Android devices */
@media screen and (-webkit-min-device-pixel-ratio: 1) and (max-width: 768px) {
    .android-device {
        /* Desktop-consistent Android colors */
        --highlight-color: #ff6600;
        --price-color: #ff6600; /* Turuncu fiyat rengi */
    }
}

/* Mobil cihaz için responsive ayarlar */
html {
    box-sizing: border-box;
    font-size: 16px;
    margin: 0; /* Ensure no default margin */
    padding: 0; /* Ensure no default padding */
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Ensure absolutely no spacing at the top */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    padding-top: 0; /* Üst boşluk kaldırıldı */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Force color rendering for iOS Safari */
    -webkit-text-fill-color: var(--text-color);
}

/* Header stili */
header {
    background-color: var(--secondary-background);
    color: var(--text-color);
    padding: 15px 0;
    box-shadow: 0 -2px 10px var(--shadow-color);
    position: relative; /* Changed from sticky to relative */
    z-index: 1000;
    border-top: 2px solid var(--highlight-color); /* Changed from border-bottom to border-top */
    margin-top: 30px; /* Add some space between footer and header */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: var(--highlight-color);
    text-shadow: 1px 1px 3px var(--shadow-heavy);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-subtitle {
    font-size: 14px;
    color: var(--text-color);
    margin: 2px 0 0 0;
    opacity: 0.8;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-link:hover {
    background-color: var(--highlight-color);
    color: #ffffff;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background-color: var(--highlight-color);
    color: #ffffff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Mobile optimizations for header */
@media screen and (max-width: 480px) {
    header {
        padding: 10px 0;
    }
    
    .header-container {
        padding: 8px 10px;
        flex-direction: column;
        gap: 10px;
    }
    
    .header-content h1 {
        font-size: 16px;
        color: var(--highlight-color);
    }
    
    .header-subtitle {
        font-size: 12px;
        text-align: center;
    }
    
    .header-nav {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .cart-count {
        font-size: 10px;
        padding: 1px 4px;
        min-width: 14px;
    }
}

.cart-icon {
    position: relative;
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--highlight-color);
}

/* Mobilde header'daki sepet ikonu gizlenecek */
@media screen and (max-width: 767px) {
    .desktop-cart {
        display: none;
    }
}

main {
    padding-bottom: 60px;
    transition: padding-top 0.3s ease-in-out;
}

body.nav-scrolled main {
    /* Add top padding to account for the fixed navigation */
    padding-top: 60px;
    width: 100%;
}

/* Hide scrollbar but allow scrolling */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

nav {
    margin: 20px 0;
}

nav a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 15px;
}

nav a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

footer {
    background-color: var(--secondary-background);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 2px solid var(--highlight-color);
}

footer p {
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
}

@media screen and (max-width: 480px) {
    footer {
        padding: 15px 0;
        margin-top: 30px;
    }
    
    footer p {
        font-size: 12px;
    }
}

/* Başlık stilleri */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-top: 0;
    font-weight: 600;
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
        padding-bottom: 6px;
    }
    
    h3 {
        font-size: 16px;
    }
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--highlight-color);
    padding-bottom: 8px;
    display: inline-block;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.menu-category {
    margin: 20px 0;
}

.menu-item {
    border: 1px solid var(--border-color);
    padding: 10px;
    margin: 10px 0;
    background-color: var(--card-background);
}

.menu-item h4 {
    margin: 0;
    color: var(--text-color);
}

.menu-item p {
    margin: 5px 0;
    color: var(--text-color);
}

/* Category navigation styles moved to category-nav.css to avoid conflicts */
@media (max-width: 600px) {
  #category-nav ul {
    gap: 0.5em;
    padding: 0 0.5em;
  }
  #category-nav a {
    padding: 0.5em 0.7em;
    font-size: 0.95em;
  }
}

/* Scroll to top button */
#scroll-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--highlight-color);
    color: var(--button-text);
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--highlight-transparent-strong);
    transition: background-color 0.3s, transform 0.3s;
    outline: none;
}

#scroll-to-top:hover, #scroll-to-top:focus {
    background-color: var(--button-hover);
    transform: scale(1.1);
}

/* Make scroll-to-top button larger on mobile for easier tapping */
@media (max-width: 767px) {
    #scroll-to-top {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
    
    /* Support for devices with home indicator (iPhone X+) */
    @supports (padding: max(0px)) {
        #scroll-to-top {
            bottom: max(15px, env(safe-area-inset-bottom));
            right: max(15px, env(safe-area-inset-right));
        }
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .header-container h1 {
        font-size: 1.1rem;
    }
    
    main {
        padding: 0;
    }
    
    .menu-category {
        padding: 15px 10px;
    }
}

@media (max-width: 767px) {
    /* Set content visibility to improve rendering performance */
    .menu-category:not(:first-of-type) {
        content-visibility: auto;
        contain-intrinsic-size: 1px 1000px;
    }
    
    /* Optimize mobile tap targets */
    button, a, .menu-item-image, .add-to-cart {
        touch-action: manipulation;
    }
    
    /* Fix 100vh issue on mobile browsers */
    .modal-content, body, html {
        height: -webkit-fill-available;
    }
    
    /* Optimize touch scrolling */
    body {
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text size adjustment on orientation change */
    html {
        text-size-adjust: 100%;
        -webkit-text-size-adjust: 100%;
    }
}

/* Mobile color scheme optimizations */
@media screen and (max-width: 480px) {
    /* Ensure all headings use orange color on mobile */
    h1, h2, h3, h4, h5, h6 {
        color: var(--heading-color) !important;
    }
    
    /* Ensure all text uses white color on mobile */
    body, p, span, div, li, a {
        color: var(--text-color) !important;
    }
    
    /* Ensure all prices use orange color on mobile */
    .price {
        color: var(--price-color) !important;
    }
}

/* iOS Safari specific fixes for text color */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific text color fixes */
    body {
        color: #f5f5f5 !important;
        -webkit-text-fill-color: #f5f5f5 !important;
    }
    
    /* Force white text on all text elements in iOS */
    p, span, div, li, a, .menu-item-details h3, .menu-item-details p,
    .description, .cart-item-name, .item-name {
        color: #f5f5f5 !important;
        -webkit-text-fill-color: #f5f5f5 !important;
    }
    
    /* Force orange color for headings in iOS */
    h1, h2, h3, h4, h5, h6, .menu-category h2, .category-title {
        color: #ff6600 !important;
        -webkit-text-fill-color: #ff6600 !important;
    }
    
    /* Force orange color for prices in iOS */
    .price, .menu-item-details p.price, .cart-item-price, .item-price {
        color: #ff6600 !important;
        -webkit-text-fill-color: #ff6600 !important;
    }
    
    /* Prevent iOS from auto-adjusting colors */
    * {
        -webkit-text-size-adjust: 100% !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
}

/* Additional iOS-specific mobile fixes */
@media screen and (max-width: 480px) {
    @supports (-webkit-touch-callout: none) {
        /* Double-ensure text colors for iPhone */
        body, p, span, div, li, a {
            color: #f5f5f5 !important;
            -webkit-text-fill-color: #f5f5f5 !important;
        }
        
        /* Menu item text specifically for iPhone */
        .menu-item-details * {
            color: inherit !important;
        }
        
        .menu-item-details h3 {
            color: #f5f5f5 !important;
            -webkit-text-fill-color: #f5f5f5 !important;
        }
        
        .menu-item-details p.description {
            color: #f5f5f5 !important;
            -webkit-text-fill-color: #f5f5f5 !important;
        }
        
        .menu-item-details p.price {
            color: #ff6600 !important;
            -webkit-text-fill-color: #ff6600 !important;
        }
        
        /* Cart text for iPhone */
        .cart-item-name, .item-name {
            color: #f5f5f5 !important;
            -webkit-text-fill-color: #f5f5f5 !important;
        }
        
        /* Modal text for iPhone */
        .modal-product-description {
            color: #f5f5f5 !important;
            -webkit-text-fill-color: #f5f5f5 !important;
        }
    }
}

/* Animation performance optimizations for mobile */
@media screen and (max-width: 480px) {
    /* Use hardware acceleration for animations */
    .menu-item, .add-to-cart, .menu-item-image, 
    #scroll-to-top, .modal-content, #category-nav a {
        transform: translateZ(0);
        backface-visibility: hidden;
        will-change: transform, opacity;
    }
    
    /* Optimize scrolling performance */
    body {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        -webkit-font-smoothing: subpixel-antialiased;
    }
    
    /* Reduce animation duration for improved mobile UX */
    .menu-item, .add-to-cart, #scroll-to-top, .modal-content {
        transition-duration: 0.2s;
    }
}

/* High-contrast mode for accessibility */
@media (prefers-contrast: more) {    body {
        --background-color: white;
        --text-color: black;
        --link-color: #ff6600;
        --highlight-color: #ff6600;
    }
    
    .menu-item, .category-nav-container a {
        border: 1px solid black;
    }
}

/* ==============================================
   FOOTER STYLES - RESPONSIVE FOR ALL DEVICES
   ============================================== */

.footer-content {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    margin-top: 40px;
    border-top: 2px solid var(--highlight-color);
}

.footer-content h1 {
    color: var(--highlight-color);
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.3;
    font-weight: 600;
}

.footer-content p {
    margin: 10px 0;
    line-height: 1.5;
}

.footer-content .footer-description {
    color: #f5f5f5;
    font-size: 0.95rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}

.footer-content .footer-copyright {
    color: #cccccc;
    font-size: 0.85rem;
    margin: 15px 0 5px 0;
    font-weight: 400;
}

/* Mobil cihazlar (320px - 480px) */
@media screen and (max-width: 480px) {
    .footer-content {
        padding: 15px 10px;
        margin-top: 30px;
    }
    
    .footer-content h1 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .footer-content .footer-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
        padding: 0 5px;
    }
    
    .footer-content .footer-copyright {
        font-size: 0.75rem;
        margin: 12px 0 3px 0;
    }
}

/* Büyük mobil cihazlar (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .footer-content {
        padding: 18px 12px;
        margin-top: 35px;
    }
    
    .footer-content h1 {
        font-size: 1.2rem;
        margin-bottom: 9px;
    }
    
    .footer-content .footer-description {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
    
    .footer-content .footer-copyright {
        font-size: 0.8rem;
        margin: 14px 0 4px 0;
    }
}

/* Tablet cihazlar (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        padding: 22px 20px;
        margin-top: 40px;
    }
    
    .footer-content h1 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .footer-content .footer-description {
        font-size: 1rem;
        margin-bottom: 16px;
        max-width: 700px;
    }
    
    .footer-content .footer-copyright {
        font-size: 0.9rem;
        margin: 16px 0 6px 0;
    }
}

/* Desktop cihazlar (1025px+) */
@media screen and (min-width: 1025px) {
    .footer-content {
        padding: 25px 30px;
        margin-top: 50px;
    }
    
    .footer-content h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .footer-content .footer-description {
        font-size: 1.05rem;
        margin-bottom: 18px;
        max-width: 800px;
    }
    
    .footer-content .footer-copyright {
        font-size: 0.95rem;
        margin: 18px 0 8px 0;
    }
}

/* Çok büyük ekranlar (1440px+) */
@media screen and (min-width: 1440px) {
    .footer-content {
        padding: 30px 40px;
        margin-top: 60px;
    }
    
    .footer-content h1 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    
    .footer-content .footer-description {
        font-size: 1.1rem;
        margin-bottom: 20px;
        max-width: 900px;
    }
    
    .footer-content .footer-copyright {
        font-size: 1rem;
        margin: 20px 0 10px 0;
    }
}

/* Ultra wide ekranlar (1920px+) */
@media screen and (min-width: 1920px) {
    .footer-content {
        padding: 35px 50px;
        margin-top: 70px;
    }
    
    .footer-content h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .footer-content .footer-description {
        font-size: 1.2rem;
        margin-bottom: 25px;
        max-width: 1000px;
    }
    
    .footer-content .footer-copyright {
        font-size: 1.1rem;
        margin: 25px 0 12px 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .footer-content {
        background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
        border-top-color: var(--highlight-color);
    }
}

/* Print styles */
@media print {
    .footer-content {
        background: white !important;
        color: black !important;
        border-top: 1px solid #333 !important;
        page-break-inside: avoid;
    }
    
    .footer-content h1,
    .footer-content .footer-description,
    .footer-content .footer-copyright {
        color: black !important;
        text-shadow: none !important;
    }
}
