/* ==========================================================================
   Empoli Plastik — Mobil site teması v2
   Bağımsız (masaüstü app.css'e bağlı değil). Köşeler köşeli; ürün resimleri hariç.
   ========================================================================== */

:root {
    color-scheme: light;
    --red: var(--tema, #bd0101);
    --red-dark: var(--tema-dark, #8f0101);
    --red-soft: var(--tema-soft, #fdecec);
    --slate: #2E3944;
    --dark: #354d57;
    --muted: #6b7c88;
    --line: #e3e8ec;
    --line-strong: #cfd7de;
    --bg: #f3f5f7;
    --white: #fff;
    --success: #1c8a4b;
    --warning: #c77700;
    --radius: 0;
    --radius-sm: 0;
    --nav-h: 58px;
    --bar-h: 54px;
    --shadow: 0 1px 2px rgba(46, 57, 68, .06), 0 4px 14px rgba(46, 57, 68, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body.m {
    background: var(--bg);
    color: var(--slate);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.m.has-checkout { padding-bottom: calc(var(--nav-h) + 76px + env(safe-area-inset-bottom, 0px)); }
body.m.is-locked { overflow: hidden; }

a { color: var(--red); text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

.m-svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ Üst bar */
.m-top {
    position: sticky; top: 0; z-index: 60;
    background: #fff;
    padding-top: env(safe-area-inset-top, 0px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.m-top.is-scrolled { box-shadow: 0 4px 16px rgba(46, 57, 68, .1); }
.m-top__bar { display: flex; align-items: center; gap: 8px; height: var(--bar-h); padding: 0 10px 0 12px; }
.m-logo { display: flex; align-items: center; }
.m-logo img { height: 28px; width: auto; display: block; }
.m-back {
    width: 38px; height: 38px; margin-left: -6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 0; color: var(--slate); cursor: pointer;
}
.m-back:active { background: var(--bg); }
.m-top__actions { margin-left: auto; display: flex; gap: 6px; }

.m-icon {
    position: relative; width: 42px; height: 42px;
    border: 1px solid var(--line); background: #fff; color: var(--dark);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.m-icon:active { background: var(--bg); }
.m-badge {
    position: absolute; top: -6px; right: -6px;
    min-width: 19px; height: 19px; padding: 0 5px;
    background: var(--red); color: #fff; border-radius: 999px;
    font-size: 11px; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.m-badge[hidden] { display: none; }

/* Arama (sayfa içinde, sabit değil) */
.m-searchbar { background: #fff; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
.m-search { position: relative; margin: 0; }
.m-search__icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.m-search input {
    width: 100%; height: 46px; padding: 0 92px 0 42px;
    border: 1px solid var(--line-strong); border-radius: 0;
    background: var(--bg); color: var(--slate); font: inherit; font-size: 16px;
    -webkit-appearance: none; appearance: none;
}
.m-search input::-webkit-search-cancel-button { display: none; }
.m-search input:focus { outline: none; border-color: var(--red); background: #fff; }
.m-search button {
    position: absolute; right: 0; top: 0; bottom: 0; padding: 0 16px;
    border: 0; background: var(--red); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
}
.m-search button:active { background: var(--red-dark); }

/* -------------------------------------------------------- Çekmece (menü) */
.m-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.m-drawer.is-open { visibility: visible; }
.m-drawer__bg { position: absolute; inset: 0; background: rgba(20, 28, 34, .55); opacity: 0; transition: opacity .25s; }
.m-drawer.is-open .m-drawer__bg { opacity: 1; }
.m-drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 340px);
    background: #fff; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.m-drawer.is-open .m-drawer__panel { transform: none; }
.m-drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); padding: 0 8px 0 16px; background: var(--red); color: #fff; }
.m-drawer__head b { font-size: 15px; letter-spacing: .02em; }
.m-drawer__close { width: 42px; height: 42px; background: none; border: 0; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.m-drawer__links { flex: 1 1 auto; overflow-y: auto; padding: 6px 0; }
.m-drawer__links a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--slate); font-size: 15.5px; border-bottom: 1px solid var(--line); }
.m-drawer__links a:active { background: var(--bg); }
.m-drawer__links a .m-svg { color: var(--red); }
.m-drawer__links a em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }
.m-drawer__foot { padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--bg); display: grid; gap: 8px; }
.m-drawer__foot .m-btn { margin: 0; }

/* ------------------------------------------------------------- Ana içerik */
.m-main { padding: 12px 12px 20px; min-height: 40vh; }

.m-hero { margin: 4px 2px 12px; }
.m-hero h1 { font-size: 19px; line-height: 1.25; margin: 0 0 3px; color: var(--slate); }
.m-hero p { margin: 0; color: var(--muted); font-size: 13px; }

/* Marka bandı (anasayfa) */
.m-hero--brand {
    margin: 0 -12px 14px; padding: 20px 16px 18px; color: #fff;
    background:
        linear-gradient(135deg, rgba(255,255,255,.07) 0 25%, transparent 25% 50%, rgba(255,255,255,.07) 50% 75%, transparent 75%) 0 0 / 22px 22px,
        linear-gradient(160deg, var(--tema-light, #d10a0a), var(--tema-dark, #8f0101));
}
.m-hero--brand small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.m-hero--brand h1 { color: #fff; font-size: 22px; line-height: 1.2; margin: 0 0 4px; }
.m-hero--brand p { color: rgba(255,255,255,.85); font-size: 13.5px; }
.m-hero__cta { display: flex; gap: 8px; margin-top: 14px; }
.m-hero__cta a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; font-size: 13.5px; font-weight: 600; color: var(--red); background: #fff; }
.m-hero__cta a.is-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.65); }
.m-hero__cta a:active { opacity: .85; }

.m-sect { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 10px; }
.m-sect h2 { margin: 0; font-size: 15px; color: var(--slate); letter-spacing: .01em; }
.m-sect span { color: var(--muted); font-size: 12.5px; }

/* Seri kartları (2 kolon) */
.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: var(--slate); overflow: hidden; }
.m-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.m-card:active { border-color: var(--red); }
.m-card:active::after { transform: scaleX(1); }
.m-card__media { display: block; aspect-ratio: 1 / 1; background: #fff; padding: 8px; }
.m-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.m-card__body { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 11px; border-top: 1px solid var(--line); background: #fbfcfd; }
.m-card__no { font-weight: 800; color: var(--red); font-size: 14px; letter-spacing: .02em; }
.m-card__ad { color: var(--muted); font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; }

/* Hızlı bağlantılar */
.m-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.m-quick__item { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px; background: #fff; border: 1px solid var(--line); color: var(--dark); font-weight: 600; font-size: 14px; }
.m-quick__item .m-svg { color: var(--red); }
.m-quick__item:active { border-color: var(--red); background: var(--red-soft); }

/* Sayfa altı künyesi */
.m-foot { margin: 18px -12px -20px; padding: 18px 16px 22px; background: var(--slate); color: #c9d3da; font-size: 12.5px; line-height: 1.7; }
.m-foot b { color: #fff; display: block; font-size: 13.5px; margin-bottom: 4px; }
.m-foot a { color: #fff; }
.m-foot__row { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }

/* ------------------------------------------------------- Alt sekme çubuğu */
.m-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(46, 57, 68, .07);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.m-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: var(--nav-h); padding: 7px 4px;
    color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none;
}
.m-tab svg { width: 23px; height: 23px; }
.m-tab.is-active { color: var(--red); font-weight: 700; }
.m-tab.is-active::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; background: var(--red); }
.m-tab:active { background: var(--bg); }
.m-tab__ic { position: relative; display: block; line-height: 0; }
.m-tab__badge {
    position: absolute; top: -5px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px;
    background: var(--red); color: #fff; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
}
.m-tab__badge[hidden] { display: none; }

/* ------------------------------------------------- Kırıntı ve blok yapısı */
.m-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 12.5px; color: var(--muted); margin: 0 2px 10px; }
.m-crumbs::-webkit-scrollbar { display: none; }
.m-crumbs a { color: var(--muted); }
.m-crumbs b { color: var(--slate); font-weight: 600; }

.m-chip { display: inline-block; padding: 3px 9px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; margin-bottom: 8px; }

.m-block { background: #fff; border: 1px solid var(--line); padding: 14px; margin-bottom: 12px; }
.m-block__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--slate); margin-bottom: 12px; }
.m-block__title::before { content: ""; width: 3px; height: 15px; background: var(--red); flex: 0 0 auto; }
.m-desc { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.m-desc p { margin: 0 0 8px; }
.m-empty { color: var(--muted); font-size: 14px; padding: 18px 14px; text-align: center; }
.m-hint { color: var(--muted); font-size: 12px; margin: 12px 0 0; line-height: 1.45; }

/* Seri başlığı */
.m-seri-head { background: #fff; border: 1px solid var(--line); overflow: hidden; margin-bottom: 12px; }
.m-seri-head__img { aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); }
.m-seri-head__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.m-seri-head__info { padding: 14px; }
.m-seri-head__info h1 { font-size: 18px; line-height: 1.25; margin: 0 0 8px; color: var(--slate); }

/* Liste filtresi */
.m-filter { position: relative; margin-bottom: 10px; }
.m-filter input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--bg); font: inherit; font-size: 16px; color: var(--slate); -webkit-appearance: none; appearance: none; }
.m-filter input:focus { outline: none; border-color: var(--red); background: #fff; }

/* Ürün listesi (satırlar) */
.m-list { display: grid; gap: 0; border: 1px solid var(--line); }
.m-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); color: var(--slate); }
.m-row:last-child { border-bottom: 0; }
.m-row:active { background: var(--red-soft); }
.m-row[hidden] { display: none; }
.m-row__dot { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); background: #fff; flex: 0 0 auto; }
.m-row__dot--none { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.m-row__code { font-weight: 700; font-size: 14px; letter-spacing: .01em; }
.m-row__meta { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.m-row__go { color: var(--red); font-size: 22px; line-height: 1; margin-left: 2px; }
.m-list--soft { border: 0; gap: 8px; }
.m-list--soft .m-row { border: 1px solid var(--line); }

/* Yatay kaydırma (ilişkili seriler) */
.m-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.m-scroll::-webkit-scrollbar { display: none; }
.m-thumb { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--slate); font-size: 12px; font-weight: 600; scroll-snap-align: start; }
.m-thumb img { width: 104px; height: 78px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; }

/* Önceki / sonraki */
.m-prevnext { display: flex; gap: 8px; margin: 4px 0 8px; }
.m-prevnext a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 46px; padding: 8px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--slate); }
.m-prevnext a:active { border-color: var(--red); color: var(--red); }
.m-prevnext span { flex: 1; }

/* Ürün başlığı */
.m-urun-head { margin: 2px 2px 12px; }
.m-urun-head h1 { font-size: 21px; line-height: 1.2; margin: 0 0 6px; color: var(--slate); letter-spacing: .01em; }
.m-urun-head p { margin: 0; color: var(--muted); font-size: 13px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.m-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: #fff; border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 600; color: var(--dark); }
.m-tag img { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }

/* Galeri (kaydırmalı) */
.m-gallery { position: relative; margin: 0 -12px 12px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.m-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.m-gallery__track::-webkit-scrollbar { display: none; }
.m-gallery__slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; position: relative; display: flex; align-items: center; justify-content: center; height: 240px; }
.m-gallery__slide img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 12px; }
.m-gallery__slide figcaption { position: absolute; left: 12px; top: 10px; padding: 3px 8px; background: var(--slate); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.m-gallery__dots { display: flex; justify-content: center; gap: 6px; padding: 0 0 10px; }
.m-gallery__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background .2s, width .2s; }
.m-gallery__dots i.is-on { background: var(--red); width: 18px; border-radius: 4px; }

/* Ölçüler */
.m-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.m-spec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.m-spec:nth-child(3n) { border-right: 0; }
.m-spec:nth-last-child(-n+3) { border-bottom: 0; }
.m-spec span { color: var(--red); font-size: 12.5px; font-weight: 800; }
.m-spec b { font-size: 15px; font-weight: 700; }
.m-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0 0; margin-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; }
.m-line + .m-line { border-top: 0; margin-top: 0; padding-top: 8px; }
.m-line span { color: var(--muted); }
.m-line b { text-align: right; }

/* Fiyat kademeleri: yan yana kartlar */
.m-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.m-price { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 8px 8px; border: 1px solid var(--line-strong); background: #fff; text-align: center; }
.m-price__info { display: flex; flex-direction: column; gap: 2px; }
.m-price__info span { color: var(--muted); font-size: 12px; font-weight: 600; }
.m-price__info b { font-size: 17px; line-height: 1.2; color: var(--slate); }
.m-price .m-btn { margin: 0; width: 100%; padding: 0; height: 38px; font-size: 13px; }
@media (max-width: 340px) { .m-prices { grid-template-columns: 1fr 1fr; } }

/* Buton */
.m-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-left: auto; border: 0; border-radius: 0; background: var(--red); color: #fff;
    font: inherit; font-size: 14px; font-weight: 700; padding: 0 18px; height: 44px; cursor: pointer; text-align: center;
    transition: background .15s, transform .1s;
}
.m-btn:active { background: var(--red-dark); transform: scale(.98); }
.m-btn.is-done { background: var(--success); }
.m-btn--block { display: flex; width: 100%; margin: 10px 0 0; }
.m-btn--ghost { background: #fff; color: var(--slate); border: 1px solid var(--line-strong); }
.m-btn--ghost:active { background: var(--bg); }
.m-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Toast */
.m-toast {
    position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px));
    z-index: 120; display: flex; align-items: center; gap: 12px; justify-content: space-between;
    background: var(--slate); color: #fff; padding: 12px 14px; font-size: 14px;
    border-left: 4px solid var(--success);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.m-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.m-toast.is-err { border-left-color: #c0262d; }
.m-toast a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
body.has-checkout .m-toast { bottom: calc(var(--nav-h) + 88px + env(safe-area-inset-bottom, 0px)); }

/* ------------------------------------------------------------------ Arama */
.m-block__sub { color: var(--muted); font-size: 13px; margin: -6px 0 10px; }

/* ------------------------------------------------------------------ Sepet */
.m-cartline { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-cartline:last-child { border-bottom: 0; padding-bottom: 0; }
.m-cartline__info { display: flex; flex-direction: column; min-width: 0; }
.m-cartline__info span { font-size: 13px; color: var(--muted); }
.m-cartline__info b { font-size: 15px; }
.m-cartline__info small { color: var(--muted); font-size: 12px; }
.m-cartline__ops { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.m-cartline__ops form { margin: 0; }
.m-qty { min-width: 30px; text-align: center; font-weight: 700; font-size: 15px; }
.m-mini { border: 1px solid var(--line-strong); background: #fff; border-radius: 0; width: 36px; height: 36px; font-size: 18px; line-height: 1; color: var(--dark); cursor: pointer; }
.m-mini:active { background: var(--bg); }
.m-mini--sil { width: auto; padding: 0 10px; font-size: 12.5px; font-weight: 600; color: var(--red); border-color: var(--tema-border, #f1c4c4); background: var(--red-soft); margin-left: 4px; }
.m-ozet { display: grid; gap: 8px; }
.m-ozet__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.m-ozet__row span:first-child { color: var(--muted); }
.m-ozet__row--toplam { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-weight: 800; font-size: 16px; }
.m-ozet__row--toplam span:first-child { color: var(--slate); }

.m-checkout {
    position: fixed; left: 0; right: 0; z-index: 75;
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(46, 57, 68, .1);
}
.m-checkout__sum { display: flex; flex-direction: column; line-height: 1.2; }
.m-checkout__sum small { color: var(--muted); font-size: 11.5px; }
.m-checkout__sum b { font-size: 18px; }
.m-checkout .m-btn { flex: 1 1 auto; margin: 0; height: 48px; }

.m-emptycart { text-align: center; padding: 34px 16px 28px; background: #fff; border: 1px solid var(--line); margin-bottom: 12px; }
.m-emptycart .m-svg { width: 48px; height: 48px; color: var(--line-strong); margin-bottom: 8px; }
.m-emptycart b { display: block; font-size: 16px; margin-bottom: 4px; }
.m-emptycart p { margin: 0; color: var(--muted); font-size: 13px; }

/* ----------------------------------------------------------- Form alanları */
.m-field { margin-bottom: 12px; }
.m-field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--dark); margin-bottom: 5px; }
.m-field input[type="text"], .m-field input[type="email"], .m-field input[type="tel"],
.m-field input[type="password"], .m-field input[type="date"], .m-field input[type="search"],
.m-field input[type="file"], .m-field select, .m-field textarea {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 0;
    background: #fff; color: var(--slate); font: inherit; font-size: 16px;
    -webkit-appearance: none; appearance: none;
}
.m-field textarea { min-height: 90px; }
.m-field input:focus, .m-field select:focus, .m-field textarea:focus { outline: none; border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.m-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--dark); margin: 8px 0 14px; }
.m-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex: 0 0 auto; }
.m-radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-strong); background: #fff; margin-bottom: 8px; }
.m-radio:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.m-radio input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex: 0 0 auto; }
.m-radio b { display: block; }
.m-radio small { color: var(--muted); }
.m-captcha { display: flex; gap: 10px; align-items: center; }
.m-captcha input { flex: 1 1 auto; text-transform: uppercase; }
.m-captcha img { height: 46px; width: 140px; object-fit: cover; border: 1px solid var(--line-strong); cursor: pointer; background: #fff; }
.m-alt { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* Flash mesajları */
.m-flash { padding: 11px 14px; margin-bottom: 10px; font-size: 13.5px; border: 1px solid transparent; border-left-width: 4px; }
.m-flash--basari { background: #e9f8ef; border-color: #bfe6cd; border-left-color: var(--success); color: #14663a; }
.m-flash--hata { background: #fdecec; border-color: #f3c9c9; border-left-color: #c0262d; color: #961d1d; }
.m-flash--uyari { background: #fdf5e6; border-color: #f0dcb4; border-left-color: var(--warning); color: #8a5a00; }
.m-flash--bilgi { background: #eaf2fb; border-color: #c6dcf2; border-left-color: #2b78c2; color: #14538a; }

/* Banka */
.m-banka { border: 1px solid var(--line); padding: 12px; margin-bottom: 8px; background: #fbfcfd; }
.m-banka b { display: block; }
.m-banka small { display: block; color: var(--muted); }
.m-banka code { display: block; margin-top: 8px; font-size: 14px; letter-spacing: .02em; background: #fff; border: 1px dashed var(--line-strong); padding: 9px 10px; user-select: all; word-break: break-all; }

/* Tablo benzeri liste */
.m-table { display: grid; gap: 0; }
.m-table__row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.m-table__row:last-child { border-bottom: 0; }
.m-table__row small { display: block; color: var(--muted); font-size: 12px; }

.m-tamam { padding: 14px; margin-bottom: 12px; font-size: 14px; border-left: 4px solid transparent; }
.m-tamam--ok { background: #e9f8ef; color: #14663a; border-left-color: var(--success); }
.m-tamam--hata { background: #fdecec; color: #961d1d; border-left-color: #c0262d; }

/* Küçük ekranlar */
@media (max-width: 350px) {
    .m-grid { gap: 8px; }
    .m-hero--brand h1 { font-size: 19px; }
    .m-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-spec:nth-child(3n) { border-right: 1px solid var(--line); }
    .m-spec:nth-child(2n) { border-right: 0; }
    .m-spec:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
    .m-spec:nth-last-child(-n+2) { border-bottom: 0; }
}
/* Geniş telefon / küçük tablet */
@media (min-width: 560px) {
    .m-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .m-main { max-width: 720px; margin: 0 auto; }
}


/* Sözleşmeler ve ödeme logoları (PayTR) */
.m-foot__yasal { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.m-foot__yasal a { color: #c9d3da; text-decoration: underline; text-underline-offset: 2px; font-size: 12px; }
.m-foot__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.pay-logo { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 4px; background: #fff; line-height: 0; }
.pay-logo svg { height: 17px; width: auto; display: block; }
.pay-logo--paytr { padding: 0 6px; }
.pay-logo--paytr svg { height: 19px; }
.pay-logo--img img { height: 17px; width: auto; display: block; }
.m-drawer__yasal { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 18px; border-top: 1px solid var(--line); }
.m-drawer__yasal a { color: var(--muted); font-size: 12.5px; }


/* Tema: logo rengi */
.m-logo img { filter: var(--logo-filter, var(--tema-filter, none)); }


/* Dinamik içerik sayfaları */
.m-sayfa { font-size: 14px; line-height: 1.65; color: var(--slate); overflow-wrap: anywhere; }
.m-sayfa h3, .m-sayfa h4, .m-sayfa h5 { margin: 16px 0 6px; font-size: 15px; color: var(--slate); }
.m-sayfa h3:first-child, .m-sayfa h4:first-child, .m-sayfa h5:first-child { margin-top: 0; }
.m-sayfa p { margin: 0 0 10px; }
.m-sayfa .lead { font-size: 15.5px; color: var(--dark); }
.m-sayfa ul, .m-sayfa ol { margin: 0 0 10px; padding-left: 20px; }
.m-sayfa li { margin-bottom: 4px; list-style: disc; }
.m-sayfa ol li { list-style: decimal; }
.m-sayfa table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 12.5px; margin: 8px 0 12px; }
.m-sayfa th, .m-sayfa td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; min-width: 110px; }
.m-sayfa th { background: var(--bg); }
.m-sayfa a { text-decoration: underline; }
.m-sayfa .text-section { border-bottom: 1px solid var(--line); margin-bottom: 14px; padding-bottom: 6px; }
.m-sayfa .text-section:last-child { border-bottom: 0; }
.m-sayfa .text-section__center { text-align: center; }
.m-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Galeri küçük görselleri (tüm görseller görünür/ulaşılabilir olsun) */
.m-gallery__thumbs { display: flex; gap: 8px; padding: 8px 12px 10px; overflow-x: auto; scrollbar-width: none; }
.m-gallery__thumbs::-webkit-scrollbar { display: none; }
.m-gallery__thumb { flex: 0 0 auto; width: 92px; padding: 0; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; display: flex; flex-direction: column; -webkit-appearance: none; appearance: none; }
.m-gallery__thumb img { width: 100%; height: 58px; object-fit: contain; display: block; background: #fff; padding: 3px; }
.m-gallery__thumb span { font-size: 10px; line-height: 1.35; padding: 3px 5px; color: var(--slate); border-top: 1px solid var(--line); text-align: left; }
.m-gallery__thumb.is-on { border-color: var(--red); }
.m-gallery__thumb.is-on span { color: var(--red); font-weight: 700; }

/* Seri başlığı içindeki galeri: kutu kenarlarına otursun, dış boşluk kullanmasın */
.m-seri-head .m-gallery { margin: 0; border: 0; border-bottom: 1px solid var(--line); }

/* Galeri görselini büyütme (teknik çizim/ölçü resmi okunabilsin) */
.m-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(12, 18, 22, .95); display: flex; align-items: center; justify-content: center; padding: 12px; overflow: auto; }
.m-lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; background: #fff; display: block; }
.m-lightbox__kapat { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
body.m-noscroll { overflow: hidden; }
