@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Lora:wght@600&display=swap');

:root {
    --primary-font: 'Montserrat', sans-serif;
    --heading-font: 'Lora', serif;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --primary-color: #000000;
    --secondary-color: #6c757d;
    --accent-color: #e53935;
    --border-color: #dee2e6;
    --success-color: #4CAF50;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--primary-font); background-color: var(--background-color); color: var(--primary-color); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.header { text-align: center; padding: 2rem 1rem; }
.header img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; box-shadow: var(--shadow); }
.header h1 { font-family: var(--heading-font); font-size: 2rem; }

.lang-switcher { text-align: center; padding-bottom: 1.5rem; }
.lang-switcher a { color: var(--secondary-color); text-decoration: none; margin: 0 0.3rem; padding: 0.4rem 0.8rem; border: 1px solid var(--border-color); border-radius: 20px; font-size: 0.9rem; transition: all 0.3s; }
.lang-switcher a.active, .lang-switcher a:hover { background-color: var(--accent-color); color: #fff; border-color: var(--accent-color); font-weight: 600; }

.search-container { padding: 0 1rem 1.5rem; }
.search-box { display: flex; align-items: center; background-color: var(--card-color); border-radius: 50px; padding: 0.8rem 1.5rem; box-shadow: var(--shadow); }
.search-box input { border: none; outline: none; background: none; flex-grow: 1; margin-left: 0.75rem; font-size: 1rem; }

.category-tabs { position: sticky; top: 0; background-color: rgba(248,249,250,0.85); backdrop-filter: blur(10px); z-index: 999; border-bottom: 1px solid var(--border-color); }
.tabs-container { display: flex; overflow-x: auto; list-style: none; padding: 0 1rem; }
.tabs-container::-webkit-scrollbar { display: none; }
.tab-item { border: none; background: none; flex-shrink: 0; padding: 1rem 1.5rem; font-size: 1rem; font-weight: 600; color: var(--secondary-color); cursor: pointer; position: relative; }
.tab-item.active { color: var(--primary-color); }
.tab-item::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background-color: var(--accent-color); transition: width 0.3s ease; }
.tab-item.active::after { width: 50%; }

.product-panel { display: none; padding: 2rem 0; animation: fadeIn 0.5s ease; }
.product-panel.active { display: block; }
.product-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.product-card { background: var(--card-color); border-radius: 15px; box-shadow: var(--shadow); display: flex; padding: 1rem; gap: 1rem; align-items: center; cursor: pointer; opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; }
.product-card.visible { opacity: 1; transform: translateY(0); }
.product-card img { width: 100px; height: 100px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.product-details { min-width: 0; }
.product-details h3, .product-details p { overflow-wrap: break-word; }
.product-details h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.product-details p { color: var(--secondary-color); font-size: 0.9rem; margin-bottom: 0.5rem; }
.product-price { font-weight: 700; font-size: 1.1rem; color: var(--accent-color); }
.price-tag span { font-size: 0.8rem; color: var(--secondary-color); font-weight: 400; }

.search-results-container { display: none; padding: 2rem 0; }
.out-of-stock { opacity: 0.4; cursor: not-allowed; }
.out-of-stock h3::after { content: " (Tükendi)"; color: var(--accent-color); font-size: 0.9rem; }

.fab { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 60px; height: 60px; background-color: var(--accent-color); color: #fff; border-radius: 50%; border: none; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; box-shadow: 0 4px 20px rgba(0,0,0,0.3); cursor: pointer; z-index: 1000; }

.waiter-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; display: none; justify-content: center; align-items: center; }
.waiter-modal-content { background: var(--card-color); padding: 2rem; border-radius: 12px; text-align: center; }
.waiter-modal-content h3 { margin-bottom: 1rem; }
.waiter-modal-content input { text-align: center; font-size: 1.2rem; padding: 0.8rem; border-radius: 8px; border: 1px solid var(--border-color); width: 100%; margin-bottom: 1rem; }
.waiter-modal-actions button { border: none; padding: 0.8rem 1.2rem; border-radius: 8px; cursor: pointer; margin: 0 0.5rem; }
.btn-waiter-submit { background-color: var(--accent-color); color: #fff; }

.product-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 2000; display: none; justify-content: center; align-items: flex-end; opacity: 0; transition: opacity 0.3s ease; }
.product-modal-overlay.show { opacity: 1; }
.product-modal-content { background: var(--card-color); border-top-left-radius: 20px; border-top-right-radius: 20px; max-width: 100%; width: 100%; display: flex; flex-direction: column; max-height: 90vh; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.product-modal-overlay.show .product-modal-content { transform: translateY(0); }
.product-modal-header { padding: 1rem; text-align: center; position: relative; flex-shrink: 0; }
.product-modal-header .drag-handle { width: 50px; height: 5px; background: var(--border-color); border-radius: 3px; margin: 0 auto; }
.product-modal-close { position: absolute; top: 0.8rem; right: 1rem; font-size: 1.8rem; color: var(--secondary-color); cursor: pointer; border: none; background: none; }
.product-modal-body { padding: 0 1.5rem 1.5rem; overflow-y: auto; }
.product-modal-body .product-main-image { width: 100%; height: 250px; object-fit: cover; border-radius: 12px; margin-bottom: 1.5rem; }
.product-modal-body h2 { font-family: var(--heading-font); font-size: 1.8rem; color: var(--primary-color); margin-bottom: 0.5rem; overflow-wrap: break-word; }
.product-modal-body p { color: var(--secondary-color); margin-bottom: 2rem; overflow-wrap: break-word; line-height: 1.6; }
.variation-group { margin-bottom: 1.5rem; }
.variation-group h4 { font-weight: 600; margin-bottom: 1rem; }
.variation-options .option { display: flex; justify-content: space-between; align-items: center; background: var(--background-color); padding: 1rem; margin-bottom: 0.5rem; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.variation-options .option.selected { border-color: var(--accent-color); }
.variation-options input[type="radio"] { display: none; }
.variation-options .option-name { font-weight: 600; }
.variation-options .option-price { color: var(--accent-color); font-weight: 600; }
.product-modal-footer { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; background: var(--background-color); border-top: 1px solid var(--border-color); flex-shrink: 0; }
.product-modal-price { font-size: 1.6rem; font-weight: 700; color: var(--primary-color); }

.success-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 3000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease-in-out; }
.success-modal-overlay.show { opacity: 1; }
.success-modal-content { background: var(--card-color); color: var(--primary-color); padding: 2.5rem; border-radius: 1rem; text-align: center; transform: scale(0.7); transition: transform 0.3s ease-in-out; }
.success-modal-overlay.show .success-modal-content { transform: scale(1); }
.success-modal-content h3 { font-family: var(--heading-font); font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.success-modal-content p { color: var(--secondary-color); font-size: 1rem; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background-color: var(--success-color); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.success-icon i { color: #fff; font-size: 2.5rem; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 768px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
    .product-modal-content { max-width: 500px; border-radius: 20px; max-height: 80vh; }
    .success-modal-content { padding: 3rem; }
}
/* Hamburger Menu Styles */
.hamburger-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.hamburger-btn:hover {
    transform: scale(1.1);
}

.info-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}
.info-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.info-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 350px;
    height: 100%;
    background: var(--card-color);
    z-index: 2501;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.info-menu.open {
    transform: translateX(0);
}
.info-menu-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-menu-header h3 {
    font-family: var(--heading-font);
}
.info-menu-close {
    border: none;
    background: none;
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
}
.info-menu-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.info-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
}
.info-item span, .info-item a {
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.6;
}
.social-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.social-links a {
    font-size: 2rem;
    color: var(--secondary-color);
    transition: color 0.3s, transform 0.3s;
}
.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}