/* =========================================================
   TEMPLATE 5 — "MenuPoint Next"
   Modern QR menü + sepet/sipariş deneyimi
   Tüm stiller .menu5 altında izole edilmiştir.
   ========================================================= */

.menu5 {
    --m5-accent: #ff5a3c;
    --m5-accent-2: #ff8a3c;
    --m5-ink: #16181d;
    --m5-ink-soft: #5b606b;
    --m5-line: #ececef;
    --m5-bg: #f5f5f3;
    --m5-card: #ffffff;
    --m5-radius: 22px;
    --m5-radius-sm: 14px;
    --m5-shadow: 0 10px 30px rgba(20, 22, 28, 0.08);
    --m5-shadow-soft: 0 4px 16px rgba(20, 22, 28, 0.06);
    --m5-shadow-accent: 0 10px 26px rgba(255, 90, 60, 0.35);

    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--m5-ink);
    background: var(--m5-bg);
    min-height: 100vh;
    padding: 0 0 120px;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    position: relative;
    overflow-x: clip; /* sticky'yi bozmadan yatay taşmayı keser */
}

.menu5 * {
    box-sizing: border-box;
    min-width: 0; /* flex çocuklarının taşmasını engeller */
}

/* Görsellerin hiçbir zaman taşmaması için güvenlik */
.menu5 img {
    max-width: 100%;
}

/* Uzun kelime/URL'lerin satırı taşırmaması için */
.menu5 h1, .menu5 h2, .menu5 h3,
.menu5 p, .menu5 span, .menu5 a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ---------- Cam efektli üst bar ---------- */
.m5-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.m5-topbar-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 4px;
}

.m5-topbar-actions {
    flex: 0 0 auto;
}

.m5-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.m5-icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--m5-ink);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--m5-shadow-soft);
    transition: transform 0.15s ease, background 0.2s ease;
}

.m5-icon-btn:hover { background: #fafafa; }
.m5-icon-btn:active { transform: scale(0.92); }

.m5-icon-btn i {
    display: block;
    line-height: 1;
}

.m5-cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--m5-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 19px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(255, 90, 60, 0.4);
}

.m5-lang-select {
    border: none;
    background: #fff;
    border-radius: 999px;
    padding: 0 14px;
    height: 42px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--m5-ink);
    box-shadow: var(--m5-shadow-soft);
    cursor: pointer;
    outline: none;
}

/* ---------- Hero header ---------- */
.m5-hero {
    position: relative;
    padding: 28px 20px 24px;
    text-align: center;
    background:
        radial-gradient(120% 80% at 50% -20%, rgba(255, 90, 60, 0.10), transparent 60%);
}

.m5-hero-logo {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: var(--m5-shadow);
    background: #fff;
    margin-bottom: 14px;
}

.m5-hero-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 6px;
    color: var(--m5-ink);
}

.m5-hero-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--m5-ink-soft);
    margin: 0 auto;
    max-width: 90%;
}

/* ---------- Kategori chip bar (sticky) ---------- */
.m5-catbar {
    position: sticky;
    top: 66px;
    z-index: 30;
    padding: 10px 0;
    background: linear-gradient(var(--m5-bg) 70%, transparent);
}

.m5-catbar-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 16px;
    scrollbar-width: none;
}

.m5-catbar-scroll::-webkit-scrollbar { display: none; }

.m5-chip {
    flex: 0 0 auto;
    border: 1.5px solid var(--m5-line);
    background: #fff;
    color: var(--m5-ink-soft);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.m5-chip:active { transform: scale(0.95); }

.m5-chip.active {
    background: var(--m5-ink);
    border-color: var(--m5-ink);
    color: #fff;
    box-shadow: 0 6px 16px rgba(20, 22, 28, 0.18);
}

/* ---------- Öne çıkanlar ---------- */
.m5-highlights {
    padding: 6px 0 8px;
}

.m5-section-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--m5-ink-soft);
    padding: 0 20px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.m5-highlights-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 16px 8px;
    scrollbar-width: none;
}

.m5-highlights-scroll::-webkit-scrollbar { display: none; }

.m5-highlight-card {
    flex: 0 0 auto;
    width: 130px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.m5-highlight-card:active { transform: scale(0.96); }

.m5-highlight-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: var(--m5-radius-sm);
    box-shadow: var(--m5-shadow-soft);
}

.m5-highlight-ph {
    width: 130px;
    height: 130px;
    border-radius: var(--m5-radius-sm);
    background: #ececeb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #bbb;
}

.m5-highlight-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    line-height: 1.3;
}

/* ---------- Ürün listesi ---------- */
.m5-content {
    padding: 4px 16px 0;
}

.m5-category {
    scroll-margin-top: 120px;
    margin-bottom: 26px;
}

.m5-category-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 18px 2px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.m5-category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--m5-line);
}

.m5-products {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.m5-card {
    display: flex;
    gap: 14px;
    background: var(--m5-card);
    border-radius: var(--m5-radius);
    padding: 12px;
    box-shadow: var(--m5-shadow-soft);
    position: relative;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.m5-card:active {
    transform: scale(0.99);
}

.m5-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--m5-shadow);
}

.m5-card-media {
    position: relative;
    flex: 0 0 104px;
    cursor: pointer;
}

.m5-card-img {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: var(--m5-radius-sm);
}

.m5-card-ph {
    width: 104px;
    height: 104px;
    border-radius: var(--m5-radius-sm);
    background: #ececeb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #bbb;
}

.m5-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.m5-card-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin: 2px 0 4px;
    line-height: 1.25;
}

.m5-card-desc {
    font-size: 13px;
    color: var(--m5-ink-soft);
    line-height: 1.45;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m5-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.m5-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--m5-ink-soft);
    background: #f4f4f2;
    border-radius: 999px;
    padding: 3px 9px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.m5-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.m5-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--m5-ink);
    letter-spacing: -0.3px;
}

.m5-price-from {
    font-size: 11px;
    font-weight: 600;
    color: var(--m5-ink-soft);
    margin-right: 2px;
}

/* ---------- Ekle butonu / adet stepper ---------- */
.m5-add-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 14px;
    background: var(--m5-accent);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--m5-shadow-accent);
    transition: transform 0.15s ease, filter 0.2s ease;
}

.m5-add-btn i,
.m5-stepper button i,
.m5-cart-stepper button i {
    display: block;
    line-height: 1;
}

.m5-add-btn:hover { filter: brightness(1.05); }
.m5-add-btn:active { transform: scale(0.88); }

.m5-stepper {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--m5-accent);
    border-radius: 14px;
    padding: 3px;
    box-shadow: var(--m5-shadow-accent);
    animation: m5-pop 0.2s ease;
}

.m5-stepper button {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
}

.m5-stepper button:hover { background: rgba(255, 255, 255, 0.18); }
.m5-stepper button:active { transform: scale(0.85); }

.m5-stepper-qty {
    min-width: 24px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

@keyframes m5-pop {
    from { transform: scale(0.8); opacity: 0.4; }
    to { transform: scale(1); opacity: 1; }
}

/* ---------- Alt yüzen sepet çubuğu ---------- */
.m5-cartbar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(0);
    width: min(608px, calc(100% - 32px));
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px 12px 18px;
    border-radius: 18px;
    background: linear-gradient(120deg, var(--m5-accent), var(--m5-accent-2));
    color: #fff;
    box-shadow: 0 14px 34px rgba(255, 90, 60, 0.4);
    cursor: pointer;
    animation: m5-slideup 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes m5-slideup {
    from { transform: translateX(-50%) translateY(120%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.m5-cartbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.m5-cartbar-badge {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}

.m5-cartbar-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.m5-cartbar-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.m5-cartbar-total {
    font-size: 17px;
    font-weight: 800;
}

.m5-cartbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--m5-accent);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 12px;
    white-space: nowrap;
}

/* ---------- Sepet bottom-sheet çekmecesi ---------- */
.m5-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(16, 18, 22, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: m5-fade 0.25s ease;
}

@keyframes m5-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.m5-sheet {
    width: min(640px, 100%);
    max-height: 88vh;
    background: var(--m5-bg);
    border-radius: 26px 26px 0 0;
    display: flex;
    flex-direction: column;
    animation: m5-sheetup 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

@keyframes m5-sheetup {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.m5-sheet-handle {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: #d3d3d0;
    margin: 10px auto 4px;
}

.m5-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px 14px;
    border-bottom: 1px solid var(--m5-line);
}

.m5-sheet-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0;
}

.m5-sheet-close {
    border: none;
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--m5-shadow-soft);
    color: var(--m5-ink);
}

.m5-sheet-body {
    overflow-y: auto;
    padding: 14px 16px;
    flex: 1;
}

.m5-cart-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--m5-ink-soft);
}

.m5-cart-empty i {
    font-size: 46px;
    opacity: 0.35;
    display: block;
    margin-bottom: 12px;
}

.m5-cart-row {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    border-radius: var(--m5-radius-sm);
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: var(--m5-shadow-soft);
}

.m5-cart-thumb {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
}

.m5-cart-thumb-ph {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #ececeb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 22px;
    flex: 0 0 auto;
}

.m5-cart-info {
    flex: 1;
    min-width: 0;
}

.m5-cart-name {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 2px;
}

.m5-cart-variation {
    font-size: 12px;
    color: var(--m5-ink-soft);
    margin: 0 0 4px;
}

.m5-cart-unit {
    font-size: 13px;
    font-weight: 600;
    color: var(--m5-accent);
}

.m5-cart-prep {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--m5-ink-soft);
    background: #f4f4f2;
    border-radius: 999px;
    padding: 2px 9px;
    margin: 3px 0 5px;
}

.m5-cart-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.m5-cart-stepper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid var(--m5-line);
    border-radius: 999px;
    padding: 2px;
}

.m5-cart-stepper button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--m5-ink);
    font-size: 13px;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.m5-cart-stepper button:hover { background: #f4f4f2; }

.m5-cart-stepper .m5-qtytext {
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.m5-cart-linetotal {
    font-size: 13.5px;
    font-weight: 800;
}

/* ---------- Sepet footer ---------- */
.m5-sheet-foot {
    padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--m5-line);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.05);
}

.m5-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--m5-ink-soft);
    margin-bottom: 6px;
}

.m5-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    color: var(--m5-ink);
    margin: 8px 0 14px;
}

.m5-checkout-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(120deg, var(--m5-accent), var(--m5-accent-2));
    box-shadow: var(--m5-shadow-accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.m5-checkout-btn:hover { filter: brightness(1.04); }
.m5-checkout-btn:active { transform: scale(0.98); }

.m5-clear-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--m5-ink-soft);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 12px;
    margin-top: 4px;
    cursor: pointer;
}

.m5-order-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f4f4f2;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--m5-ink-soft);
}

.m5-order-note i {
    color: var(--m5-accent);
    font-size: 15px;
    margin-top: 1px;
    flex: 0 0 auto;
}

/* ---------- Ürün detay modalı ---------- */
.m5-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(16, 18, 22, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: m5-fade 0.25s ease;
}

.m5-modal {
    width: min(640px, 100%);
    max-height: 90vh;
    background: #fff;
    border-radius: 26px 26px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: m5-sheetup 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.m5-modal-hero {
    position: relative;
    height: 240px;
    background: #ececeb;
}

.m5-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m5-modal-hero-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    color: #bbb;
}

.m5-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--m5-shadow-soft);
}

.m5-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
}

.m5-modal-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0 0 6px;
}

.m5-modal-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--m5-ink-soft);
    margin: 0 0 14px;
}

.m5-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.m5-block-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--m5-ink-soft);
    margin: 16px 0 8px;
}

.m5-variations {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m5-variation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1.5px solid var(--m5-line);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.m5-variation.selected {
    border-color: var(--m5-accent);
    background: rgba(255, 90, 60, 0.06);
}

.m5-variation-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.m5-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cfcfcf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.m5-variation.selected .m5-radio {
    border-color: var(--m5-accent);
}

.m5-variation.selected .m5-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--m5-accent);
}

.m5-variation-price {
    font-size: 14px;
    font-weight: 700;
}

.m5-allergen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.m5-allergen-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4f4f2;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 500;
}

.m5-modal-foot {
    padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--m5-line);
    display: flex;
    align-items: center;
    gap: 12px;
}

.m5-modal-price {
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.m5-modal-add {
    flex: 1;
    border: none;
    border-radius: 16px;
    padding: 15px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(120deg, var(--m5-accent), var(--m5-accent-2));
    box-shadow: var(--m5-shadow-accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.m5-modal-add:active { transform: scale(0.98); }

/* ---------- Yan menü (drawer) ---------- */
.m5-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(16, 18, 22, 0.5);
    animation: m5-fade 0.25s ease;
}

.m5-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 86%);
    background: #fff;
    z-index: 66;
    display: flex;
    flex-direction: column;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
    animation: m5-drawerin 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}

@keyframes m5-drawerin {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.m5-drawer-hero {
    position: relative;
    padding: 30px 20px 22px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--m5-accent), var(--m5-accent-2));
}

.m5-drawer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.m5-drawer-logo {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    margin-bottom: 12px;
}

.m5-drawer-hero h4 {
    color: #fff;
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.m5-drawer-hero p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    opacity: 0.92;
}

.m5-drawer-tiles {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m5-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: none;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    box-shadow: var(--m5-shadow-soft);
    font-family: inherit;
    text-align: left;
    transition: transform 0.15s ease;
}

.m5-tile:active { transform: scale(0.98); }

.m5-tile-ico {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex: 0 0 auto;
}

.m5-tile-ico--accent { background: rgba(255, 90, 60, 0.12); color: var(--m5-accent); }
.m5-tile-ico--ink { background: rgba(20, 22, 28, 0.06); color: var(--m5-ink); }

.m5-tile-txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.m5-tile-txt strong { font-size: 14.5px; font-weight: 700; color: var(--m5-ink); }
.m5-tile-txt small { font-size: 12px; color: var(--m5-ink-soft); }

.m5-tile-arrow { color: #c7c7c7; font-size: 15px; flex: 0 0 auto; }

.m5-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.m5-feature-chip {
    background: #f4f4f2;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--m5-ink);
}

.m5-drawer-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--m5-line);
}

.m5-drawer-section h6 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--m5-ink-soft);
    margin: 0 0 12px;
}

/* ---------- Geri bildirim modalı ---------- */
.m5-feedback-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(16, 18, 22, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: m5-fade 0.25s ease;
}

.m5-feedback-modal {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    animation: m5-pop 0.25s ease;
}

.m5-feedback-modal h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
    text-align: center;
}

.m5-feedback-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: #f4f4f2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
}

.m5-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.m5-rating button {
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--m5-line);
    background: #fff;
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.m5-rating button.selected {
    background: var(--m5-accent);
    border-color: var(--m5-accent);
    color: #fff;
    transform: scale(1.05);
}

.m5-feedback-modal textarea {
    width: 100%;
    border: 1.5px solid var(--m5-line);
    border-radius: 14px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    outline: none;
    margin-bottom: 14px;
}

.m5-feedback-modal textarea:focus {
    border-color: var(--m5-accent);
}

.m5-feedback-submit {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--m5-accent);
    cursor: pointer;
    box-shadow: var(--m5-shadow-accent);
}

/* ---------- Scroll-to-top ---------- */
.menu5 #scrollTopBtn {
    position: fixed;
    right: 18px;
    bottom: 90px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--m5-ink);
    font-size: 20px;
    box-shadow: var(--m5-shadow);
    cursor: pointer;
    z-index: 44;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ---------- Footer ---------- */
.m5-footer {
    text-align: center;
    padding: 26px 20px 10px;
    color: var(--m5-ink-soft);
}

.m5-footer-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--m5-ink);
    margin-bottom: 12px;
}

.m5-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.m5-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--m5-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--m5-shadow-soft);
    text-decoration: none;
    transition: transform 0.15s ease;
}

.m5-social a:active { transform: scale(0.9); }

.m5-footer-powered {
    font-size: 12px;
}

.m5-footer-powered a {
    color: var(--m5-accent);
    text-decoration: none;
    font-weight: 700;
}

.m5-footer-copyright {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .m5-hero-name { font-size: 22px; }
    .m5-card-media, .m5-card-img, .m5-card-ph { flex-basis: 92px; }
    .m5-card-img, .m5-card-ph { width: 92px; height: 92px; }
    .m5-modal-hero { height: 210px; }
}
