:root {
    --bg: #faf7f2;
    --surface: #ffffff;
    --text: #2b2620;
    --muted: #8a8377;
    --accent: #b4471f;
    --accent-dark: #93391a;
    --border: #e8e2d8;
    --radius: 12px;
}

/* Tema varyantlari: restoran basina data-theme ile secilir */
body[data-theme="classic"] { /* varsayilan degerler */ }

body[data-theme="warm-cream"] {
    --bg: #f6efe3;
    --surface: #fffdf7;
    --text: #3a3127;
    --muted: #93876f;
    --accent: #a05c2c;
    --accent-dark: #82471f;
    --border: #e6dcc8;
    --radius: 14px;
}

body[data-theme="noir"] {
    --bg: #181a1e;
    --surface: #23262c;
    --text: #f0eee9;
    --muted: #9aa0ab;
    --accent: #d99a3d;
    --accent-dark: #b87f2a;
    --border: #33373f;
}
body[data-theme="noir"] .badge-open { background: #1f3a26; color: #8fd6a3; }
body[data-theme="noir"] .badge-closed { background: #45221b; color: #f0a795; }
body[data-theme="noir"] .flash { background: #1f3a26; color: #8fd6a3; }
body[data-theme="noir"] .flash-warning { background: #3e3420; color: #e8c87a; }

body[data-theme="mint"] {
    --bg: #f1f7f3;
    --surface: #ffffff;
    --text: #1f2d26;
    --muted: #6f837a;
    --accent: #1f7a4d;
    --accent-dark: #165e3a;
    --border: #dce8e0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.header-right { display: flex; align-items: center; gap: 1rem; }

.badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
}
.badge-open { background: #e3f2e6; color: #1d6b2f; }
.badge-closed { background: #fdebe8; color: #a33419; }

.lang-switch a {
    margin-left: 0.4rem;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.lang-switch a.active { color: var(--accent); }

.flash {
    margin: 1rem auto;
    max-width: 1100px;
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    background: #e3f2e6;
    color: #1d6b2f;
    font-weight: 500;
}
.flash-warning { background: #fdf3dc; color: #8a6116; }
.flash-error { background: #fdebe8; color: #a33419; }
.flash-error ul { margin: 0; padding-left: 1.2rem; }

.container { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; }

.menu-layout, .checkout-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.category-title {
    margin: 1.5rem 0 0.7rem;
    font-size: 1.35rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.3rem;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
}

.product-info h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.product-desc { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.9rem; }
.price { font-weight: 700; color: var(--accent); }

.option-group {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 0.8rem 0 0;
    padding: 0.6rem 0 0;
}
.option-group legend { font-weight: 600; font-size: 0.9rem; padding-right: 0.5rem; }
.option { display: block; font-size: 0.92rem; margin: 0.2rem 0; }
.option em { color: var(--muted); font-style: normal; font-size: 0.85rem; }
.required { color: var(--accent); }

.add-row { display: flex; gap: 0.6rem; margin-top: 0.8rem; }
.add-row input[type="number"] {
    width: 4.5rem;
    padding: 0.45rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

button[type="submit"], .button-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
button[type="submit"]:hover, .button-primary:hover { background: var(--accent-dark); }

.cart-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    position: sticky;
    top: 5rem;
}
.cart-panel h2 { margin-top: 0; font-size: 1.1rem; }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { border-bottom: 1px solid var(--border); padding: 0.55rem 0; }
.line-main { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.95rem; }
.line-options { color: var(--muted); font-size: 0.83rem; }

.link-button {
    background: none !important;
    border: none;
    color: var(--accent) !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    cursor: pointer;
    text-decoration: underline;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin: 0.9rem 0;
    font-size: 1.05rem;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.checkout-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.checkout-form label { display: block; margin: 0.8rem 0; font-weight: 600; font-size: 0.92rem; }
.checkout-form label.option { font-weight: 400; margin: 0.3rem 0; }
.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form input[type="email"],
.checkout-form textarea {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
}
.checkout-form fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 1rem 0;
    padding: 0.8rem 1rem;
}
.checkout-form .row { display: grid; grid-template-columns: 1fr 2fr; gap: 0.8rem; }

.confirmation {
    max-width: 560px;
    margin: 2rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}
.confirmation .cart-lines { text-align: left; margin: 1.5rem 0; }
.confirmation .totals { text-align: left; margin-bottom: 1.5rem; }
.confirmation .totals > div { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.confirmation .totals .grand { border-top: 2px solid var(--text); margin-top: 0.4rem; padding-top: 0.5rem; font-size: 1.1rem; }

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
}
.hours { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1.5rem; }

@media (max-width: 800px) {
    .menu-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-panel { position: static; }
}

.product-card { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.product-image { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.product-card .product-info, .product-card .add-form { flex: 1 1 100%; }
.product-card .product-info { flex: 1 1 auto; }

.landing-card { display: block; text-decoration: none; color: inherit; }
.landing-card:hover { border-color: var(--accent); }
.landing-card .badge { margin-top: 0.3rem; display: inline-block; }

/* Kategori gezinme cubugu (JS'siz: anchor + details/summary) */
html { scroll-behavior: smooth; }
.category-title { scroll-margin-top: 8.5rem; }

.category-nav {
    position: sticky;
    top: 4.2rem;
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 1100px;
    margin: 1rem auto 0;
    padding: 0.4rem 0.6rem;
    background: var(--text);
    border-radius: 99px;
}

.cat-strip {
    display: flex;
    gap: 0.2rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-pill {
    white-space: nowrap;
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 0.9rem;
    border-radius: 99px;
}
.cat-pill:hover { background: var(--accent); color: #fff; }

.cat-all { position: relative; }
.cat-all summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--accent);
}
.cat-all summary::-webkit-details-marker { display: none; }
.cat-burger { display: flex; flex-direction: column; gap: 4px; }
.cat-burger span { width: 16px; height: 2px; background: #fff; border-radius: 2px; }

.cat-dropdown {
    position: absolute;
    top: 3rem;
    left: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.cat-dropdown a {
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.cat-dropdown a:hover { background: var(--bg); color: var(--accent); }

@media (max-width: 800px) {
    .category-nav { top: 0.5rem; border-radius: 16px; }
    .category-title { scroll-margin-top: 5rem; }
}

/* Kategori cubugu ok dugmeleri: yalnizca tasma varsa gorunur */
.cat-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: var(--bg);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.cat-arrow:hover { background: var(--accent); color: #fff; }
.category-nav.at-start .cat-arrow-left { opacity: 0.35; pointer-events: none; }
.category-nav.at-end .cat-arrow-right { opacity: 0.35; pointer-events: none; }

/* Urun arama kutusu */
.search-bar { max-width: 1100px; margin: 0.8rem auto 0; padding: 0 1rem; }
.search-bar input {
    width: 100%;
    padding: 0.7rem 1rem;
    font: inherit;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--surface);
    color: var(--text);
}
.search-bar input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

