body {
    background: #f7f7f7;
    font-family: 'Lato', Arial, sans-serif;
    color: #222;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.cafe-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #181818;
    color: #fff;
    height: 80px;
    box-shadow: 0 4px 24px 0 #0008;
    border-bottom: 8px solid #ff7300;
    padding: 0 2vw;
}

.cafe-header-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.cafe-header-title .maskzeka {
    font-size: 2.8em;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 8px #000a;
}

.cafe-header-title .stem-cafe {
    font-size: 1.4em;
    font-weight: 800;
    color: #ff7300;
    letter-spacing: 0.3em;
    margin-top: -0.2em;
    text-shadow: 0 1px 4px #000a;
}

.container {
    padding-top: 88px;
}

.component::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: url('/radyal/logo/back.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    opacity: 0.13;
    pointer-events: none;
}

.component {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 2.5em;
    box-shadow: 0 8px 32px 0 #1ccfcf22, 0 2px 12px #ff730033;
    padding: 140px 0 1.5em 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: calc(100vh - 88px);
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 600px;
}

.cn-button {
    background: linear-gradient(160deg, #ffb366 0%, #ff7300 60%, #ff8c1a 100%);
    box-shadow:
        0 8px 32px #ff730044,
        0 2px 8px #fff8 inset,
        0 1px 0 #fff9 inset,
        0 -4px 16px #ff730033 inset,
        0 2px 16px 2px #ff730022;
    border: none;
    border-bottom: 4px solid #c95c00;
    border-right: 2px solid #c95c00;
    border-left: 2px solid #c95c00;
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translate(-50%, 0);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4em;
    font-weight: 900;
    letter-spacing: 1.5px;
    cursor: pointer;
    z-index: 30;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    animation: menuButtonPulse 3s ease-in-out infinite, menuButtonGlow 4s ease-in-out infinite;
    will-change: transform, box-shadow;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cn-button .menu-text {
    font-size: 1.2em;
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1;
}

.cn-button::after {
    content: '';
    position: absolute;
    left: 10%;
    top: 10%;
    width: 80%;
    height: 35%;
    background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50% 50% 40% 40%/60% 60% 40% 40%;
    pointer-events: none;
    z-index: 2;
}

.cn-button:hover {
    transform: translate(-50%, 0) scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 32px #ff730066,
        0 6px 16px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.4),
        inset 0 -2px 4px rgba(0,0,0,0.3);
    animation: menuButtonBounce 0.6s ease-in-out;
}

.cn-button:active, .cn-button:focus {
    background: linear-gradient(145deg, #1ccfcf, #00b8b8);
    box-shadow: 
        0 4px 12px #1ccfcf44,
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.2);
    transform: translate(-50%, 0) scale(0.95);
}

.cn-wrapper {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 1.5em;
    background: #fff;
    box-shadow: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    min-height: 320px;
    padding-top: 30px;
}

.cn-wrapper.opened-nav {
    opacity: 1;
    pointer-events: auto;
    min-height: 750px;
    background: transparent;
}

#main-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    gap: 0.5em 0.5em;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 240px);
    min-height: 400px;
}

#main-categories li {
    flex: 1 1 30%;
    margin: 6px 4px;
    text-align: center;
    min-width: 100px;
    max-width: 180px;
    min-height: 90px;
    height: 110px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
}

#main-categories li:last-child {
    max-width: 180px;
    min-width: 100px;
    flex: 1 1 30%;
}

#main-categories li.cold-drink {
    flex-basis: 100%;
    max-width: 100%;
    justify-content: center;
    display: flex;
}

#main-categories li.cold-drink a {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    max-width: 350px;
}

#main-categories a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #1ccfcf, #00b8b8);
    color: #fff;
    border-radius: 1.5em;
    padding: 1.2em 0.4em;
    font-size: 1.1em;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-decoration: none;
    box-shadow: 
        0 8px 24px #1ccfcf33,
        0 4px 12px rgba(0,0,0,0.1),
        inset 0 2px 4px rgba(255,255,255,0.2),
        inset 0 -2px 4px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 90px;
    min-width: 100px;
    max-height: calc((100vh - 280px) / 4);
    width: 100%;
    outline: none;
    border: 2px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 1000px;
}

#main-categories a:hover, #main-categories a:focus {
    background: linear-gradient(145deg, #ff7300, #ff8c1a);
    color: #fff;
    transform: scale(1.08) rotateY(10deg) rotateX(5deg);
    box-shadow: 
        0 12px 32px #ff730044,
        0 6px 16px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    animation: categoryHover 0.6s ease-in-out;
}

#main-categories span {
    display: block;
    font-size: 3.2em;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 0.3em;
    transition: all 0.3s ease;
}

#main-categories span::after {
    content: attr(data-text);
    display: block;
    font-size: 0.45em;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 0.1em;
}

/* Animasyonlar */
.cn-wrapper.opened-nav #main-categories li {
    opacity: 1;
    transform: translateY(0);
    animation: categoryAppear 0.6s ease-out;
}

#main-categories li:nth-child(1) { animation-delay: 0.05s; }
#main-categories li:nth-child(2) { animation-delay: 0.10s; }
#main-categories li:nth-child(3) { animation-delay: 0.15s; }
#main-categories li:nth-child(4) { animation-delay: 0.20s; }
#main-categories li:nth-child(5) { animation-delay: 0.25s; }
#main-categories li:nth-child(6) { animation-delay: 0.30s; }
#main-categories li:nth-child(7) { animation-delay: 0.35s; }
#main-categories li:nth-child(8) { animation-delay: 0.40s; }
#main-categories li:nth-child(9) { animation-delay: 0.45s; }
#main-categories li:nth-child(10) { animation-delay: 0.50s; }
#main-categories li:nth-child(11) { animation-delay: 0.55s; }
#main-categories li:nth-child(12) { animation-delay: 0.60s; }
#main-categories li:nth-child(13) { animation-delay: 0.65s; }

/* Subcategory view düzenlemeleri */
#subcategory-view {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 92%;
    max-width: 400px;
    background: linear-gradient(145deg, #ff7300, #ff8c1a);
    border-radius: 1.5em;
    box-shadow: 
        0 8px 32px #ff730044,
        0 4px 12px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.2);
    padding: 1em;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    margin-top: 60px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.3s ease;
}

/* Category Title Styles */
.category-title {
    width: 100%;
    text-align: center;
    margin-bottom: 1.2em;
    padding: 0.8em 1em;
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: 1em;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.1),
        inset 0 2px 4px rgba(255,255,255,0.3);
    font-size: 1.4em;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.category-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.category-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    border-radius: 1em;
}

#subcategory-view.hidden {
    display: none;
}

#subcategory-view:not(.hidden) {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: subcategorySlideIn 0.5s ease-out;
}

#subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#subcategory-list li {
    margin-bottom: 0.8em;
    text-align: left;
}

#subcategory-list li:last-child {
    margin-bottom: 0;
}

#subcategory-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(145deg, #fff, #f8f8f8);
    color: #ff7300;
    border-radius: 1.2em;
    padding: 0.9em 1.2em;
    font-size: 1.1em;
    font-weight: 700;
    box-shadow: 
        0 4px 12px #ff730022,
        0 2px 6px rgba(0,0,0,0.1),
        inset 0 1px 2px rgba(255,255,255,0.8);
    gap: 0.9em;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

#subcategory-list span:hover, #subcategory-list span:focus {
    box-shadow: 
        0 8px 20px #ff730044,
        0 4px 10px rgba(0,0,0,0.15),
        inset 0 1px 2px rgba(255,255,255,0.9);
    transform: scale(1.03) translateY(-2px);
    animation: itemHover 0.4s ease-in-out;
}

.menu-item-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 0.7em;
    margin-right: 1em;
    background: #eee;
    flex-shrink: 0;
    box-shadow: 0 2px 6px #1ccfcf22;
    transition: all 0.3s ease;
}

.menu-item-name {
    flex: 1 1 auto;
    text-align: left;
    color: #ff7300;
    font-weight: 700;
    font-size: 1.08em;
    margin-right: 1em;
    letter-spacing: 0.5px;
}

.menu-item-price {
    flex-shrink: 0;
    text-align: right;
    color: #fff;
    font-weight: 900;
    font-size: 1.08em;
    margin-left: 1em;
    background: linear-gradient(145deg, #ff7300, #ff8c1a);
    border-radius: 0.7em;
    padding: 0.3em 0.9em;
    box-shadow: 
        0 2px 6px #ff730022,
        inset 0 1px 2px rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
}

/* Yaratıcı Animasyonlar */
@keyframes menuButtonPulse {
    0%, 100% { 
        transform: translate(-50%, 0) scale(1);
        box-shadow: 
            0 8px 24px #ff730044,
            0 4px 12px rgba(0,0,0,0.2),
            inset 0 2px 4px rgba(255,255,255,0.3),
            inset 0 -2px 4px rgba(0,0,0,0.2);
    }
    50% { 
        transform: translate(-50%, 0) scale(1.02);
        box-shadow: 
            0 10px 28px #ff730055,
            0 5px 14px rgba(0,0,0,0.25),
            inset 0 2px 4px rgba(255,255,255,0.35),
            inset 0 -2px 4px rgba(0,0,0,0.25);
    }
}

@keyframes menuButtonGlow {
    0%, 100% { 
        box-shadow: 
            0 8px 32px #ff730044,
            0 2px 8px #fff8 inset,
            0 1px 0 #fff9 inset,
            0 -4px 16px #ff730033 inset,
            0 2px 16px 2px #ff730022;
    }
    50% { 
        box-shadow: 
            0 12px 40px #ff730066,
            0 4px 12px #fff8 inset,
            0 2px 0 #fff9 inset,
            0 -6px 20px #ff730044 inset,
            0 4px 20px 4px #ff730033,
            0 0 20px #ff7300;
    }
}

@keyframes menuButtonCountdown {
    0% { 
        transform: translate(-50%, 0) scale(1);
        box-shadow: 
            0 8px 32px #ff730044,
            0 2px 8px #fff8 inset,
            0 1px 0 #fff9 inset,
            0 -4px 16px #ff730033 inset,
            0 2px 16px 2px #ff730022;
    }
    25% { 
        transform: translate(-50%, 0) scale(1.05);
        box-shadow: 
            0 12px 40px #ff730066,
            0 4px 12px #fff8 inset,
            0 2px 0 #fff9 inset,
            0 -6px 20px #ff730044 inset,
            0 4px 20px 4px #ff730033,
            0 0 20px #ff7300;
    }
    50% { 
        transform: translate(-50%, 0) scale(1.1);
        box-shadow: 
            0 16px 48px #ff730088,
            0 6px 16px #fff8 inset,
            0 3px 0 #fff9 inset,
            0 -8px 24px #ff730055 inset,
            0 6px 24px 6px #ff730044,
            0 0 30px #ff7300;
    }
    75% { 
        transform: translate(-50%, 0) scale(1.05);
        box-shadow: 
            0 12px 40px #ff730066,
            0 4px 12px #fff8 inset,
            0 2px 0 #fff9 inset,
            0 -6px 20px #ff730044 inset,
            0 4px 20px 4px #ff730033,
            0 0 20px #ff7300;
    }
    100% { 
        transform: translate(-50%, 0) scale(1);
        box-shadow: 
            0 8px 32px #ff730044,
            0 2px 8px #fff8 inset,
            0 1px 0 #fff9 inset,
            0 -4px 16px #ff730033 inset,
            0 2px 16px 2px #ff730022;
    }
}

@keyframes menuHintFade {
    0%, 100% { 
        opacity: 0.7;
        transform: translateY(0);
    }
    50% { 
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes menuButtonBounce {
    0% { transform: translate(-50%, 0) scale(1.1) rotate(5deg); }
    50% { transform: translate(-50%, 0) scale(1.15) rotate(10deg); }
    100% { transform: translate(-50%, 0) scale(1.1) rotate(5deg); }
}

@keyframes categoryAppear {
    0% { 
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotateX(-20deg);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

@keyframes categoryHover {
    0% { transform: scale(1.08) rotateY(10deg) rotateX(5deg); }
    50% { transform: scale(1.12) rotateY(15deg) rotateX(8deg); }
    100% { transform: scale(1.08) rotateY(10deg) rotateX(5deg); }
}

@keyframes subcategorySlideIn {
    0% { 
        opacity: 0;
        transform: translateY(30px) scale(0.9) rotateX(-10deg);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

@keyframes itemHover {
    0% { transform: scale(1.03) translateY(-2px); }
    50% { transform: scale(1.05) translateY(-4px); }
    100% { transform: scale(1.03) translateY(-2px); }
}

@media (max-width: 700px) {
    .cafe-header {
        height: 85px;
        padding: 0 1vw;
    }
    .cafe-header-title .maskzeka {
        font-size: 1.8em;
    }
    .cafe-header-title .stem-cafe {
        font-size: 1.1em;
    }
    .container {
        padding-top: 68px;
    }
    .component {
        max-width: 99vw;
        height: calc(100vh - 68px);
        padding: 80px 0 1em 0;
        border-radius: 1.5em;
        min-height: 500px;
    }
    #main-categories {
        max-height: calc(100vh - 220px);
        min-height: 300px;
        gap: 0.4em 0.4em;
    }
    #main-categories li {
        min-width: 85px;
        min-height: 80px;
        max-height: calc((100vh - 260px) / 4);
        margin: 5px 3px;
    }
    #main-categories a {
        font-size: 1em;
        min-height: 80px;
        min-width: 85px;
        max-height: calc((100vh - 260px) / 4);
        padding: 1em 0.3em;
        border-radius: 1.2em;
    }
    #main-categories span {
        font-size: 2.8em;
    }
    #subcategory-view {
        max-width: 99vw;
        padding: 1.2em 0.5em 0.5em 0.5em;
        max-height: calc(100vh - 180px);
        margin-top: 55px;
        border-radius: 1.2em;
    }
    .category-title {
        font-size: 1.3em;
        padding: 0.7em 0.8em;
        margin-bottom: 1em;
    }
    #subcategory-list span {
        font-size: 1em;
        border-radius: 0.8em;
        padding: 0.7em 0.7em;
    }
    .menu-item-img {
        width: 36px;
        height: 36px;
        border-radius: 0.5em;
        margin-right: 0.7em;
    }
    .menu-item-name {
        font-size: 0.95em;
    }
    .menu-item-price {
        font-size: 0.95em;
        padding: 0.2em 0.7em;
    }
    .cn-button {
        width: 80px;
        height: 80px;
        font-size: 1.2em;
        top: 15px;
    }
    
    .cn-button .menu-text {
        font-size: 0.9em;
    }
    
    .cn-button .menu-arrow {
        font-size: 0.8em;
    }
    
    .cn-wrapper {
       /* margin-top: 80px;*/
    }
    #main-categories li:nth-child(13) a {
        background: linear-gradient(145deg, #1ccfcf, #00b8b8);
        box-shadow: 
            0 8px 24px #1ccfcf33,
            0 4px 12px rgba(0,0,0,0.1),
            inset 0 2px 4px rgba(255,255,255,0.2),
            inset 0 -2px 4px rgba(0,0,0,0.1);
        border: 2px solid rgba(255,255,255,0.1);
    }
}

@media (max-width: 500px) {
    .cafe-header {
        height: 75px;
        padding: 0 1vw;
    }
    .cafe-header-title .maskzeka {
        font-size: 1.5em;
    }
    .cafe-header-title .stem-cafe {
        font-size: 1em;
    }
    .container {
        padding-top: 64px;
    }
    .component {
        max-width: 99vw;
        height: calc(100vh - 64px);
        padding: 70px 0 0.8em 0;
        border-radius: 1.2em;
        min-height: 450px;
    }
    #main-categories {
        max-height: calc(100vh - 200px);
        min-height: 250px;
        gap: 0.35em 0.35em;
    }
    #main-categories li {
        min-width: 75px;
        min-height: 70px;
        max-height: calc((100vh - 240px) / 4);
        margin: 4px 2px;
    }
    #main-categories a {
        font-size: 0.95em;
        min-height: 70px;
        min-width: 75px;
        max-height: calc((100vh - 240px) / 4);
        padding: 0.9em 0.25em;
        border-radius: 1em;
    }
    #main-categories span {
        font-size: 2.4em;
    }
    #subcategory-view {
        max-width: 99vw;
        padding: 1em 0.4em 0.4em 0.4em;
        max-height: calc(100vh - 160px);
        margin-top: 50px;
        border-radius: 1em;
    }
    .category-title {
        font-size: 1.2em;
        padding: 0.6em 0.7em;
        margin-bottom: 0.8em;
    }
    #subcategory-list span {
        font-size: 0.9em;
        border-radius: 0.7em;
        padding: 0.6em 0.6em;
    }
    .menu-item-img {
        width: 32px;
        height: 32px;
        border-radius: 0.4em;
        margin-right: 0.6em;
    }
    .menu-item-name {
        font-size: 0.9em;
    }
    .menu-item-price {
        font-size: 0.9em;
        padding: 0.15em 0.6em;
    }
    .cn-button {
        width: 70px;
        height: 70px;
        font-size: 1.1em;
        top: 12px;
    }
    
    .cn-button .menu-text {
        font-size: 0.8em;
    }
    
    .cn-button .menu-arrow {
        font-size: 0.7em;
    }
    
    .cn-wrapper {
        /*margin-top: 70px;*/
    }
    #main-categories li:nth-child(13) a {
        background: linear-gradient(145deg, #1ccfcf, #00b8b8);
        box-shadow: 
            0 8px 24px #1ccfcf33,
            0 4px 12px rgba(0,0,0,0.1),
            inset 0 2px 4px rgba(255,255,255,0.2),
            inset 0 -2px 4px rgba(0,0,0,0.1);
        border: 2px solid rgba(255,255,255,0.1);
    }
}

/* iPhone 13 Mini and similar small screens */
@media (max-width: 414px) and (max-height: 896px) {
    .cafe-header {
        height: 70px;
        padding: 0 1vw;
    }
    .cafe-header-title .maskzeka {
        font-size: 1.4em;
    }
    .cafe-header-title .stem-cafe {
        font-size: 0.95em;
    }
    .container {
        padding-top: 60px;
    }
    .component {
        max-width: 99vw;
       /* height: calc(100vh - 60px);*/
        padding: 60px 0 0.6em 0;
        border-radius: 1em;
        min-height: 400px;
    }
    #main-categories {
        max-height: calc(100vh - 180px);
        min-height: 200px;
        gap: 0.3em 0.3em;
    }
    #main-categories li {
        min-width: 70px;
        min-height: 65px;
        max-height: calc((100vh - 220px) / 4);
        margin: 3px 2px;
    }
    #main-categories a {
        font-size: 0.9em;
        min-height: 65px;
        min-width: 70px;
        max-height: calc((100vh - 220px) / 4);
        padding: 0.8em 0.2em;
        border-radius: 0.9em;
    }
    #main-categories span {
        font-size: 2.2em;
    }
    #main-categories span::after {
        font-size: 0.45em;
    }
    .cn-button {
        width: 60px;
        height: 60px;
        font-size: 0.95em;
        top: 35px;
    }
    #main-categories li:nth-child(13) a {
        background: linear-gradient(145deg, #1ccfcf, #00b8b8);
        box-shadow: 
            0 8px 24px #1ccfcf33,
            0 4px 12px rgba(0,0,0,0.1),
            inset 0 2px 4px rgba(255,255,255,0.2),
            inset 0 -2px 4px rgba(0,0,0,0.1);
        border: 2px solid rgba(255,255,255,0.1);
    }
    #subcategory-view {
        max-width: 99vw;
        padding: 0.8em 0.3em 0.3em 0.3em;
        max-height: calc(100vh - 160px);
        margin-top: 45px;
        border-radius: 0.9em;
    }
    .category-title {
        font-size: 1.1em;
        padding: 0.5em 0.6em;
        margin-bottom: 0.7em;
    }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 375px) and (max-height: 667px) {
    .cafe-header {
        height: 65px;
    }
    .cafe-header-title .maskzeka {
        font-size: 1.3em;
    }
    .cafe-header-title .stem-cafe {
        font-size: 0.85em;
    }
    .container {
        padding-top: 55px;
    }
    .component {
        height: calc(100vh - 55px);
        padding: 50px 0 0.5em 0;
        min-height: 350px;
    }
    #main-categories {
        max-height: calc(100vh - 160px);
        min-height: 180px;
        gap: 0.25em 0.25em;
    }
    #main-categories li {
        min-width: 65px;
        min-height: 60px;
        max-height: calc((100vh - 200px) / 4);
        margin: 2px 1.5px;
    }
    #main-categories a {
        font-size: 0.85em;
        min-height: 60px;
        min-width: 65px;
        max-height: calc((100vh - 200px) / 4);
        padding: 0.7em 0.15em;
        border-radius: 0.8em;
    }
    #main-categories span {
        font-size: 2em;
    }
    #main-categories span::after {
        font-size: 0.4em;
    }
    .cn-button {
        width: 60px;
        height: 60px;
        font-size: 0.95em;
        top: 8px;
    }
    #main-categories li:nth-child(13) a {
        background: linear-gradient(145deg, #1ccfcf, #00b8b8);
        box-shadow: 
            0 8px 24px #1ccfcf33,
            0 4px 12px rgba(0,0,0,0.1),
            inset 0 2px 4px rgba(255,255,255,0.2),
            inset 0 -2px 4px rgba(0,0,0,0.1);
        border: 2px solid rgba(255,255,255,0.1);
    }
    #subcategory-view {
        max-width: 99vw;
        padding: 0.7em 0.2em 0.2em 0.2em;
        max-height: calc(100vh - 140px);
        margin-top: 40px;
        border-radius: 0.8em;
    }
    .category-title {
        font-size: 1em;
        padding: 0.4em 0.5em;
        margin-bottom: 0.6em;
    }
}

/* Add new media query for very small screens */
@media (max-width: 400px) and (max-height: 700px) {
    .component {
        padding: 55px 0 0.6em 0;
        min-height: 400px;
    }
    #main-categories {
        max-height: calc(100vh - 180px);
        min-height: 200px;
        gap: 0.3em 0.3em;
    }
    #main-categories li {
        min-width: 70px;
        min-height: 65px;
        max-height: calc((100vh - 220px) / 4);
        margin: 3px 2px;
    }
    #main-categories a {
        font-size: 0.9em;
        min-height: 65px;
        min-width: 70px;
        max-height: calc((100vh - 220px) / 4);
        padding: 0.8em 0.2em;
        border-radius: 0.9em;
    }
    #main-categories span {
        font-size: 2.2em;
    }
    .cn-button {
        width: 65px;
        height: 65px;
        font-size: 1em;
        top: 10px;
    }
    
    .cn-button .menu-text {
        font-size: 0.75em;
    }
    
    .cn-button .menu-arrow {
        font-size: 0.65em;
    }
    
    .cn-wrapper {
        /*margin-top: 70px;*/
    }
    #main-categories li:nth-child(13) a {
        background: linear-gradient(145deg, #1ccfcf, #00b8b8);
        box-shadow: 
            0 8px 24px #1ccfcf33,
            0 4px 12px rgba(0,0,0,0.1),
            inset 0 2px 4px rgba(255,255,255,0.2),
            inset 0 -2px 4px rgba(0,0,0,0.1);
        border: 2px solid rgba(255,255,255,0.1);
    }
}

/* Add media query for very tall screens */
@media (min-height: 800px) {
   /* #main-categories {
        max-height: calc(100vh - 320px);
    }*/
    #main-categories li {
        max-height: calc((100vh - 360px) / 4);
    }
    #main-categories a {
        max-height: calc((100vh - 360px) / 4);
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 1.5em;
    padding: 2em;
    width: 90%;
    max-width: 450px;
    min-height: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close {
    position: absolute;
    right: 1em;
    top: 1em;
    font-size: 1.8em;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.close:hover {
    color: #ff7300;
    background: #fff;
}

#product-details {
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 350px;
}

#product-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 1em;
    margin-bottom: 1.5em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
    flex-shrink: 0;
}

#product-name {
    font-size: 1.6em;
    font-weight: 900;
    color: #333;
    margin-bottom: 0.8em;
    letter-spacing: 0.5px;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
}

#product-ingredients {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 1.5em;
    line-height: 1.5;
    padding: 0 0.5em;
    max-width: 100%;
    word-wrap: break-word;
    flex: 1;
}

.product-price {
    font-size: 2em;
    font-weight: 900;
    color: #ff7300;
    text-shadow: 0 2px 4px rgba(255, 115, 0, 0.2);
    background: linear-gradient(145deg, #fff5f0, #fff);
    padding: 0.6em 1.2em;
    border-radius: 1.2em;
    border: 2px solid #ffe8d6;
    display: inline-block;
    flex-shrink: 0;
}

/* Category Icon Styles */
.category-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    /*margin-bottom: 0.5em;*/
}

/* Product Grid Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8em;
    padding: 0.8em;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: auto;
    backdrop-filter: blur(10px);
    position: relative;
    height: 100%;
}

.item-image {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
}

.item-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    position: relative;
}

.item-title {
    font-size: clamp(0.95rem, 2.8vw, 1.1rem);
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.2;
}

.item-description {
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    color: #666;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
    flex: 1 1 auto;
}

.item-price {
    background: linear-gradient(135deg, #ff7f00 0%, #ff9500 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    flex-shrink: 0;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 3px 10px rgba(255, 127, 0, 0.3);
    align-self: center;
    margin-top: 12px;
}

/* Back Button */
.back-button {
    background: linear-gradient(145deg, #ff7300, #ff8c1a);
    color: #fff;
    border: none;
    padding: 0.7em 1.3em;
    border-radius: 2em;
    font-size: 0.95em;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 115, 0, 0.3);
}

.back-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 115, 0, 0.4);
}

/* Responsive Modal */
@media (max-width: 700px) {
    .modal-content {
        padding: 1.5em;
        margin: 0.8em;
        max-width: 95%;
        min-height: 350px;
        max-height: 75vh;
    }
    
    #product-image {
        width: 150px;
        height: 150px;
    }
    
    #product-name {
        font-size: 1.4em;
    }
    
    #product-ingredients {
        font-size: 1em;
    }
    
    .product-price {
        font-size: 1.7em;
    }
    
    #product-details {
        min-height: 300px;
    }
    
    .product-card {
        padding: 0.7em;
        gap: 0.7em;
        min-height: 70px;
        max-height: none;
        height: auto;
    }
    
    .product-card img {
        width: 60px;
        height: 60px;
    }
    
    .product-card .content {
        min-height: 60px;
        gap: 0.2em;
    }
    
    .product-card h3 {
        font-size: 0.95em;
        line-height: 1.1;
    }
    
    .product-card p {
        font-size: 0.75em;
        max-height: 2.4em;
        -webkit-line-clamp: 2;
        line-height: 1.2;
    }
    
    .product-card .price {
        font-size: 1em;
        padding: 0.15em 0.5em;
        margin-top: 0.5em;
    }
    
    #subcategory-view {
        max-width: 95vw;
        padding: 0.8em;
        max-height: calc(100vh - 200px);
        margin-top: 50px;
    }
    
    #subcategory-list li {
        margin-bottom: 0.6em;
    }
}

@media (max-width: 500px) {
    .modal-content {
        padding: 1.2em;
        margin: 0.5em;
        max-width: 98%;
        min-height: 300px;
        max-height: 70vh;
    }
    
    #product-image {
        width: 120px;
        height: 120px;
    }
    
    #product-name {
        font-size: 1.2em;
    }
    
    #product-ingredients {
        font-size: 0.9em;
    }
    
    .product-price {
        font-size: 1.5em;
    }
    
    #product-details {
        min-height: 250px;
    }
    
    .product-card {
        padding: 0.6em;
        gap: 0.6em;
        min-height: 65px;
        max-height: none;
        height: auto;
    }
    
    .product-card img {
        width: 55px;
        height: 55px;
    }
    
    .product-card .content {
        min-height: 55px;
        gap: 0.15em;
    }
    
    .product-card h3 {
        font-size: 0.9em;
        line-height: 1.1;
    }
    
    .product-card p {
        font-size: 0.7em;
        max-height: 2.2em;
        -webkit-line-clamp: 2;
        line-height: 1.1;
    }
    
    .product-card .price {
        font-size: 0.95em;
        padding: 0.1em 0.4em;
        margin-top: 0.4em;
    }
    
    #subcategory-view {
        max-width: 98vw;
        padding: 0.6em;
        max-height: calc(100vh - 180px);
        margin-top: 45px;
    }
    
    #subcategory-list li {
        margin-bottom: 0.5em;
    }
}

/* iPhone özel düzenlemeler */
@media screen and (max-width: 414px) and (max-height: 896px) {
    .modal-content {
        padding: 1em;
        margin: 0.3em;
        max-width: 99%;
        min-height: 280px;
        max-height: 65vh;
    }
    
    #product-image {
        width: 100px;
        height: 100px;
    }
    
    #product-name {
        font-size: 1.1em;
    }
    
    #product-ingredients {
        font-size: 0.85em;
    }
    
    .product-price {
        font-size: 1.3em;
    }
    
    #product-details {
        min-height: 220px;
    }
    
    .product-card {
        padding: 0.5em;
        gap: 0.5em;
        min-height: 60px;
        max-height: 80px;
    }
    
    .product-card img {
        width: 50px;
        height: 50px;
    }
    
    .product-card .content {
        min-height: 50px;
        gap: 0.1em;
    }
    
    .product-card h3 {
        font-size: 0.85em;
        line-height: 1.1;
    }
    
    .product-card p {
        font-size: 0.65em;
        max-height: 2em;
        -webkit-line-clamp: 2;
        line-height: 1.1;
    }
    
    .product-card .price {
        font-size: 0.9em;
        padding: 0.1em 0.3em;
        margin-top: 0.5em;
    }
    
    #subcategory-view {
        max-width: 99vw;
        padding: 0.5em;
        max-height: calc(100vh - 160px);
        margin-top: 40px;
    }
    
    #subcategory-list li {
        margin-bottom: 0.4em;
    }
} 

/* Hoşgeldiniz Alanı */
.welcome-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background: transparent;
    pointer-events: none;
    animation: welcomeFadeIn 1.2s cubic-bezier(0.4,1.4,0.4,1) 0.2s both;
    padding: 0;
}

@keyframes welcomeFadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.welcome-logo-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4vh;
    margin-top: 6vh;
    animation: logoPop 2.2s cubic-bezier(0.4,1.4,0.4,1) 0.2s both;
}

.welcome-logo {
    width: 420px;
    max-width: 90vw;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 60px 10px #ff730055, 0 0 0 8px #fff8;
    animation: logoSpinGlow 3.5s infinite linear, logoPulse 2.5s infinite alternate cubic-bezier(0.4,1.4,0.4,1);
    object-fit: contain;
    display: block;
}

@keyframes logoSpinGlow {
    0% { filter: drop-shadow(0 0 0 #ff7300); transform: rotate(0deg); }
    50% { filter: drop-shadow(0 0 32px #ff7300cc); }
    100% { filter: drop-shadow(0 0 0 #ff7300); transform: rotate(360deg); }
}
@keyframes logoPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
@keyframes logoPop {
    0% { opacity: 0; transform: scale(0.7) rotate(-30deg); }
    80% { opacity: 1; transform: scale(1.1) rotate(10deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.welcome-text-anim {
    font-size: 2.2em;
    font-weight: 800;
    color: #ff7300;
    text-align: center;
    margin-top: 1.5em;
    text-shadow: 0 2px 8px #ff730033;
    animation: welcomeFadeIn 1.5s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.1em;
    letter-spacing: 2px;
}

.welcome-text-anim span {
    display: inline-block;
    animation: waveText 1.6s infinite cubic-bezier(0.4,1.4,0.4,1);
    font-family: 'Lato', Arial, sans-serif;
}

@keyframes waveText {
    0%, 100% { transform: translateY(0) scale(1); color: #ff7300; filter: brightness(1.1); }
    20% { transform: translateY(-12px) scale(1.15) rotate(-6deg); color: #ff8c1a; filter: brightness(1.3); }
    40% { transform: translateY(0) scale(1); color: #1ccfcf; filter: brightness(1.1); }
    60% { transform: translateY(8px) scale(0.95) rotate(4deg); color: #ff7300; filter: brightness(1.2); }
    80% { transform: translateY(0) scale(1); color: #ff7300; filter: brightness(1.1); }
}

@media (max-width: 1200px) {
    .welcome-logo { width: 98vw; max-width: 700px; }
}
@media (max-width: 700px) {
    .welcome-logo { width: 220px; max-width: 90vw; }
}
@media (max-width: 500px) {
    .welcome-logo { width: 120px; max-width: 90vw; }
} 

.cn-button.menu-bounce-initial {
    animation: menu3DProSpinUp 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@keyframes menu3DProSpinUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 420px) scale(0.7) rotateX(60deg) rotateZ(0deg);
        box-shadow: 0 0 0 #ff730000;
        filter: brightness(0.7) blur(4px);
    }
    10% {
        opacity: 1;
        filter: brightness(1.1) blur(2px);
    }
    40% {
        transform: translate(-50%, 180px) scale(1.18) rotateX(20deg) rotateZ(180deg);
        box-shadow: 0 16px 40px #ff730044, 0 0 0 8px #fff3 inset;
        filter: brightness(1.2) blur(1px);
    }
    70% {
        transform: translate(-50%, 40px) scale(1.08) rotateX(0deg) rotateZ(360deg);
        box-shadow: 0 8px 24px #ff730044, 0 0 0 8px #fff3 inset;
        filter: brightness(1.1) blur(0.5px);
    }
    85% {
        transform: translate(-50%, -8px) scale(1.03) rotateX(-10deg) rotateZ(370deg);
        box-shadow: 0 4px 12px #ff730044, 0 0 0 8px #fff3 inset;
        filter: brightness(1.05) blur(0.2px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1) rotateX(0deg) rotateZ(360deg);
        box-shadow: 0 8px 24px #ff730044, 0 0 0 8px #fff3 inset;
        filter: none;
    }
} 

@media (max-width: 700px) {
    .menu-item {
        padding: 12px;
        gap: 8px;
        align-items: center;
    }
    .item-image {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
    }
    .item-price {
        padding: 6px 12px;
        min-width: 60px;
        margin-top: 8px;
        align-self: center;
    }
} 

.section-title, .category-title {
    position: fixed;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #ff7f00 0%, #ff9500 100%);
    font-size: 1.5em;
    font-weight: 900;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #ff7300, 0 1px 0 #fff, 0 4px 24px #0008;
    margin: 0 0 0.3em 0;
    padding: 0.4em 0 0.4em 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 700px) {
    .section-title, .category-title {
        font-size: 1.5em;
        padding: 0.25em 0 0.25em 0;
        margin-bottom: 0.2em;
    }
}

.menu-items, #subcategory-list {
    padding-top: 56px; /* veya başlık yüksekliği kadar */
} 

.cn-button.auto-open-countdown {
    animation: menuButtonPulse 3s ease-in-out infinite, menuButtonGlow 4s ease-in-out infinite, menuButtonCountdown 3s ease-in-out infinite;
} 