: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;
}

body[data-theme="fresh"] {
    --bg: #ede7d9;
    --surface: #ffffff;
    --text: #1a1a1a;
    --muted: #6b7280;
    --accent: #1b6b3a;
    --accent-dark: #145230;
    --border: #d4c9b6;
    --radius: 14px;
}
body[data-theme="fresh"] .badge-open  { background: #d4edda; color: #145230; }
body[data-theme="fresh"] .flash       { background: #d4edda; color: #145230; }
body[data-theme="fresh"] button[type="submit"],
body[data-theme="fresh"] .button-primary {
    box-shadow: 0 4px 14px rgba(27, 107, 58, 0.30);
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
body[data-theme="fresh"] button[type="submit"]:hover,
body[data-theme="fresh"] .button-primary:hover {
    box-shadow: 0 6px 20px rgba(27, 107, 58, 0.45);
    transform: translateY(-1px);
}

* { 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.7rem 0;
    font-size: 0.98rem;
}

.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; }

/* Gutschein (kupon) kutusu */
.payment-methods { border: 1px solid var(--border); border-radius: 12px; padding: 0.7rem 0.9rem 0.9rem; margin: 1rem 0; }
.payment-methods legend { font-weight: 600; font-size: 0.92rem; padding: 0 0.4rem; }
.pay-grid { display: flex; gap: 0.55rem; }
.pay-card {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    padding: 0.75rem 0.3rem; border: 1.5px solid var(--border); border-radius: 12px;
    cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
}
.pay-card input { position: absolute; opacity: 0; pointer-events: none; }
.pay-ic { height: 30px; width: auto; }
.pay-card span { font-size: 0.85rem; font-weight: 600; line-height: 1.1; }
.pay-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pay-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.coupon-box { margin: 1rem 0; }
.coupon-box > label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.coupon-row { display: flex; gap: 0.5rem; }
.coupon-row input { flex: 1; text-transform: uppercase; }
.button-ghost {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    padding: 0 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.button-ghost:hover { background: var(--accent); color: #fff; }
.coupon-msg { margin: 0.4rem 0 0; font-size: 0.86rem; }
.coupon-msg.coupon-ok { color: #1c6b39; }
.coupon-msg.coupon-err { color: #c0392b; }

/* Kasada sabit siparis turu (basla penceresinde secildi) */
.order-type-fixed {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.4rem 0 1rem;
    padding: 0.7rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.order-type-fixed .otf-label { color: var(--muted); font-size: 0.9rem; }
.order-type-fixed .otf-value { font-size: 1.05rem; }
.order-type-fixed .otf-change { margin-left: auto; font-size: 0.85rem; color: var(--accent); }

.confirmation {
    max-width: 560px;
    margin: 2rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}
/* Onay sayfasi: canli durum + tahmini saat */
.conf-status {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin: 0.8rem auto 0;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.95rem;
}
.conf-status-confirmed, .conf-status-preparing, .conf-status-ready {
    background: #e7f6ec; border-color: #b6e0c4; color: #1c6b39;
}
.conf-status-cancelled { background: #fbeae5; border-color: #e0a99a; color: #9c3b21; }
.conf-eta {
    margin: 0.9rem auto 0;
    font-size: 1.25rem;
    color: var(--accent);
}
.conf-eta .muted { font-size: 0.85rem; }

/* Yasal sayfalar (Impressum / Datenschutz) */
.legal-page {
    max-width: 700px;
    margin: 2rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    line-height: 1.6;
}
.legal-page h1 { margin-top: 0; }
.legal-page h2 { font-size: 1.05rem; margin: 1.4rem 0 0.3rem; }
.legal-page p { margin: 0.3rem 0 0.8rem; }
.legal-page a { color: var(--accent); }

.footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-legal a { color: var(--muted); text-decoration: underline; font-size: 0.9rem; }

.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); }


/* ===== Oran ayari: orijinal site olculerine uyum (kompakt v2) ===== */

.menu-layout { grid-template-columns: 1fr 400px; gap: 1.6rem; }

.search-bar { max-width: none; margin: 0 0 0.9rem; padding: 0; }

.category-nav {
    max-width: none;
    margin: 0 0 1.2rem;
    padding: 0.3rem 0.45rem;
    top: 0.6rem;
    border-radius: 99px;
}
.cat-all summary { width: 2rem; height: 2rem; background: var(--accent); }
.cat-burger span { width: 13px; }
.cat-arrow { width: 1.9rem; height: 1.9rem; font-size: 1.15rem; }
.cat-pill { font-size: 0.92rem; padding: 0.38rem 0.95rem; }
.cat-pill.active { background: var(--accent); color: #fff; }

.category-title { font-size: 1.2rem; margin: 1.2rem 0 0.6rem; scroll-margin-top: 4.5rem; }

/* Kompakt urun karti: bilgi solda, gorsel sagda, kontroller altta tek satir */
.product-card {
    padding: 0.85rem 1.05rem;
    margin-bottom: 0.65rem;
    gap: 0.8rem;
}
.product-info { order: 1; }
.product-image { order: 2; width: 104px; height: 78px; border-radius: 10px; }
.add-form { order: 3; flex: 1 1 100%; }

.product-info h3 { font-size: 1rem; margin: 0; }
.product-info .price { display: block; font-size: 1.02rem; margin: 0.1rem 0 0.15rem; }
.product-desc { font-size: 0.85rem; margin: 0; }

.card-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.55rem;
}

.option-pills-area { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.option-group { border: none; margin: 0; padding: 0; display: inline-flex; gap: 0.3rem; }

.option-pill { position: relative; cursor: pointer; }
.option-pill input { position: absolute; opacity: 0; pointer-events: none; }
.option-pill span {
    display: inline-block;
    padding: 0.26rem 0.78rem;
    border-radius: 99px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}
.option-pill input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.option-pill input:focus-visible + span { outline: 2px solid var(--accent-dark); }

.add-row { margin-top: 0; gap: 0.45rem; align-items: center; }
.add-row input[type="number"] { width: 3.4rem; padding: 0.3rem 0.4rem; text-align: center; }
.add-btn {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 1.4rem !important;
    line-height: 1;
}

/* Buyuk sepet paneli: koyu baslik bandi + ferah govde */
.cart-panel { padding: 0; overflow: hidden; border-radius: 18px; }
.cart-head { background: var(--text); padding: 1.4rem 1.6rem; }
.cart-head h2 { margin: 0; color: var(--surface); font-size: 1.7rem; }
.cart-body { padding: 1.4rem 1.6rem 1.6rem; }

.cart-empty { text-align: center; padding: 1.8rem 0 1.2rem; }
.cart-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 20px;
    background: var(--accent);
    color: #fff;
    margin-bottom: 1rem;
}
.cart-empty-icon svg { width: 34px; height: 34px; }
.cart-empty strong { display: block; font-size: 1.15rem; margin-bottom: 0.4rem; }
.cart-empty p { margin: 0 auto; max-width: 230px; font-size: 0.95rem; }

/* ===== Profesyonel sepet satirlari ===== */
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-close {
    display: none;             /* sadece mobilde gorunur */
    flex-shrink: 0;
    width: 40px; height: 40px;
    border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--surface);
    font-size: 1.6rem; line-height: 1;
    cursor: pointer;
}

.cart-line { border-bottom: 1px solid var(--border); padding: 0.55rem 0; }
.cart-line:last-of-type { border-bottom: none; }
.line-name { font-weight: 600; font-size: 0.92rem; }
.line-price { white-space: nowrap; font-weight: 600; font-size: 0.92rem; }
.line-note-shown {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-style: italic;
}

.line-controls {
    display: flex; align-items: center; gap: 0.45rem;
    margin-top: 0.45rem;
}
.qty-control {
    display: inline-flex; align-items: center;
    border: 1px solid var(--border); border-radius: 999px;
    overflow: hidden;
}
.qty-btn {
    width: 26px; height: 26px;
    border: none; background: var(--bg);
    color: var(--text); font-size: 1rem; line-height: 1;
    cursor: pointer;
}
.qty-btn:hover { background: var(--accent); color: #fff; }
.qty-num { min-width: 1.6rem; text-align: center; font-weight: 600; font-size: 0.86rem; }

.line-link {
    background: none; border: none; cursor: pointer;
    color: var(--accent); font-size: 0.8rem;
    padding: 0.2rem 0.3rem; text-decoration: underline;
}
.line-remove {
    margin-left: auto; color: var(--muted);
    display: inline-flex; align-items: center; text-decoration: none;
}
.line-remove:hover { color: #c0392b; }

.note-edit { margin-top: 0.5rem; }
.note-input {
    width: 100%; box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 0.88rem; font-family: inherit;
}
.note-input:focus { outline: none; border-color: var(--accent); }

.cart-checkout-btn { display: block; width: 100%; box-sizing: border-box; text-align: center; }
.cart-checkout-btn.is-disabled {
    background: var(--border);
    color: var(--muted);
    cursor: not-allowed;
    pointer-events: none;
}
.cart-min-warning {
    margin: 0 0 0.7rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: #fbeae5;
    border: 1px solid #e0a99a;
    color: #9c3b21;
    font-size: 0.85rem;
}
.cart-panel.is-loading { opacity: 0.6; pointer-events: none; }

/* ===== Mobil: sabit alt sepet cubugu + acilir panel ===== */
.cart-bar {
    display: none;             /* sadece mobilde gorunur */
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.85rem 1.1rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 1rem; font-weight: 600;
    cursor: pointer;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
}
.cart-bar-count {
    flex-shrink: 0;
    min-width: 1.6rem; height: 1.6rem;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
}
.cart-bar-label { flex: 1; text-align: left; }
.cart-bar-total { flex-shrink: 0; }

.cart-backdrop {
    position: fixed; inset: 0; z-index: 65;
    background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .menu-layout { grid-template-columns: 1fr; }
}

/* ===== Kompakt yerlesim: oranlar ornek siteye gore ===== */

/* Sepet kolonu olculu; menu kolonu daha genis kalir */
.menu-layout { grid-template-columns: 1fr 340px; gap: 1.6rem; }

/* Arama ve kategori cubugu artik menu kolonunun icinde */
.menu-list .search-bar { max-width: none; margin: 0 0 0.9rem; padding: 0; }
.menu-list .category-nav {
    max-width: none;
    margin: 0 0 1.4rem;
    padding: 0.3rem 0.45rem;
    top: 4.3rem; /* site basliginin hemen alti: cubuk hep gorunur kalir */
}
.cat-pill { font-size: 0.93rem; padding: 0.45rem 1.05rem; }
.cat-pill.active { background: var(--accent); color: #fff; }
.cat-all summary { width: 2.1rem; height: 2.1rem; }
.cat-arrow { width: 1.9rem; height: 1.9rem; font-size: 1.15rem; }
.category-title { font-size: 1.3rem; margin-top: 1.2rem; scroll-margin-top: 8.2rem; }

/* Kompakt urun karti: gorsel sagda, secenekler hap, yuvarlak + dugmesi */
.product-card { padding: 0.85rem 1.1rem; margin-bottom: 0.7rem; }
.product-card .product-info { flex: 1 1 auto; min-width: 0; }
.product-card .product-image { order: 2; width: 104px; height: 78px; }
.product-info h3 { font-size: 1.02rem; }
.product-info .price { display: block; font-size: 1.02rem; margin: 0.1rem 0 0.15rem; }
.product-desc { font-size: 0.88rem; margin-bottom: 0.2rem; }

.product-card .add-form { flex: 1 1 100%; }
.card-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.45rem;
}
.option-pills-area { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.card-controls .option-group {
    border: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.option-pill { position: relative; }
.option-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.option-pill span {
    display: inline-block;
    padding: 0.28rem 0.8rem;
    border-radius: 99px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.option-pill input:checked + span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.option-pill input:focus-visible + span { outline: 2px solid var(--accent-dark); }

.card-controls .add-row { margin: 0; align-items: center; gap: 0.45rem; }
.card-controls .add-row input[type="number"] { width: 3.2rem; padding: 0.3rem 0.4rem; text-align: center; }
.add-btn {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Kompakt sepet paneli: koyu baslik bandi + ferah ama olculu govde */
.cart-panel { padding: 0; border-radius: 14px; overflow: hidden; }
.cart-head { background: var(--text); padding: 0.85rem 1.1rem; }
.cart-head h2 { margin: 0; color: var(--surface); font-size: 1.2rem; }
.cart-body { padding: 1rem 1.1rem 1.1rem; }

.cart-empty { text-align: center; padding: 1.1rem 0 0.8rem; }
.cart-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent);
    color: #fff;
    margin-bottom: 0.7rem;
}
.cart-empty-icon svg { width: 28px; height: 28px; }
.cart-empty strong { display: block; font-size: 1.02rem; margin-bottom: 0.3rem; }
.cart-empty p { margin: 0 auto; max-width: 230px; font-size: 0.86rem; }

@media (max-width: 800px) {
    .menu-list .category-nav { top: 6.6rem; } /* mobilde baslik iki satira sarar */
    .category-title { scroll-margin-top: 10.5rem; }
}

/* Grid tasmasini onle: serit kolonu genisletemesin, kolon icinde kaysin */
.menu-list { min-width: 0; }
.cat-strip { min-width: 0; }

.add-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Hero: restoranin baslik gorseli + logosu (ornek sitedeki gibi) */
.hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.05) 70%, var(--bg));
}
.hero-logo {
    position: relative;
    z-index: 1;
    max-width: 360px;
    max-height: 200px;
    width: auto;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}
.brand-logo { height: 34px; width: auto; vertical-align: middle; margin-right: 0.4rem; }
.brand { display: inline-flex; align-items: center; }

@media (max-width: 800px) {
    .hero { height: 190px; }
    .hero-logo { max-width: 240px; max-height: 130px; }
}

/* ===== Urun ozellestirme penceresi (modal) ===== */
.product-modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    width: min(560px, calc(100vw - 2rem));
    max-height: 88vh;
    overflow-y: auto;            /* icerik uzunsa modal icinde kaydir */
    overscroll-behavior: contain;
    background: var(--surface);
    color: var(--text);
}
.product-modal::backdrop { background: rgba(0,0,0,0.45); }

/* Baslik ve "sepete ekle" her zaman gorunur; ortadaki malzeme listesi kayar */
.modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 1.1rem 0.7rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.modal-head > div { flex: 1; min-width: 0; }
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.modal-head .price { font-size: 1.05rem; white-space: nowrap; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 0 0.2rem;
}
.modal-close:hover { color: var(--text); }

.modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1.1rem;
}

.modal-section {
    margin: 0.3rem 0;
    padding: 0.45rem 1.1rem 0;
    font-size: 0.92rem;
    border-top: 1px solid var(--border);
}

.toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 1.2rem;
    padding: 0.35rem 1.1rem 0.6rem;
}
.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    padding: 0.14rem 0;
    cursor: pointer;
}
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.t-track {
    flex-shrink: 0;
    width: 34px;
    height: 19px;
    border-radius: 99px;
    background: #c9c2b6;
    position: relative;
    transition: background 0.15s;
}
.t-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.15s;
}
.toggle-row input:checked + .t-track { background: #2e9e54; }
.toggle-row input:checked + .t-track::after { left: 17px; }
.toggle-row input:focus-visible + .t-track { outline: 2px solid var(--accent); }

/* Kapatilan standart malzeme: ustu cizili */
.standards .toggle-row input:not(:checked) ~ .t-label {
    text-decoration: line-through;
    color: var(--muted);
}
.standards .toggle-row input:checked ~ .t-label { color: #2e9e54; font-weight: 600; }

.t-price {
    flex-shrink: 0;
    background: #e9b949;
    color: #3a3127;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
}

.modal-foot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 0.7rem 1.1rem 0.8rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: right;
}

/* Sepette ustu cizili "ohne X" */
.line-removed { text-decoration: line-through; color: var(--muted); }

/* Urun adi yanindaki "i" bilgi dugmesi */
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 0.4rem;
    padding: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: none;
    color: var(--muted);
    cursor: pointer;
}
.info-btn:hover { color: var(--accent); }

/* Bilgi / alerjen penceresi govdesi */
.info-body { padding: 1rem 1.1rem 1.2rem; }
.info-title { margin: 0 0 0.6rem; font-size: 1.15rem; }
.info-disclaimer { margin: 0 0 1rem; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.info-allergens-head {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.info-badge {
    background: var(--bg);
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.72rem;
}
.info-allergens { list-style: none; margin: 0; padding: 0; }
.info-allergens li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
.info-allergens li:last-child { border-bottom: none; }
.info-warning {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    background: #fbeae5;
    border: 1px solid #e0a99a;
    border-radius: 10px;
    color: #9c3b21;
    font-size: 0.86rem;
    line-height: 1.5;
}
.info-warning svg { flex-shrink: 0; margin-top: 0.1rem; }

@media (max-width: 640px) {
    .toggle-grid { grid-template-columns: 1fr; }
}

/* Odeme: toplam satiri vurgusu + bolge secimi */
.cart-total { border-top: 2px solid var(--text); margin-top: 0.4rem; padding-top: 0.5rem; font-size: 1.1rem; }
.checkout-form select { width: 100%; margin-top: 0.25rem; padding: 0.55rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--surface); }
[data-place-order]:disabled { opacity: 0.5; cursor: not-allowed; }
[data-min-warning] { margin: 0.6rem 0 0; }

/* ===== Sag kolon: siparis ozeti + sepet ===== */
.side-column { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 1rem; align-self: start; }
.side-column .cart-panel { position: static; }

.order-summary {
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 14px;
    padding: 1rem 1.2rem;
}
.os-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.os-head strong { font-size: 1.05rem; }
.os-change {
    background: var(--accent); color: #fff; border: none; border-radius: 99px;
    padding: 0.3rem 0.9rem; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.os-change:hover { background: var(--accent-dark); }
.os-zone { margin-top: 0.5rem; font-weight: 600; }
.os-meta { margin-top: 0.3rem; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9rem; color: var(--muted); }
.os-meta strong { color: var(--text); }
.os-hint { margin-top: 0.4rem; font-size: 0.88rem; color: var(--muted); }

/* ===== Siparis baslatma penceresi ===== */
.start-modal {
    border: none; border-radius: 20px; padding: 0;
    width: min(560px, calc(100vw - 2rem)); max-height: 88vh;
    background: var(--surface); color: var(--text);
}
.start-modal::backdrop { background: rgba(0,0,0,0.5); }
.start-modal form { padding: 1.4rem 1.5rem 1.5rem; }

.sm-head { display: flex; align-items: flex-start; gap: 0.9rem; }
.sm-icon {
    flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px;
    background: var(--accent); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.sm-icon svg { width: 26px; height: 26px; }
.sm-titles { flex: 1; }
.sm-titles h2 { margin: 0 0 0.2rem; font-size: 1.4rem; }
.sm-titles p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.sm-types { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 1.2rem 0; }
.sm-card {
    position: relative; display: flex; flex-direction: column; gap: 0.2rem;
    padding: 0.9rem 1rem; border: 2px solid var(--border); border-radius: 14px; cursor: pointer;
}
.sm-card input { position: absolute; opacity: 0; pointer-events: none; }
.sm-card.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.sm-card-title { font-weight: 700; }
.sm-card-sub { font-size: 0.85rem; color: var(--muted); }

.sm-zone { margin: 0.4rem 0 1.1rem; }
.sm-zone h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.sm-zone select {
    width: 100%; margin-top: 0.5rem; padding: 0.6rem 0.7rem;
    border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--surface);
}

.sm-foot { display: flex; flex-direction: column; gap: 0.5rem; }
.sm-foot .button-primary { width: 100%; padding: 0.75rem; font-size: 1rem; }
.sm-foot .button-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.sm-later {
    background: none; border: none; color: var(--muted); font-size: 0.9rem;
    cursor: pointer; text-decoration: underline; padding: 0.3rem;
}

@media (max-width: 800px) {
    .side-column { position: static; }
}

/* Zaman secimi (baslatma penceresi) */
.sm-timing { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 0.2rem 0 1.1rem; }
.sm-card.disabled { opacity: 0.5; cursor: not-allowed; }
.sm-time { margin: 0.2rem 0 1.1rem; }
.sm-time h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.sm-time select {
    width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--border);
    border-radius: 10px; font: inherit; background: var(--surface);
}
.os-timing { margin-top: 0.35rem; font-size: 0.92rem; color: var(--accent); font-weight: 600; }
.badge-preorder { background: #fdf3dc; color: #8a6116; }
.order-timing { margin: 0.3rem 0 1rem; color: var(--muted); }

/* Tekrar siparis karti (uye musteri + bos sepet; tema1 + tema2 ortak) */
.reorder-card {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 0.9rem 1.1rem; margin: 0 0 1rem;
}
.rc-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.rc-meta { color: var(--muted); font-size: 0.88rem; }
.rc-btn {
    background: var(--accent); color: #fff; border: none; border-radius: 10px;
    padding: 0.6rem 1rem; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.rc-btn:hover { background: var(--accent-dark); }

/* Mobil teslimat tercihi seridi — masaustunde gizli (sag kolonda ozet var) */
.pref-strip { display: none; }

/* ============================================================
   MOBIL (≤768px) — en sonda: onceki tum kurallari ezer
   ============================================================ */
@media (max-width: 768px) {
    .container { margin: 1rem auto; padding: 0 0.8rem; }

    /* Teslimat tercihi kompakt serit (tiklaninca baslangic modali) */
    .pref-strip {
        display: flex; align-items: center; gap: 0.6rem; width: 100%;
        background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
        padding: 0.7rem 0.9rem; margin: 0 0 0.8rem; font: inherit; text-align: left;
        cursor: pointer; color: var(--text);
    }
    .ps-type { font-weight: 700; white-space: nowrap; }
    .ps-time { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
    .ps-change { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 0.9rem; }

    .reorder-card { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .rc-btn { width: 100%; padding: 0.7rem; }

    /* Tek kolon: menu + sepet alt alta */
    .menu-layout,
    .checkout-layout { grid-template-columns: 1fr; gap: 1.2rem; }
    .side-column { position: static; width: auto; }

    /* Ust bar */
    .site-header { padding: 0.7rem 1rem; gap: 0.5rem; }
    .brand { font-size: 1.05rem; }
    .brand-logo { height: 26px; }
    .header-right { gap: 0.5rem; }
    .badge { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
    .lang-switch a { margin-left: 0.25rem; font-size: 0.8rem; }

    /* Hero */
    .hero { height: 150px; }
    .hero-logo { max-width: 200px; max-height: 110px; }

    /* Kategori cubugu: kolon icinde dogru kayar */
    .menu-list .category-nav { top: 0.4rem; margin-bottom: 1rem; }

    /* Urun kartlari */
    .product-card { padding: 0.8rem 0.9rem; }
    .product-card .product-image { width: 84px; height: 64px; }
    .option-pill span { padding: 0.3rem 0.7rem; }

    /* Modallar: alttan acilan sayfa (bottom sheet), ic kaydirma ile */
    .product-modal,
    .start-modal {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        transform: none;
        border-radius: 18px 18px 0 0;
        overflow-y: auto;            /* icerik tasarsa modal icinde kaydir */
        overscroll-behavior: contain;
    }
    .start-modal form { padding: 0 1.1rem 1.3rem; }

    /* Baslik (X dahil) her zaman ustte gorunur — kaydirmada kaybolmaz */
    .modal-head,
    .start-modal .sm-head {
        position: sticky;
        top: 0;
        z-index: 3;
        background: var(--surface);
        gap: 0.6rem;
        padding-top: 1rem;
        padding-bottom: 0.6rem;
    }
    .modal-head h3 { font-size: 1.1rem; }
    .sm-titles h2 { font-size: 1.15rem; }
    .sm-titles p { font-size: 0.85rem; }

    /* X dugmesi: buyuk dokunma hedefi, sag ustte sabit */
    .modal-close {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
        border-radius: 50%;
        background: var(--bg);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Secim kartlari yan yana (modal kisa kalir) */
    .sm-types,
    .sm-timing { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .sm-card { padding: 0.6rem 0.7rem; }
    .sm-card-sub { font-size: 0.78rem; }
    .sm-zone, .sm-time { margin: 0.3rem 0 0.9rem; }
    .toggle-grid { grid-template-columns: 1fr; }
    .modal-row { flex-direction: column; align-items: stretch; gap: 0.6rem; }

    /* Odeme formu */
    .checkout-form { padding: 1.1rem; }
    .checkout-form .row { grid-template-columns: 1fr; gap: 0; }

    /* Sepet: mobilde inline panel gizli; alt cubuk + acilir bottom-sheet */
    .menu-list { padding-bottom: 4.5rem; }   /* alt cubuk icerigi ortmesin */
    .cart-bar { display: flex; }
    /* display:flex UA'nin [hidden]{display:none} kuralini ezer — bos sepette
       cubuk gorunmesin diye acikca geri kapatilir */
    .cart-bar[hidden] { display: none; }
    .cart-close { display: inline-flex; }

    /* Menu kolonundaki sepet paneli normalde gizli; cubuga basinca acilir */
    .side-column .cart-panel { display: none; }
    .side-column .cart-panel.is-open {
        display: block;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        top: auto;
        z-index: 70;
        width: 100%;
        max-height: 88vh;
        margin: 0;
        border-radius: 18px 18px 0 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .cart-panel.is-open .cart-head {
        position: sticky; top: 0; z-index: 3;
    }
    body.cart-open { overflow: hidden; }

    .cart-head { padding: 0.8rem 1.1rem; }
    .cart-head h2 { font-size: 1.15rem; }
    .cart-body { padding: 1rem 1.1rem 1.1rem; }

    /* Footer */
    .site-footer { gap: 1.5rem; padding: 1.5rem 1rem; }

    /* Onay sayfasi */
    .confirmation { margin: 1rem auto; padding: 1.3rem; }
}

/* ===== Musteri uyelik (giris/kayit/hesap) — degisken tabanli, her temada uyumlu ===== */
.sf-auth { display: flex; justify-content: center; padding: 1.5rem 0 3rem; }
.sf-auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.7rem; }
.sf-auth-card h1 { margin: 0 0 0.3rem; font-size: 1.5rem; color: var(--text); }
.sf-auth-card .muted { margin: 0 0 1.2rem; font-size: 0.9rem; }
.sf-form { display: flex; flex-direction: column; gap: 0.85rem; }
.sf-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.sf-form input[type=text], .sf-form input[type=email], .sf-form input[type=tel], .sf-form input[type=password] {
    width: 100%; height: 44px; padding: 0 0.85rem; border: 1px solid var(--border); border-radius: 9px;
    font-size: 0.95rem; background: var(--surface); color: var(--text); font-weight: 400;
}
.sf-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.sf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.sf-form-section { margin: 0.6rem 0 0; font-size: 1rem; color: var(--text); }
.sf-check { flex-direction: row !important; align-items: center; gap: 0.5rem !important; font-weight: 500 !important; }
.sf-check input { width: 17px; height: 17px; accent-color: var(--accent); }
.sf-form .button-primary { margin-top: 0.4rem; }
.sf-auth-alt { margin: 1.1rem 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
.sf-auth-alt a { color: var(--accent-dark, var(--accent)); font-weight: 700; text-decoration: none; }

/* Hesap sayfasi */
.sf-account { max-width: 820px; margin: 0 auto; padding: 1.2rem 0 3rem; }
.sf-account-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sf-account h1 { font-size: 1.6rem; color: var(--text); margin: 0; }
.sf-account > .muted { margin: 0.2rem 0 1.2rem; }
.sf-logout { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 50px; padding: 0.4rem 1rem; font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.sf-logout:hover { background: var(--bg); }
.sf-link { color: var(--accent-dark, var(--accent)); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.sf-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 0 0 1.1rem; }
.sf-card h2 { margin: 0 0 0.2rem; font-size: 1.15rem; color: var(--text); }
.sf-card .muted.small { margin: 0 0 0.9rem; }

/* Favoriler */
.sf-fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.7rem; margin-top: 0.7rem; }
.sf-fav { border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sf-fav-name { font-weight: 700; color: var(--text); }
.sf-fav-price { color: var(--accent-dark, var(--accent)); font-weight: 700; font-size: 0.9rem; }
.sf-fav-btn { margin-top: 0.4rem; text-align: center; background: var(--accent); color: #fff; border-radius: 7px; padding: 0.45rem; font-weight: 700; font-size: 0.82rem; text-decoration: none; }

/* Siparis listesi */
.sf-orders { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.sf-order { border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem; }
.sf-order-top { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.sf-order-num { font-weight: 700; color: var(--text); }
.sf-order-date { color: var(--muted); font-size: 0.85rem; }
.sf-order-status { margin-left: auto; font-size: 0.74rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 50px; background: var(--bg); color: var(--muted); }
.sf-st-completed { background: #e7f4ea; color: #1d6b2f; }
.sf-st-cancelled { background: #fdeaea; color: #b3261e; }
.sf-st-pending, .sf-st-confirmed, .sf-st-preparing, .sf-st-ready { background: #fdf3df; color: #8a6a14; }
.sf-order-items { color: var(--muted); font-size: 0.86rem; margin: 0.4rem 0 0.6rem; }
.sf-order-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sf-order-bottom strong { color: var(--text); font-size: 1.02rem; }
.sf-reorder { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 0.5rem 1.1rem; font-weight: 700; cursor: pointer; font-size: 0.85rem; }
.sf-reorder:hover { filter: brightness(0.94); }

@media (max-width: 560px) {
    .sf-form-row { grid-template-columns: 1fr; }
}

/* Header hesap linki (tema1) */
.header-account { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.88rem; padding: 0.3rem 0.6rem; border-radius: 50px; }
.header-account:hover { background: var(--bg); color: var(--accent); }
@media (max-width: 600px) { .header-account span { display: none; } }

/* Login: "angemeldet bleiben" + "passwort vergessen" satiri */
.sf-form-between { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.sf-forgot-link { font-size: 0.85rem; color: var(--accent-dark, var(--accent)); font-weight: 600; text-decoration: none; }
.sf-forgot-link:hover { text-decoration: underline; }

/* Checkout: misafir tesvik banner'i + "hesap olustur" kutusu */
.co-guest-banner { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap;
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
.co-guest-banner a { color: var(--accent-dark, var(--accent)); font-weight: 700; text-decoration: none; white-space: nowrap; }
.co-account-offer { background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
    border-radius: 10px; padding: 0.85rem 1rem; margin: 0.2rem 0 0.4rem; }
.co-account-offer .sf-check { font-weight: 700 !important; color: var(--text); }
.co-account-offer .muted.small { margin: 0.35rem 0 0; padding-left: 1.6rem; }
.co-account-pw { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.7rem; font-size: 0.88rem; font-weight: 600; }
.co-account-pw input { width: 100%; height: 44px; padding: 0 0.85rem; border: 1px solid var(--border); border-radius: 9px; font-size: 0.95rem; }

/* Zorunlu yasal onay (AGB + Datenschutz) — sipariş öncesi tik */
.co-terms { display: flex; align-items: flex-start; gap: 0.55rem; margin: 1rem 0 1.1rem; font-size: 0.9rem; line-height: 1.45; color: var(--text); }
.co-terms input { margin-top: 0.15rem; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }
.co-terms a { color: var(--accent-dark, var(--accent)); font-weight: 600; text-decoration: underline; }
.button-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Yasal sayfa: liste + "Stand" tarihi */
.legal-page ul { margin: 0.4rem 0 0.6rem 1.1rem; padding: 0; }
.legal-page ul li { margin: 0.3rem 0; line-height: 1.5; }
.legal-page .legal-stand { margin-top: 1.4rem; color: var(--text); }

/* Gizli alanlar (PLZ bölge/düz geçişi vb.) gerçekten gizlensin — .checkout-form label{display:block} ezmesin */
.checkout-form [hidden] { display: none !important; }

/* ===== Upsell "Passt dazu?" (kasada çapraz satış) ===== */
.cart-upsell { margin: 0.9rem 0 0.4rem; padding-top: 0.9rem; border-top: 1px dashed var(--border); }
.cart-upsell-title { margin: 0 0 0.6rem; font-weight: 700; font-size: 0.95rem; color: var(--text); }
.cart-upsell-list { display: flex; flex-direction: column; gap: 0.5rem; }
.cart-upsell-item { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.cart-upsell-img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--border); }
.cart-upsell-noimg { display: grid; place-items: center; color: var(--muted); font-size: 1.1rem; font-weight: 700; }
.cart-upsell-name { flex: 1; min-width: 0; font-size: 0.92rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-upsell-price { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.cart-upsell-add { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--accent); color: #fff;
    font-size: 1.25rem; line-height: 1; font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0;
    transition: background .15s, transform .12s; }
.cart-upsell-add:hover { background: var(--accent-dark); transform: scale(1.08); }

/* ===== Trinkgeld / bahşiş ===== */
.tip-box .tip-hint { margin: 0 0 0.6rem; font-size: 0.85rem; color: var(--muted); }
.tip-options { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.tip-btn { padding: 0.5rem 0.9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
    color: var(--text); font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: all .12s; }
.tip-btn:hover { border-color: var(--accent); color: var(--accent); }
.tip-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tip-custom-wrap { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--muted);
    border: 1px solid var(--border); border-radius: 999px; padding: 0.15rem 0.5rem 0.15rem 0.8rem; }
.tip-custom-wrap input { width: 4.5rem; border: none; background: transparent; font: inherit; color: var(--text);
    text-align: right; padding: 0.35rem 0.2rem; }
.tip-custom-wrap input:focus { outline: none; }

/* ===== Değerlendirme / yıldız ===== */
.stars { display: inline-flex; gap: 1px; line-height: 1; }
.stars .star { color: #d8d2c6; font-size: 1.05em; }
.stars .star.on { color: #f5b50a; }

/* Yıldız seçimi (form): ters sıralı radyolar + hover/checked altın */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { font-size: 2.2rem; color: #d8d2c6; cursor: pointer; transition: color .12s; line-height: 1; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #f5b50a; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.review-page, .reviews-page { max-width: 680px; margin: 1.5rem auto; padding: 0 1rem; }
.review-form textarea, .review-page textarea {
    width: 100%; margin-top: 1rem; padding: 0.7rem 0.9rem; border: 1px solid var(--border);
    border-radius: 10px; font: inherit; resize: vertical;
}
.review-form .button-primary, .review-page .button-primary { margin-top: 1rem; }
.field-error { color: var(--danger, #b3361f); font-size: 0.88rem; margin: 0.3rem 0 0; }

.reviews-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.2rem; }
.reviews-summary { display: inline-flex; align-items: center; gap: 0.5rem; }
.reviews-avg { font-size: 1.6rem; font-weight: 800; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 0.9rem; }
.review-card-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.review-author { font-weight: 700; }
.review-date { font-size: 0.85rem; }
.review-comment { margin: 0.2rem 0 0; line-height: 1.55; }
.reviews-pagination { margin-top: 1.2rem; }

/* Gewünschte Zeit: tarih + saat ayrı seçiciler */
.co-time-split { display: flex; gap: 0.6rem; margin-top: 0.4rem; }
.co-time-col { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; margin: 0; }
.co-time-cap { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.co-time-split select { width: 100%; }

/* ===== Sipariş takibi: ilerleme adımları ===== */
.track-steps { list-style: none; display: flex; padding: 0; margin: 1.2rem 0; counter-reset: step; }
.track-step { flex: 1; position: relative; text-align: center; font-size: 0.82rem; color: var(--muted); }
/* Adımlar arası bağlantı çizgisi */
.track-step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.track-step:first-child::before { display: none; }
.track-dot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; margin: 0 auto 0.4rem; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--border); color: #fff; font-size: 0.8rem; font-weight: 800; transition: all .2s; }
.track-label { display: block; line-height: 1.25; padding: 0 2px; }
/* Tamamlanan adımlar */
.track-step.done::before { background: #1d7a37; }
.track-step.done .track-dot { background: #1d7a37; border-color: #1d7a37; }
.track-step.done .track-label { color: var(--text); }
/* Mevcut adım (vurgulu, nabız) */
.track-step.current::before { background: #1d7a37; }
.track-step.current .track-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.track-step.current .track-label { color: var(--text); font-weight: 700; }
@media (max-width: 480px) { .track-label { font-size: 0.72rem; } .track-dot { width: 24px; height: 24px; } }

/* ===== Sadakat / damga kartı ===== */
.loyalty-banner { background: #fbf6e8; border: 1px solid #efe1bd; border-radius: 12px; padding: 0.9rem 1.1rem; margin: 0 0 1rem; }
.loyalty-banner.loyalty-ready { background: #eafaef; border-color: #bce6cb; color: #1d6b2f; font-weight: 700; }
.loyalty-prog-head { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 0.5rem; }
.loyalty-stamps { display: flex; flex-wrap: wrap; gap: 4px; }
.loyalty-stamp { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid #e2d6b0; color: #e2d6b0; font-size: 0.8rem; }
.loyalty-stamp.on { background: #f5b50a; border-color: #f5b50a; color: #fff; }
.loyalty-hint { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--muted); }
.cart-loyalty-row { color: #1d6b2f; }
.loyalty-account .loyalty-stamps { margin: 0.6rem 0; }
.loyalty-ready-text { color: #1d6b2f; font-weight: 700; margin: 0.4rem 0 0; }

/* Web push: takip sayfası bildirim butonu */
.conf-push { margin: 0.6rem 0 1rem; }
.push-btn { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 999px;
    padding: 0.55rem 1.1rem; font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: all .12s; }
.push-btn:hover { border-color: var(--accent); color: var(--accent); }
.push-done { color: #1d6b2f; font-weight: 700; font-size: 0.92rem; }

/* ===== PWA "Ana Ekrana Ekle" banner'ı ===== */
.pwa-banner { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1200;
    width: calc(100% - 24px); max-width: 460px; display: flex; align-items: center; gap: 0.7rem;
    background: #1c1917; color: #fff; border-radius: 14px; padding: 0.8rem 0.9rem;
    box-shadow: 0 12px 34px rgba(0,0,0,.4); }
.pwa-ic { font-size: 1.6rem; flex-shrink: 0; }
.pwa-body { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pwa-body strong { font-size: 0.95rem; }
.pwa-text { font-size: 0.8rem; color: #c9c4bc; line-height: 1.3; }
.pwa-btn { flex-shrink: 0; background: var(--accent); color: #fff; border: none; border-radius: 999px;
    padding: 0.5rem 1rem; font-weight: 800; font-size: 0.88rem; cursor: pointer; }
.pwa-x { flex-shrink: 0; background: transparent; border: none; color: #9a948c; font-size: 1.2rem; cursor: pointer; padding: 0 0.2rem; }

/* Yoğunluk uyarısı (vitrin) */
.flash-busy { background: #fff3e0; color: #9a5b14; font-weight: 600; }

/* Tükendi (tema1) */
.product-card.sold-out { opacity: .72; }
.product-card.sold-out .product-image { filter: grayscale(.6); }
.soldout-badge { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 99px;
    background: #fdebe8; color: #a33419; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.add-disabled { background: #e8e8e8 !important; color: #8a8a8a !important; cursor: not-allowed;
    border: 1px solid #d7d7d7 !important; font-size: .8rem; padding: .35rem .7rem; }

/* ---- Çerez onayı banner'ı (alt sabit) ---- */
.cookie-consent {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1200;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
    background: #1c1f26; color: #f2f3f5; padding: 14px 18px;
    border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.28);
    max-width: 720px; margin: 0 auto; font-size: 14px; line-height: 1.5;
}
.cookie-consent .cc-text { flex: 1 1 300px; }
.cookie-consent .cc-text strong { display: block; margin-bottom: 2px; }
.cookie-consent .cc-text a { color: #ffcf8a; text-decoration: underline; }
.cookie-consent .cc-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-consent .cc-btn {
    font: inherit; font-weight: 700; cursor: pointer; border-radius: 9px;
    padding: 9px 16px; border: none; white-space: nowrap;
}
.cookie-consent .cc-necessary { background: transparent; color: #cfd2d8; border: 1px solid #3a3f4a; }
.cookie-consent .cc-accept { background: #e0a13a; color: #1a1206; }
@media (max-width: 480px) {
    .cookie-consent { flex-direction: column; align-items: stretch; }
    .cookie-consent .cc-actions { justify-content: flex-end; }
}

/* Modal icindeki secim cipleri (sos/boyut/icecek) — kart pilleriyle ayni gorunum */
.modal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem 0.6rem;
    border: none;
    margin: 0;
}

/* "Zorunlu" rozeti (choice + min_select>0) */
.modal-required {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: var(--accent, #c62828);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

/* Modal alt cubugu: adet + ekle butonu yanyana */
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.modal-foot .add-row { display: flex; align-items: center; }
.modal-foot .add-row input[type=number] { width: 4.2rem; }
.modal-foot .button-primary { flex: 1; }

/* ===== v3: Genis ferah yerlesim — sol genis menu, sagda buyuk sabit sepet ===== */

/* Sayfa genisligi: menu alani buyur, icerik sola yaslanir.
   DIKKAT: bu bolum dosyanin SONUNDA (mobil bloktan sonra) durur — genis
   yerlesim kurallari mutlaka min-width korumasina alinmali, yoksa mobil
   tek-kolon kuralini ezer (yasandi: menu kolonu telefonda 0px olmustu). */
.container { max-width: 1400px; }
@media (min-width: 769px) {
    .menu-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 2rem; }
}

/* Kategori ikonlari (emoji) — pil, acilir menu ve bolum basliklari */
.cat-ico { margin-right: 0.4rem; font-size: 1.05em; line-height: 1; }
.category-title .cat-ico { font-size: 1.15em; margin-right: 0.5rem; }

/* Bolum basliklari daha buyuk ve belirgin */
.category-title {
    font-size: 1.55rem;
    margin: 1.9rem 0 1rem;
    padding-bottom: 0.45rem;
}

/* Urunler genis ekranda 2 sutun — kartlar buyuk ve ferah */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}
@media (min-width: 1150px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
}
.product-grid .product-card { margin-bottom: 0; }
.product-card {
    padding: 1.15rem 1.3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card[data-card-modal] { cursor: pointer; }
.product-card[data-card-modal]:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    transform: translateY(-1px);
}
.product-info h3 { font-size: 1.14rem; }
.product-card .price { font-size: 1.08rem; }
.product-desc { font-size: 0.94rem; }

/* Sepet paneli: buyuk, sabit, profesyonel kart */
.cart-panel {
    padding: 1.5rem 1.5rem 1.3rem;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    min-height: 340px;
    top: 4.5rem;
}
.cart-panel h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.cart-panel h2::before { content: '🛒'; margin-right: 0.5rem; font-size: 1.05em; }
.cart-lines li { padding: 0.7rem 0; }
.line-main { font-size: 1rem; }
.cart-subtotal { font-size: 1.08rem; font-weight: 600; }

/* Hamburger acilir menusu: buyuk, golgeli, ikonlu satirlar */
.cat-dropdown {
    min-width: 240px;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.16);
    padding: 0.5rem;
}
.cat-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.98rem;
}

/* Dar ekranda tek sutuna don (mobil davranis degismedi) */
@media (max-width: 800px) {
    .product-grid { grid-template-columns: 1fr; }
    .cart-panel { min-height: 0; }
}

/* ===== Kontakt sayfasi ===== */
.contact-page .contact-columns {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1.2rem;
}
.contact-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
}
.contact-form { display: grid; gap: 0.9rem; max-width: 560px; }
.contact-form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
    font: inherit;
    font-weight: 400;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
}
.contact-form textarea { resize: vertical; }
.contact-form .button-primary { justify-self: start; padding: 0.65rem 1.6rem; }
/* Honeypot: gorsel olarak tamamen gizli (display:none botlarca atlanabilir) */
.hp-field { position: absolute; left: -6000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 800px) {
    .contact-page .contact-columns { grid-template-columns: 1fr; }
}
