/* Musteri menusu — mobil oncelikli, acik tema.
   Tek dosya, derleme yok.

   Tema bilincli olarak SABIT ACIK: bir restoran menusu basili bir menunun
   dijital karsiligidir; ziyaretcinin telefonu koyu moddaysa bile yemek
   fotograflari acik zeminde daha istah acici durur. */

:root {
    /* Yuzeyler */
    --bg: #f6f5f3;
    --surface: #ffffff;
    --surface-sunken: #efedea;

    /* Metin */
    --ink: #1a1a19;
    --ink-soft: #6f6b66;
    --ink-faint: #a5a09a;

    /* Vurgu */
    --accent: #d24d1e;
    --accent-hover: #b8421a;
    --accent-wash: #fdf1ec;

    /* Yapiskan arama cubugu. Blur'un ise yaramasi icin yari saydam olmali,
       bu yuzden --bg'den turetilemiyor; temalar ayrica ezer. */
    --toolbar-bg: rgba(246, 245, 243, .88);

    /* --ink zeminli ogelerin (ornegin "Yonet" rozeti) uzerindeki yazi rengi.
       Acik temada --ink koyudur, uzerine beyaz gider; koyu temada tersi. */
    --on-ink: #ffffff;

    /* Cizgiler ve derinlik */
    --line: #e7e4df;
    --line-soft: #f0eeeb;
    --shadow-sm: 0 1px 2px rgba(26, 26, 25, .04);
    --shadow-md: 0 1px 3px rgba(26, 26, 25, .05), 0 6px 16px -6px rgba(26, 26, 25, .1);
    --shadow-lg: 0 2px 8px rgba(26, 26, 25, .06), 0 12px 32px -12px rgba(26, 26, 25, .14);

    /* Olcu */
    --radius-lg: 18px;
    --radius: 14px;
    --radius-sm: 10px;
    --page-max: 660px;
    --header-h: 132px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
            "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

button { font: inherit; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.is-hidden { display: none !important; }

/* ============ Karsilama perdesi ============ */

/*
 * Tam ekran kapak. Sayfanin ustunde durur, "MENÜYÜ GÖR" ile kalkar.
 * Ayri bir sayfa degil — menu altinda zaten yuklu.
 */
.karsilama {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a19;
    overflow: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.karsilama.is-kapali {
    opacity: 0;
    visibility: hidden;
}

/* Perde acikken arkadaki menu kaydirilmaz */
body.karsilama-acik { overflow: hidden; }

.karsilama__fon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Yazilar her fotografta okunsun diye karartma */
    filter: brightness(.45) saturate(.9);
}

.karsilama__govde {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 26px calc(32px + env(safe-area-inset-bottom));
    max-width: 420px;
}

.karsilama__logo {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    object-fit: cover;
    margin: 0 auto 18px;
    border: 2px solid rgba(255, 255, 255, .5);
}

.karsilama__ad {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

.karsilama__selam {
    margin: 8px 0 26px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .82);
}

.karsilama__btn {
    display: inline-block;
    padding: 15px 44px;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 100px;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    box-shadow: 0 6px 24px -8px rgba(0, 0, 0, .7);
    transition: background .16s ease, transform .16s ease;
}

.karsilama__btn:hover { background: var(--accent-hover); }
.karsilama__btn:active { transform: scale(.98); }

.karsilama__baglantilar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.karsilama__baglantilar a {
    padding: 8px 16px;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 100px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.karsilama__baglantilar a:hover { background: rgba(255, 255, 255, .26); }

/* ============ Duyuru ve Wi-Fi pencereleri ============ */

.duyuru,
.wifi {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(26, 26, 25, .6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.duyuru[hidden],
.wifi[hidden] { display: none; }

.duyuru__kart,
.wifi__kart {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: duyuru-gir .22s ease;
}

@keyframes duyuru-gir {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.duyuru__kapat {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: var(--ink);
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}

.duyuru__gorsel {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.duyuru__govde { padding: 18px 20px 20px; }

.duyuru__baslik {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.duyuru__metin {
    margin: 0 0 16px;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.duyuru__btn,
.wifi__btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 100px;
    font-size: .9rem;
    font-weight: 650;
    cursor: pointer;
    transition: background .16s ease;
}

.duyuru__btn:hover,
.wifi__btn:hover { background: var(--accent-hover); }

.wifi__kart { padding: 22px 20px 20px; }

.wifi__baslik {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.wifi__liste { margin: 0 0 16px; }

.wifi__satir {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
}

.wifi__satir dt { font-size: .85rem; color: var(--ink-soft); }

.wifi__satir dd {
    margin: 0;
    font-size: .95rem;
    font-weight: 650;
    word-break: break-all;
    text-align: right;
}

.wifi__satir code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .95rem;
    padding: 2px 8px;
    background: var(--surface-sunken);
    border-radius: var(--radius-sm);
}

/* Wi-Fi dugmesi quick-link gorunumunde bir <button> */
button.quick-link {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

/* ============ Alerjen ============ */

.alerjen-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.alerjen {
    display: inline-block;
    padding: 3px 10px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--surface-sunken);
    border-radius: 100px;
    white-space: nowrap;
}

/* Alerjen listesi uzun olabilir; dar ekranda alt satira gecer */
.detay__satir--genis { flex-wrap: wrap; }

/* ============ Kapak gorseli ============ */

/*
 * Kapak SABIT ORANLI (8:3), sabit yukseklikli degil.
 *
 * Onceden yukseklik pikselle verilmisti (168px / genis ekranda 220px). Ekran
 * genisledikce gorsel ayni yukseklige sigmak icin ustten ve alttan kirpiliyor,
 * isletmenin logosu kesiliyordu. Oran sabitlenince kirpma genislikten
 * bagimsiz hale gelir: yuklenen gorsel 8:3 ise hic kirpilmaz.
 *
 * Kapak EKRANI BASTAN SONA kaplar — sayfa genisligiyle sinirlanmaz.
 * Sinirlandigi surumde masaustunde sag ve solda bos seritler kaliyordu.
 *
 * Yukseklik 46vh ile sinirli: aksi halde 1920 piksel genisliginde bir
 * monitorde 8:3 oran 720 piksellik bir afis uretir ve menu ekranin
 * altinda kalirdi. Sinir devreye girdiginde kirpma ustten ve alttan
 * olur — bu yuzden panelde "logo ve yazi ortada kalsin" yaziyor.
 *
 * Telefonda 46vh'ye hic ulasilmaz, yani orada oran tam 8:3'tur.
 */
.cover {
    width: 100%;
    aspect-ratio: 8 / 3;
    max-height: 46vh;
    overflow: hidden;
    background: var(--surface-sunken);
}

.cover__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* aspect-ratio desteklemeyen eski tarayicilarda eski davranisa doner */
@supports not (aspect-ratio: 8 / 3) {
    .cover { height: 168px; }
}

/* ============ Baslik ============ */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

/* Kapak varsa baslik kapagin uzerine biraz binerek yumusak bir gecis yapar */
.site-header--overlap {
    position: relative;
    margin-top: -22px;
    border-radius: 22px 22px 0 0;
}

.site-header__inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 20px 18px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-header__logo {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: var(--surface-sunken);
}

.site-header__text { flex: 1; min-width: 0; }

.site-header__title {
    display: block;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
    color: inherit;
    text-decoration: none;
}

.site-header__meta {
    margin: 4px 0 0;
    font-size: .8rem;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header__table {
    display: inline-flex;
    align-items: center;
    margin: 5px 0 0;
    padding: 3px 10px;
    background: var(--accent-wash);
    color: var(--accent);
    border-radius: 100px;
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .01em;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Dil secici */

.lang-switch {
    display: flex;
    gap: 2px;
    background: var(--surface-sunken);
    border-radius: 100px;
    padding: 3px;
}

.lang-switch__item {
    display: block;
    padding: 6px 11px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background .16s ease, color .16s ease;
}

.lang-switch__item:hover { color: var(--ink); }

.lang-switch__item.is-active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

/* Restoran sahibine gorunen yonetim kisayolu */

.manage-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--ink);
    color: var(--on-ink);
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .16s ease;
}

.manage-link:hover { opacity: .85; }

.manage-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Iletisim / sosyal medya kisayollari */

.quick-links {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 18px 16px;
}

.quick-links::-webkit-scrollbar { display: none; }

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 8px 14px;
    background: var(--surface-sunken);
    border-radius: 100px;
    font-size: .81rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease;
}

.quick-link:hover { background: #e5e2dd; }

.quick-link svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--ink-soft); }

/* ============ Arac cubugu ============ */

.toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--toolbar-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .toolbar { background: var(--bg); }
}

.search {
    position: relative;
    display: block;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 12px 18px 10px;
}

.search__icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-40%);
    width: 17px;
    height: 17px;
    color: var(--ink-faint);
    pointer-events: none;
}

.search__input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font: inherit;
    font-size: .94rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 100px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
    -webkit-appearance: none;
}

.search__input::placeholder { color: var(--ink-faint); }

.search__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
}

.search__input::-webkit-search-cancel-button { cursor: pointer; }

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 18px 13px;
    max-width: var(--page-max);
    margin: 0 auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar { display: none; }

.chips__item {
    flex-shrink: 0;
    padding: 8px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.chips__item:hover {
    color: var(--ink);
    border-color: var(--ink-faint);
}

.chips__item.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============ Sayfa ============ */

.page {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 4px 18px 48px;
}

.empty-state {
    text-align: center;
    color: var(--ink-soft);
    padding: 64px 20px;
    font-size: .95rem;
}

.page-heading {
    margin: 22px 0 16px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

/* ============ Kategori izgarasi (ana sayfa) ============ */

/* Telefon ve tablette her satirda tek kategori; masaustunde iki. */
.cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 16px;
}

.cat-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

@media (hover: hover) {
    .cat-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: #ddd8d1;
        transform: translateY(-2px);
    }

    .cat-card:hover .cat-card__arrow { transform: translateX(3px); }
    .cat-card:hover .cat-card__image { transform: scale(1.03); }
}

.cat-card:active { transform: scale(.995); }

.cat-card__media {
    position: relative;
    width: 100%;
    height: 152px;
    overflow: hidden;
    background: var(--surface-sunken);
}

.cat-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.cat-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    background: linear-gradient(135deg, var(--surface-sunken) 0%, #e5e1db 100%);
}

.cat-card__placeholder svg { width: 34px; height: 34px; opacity: .45; }

/* Urun sayisi gorselin uzerinde yuzer */
.cat-card__count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 11px;
    background: rgba(26, 26, 25, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 100px;
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .01em;
}

.cat-card__body { padding: 15px 17px 17px; }

.cat-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cat-card__name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.cat-card__arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--ink-faint);
    transition: transform .2s ease;
}

.cat-card__preview {
    margin: 6px 0 0;
    font-size: .855rem;
    line-height: 1.45;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tablet: hala tek sutun, ama kart biraz daha ferah */
@media (min-width: 700px) {
    .cat-card__media { height: 190px; }
    .cat-card__name { font-size: 1.28rem; }
}

/* Masaustu: iki sutun. Sayfa genisligi de artar, yoksa kartlar sikisir. */
@media (min-width: 1024px) {
    :root { --page-max: 920px; }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .cat-card__media { height: 176px; }
    .cat-card__name { font-size: 1.2rem; }
}

/* Arama sonucu satirlarinda urunun hangi kategoride oldugu yazar */
.item__category {
    margin: 0 0 2px;
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ============ Gezinme ============ */

.crumb {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 12px 18px 4px;
}

.crumb__back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 4px 0;
}

.crumb__back:hover { color: var(--ink); }
.crumb__back svg { width: 15px; height: 15px; }

/* ============ Kategori ============ */

.category { scroll-margin-top: var(--header-h); }

.category__title {
    margin: 30px 0 14px;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============ Urun karti ============ */

.item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

@media (hover: hover) {
    .item:hover {
        box-shadow: var(--shadow-md);
        border-color: #ddd8d1;
        transform: translateY(-1px);
    }
}

.item--unavailable { opacity: .58; }

/*
 * Kartin tamami urun sayfasina baglanti olur. Ic ice <a> kurmamak icin
 * gorunmez bir katman kullanilir: metin secilebilir kalir, kart icindeki
 * baska bir baglanti eklenirse onun uzerinde kalmasi yeterli olur.
 */
.item__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.item:has(.item__link) { cursor: pointer; }

.item__media {
    position: relative;
    width: 112px;
    flex-shrink: 0;
    background: var(--surface-sunken);
}

.item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gorseli olmayan urun icin sessiz bir yer tutucu */
.item__placeholder {
    width: 100%;
    height: 100%;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    background:
        linear-gradient(135deg, var(--surface-sunken) 0%, #e8e5e0 100%);
}

.item__placeholder svg { width: 26px; height: 26px; opacity: .5; }

.item__body {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.item__name {
    margin: 0;
    font-size: 1.01rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.015em;
}

.item__desc {
    margin: 0;
    font-size: .855rem;
    line-height: 1.45;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.item__price {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

/* Indirim varsa guncel fiyat vurgulanir, eskisi soluk ve ustu cizili durur */
.item__price--sale { color: var(--accent); }

.item__price-old {
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink-faint);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-decoration-thickness: 1px;
}

/*
 * Indirim orani. Rengi paletten BAGIMSIZ sabit kirmizi: indirim isareti her
 * menude ayni anlama gelmeli, isletmenin sectigi renge gore solmamali.
 */
.item__indirim {
    display: inline-block;
    padding: 2px 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    color: #fff;
    background: #d32f2f;
    border-radius: 100px;
}

.item__badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: var(--surface-sunken);
    border-radius: 100px;
}

/* ============ One cikanlar seridi ============ */

/*
 * Kategori izgarasinin ustunde yatay kayan bir serit. Telefonda kaydirilir,
 * genis ekranda zaten hepsi sigar. Kart sayisi az oldugu icin izgara yerine
 * serit secildi: ikiye bolunmus tek bir kart yamuk duruyordu.
 */
.one-cikan { margin: 0 0 26px; }

.one-cikan__title {
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.one-cikan__rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Kart golgesi kirpilmasin diye tasma payi */
    padding: 2px 18px 4px;
    margin: 0 -18px;
}

.one-cikan__rail::-webkit-scrollbar { display: none; }

.one-cikan__card {
    flex: 0 0 196px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s ease, transform .18s ease;
}

@media (hover: hover) {
    .one-cikan__card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
    }
}

.one-cikan__media {
    position: relative;
    height: 116px;
    background: var(--surface-sunken);
}

.one-cikan__image { width: 100%; height: 100%; object-fit: cover; display: block; }

.one-cikan__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    background: linear-gradient(135deg, var(--surface-sunken) 0%, #e8e5e0 100%);
}

.one-cikan__placeholder svg { width: 26px; height: 26px; opacity: .5; }

/* Etiket gorselin uzerinde durur; gorsel yoksa yer tutucunun uzerinde. */
.one-cikan__etiket {
    position: absolute;
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 10px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border-radius: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

.one-cikan__body { padding: 11px 13px 13px; }

.one-cikan__name {
    margin: 0 0 6px;
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.one-cikan__fiyat {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

/* ============ Urun sayfasi ============ */

.detay {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin: 18px 0 0;
    padding: 0 0 20px;
}

/* Gorsel kare: urun fotograflari cogunlukla kare cekiliyor */
.detay__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--surface-sunken);
}

.detay__image { width: 100%; height: 100%; object-fit: cover; display: block; }

.detay__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    background: linear-gradient(135deg, var(--surface-sunken) 0%, #e8e5e0 100%);
}

.detay__placeholder svg { width: 46px; height: 46px; opacity: .45; }

.detay__name {
    margin: 18px 20px 10px;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.detay__fiyat {
    margin: 0 20px 14px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;
}

.detay__fiyat .item__price { font-size: 1.25rem; }

.detay__desc {
    margin: 0 20px 18px;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.detay__bilgi {
    margin: 0 20px;
    padding: 0;
    border-top: 1px solid var(--line-soft);
}

.detay__satir {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
}

.detay__satir dt {
    font-size: .88rem;
    color: var(--ink-soft);
}

.detay__satir dd {
    margin: 0;
    font-size: .95rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.detay__not {
    margin: 10px 20px 0;
    font-size: .78rem;
    line-height: 1.45;
    color: var(--ink-faint);
}

.detay__geri {
    display: inline-block;
    margin: 20px 20px 0;
    padding: 11px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
    font-size: .88rem;
    font-weight: 650;
    text-decoration: none;
    transition: background .16s ease;
}

.detay__geri:hover { background: var(--accent-hover); }

@media (min-width: 700px) {
    .detay__media { aspect-ratio: 16 / 9; }
}

/* ============ Alt bilgi ============ */

.site-footer {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 28px 18px calc(36px + env(safe-area-inset-bottom));
    text-align: center;
    border-top: 1px solid var(--line);
}

.site-footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
    font-size: .92rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background .16s ease;
}

.site-footer__phone:hover { background: var(--accent-hover); }

.site-footer__phone svg { width: 15px; height: 15px; }

.site-footer__note {
    margin: 16px 0 0;
    font-size: .76rem;
    color: var(--ink-faint);
}

/* ============ Genis ekran ============ */

@media (min-width: 700px) {
    :root { --page-max: 760px; }

    .items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .site-header__title { font-size: 1.55rem; }
    .item__media { width: 116px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ============ Yazdirma ============ */

@media print {
    .toolbar, .lang-switch, .manage-link, .site-footer__phone { display: none; }
    body { background: #fff; }
    .item { break-inside: avoid; box-shadow: none; }
}
