/* ===== Altay İletişim — QR Menü Vitrini (qrmasada tarzı, modern web) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --accent: #E30A17;
    --accent-soft: rgba(227, 10, 23, 0.08);
    --accent-dark: #B30711;
    --bg: #f7f7f8;
    --surface: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-muted: #8e8e93;
    --border: #ebebed;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 12px;
    --max-w: 920px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --sticky-top: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.qr-menu {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    padding-top: 0;
}

.menu-shell {
    max-width: var(--max-w);
    margin: 0 auto;
    background: var(--surface);
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.06);
}

@media (min-width: 960px) {
    body.qr-menu {
        padding: 16px 16px 40px;
        background: linear-gradient(160deg, #f0f0f2 0%, #e8e8ec 100%);
    }
    .menu-shell {
        border-radius: 24px;
        overflow: hidden;
        min-height: auto;
    }
    .menu-shell > .campaign-banner:first-child {
        border-radius: 24px 24px 0 0;
    }
}

/* Kampanya */
.campaign-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9px 16px;
    margin: 0;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* Mağaza hero */
.store-hero {
    text-align: center;
    padding: 32px 24px 28px;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border-bottom: 1px solid var(--border);
}

.store-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    box-shadow: var(--shadow-md);
    border: 3px solid #fff;
    background: #fff;
    padding: 6px;
}

.store-logo-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.store-hero h1 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    color: var(--text);
}

.store-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.store-hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.contact-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.contact-chip.wa {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.contact-chip.wa:hover {
    background: #1da851;
    color: #fff;
}

.contact-chip svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Kategori filtresi — metin tabanlı, resimsiz */
.sticky-nav {
    position: sticky;
    top: var(--sticky-top);
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0 12px;
}

.sticky-nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 12px;
    padding: 0 20px;
}

.sticky-nav-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
}

.sticky-nav-inner::-webkit-scrollbar { display: none; }

.sticky-pill {
    flex-shrink: 0;
    padding: 9px 18px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sticky-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.sticky-pill.active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

/* Menü içerik */
.menu-content {
    padding: 28px 20px 100px;
}

.menu-head {
    text-align: center;
    margin-bottom: 28px;
}

.menu-head h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.menu-head p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.search-box {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 18px 14px 44px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: #fff;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    opacity: 0.5;
    pointer-events: none;
}

/* Kategori bölümü */
.category-section {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}

.category-section.hidden { display: none; }

.category-heading {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    min-width: 100%;
}

/* Ürün kartları — qrmasada listesi */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 720px) {
    .product-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.menu-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(227, 10, 23, 0.15);
}

.menu-item.hidden { display: none; }

.menu-item-media {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.menu-item-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.35s ease;
}

.menu-item:hover .menu-item-media img {
    transform: scale(1.03);
}

.menu-item-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.2;
    background: linear-gradient(135deg, #f0f0f2, #e5e5ea);
}

.item-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}

.menu-item-body {
    padding: 18px 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.menu-item-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    flex: 1;
}

.menu-item-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 12px;
    flex: 1;
}

.menu-item-spec {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
    width: fit-content;
}

.menu-item-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-detail {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-detail:hover {
    border-color: var(--text);
    background: var(--bg);
}

.btn-wa-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #25d366;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-wa-item:hover {
    background: #1da851;
    color: #fff;
}

.empty-menu {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-menu span {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* Alt bilgi */
.menu-footer {
    text-align: center;
    padding: 24px 20px 32px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.menu-footer p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.menu-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* Modal */
.product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.product-modal.open {
    display: flex;
}

.product-modal-inner {
    background: var(--surface);
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    animation: slideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 600px) {
    .product-modal {
        align-items: center;
        padding: 20px;
    }
    .product-modal-inner {
        border-radius: 24px;
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,0.06);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 5;
}

.modal-image-wrap {
    height: 280px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.modal-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-no-img { font-size: 4rem; opacity: 0.25; }

.modal-body { padding: 24px; position: relative; }

.modal-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}

.modal-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.modal-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    white-space: pre-line;
}

.modal-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
}

.modal-spec {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.modal-wa-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: #25d366;
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.modal-wa-btn:hover { background: #1da851; }

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 22px;
    right: 22px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 500;
    transition: transform 0.2s;
}

.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* 404 */
.menu-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
}

.menu-error-box {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    max-width: 400px;
}

.menu-error-box h2 {
    color: var(--accent);
    margin: 12px 0 8px;
}
