:root {
    --dark-color: #1e293b;
    --light-color: #f1f5f9;
    --muted: #64748b;
    --card: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --sale: #d9480f;
    --nav-h: 0px;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    background:
        radial-gradient(ellipse 70% 40% at 0% 0%, color-mix(in srgb, var(--primary-color) 12%, transparent), transparent),
        linear-gradient(180deg, #f8fafc 0%, var(--light-color) 100%);
    color: var(--dark-color);
    min-height: 100vh;
}

.main-content {
    min-height: 50vh;
}

/* Sayfa üst başlık */
.menu-page-hero {
    padding: 1.25rem 0 0.5rem;
}

.menu-page-hero-inner {
    max-width: 1100px;
}

.menu-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
    background: none;
    border: 0;
    padding: 0;
}

.menu-back-link:hover {
    color: var(--primary-ink, var(--primary-color));
}

.menu-page-title {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--dark-color);
}

.menu-page-lead {
    margin: 0.4rem 0 0;
    color: var(--muted);
    max-width: 40rem;
}

/* ---------- Yapışkan kategori çubuğu ---------- */
.menu-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0.75rem 0 0.6rem;
    background: color-mix(in srgb, #f8fafc 88%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.menu-nav.is-stuck {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.menu-search-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.menu-home-btn {
    flex: 0 0 46px;
    height: 46px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--dark-color);
    display: grid;
    place-items: center;
    text-decoration: none;
}

.menu-home-btn:hover { color: var(--primary-ink, var(--primary-color)); }

.menu-search {
    position: relative;
    flex: 1;
    min-width: 0;
}

.menu-search > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.menu-search input {
    width: 100%;
    height: 46px;
    padding: 0 2.75rem 0 2.6rem;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-size: 1rem;
    color: var(--dark-color);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.menu-search input::-webkit-search-cancel-button { display: none; }

.menu-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.menu-search-clear {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
}

.menu-nav-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-nav-all {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 0;
    background: var(--primary-color);
    color: var(--on-primary, #fff);
    font-size: 1rem;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.menu-chips {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}

.menu-chips::-webkit-scrollbar { display: none; }

.menu-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid var(--line);
    color: var(--dark-color);
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.menu-chip:hover { color: var(--primary-ink, var(--primary-color)); border-color: color-mix(in srgb, var(--primary-color) 35%, transparent); }

.menu-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--on-primary, #fff);
}

.menu-view-toggle {
    flex-shrink: 0;
    display: inline-flex;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 2px;
    gap: 2px;
}

.view-option-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.view-option-btn.active {
    background: color-mix(in srgb, var(--primary-color) 12%, #fff);
    color: var(--primary-ink, var(--primary-color));
}

/* ---------- Bölümler ---------- */
.menu-sections {
    padding-bottom: 3rem;
}

.menu-section {
    padding-top: 1.5rem;
    scroll-margin-top: calc(var(--nav-h) + 8px);
}

.menu-section[hidden] { display: none; }

.menu-section-head {
    margin-bottom: 0.9rem;
}

.menu-section-head h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dark-color);
}

.menu-section-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}

.menu-section-head p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.menu-subhead {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 1rem 0 0.6rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* ---------- Ürün kartı (liste görünümü varsayılan) ---------- */
.urun-item {
    position: relative;
    display: flex;
    gap: 0.9rem;
    padding: 0.75rem;
    background: var(--card);
    border-radius: 1.1rem;
    border: 1px solid var(--line);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.urun-item[hidden] { display: none; }

.urun-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.urun-item:active { transform: scale(0.99); }

.urun-item:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary-color) 45%, transparent);
    outline-offset: 2px;
}

.urun-media {
    position: relative;
    flex: 0 0 104px;
    width: 104px;
    height: 104px;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #e2e8f0;
}

.urun-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.urun-badge-sale {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--sale);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.urun-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.urun-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.urun-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
}

.urun-tag.is-hot {
    color: var(--primary-ink, var(--primary-color));
    background: color-mix(in srgb, var(--primary-color) 11%, #fff);
}

.urun-tag.is-off {
    color: #b45309;
    background: #fef3c7;
}

.urun-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--dark-color);
    overflow-wrap: anywhere;
}

.urun-desc {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.urun-foot {
    margin-top: auto;
    padding-top: 0.2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.urun-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    white-space: nowrap;
}

.urun-price b {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-ink, var(--primary-color));
    letter-spacing: -0.02em;
}

.urun-price b.is-sale { color: var(--sale); }

.urun-price del {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.urun-meta {
    display: inline-flex;
    gap: 0.6rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--muted);
}

.urun-meta span + span::before {
    content: "·";
    margin-right: 0.6rem;
}

/* Servis saati dışında */
.urun-item.is-off .urun-media img { filter: grayscale(0.7); opacity: 0.7; }
.urun-item.is-off .urun-name,
.urun-item.is-off .urun-price b { color: var(--muted); }

/* ---------- Büyük görsel görünümü ---------- */
.menu-sections.is-grid .menu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.menu-sections.is-grid .urun-item {
    flex-direction: column;
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.menu-sections.is-grid .urun-media {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 0;
}

.menu-sections.is-grid .urun-badge-sale {
    top: 10px;
    left: 10px;
    font-size: 0.82rem;
    padding: 0.25rem 0.6rem;
}

.menu-sections.is-grid .urun-body {
    padding: 0.9rem 1rem 1rem;
}

.menu-sections.is-grid .urun-name { font-size: 1.08rem; }

/* Boş / sonuç yok */
.menu-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px dashed var(--line);
}

.menu-empty[hidden] { display: none; }

.menu-empty i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.menu-empty h3 {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* Eski sayfalarda kullanılan rozet */
.badge-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-ink, var(--primary-color));
    background: color-mix(in srgb, var(--primary-color) 12%, #fff);
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.meta-pill-hot {
    color: var(--primary-ink, var(--primary-color));
    background: color-mix(in srgb, var(--primary-color) 12%, #fff);
    border-color: transparent;
}

/* ---------- Kategori paneli (alttan açılır) ---------- */
.cat-sheet {
    position: fixed;
    inset: 0;
    z-index: 1060;
}

.cat-sheet[hidden] { display: none; }

.cat-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    animation: sheetFade 0.2s ease;
}

.cat-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.4rem 1.4rem 0 0;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.2);
    padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom));
    animation: sheetUp 0.25s cubic-bezier(.2, .8, .2, 1);
}

.cat-sheet-grip {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 0.2rem auto 0.6rem;
}

.cat-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cat-sheet-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.cat-sheet-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 0;
    background: #f1f5f9;
    color: var(--dark-color);
}

.cat-sheet-list {
    overflow-y: auto;
    display: grid;
    gap: 0.35rem;
}

.cat-sheet-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem;
    border-radius: 0.9rem;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
}

.cat-sheet-item:hover,
.cat-sheet-item.active {
    background: color-mix(in srgb, var(--primary-color) 9%, #fff);
    color: var(--primary-ink, var(--primary-color));
}

.cat-sheet-thumb {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    color: #94a3b8;
}

.cat-sheet-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cat-sheet-name { flex: 1; }

.cat-sheet-count {
    font-size: 0.78rem;
    color: var(--muted);
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

body.sheet-open { overflow: hidden; }

@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetFade { from { opacity: 0; } to { opacity: 1; } }

/* Ürün modal */
.urun-modal {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.urun-modal-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 1rem 1.25rem;
}

.urun-modal-header .modal-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
}

.urun-modal-body {
    padding: 1.25rem;
    background: #fff;
}

.urun-modal-footer {
    border-top: 1px solid var(--line);
    background: #f8fafc;
    padding: 0.85rem 1.25rem;
}

.urun-modal-close {
    background: var(--primary-color);
    color: var(--on-primary, #fff);
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
}

.urun-modal-close:hover {
    filter: brightness(0.95);
    color: #fff;
}

.urun-modal-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

.urun-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.urun-modal-name {
    margin: 0 0 0.5rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--dark-color);
    line-height: 1.25;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.product-meta:not(:has(> div:not([style*="none"]))) { display: none; }

.urun-modal-price {
    margin: 0.75rem 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--primary-color) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-ink, var(--primary-color));
}

.urun-price-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.urun-price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-ink, var(--primary-color));
}

.urun-price-unit {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    color: var(--dark-color);
    font-size: 0.78rem;
    font-weight: 700;
}

.urun-price-unit:empty { display: none; }

.urun-modal-options {
    margin-bottom: 1rem;
}

.urun-modal-options h6,
.urun-modal-block h6 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.urun-option-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.urun-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    font-size: 0.9rem;
}

.urun-option-price {
    font-weight: 800;
    color: var(--primary-ink, var(--primary-color));
    white-space: nowrap;
}

.urun-modal .spinner-border.text-primary {
    color: var(--primary-ink, var(--primary-color)) !important;
}

.urun-modal-block {
    margin-bottom: 1rem;
}

.urun-modal-block p {
    margin: 0;
    color: var(--dark-color);
    font-size: 0.95rem;
    line-height: 1.55;
}

.urun-media-tabs .nav-link {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.35rem 0.85rem;
}

.urun-media-tabs .nav-link.active {
    background: var(--primary-color);
    color: var(--on-primary, #fff);
}

.manual-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 1rem;
    background: #f1f5f9;
}

.manual-slider-inner {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
    width: 100%;
}

.manual-slider-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.manual-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manual-slider-prev,
.manual-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
}

.manual-slider-prev { left: 10px; }
.manual-slider-next { right: 10px; }

.manual-slider.is-single .manual-slider-prev,
.manual-slider.is-single .manual-slider-next,
.manual-slider.is-single .manual-slider-controls { display: none; }

.manual-slider-controls {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.manual-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    border: none;
    padding: 0;
}

.manual-slider-dot.active { background: #fff; }

.urun-media-empty {
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 1rem;
    color: var(--muted);
    gap: 0.5rem;
}

.urun-media-empty i {
    font-size: 2rem;
    opacity: 0.5;
}

.urun-media-empty p {
    margin: 0;
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .menu-sections.is-grid .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .urun-media { flex-basis: 120px; width: 120px; height: 120px; }
}

@media (min-width: 1100px) {
    .menu-sections.is-grid .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767.98px) {
    .urun-modal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .urun-modal-name {
        font-size: 1.25rem;
    }
}

/* Telefonda ürün detayı alttan açılan panel */
@media (max-width: 575.98px) {
    .urun-modal-dialog {
        margin: 0;
        max-width: none;
        min-height: 100%;
        height: 100%;
        align-items: flex-end;
    }
    .modal.fade .urun-modal-dialog {
        transform: translateY(100%);
        transition: transform 0.28s cubic-bezier(.2, .8, .2, 1);
    }
    .modal.show .urun-modal-dialog { transform: none; }
    .urun-modal-dialog .urun-modal {
        max-height: 92vh;
        border-radius: 1.4rem 1.4rem 0 0;
    }
    .urun-modal-header { padding: 0.85rem 1rem; }
    .urun-modal-body { padding: 0 1rem 1rem; }
    .urun-modal-media { margin: 0 -1rem; }
    .manual-slider,
    .urun-media-empty {
        height: 250px;
        border-radius: 0;
    }
    .urun-modal-name { display: none; }
    .urun-modal-footer { padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); }
    .urun-modal-close { width: 100%; padding: 0.8rem; }
}

.menu-chip[hidden] { display: none; }

/* Kaydırırken arama kutusu küçük bir düğmeye dönüşür */
.menu-nav-search {
    display: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--dark-color);
    place-items: center;
}

.menu-nav.is-stuck:not(.show-search) .menu-search-row { display: none; }
.menu-nav.is-stuck:not(.show-search) .menu-nav-search { display: grid; }
