/* =========================================================
   Codebil Campus 3D Mağaza 2.0 · mobil öncelikli tasarım
   (mağaza, ürün, sepet, sipariş sonucu, sipariş takibi, satış koşulları)
   ========================================================= */
.mg { --mg-bg: #F5F6F8; --mg-card: #FFFFFF; --mg-ink: #1C1D22; --mg-muted: #6B7180; --mg-line: #E6E8EC; --mg-red: #C8161F; --mg-red-d: #9E0F17;
      --mg-green: #12824B; --mg-green-t: #E8F6EE; --mg-orange: #E36414; --mg-r: 14px; background: var(--mg-bg); padding-bottom: 40px; }
.mg *:focus-visible { outline: 2px solid var(--mg-red); outline-offset: 2px; }
.mg .wrap { padding: 0 16px; }
.mg-hidden { display: none !important; }

/* ---------- Üst arama ve kategoriler ---------- */
.mg-top { background: #fff; border-bottom: 1px solid var(--mg-line); position: sticky; top: var(--header-h); z-index: 30; }
.mg-top-row { display: flex; align-items: center; gap: 12px; padding: 12px 0 10px; }
.mg-top h1 { font-size: 1.15rem; margin: 0; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.mg-top h1 .bi { color: var(--mg-red); }
.mg-search { flex: 1; display: flex; align-items: center; gap: 8px; background: #F2F3F5; border: 1.5px solid transparent; border-radius: 12px; padding: 0 12px; min-width: 0; }
.mg-search:focus-within { border-color: var(--mg-red); background: #fff; }
.mg-search .bi { color: var(--mg-muted); }
.mg-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7rem 0; font: inherit; font-size: .95rem; outline: none; }
.mg-search button { border: 0; background: none; color: var(--mg-muted); cursor: pointer; padding: 6px; }
.mg-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 0 12px; -webkit-overflow-scrolling: touch; }
.mg-cats::-webkit-scrollbar { display: none; }
.mg-cat { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: .5rem .95rem; border-radius: 999px; background: #F2F3F5; color: var(--mg-ink);
          font-size: .86rem; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; }
.mg-cat small { color: var(--mg-muted); font-weight: 500; }
.mg-cat:hover { color: var(--mg-ink); border-color: #D7DAE0; }
.mg-cat.is-active { background: var(--mg-ink); color: #fff; }
.mg-cat.is-active small { color: rgba(255,255,255,.7); }

/* ---------- Kampanya bandı ---------- */
.mg-banner { margin: 16px 0 0; }
.mg-banner-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.mg-hero { position: relative; overflow: hidden; border-radius: 18px; background: #0F1115; color: #fff; min-height: 250px; display: flex; align-items: flex-end; text-decoration: none; }
.mg-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.mg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,17,21,0) 20%, rgba(15,17,21,.92)); }
.mg-hero-text { position: relative; z-index: 1; padding: 22px; }
.mg-hero-text span { display: inline-block; background: var(--mg-red); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.mg-hero-text strong { display: block; font-family: var(--font-head); font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); line-height: 1.15; margin: 10px 0 6px; color: #fff; }
.mg-hero-text p { margin: 0; color: rgba(255,255,255,.82); font-size: .92rem; max-width: 420px; }
.mg-promos { display: grid; gap: 14px; }
.mg-promo { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--mg-line); text-decoration: none; color: var(--mg-ink); }
.mg-promo:hover { color: var(--mg-ink); border-color: #D2D5DB; }
.mg-promo i { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: #FDECEE; color: var(--mg-red); }
.mg-promo.g i { background: var(--mg-green-t); color: var(--mg-green); }
.mg-promo.b i { background: #EAF1FE; color: #1F63E0; }
.mg-promo strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.mg-promo span { font-size: .84rem; color: var(--mg-muted); line-height: 1.4; }
.mg-promo-palette { display: flex; gap: 4px; margin-top: 6px; }
.mg-promo-palette b { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

/* ---------- Güven şeridi ---------- */
.mg-usp { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mg-usp li { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--mg-line); border-radius: 12px; padding: 10px 12px; }
.mg-usp .bi { font-size: 1.25rem; color: var(--mg-red); }
.mg-usp strong { display: block; font-size: .84rem; font-family: var(--font-head); line-height: 1.25; }
.mg-usp span { display: block; font-size: .76rem; color: var(--mg-muted); line-height: 1.3; }

/* ---------- Liste araç çubuğu ---------- */
.mg-list { margin-top: 22px; }
.mg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 14px; }
.mg-toolbar h2 { margin: 0; font-size: 1.2rem; }
.mg-toolbar h2 small { font-family: var(--font-body); font-weight: 400; color: var(--mg-muted); font-size: .85rem; margin-left: 6px; }
.mg-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mg-filter { display: inline-flex; align-items: center; gap: 6px; padding: .42rem .8rem; border-radius: 999px; border: 1.5px solid var(--mg-line); background: #fff; font-size: .82rem; font-weight: 600; color: var(--mg-ink); text-decoration: none; }
.mg-filter:hover { color: var(--mg-ink); border-color: #C9CDD4; }
.mg-filter.is-on { border-color: var(--mg-red); background: #FDECEE; color: var(--mg-red-d); }
.mg-sort { position: relative; }
.mg-sort select { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--mg-line); border-radius: 10px; padding: .5rem 2.1rem .5rem .8rem; background: #fff; font: inherit; font-size: .86rem; font-weight: 600; color: var(--mg-ink); cursor: pointer; }
.mg-sort::after { content: "\25BE"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--mg-muted); }

/* ---------- Ürün kartı ---------- */
.mg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mg-card { position: relative; display: flex; flex-direction: column; background: var(--mg-card); border-radius: var(--mg-r); border: 1px solid var(--mg-line); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.mg-card:hover { box-shadow: 0 16px 36px -18px rgba(28,29,34,.35); transform: translateY(-2px); }
.mg-card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: #F1F2F4; overflow: hidden; }
.mg-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mg-card:hover .mg-card-img img { transform: scale(1.04); }
.mg-badges { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 1; }
.mg-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; padding: 3px 7px; border-radius: 6px; background: #fff; color: var(--mg-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mg-badge.red { background: var(--mg-red); color: #fff; }
.mg-badge.green { background: var(--mg-green); color: #fff; }
.mg-badge.dark { background: #1C1D22; color: #fff; }
.mg-badge.rainbow { background: linear-gradient(90deg, #C8161F, #F97316 25%, #3CC13B 50%, #1F63E0 75%, #1C1D22); color: #fff; }
.mg-card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.mg-card-name { font-size: .9rem; line-height: 1.35; font-weight: 600; color: var(--mg-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.mg-card-name:hover { color: var(--mg-red); }
.mg-card-cat { font-size: .7rem; font-weight: 700; color: var(--mg-muted); text-transform: uppercase; letter-spacing: .06em; }
.mg-card-meta { font-size: .76rem; color: var(--mg-green); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.mg-dots { display: flex; gap: 3px; margin-top: 2px; }
.mg-dots b { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.mg-dots small { font-size: .72rem; color: var(--mg-muted); margin-left: 3px; }
.mg-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 6px; }
.mg-price strong { font-family: var(--font-head); font-size: 1.12rem; color: var(--mg-ink); }
.mg-price s { font-size: .8rem; color: var(--mg-muted); }
.mg-price .mg-off { font-size: .74rem; font-weight: 800; color: var(--mg-red); background: #FDECEE; padding: 1px 6px; border-radius: 5px; }
.mg-price .mg-unit { font-size: .76rem; color: var(--mg-muted); }
.mg-card-btn { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--mg-red); color: var(--mg-red); background: #fff;
               border-radius: 10px; padding: .55rem .6rem; font-size: .85rem; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.mg-card-btn:hover { background: var(--mg-red); color: #fff; }
.mg-card-btn.solid { background: var(--mg-red); color: #fff; }
.mg-card-btn.solid:hover { background: var(--mg-red-d); }
.mg-card.is-out { opacity: .72; }
.mg-empty { text-align: center; padding: 40px 16px; background: #fff; border: 1px dashed #D5D8DE; border-radius: 16px; color: var(--mg-muted); }
.mg-empty .bi { font-size: 2rem; color: var(--mg-red); display: block; margin-bottom: 8px; }

/* ---------- Nasıl sipariş verilir ---------- */
.mg-how { margin-top: 32px; background: #fff; border: 1px solid var(--mg-line); border-radius: 18px; padding: 22px; }
.mg-how h2 { font-size: 1.2rem; margin: 0 0 14px; }
.mg-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.mg-how li { position: relative; padding: 14px 14px 14px 52px; border-radius: 12px; background: var(--mg-bg); counter-increment: s; font-size: .86rem; color: var(--mg-muted); line-height: 1.45; }
.mg-how li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--mg-red); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.mg-how li strong { display: block; color: var(--mg-ink); font-family: var(--font-head); font-size: .92rem; margin-bottom: 2px; }

.mg-custom { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--mg-line); border-radius: 18px; overflow: hidden; }
.mg-custom img { width: 100%; height: 100%; object-fit: cover; }
.mg-custom-text { padding: 26px; }
.mg-custom-text h2 { font-size: 1.35rem; margin: 6px 0 10px; }
.mg-custom-text p { color: var(--mg-muted); font-size: .94rem; }
.mg-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Mobil alt çubuk (sepet) ---------- */
.mg-cartbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px;
              background: #1C1D22; color: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.35); text-decoration: none; }
.mg-cartbar:hover { color: #fff; }
.mg-cartbar span { font-size: .85rem; color: rgba(255,255,255,.8); }
.mg-cartbar strong { font-family: var(--font-head); font-size: 1rem; color: #fff; }
.mg-cartbar em { font-style: normal; background: var(--mg-red); padding: .55rem .95rem; border-radius: 10px; font-weight: 700; font-size: .88rem; }

/* =========================================================
   ÜRÜN SAYFASI
   ========================================================= */
.mg-crumb { padding: 12px 0 0; font-size: .82rem; color: var(--mg-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.mg-crumb a { color: var(--mg-muted); text-decoration: none; }
.mg-crumb a:hover { color: var(--mg-red); }
.mg-crumb > * + *::before { content: "›"; margin-right: 6px; color: #A9AEB8; }
.mg-pd { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 12px; }
.mg-gal { position: relative; }
.mg-gal-main { position: relative; background: #fff; border: 1px solid var(--mg-line); border-radius: 18px; overflow: hidden; }
.mg-gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mg-gal-track::-webkit-scrollbar { display: none; }
.mg-gal-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; background: #F1F2F4; display: grid; place-items: center; }
.mg-gal-slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.mg-gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(28,29,34,.75); color: #fff; font-size: .75rem; padding: 3px 9px; border-radius: 999px; }
.mg-gal-zoom { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; font-size: 1rem; }
.mg-gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; font-size: 1.1rem; z-index: 2; }
.mg-gal-arrow.prev { left: 10px; } .mg-gal-arrow.next { right: 10px; }
.mg-gal-dots { display: none; justify-content: center; gap: 6px; margin-top: 10px; }
.mg-gal-dots b { width: 7px; height: 7px; border-radius: 50%; background: #CDD1D8; transition: width .2s; }
.mg-gal-dots b.on { width: 20px; border-radius: 4px; background: var(--mg-red); }
.mg-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.mg-thumb { flex: 0 0 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; }
.mg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mg-thumb.on { border-color: var(--mg-red); }

.mg-info { background: #fff; border: 1px solid var(--mg-line); border-radius: 18px; padding: 20px; position: sticky; top: calc(var(--header-h) + 14px); }
.mg-info-cat { font-size: .74rem; font-weight: 800; color: var(--mg-red); text-transform: uppercase; letter-spacing: .08em; }
.mg-info h1 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); margin: 6px 0 8px; line-height: 1.2; }
.mg-info-short { color: var(--mg-muted); font-size: .95rem; margin-bottom: 14px; }
.mg-pd-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; border-radius: 12px; background: var(--mg-bg); margin-bottom: 12px; }
.mg-pd-price strong { font-family: var(--font-head); font-size: 1.85rem; line-height: 1; }
.mg-pd-price s { color: var(--mg-muted); font-size: .95rem; }
.mg-pd-price .mg-off { background: var(--mg-red); color: #fff; font-weight: 800; font-size: .8rem; padding: 3px 8px; border-radius: 6px; }
.mg-pd-price .mg-extra { width: 100%; font-size: .82rem; color: var(--mg-red-d); font-weight: 600; }
.mg-pd-lines { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.mg-pd-lines li { display: flex; gap: 8px; align-items: flex-start; }
.mg-pd-lines .bi { color: var(--mg-green); margin-top: 2px; }
.mg-pd-lines .out { color: var(--mg-red); }
.mg-opt { border: 0; padding: 0; margin: 0 0 14px; }
.mg-opt legend, .mg-opt > label { display: flex; align-items: center; justify-content: space-between; width: 100%; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.mg-opt legend small { font-weight: 500; color: var(--mg-muted); }
.mg-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-swatches input { position: absolute; opacity: 0; pointer-events: none; }
.mg-swatches label { display: inline-flex; align-items: center; gap: 8px; padding: .45rem .8rem .45rem .5rem; border: 1.5px solid var(--mg-line); border-radius: 999px; cursor: pointer; font-size: .86rem; font-weight: 600; background: #fff; }
.mg-swatches label::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--sw, #CBD5E1); border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 0 0 2px #fff; }
.mg-swatches input:checked + label { border-color: var(--mg-red); background: #FDECEE; color: var(--mg-red-d); }
.mg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--mg-bg); padding: 4px; border-radius: 12px; margin-bottom: 12px; }
.mg-tabs button { border: 0; background: transparent; border-radius: 9px; padding: .6rem .5rem; font: inherit; font-weight: 700; font-size: .86rem; color: var(--mg-muted); cursor: pointer; }
.mg-tabs button.on { background: #fff; color: var(--mg-ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.mg-tabs button em { font-style: normal; color: var(--mg-red); }
.mg-cc { border: 1px solid var(--mg-line); background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.mg-cc-intro { margin: 0 0 10px; font-size: .88rem; color: var(--mg-muted); }
.mg-cc-preview { position: relative; display: grid; place-items: center; background: #F6F7F9; border-radius: 14px; padding: 10px; margin-bottom: 14px; }
.mg-cc-preview canvas[hidden] { display: none; }
.mg-cc-svg { width: 100%; max-width: 260px; }
.mg-cc-svg svg { display: block; width: 100%; height: auto; }
.mg-cc-svg svg * { transition: fill .25s; }
.mg-cc-preview canvas { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 10px; }
.mg-cc-ozet { position: absolute; left: 10px; bottom: 10px; background: rgba(17,17,20,.78); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.mg-cc-ozet:empty { display: none; }
.mg-cc-part + .mg-cc-part { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--mg-line); }
.mg-cc-step { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .92rem; }
.mg-cc-no { width: 22px; height: 22px; border-radius: 50%; background: var(--mg-red); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex: none; }
.mg-cc-step em { font-style: normal; color: var(--mg-muted); margin-left: auto; font-size: .85rem; }
.mg-cc-pal { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-cc-pal button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid var(--mg-line); background: #fff; cursor: pointer; font: inherit; font-size: .85rem; color: #33363D; }
.mg-cc-pal button i { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.mg-cc-pal button:hover { border-color: #B9BEC7; }
.mg-cc-pal button.on { border-color: var(--mg-red); background: #FFF3F4; font-weight: 600; color: #111; }
.mg-cc-note { font-size: .78rem; color: var(--mg-muted); margin: 12px 0 0; }
.mg-text input { width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; }
.mg-text input:focus { outline: none; border-color: var(--mg-red); }
.mg-text p { margin: 6px 0 0; font-size: .78rem; color: var(--mg-muted); }
.mg-buy { display: flex; gap: 10px; margin: 6px 0 12px; }
.mg-qty { display: flex; align-items: stretch; border: 1.5px solid var(--mg-line); border-radius: 12px; overflow: hidden; background: #fff; }
.mg-qty button { width: 42px; border: 0; background: #fff; font-size: 1.25rem; cursor: pointer; color: var(--mg-ink); }
.mg-qty button:hover { background: var(--mg-bg); }
.mg-qty input { width: 44px; border: 0; text-align: center; font: inherit; font-weight: 800; }
.mg-add { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: var(--mg-red); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; padding: .85rem 1rem; cursor: pointer; }
.mg-add:hover { background: var(--mg-red-d); }
.mg-add[disabled] { background: #B9BDC5; cursor: not-allowed; }
.mg-share { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mg-share a, .mg-share button { display: inline-flex; align-items: center; gap: 6px; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--mg-line); background: #fff; font: inherit; font-size: .82rem; font-weight: 600; color: var(--mg-ink); text-decoration: none; cursor: pointer; }
.mg-share .wa { color: #128C4A; border-color: #BFE7D0; background: #F1FBF5; }
.mg-paybox { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #F7F8FA; font-size: .85rem; color: #3F444F; }
.mg-paybox div { display: flex; gap: 10px; align-items: flex-start; }
.mg-paybox .bi { color: var(--mg-red); font-size: 1.05rem; }
.mg-acc { margin-top: 18px; background: #fff; border: 1px solid var(--mg-line); border-radius: 18px; overflow: hidden; }
.mg-acc details { border-top: 1px solid var(--mg-line); }
.mg-acc details:first-child { border-top: 0; }
.mg-acc summary { list-style: none; cursor: pointer; padding: 16px 18px; font-family: var(--font-head); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.mg-acc summary::-webkit-details-marker { display: none; }
.mg-acc summary::after { content: "+"; font-size: 1.3rem; color: var(--mg-muted); }
.mg-acc details[open] summary::after { content: "−"; }
.mg-acc-body { padding: 0 18px 18px; color: #3F444F; font-size: .94rem; }
.mg-specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.mg-specs dt { color: var(--mg-muted); } .mg-specs dd { margin: 0; font-weight: 600; }
.mg-related { margin-top: 26px; }
.mg-related h2 { font-size: 1.15rem; margin: 0 0 12px; }
.mg-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.mg-sticky { display: none; }

/* Büyütme penceresi */
.mg-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,12,.94); display: none; align-items: center; justify-content: center; }
.mg-lb.on { display: flex; }
.mg-lb img { max-width: 96vw; max-height: 88vh; object-fit: contain; touch-action: pinch-zoom; }
.mg-lb button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.mg-lb .x { top: 16px; right: 16px; } .mg-lb .p { left: 12px; top: 50%; } .mg-lb .n { right: 12px; top: 50%; }

/* =========================================================
   SEPET ve ÖDEME
   ========================================================= */
.mg-steps { display: flex; gap: 6px; list-style: none; margin: 14px 0 16px; padding: 0; font-size: .8rem; font-weight: 700; color: var(--mg-muted); }
.mg-steps li { flex: 1; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--mg-line); }
.mg-steps li b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #E6E8EC; color: var(--mg-ink); font-size: .74rem; }
.mg-steps li.on { color: var(--mg-ink); border-color: var(--mg-red); }
.mg-steps li.on b, .mg-steps li.ok b { background: var(--mg-red); color: #fff; }
.mg-cart { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); gap: 18px; align-items: start; }
.mg-box { background: #fff; border: 1px solid var(--mg-line); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.mg-box > h2 { font-size: 1.05rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.mg-box > h2 .bi { color: var(--mg-red); }
.mg-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--mg-line); }
.mg-line:first-of-type { border-top: 0; padding-top: 0; }
.mg-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: #F1F2F4; }
.mg-line-name { font-weight: 700; color: var(--mg-ink); text-decoration: none; line-height: 1.3; font-size: .94rem; }
.mg-line-opt { display: block; font-size: .8rem; color: var(--mg-muted); margin-top: 2px; }
.mg-line-ctl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mg-line-ctl .mg-qty button { width: 34px; font-size: 1.05rem; }
.mg-line-ctl .mg-qty input { width: 36px; }
.mg-line-del { border: 0; background: none; color: var(--mg-muted); font-size: .82rem; cursor: pointer; text-decoration: underline; padding: 0; }
.mg-line-total { text-align: right; font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.mg-line.is-off { opacity: .55; }
.mg-choice { display: grid; gap: 8px; }
.mg-choice label { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--mg-line); border-radius: 14px; cursor: pointer; background: #fff; }
.mg-choice label:hover { border-color: #C9CDD4; }
.mg-choice input { width: 20px; height: 20px; accent-color: var(--mg-red); margin: 0; }
.mg-choice label:has(input:checked) { border-color: var(--mg-red); background: #FFF8F8; }
.mg-choice strong { display: block; font-size: .93rem; }
.mg-choice small { display: block; font-size: .8rem; color: var(--mg-muted); line-height: 1.35; }
.mg-choice .fee { font-family: var(--font-head); font-weight: 800; font-size: .9rem; white-space: nowrap; }
.mg-choice .fee.free { color: var(--mg-green); }
.mg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.mg-fields .full { grid-column: 1 / -1; }
.mg-f label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 5px; }
.mg-f label .opt { font-weight: 400; color: var(--mg-muted); }
.mg-f input, .mg-f textarea, .mg-f select { width: 100%; padding: .7rem .8rem; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; font-size: .95rem; background: #fff; }
.mg-f input:focus, .mg-f textarea:focus, .mg-f select:focus { outline: none; border-color: var(--mg-ink); }
.mg-f textarea { min-height: 70px; resize: vertical; }
.mg-sum { position: sticky; top: calc(var(--header-h) + 14px); }
.mg-sum dl { margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.mg-sum dl div { display: flex; justify-content: space-between; gap: 10px; }
.mg-sum dt { color: var(--mg-muted); } .mg-sum dd { margin: 0; font-weight: 700; }
.mg-sum .tot { padding-top: 10px; border-top: 1px dashed #D5D8DE; font-size: 1.05rem; }
.mg-sum .tot dd { font-family: var(--font-head); font-size: 1.35rem; color: var(--mg-ink); }
.mg-sum .free { color: var(--mg-green); }
.mg-sum-note { font-size: .8rem; color: var(--mg-muted); margin: 10px 0 0; }
.mg-freebar { margin-top: 10px; font-size: .8rem; color: #3F444F; }
.mg-freebar i { display: block; height: 6px; border-radius: 3px; background: #E6E8EC; margin-top: 6px; overflow: hidden; }
.mg-freebar i b { display: block; height: 100%; background: var(--mg-green); border-radius: 3px; }
.mg-submit { width: 100%; margin-top: 14px; }
.mg-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: #3F444F; margin: 12px 0 0; }
.mg-consent input { width: 18px; height: 18px; accent-color: var(--mg-red); margin-top: 2px; flex: 0 0 auto; }
.mg-captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: .86rem; }
.mg-captcha input { width: 90px; padding: .55rem .7rem; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; text-align: center; font-weight: 700; }
.mg-alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.mg-alert.ok { background: var(--mg-green-t); color: #0B5F36; }
.mg-alert.err { background: #FDECEE; color: var(--mg-red-d); }
.mg-alert.info { background: #EEF4FF; color: #1D3F8F; }
.mg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   SİPARİŞ TAMAM · TAKİP
   ========================================================= */
.mg-narrow { max-width: 760px; margin: 0 auto; }
.mg-done { text-align: center; padding: 26px 18px; }
.mg-done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--mg-green); color: #fff; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 12px; box-shadow: 0 10px 30px -10px rgba(18,130,75,.7); }
.mg-done h1 { font-size: 1.5rem; margin: 0 0 6px; }
.mg-done p { color: var(--mg-muted); margin: 0 0 12px; }
.mg-no { display: inline-flex; align-items: center; gap: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 1.35rem; font-weight: 800; letter-spacing: .06em; background: var(--mg-bg); padding: 10px 16px; border-radius: 12px; }
.mg-copy { border: 1px solid var(--mg-line); background: #fff; border-radius: 8px; padding: 4px 9px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--mg-ink); white-space: nowrap; }
.mg-copy.ok { background: var(--mg-green); border-color: var(--mg-green); color: #fff; }
.mg-pay { border: 2px solid var(--mg-red); }
.mg-pay-rows { display: grid; gap: 8px; }
.mg-pay-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--mg-bg); }
.mg-pay-row span { font-size: .8rem; color: var(--mg-muted); display: block; }
.mg-pay-row strong { font-size: 1.05rem; word-break: break-all; }
.mg-pay-row.big strong { font-family: var(--font-head); font-size: 1.3rem; }
.mg-upload { margin-top: 14px; padding: 14px; border-radius: 14px; background: #F7F8FA; border: 1.5px dashed #CDD1D8; }
.mg-upload h3 { font-size: .98rem; margin: 0 0 4px; }
.mg-upload p { font-size: .84rem; color: var(--mg-muted); margin: 0 0 10px; }
.mg-file { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mg-file input[type=file] { flex: 1; min-width: 0; font-size: .86rem; }
.mg-receipt-ok { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--mg-green-t); color: #0B5F36; font-weight: 600; font-size: .9rem; margin-top: 12px; }
.mg-track-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #fff; border: 1px solid var(--mg-line); padding: 5px; border-radius: 14px; margin: 14px 0; }
.mg-track-tabs a { text-align: center; padding: .65rem .4rem; border-radius: 10px; text-decoration: none; color: var(--mg-muted); font-weight: 700; font-size: .84rem; }
.mg-track-tabs a.on { background: var(--mg-ink); color: #fff; }
.mg-st-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mg-st-head .mono { font-family: ui-monospace, Consolas, monospace; font-weight: 800; letter-spacing: .04em; }
.mg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: #EEF0F3; color: var(--mg-ink); }
.mg-pill.st-new { background: #FFF4E5; color: #9A4B00; } .mg-pill.st-ok { background: #EAF1FE; color: #1D4ED8; } .mg-pill.st-prod { background: #F3E8FF; color: #6B21A8; }
.mg-pill.st-ship { background: #E0F2FE; color: #075985; } .mg-pill.st-done { background: var(--mg-green-t); color: #0B5F36; } .mg-pill.st-cancel { background: #FDECEE; color: var(--mg-red-d); }
.mg-pill.pay-wait { background: #FFF4E5; color: #9A4B00; } .mg-pill.pay-receipt { background: #EAF1FE; color: #1D4ED8; } .mg-pill.pay-ok { background: var(--mg-green-t); color: #0B5F36; }
.mg-pill.pay-cod { background: #EEF0F3; } .mg-pill.pay-refund { background: #FDECEE; color: var(--mg-red-d); }
.mg-progress { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.mg-progress li { position: relative; text-align: center; font-size: .74rem; color: var(--mg-muted); padding-top: 34px; line-height: 1.3; }
.mg-progress li::before { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 4px; background: #E6E8EC; z-index: 0; }
.mg-progress li:first-child::before { display: none; }
.mg-progress li i { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: #E6E8EC; display: grid; place-items: center; font-style: normal; font-size: .85rem; z-index: 1; color: #fff; }
.mg-progress li.done::before, .mg-progress li.cur::before { background: var(--mg-green); }
.mg-progress li.done i { background: var(--mg-green); }
.mg-progress li.cur i { background: var(--mg-red); box-shadow: 0 0 0 5px rgba(200,22,31,.18); }
.mg-progress li.cur { color: var(--mg-ink); font-weight: 800; }
.mg-hint { font-size: .9rem; color: #3F444F; background: var(--mg-bg); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.mg-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mg-events li { position: relative; padding: 0 0 14px 22px; border-left: 2px solid #E6E8EC; margin-left: 6px; }
.mg-events li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--mg-red); }
.mg-events time { display: block; font-size: .76rem; color: var(--mg-muted); }
.mg-events strong { display: block; font-size: .9rem; }
.mg-events span { font-size: .86rem; color: #3F444F; }
.mg-orders { display: grid; gap: 8px; }
.mg-order { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 12px 14px; border: 1px solid var(--mg-line); border-radius: 12px; text-decoration: none; color: var(--mg-ink); }
.mg-order:hover { border-color: var(--mg-red); color: var(--mg-ink); }
.mg-order small { display: block; color: var(--mg-muted); font-size: .8rem; }
.mg-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mg-table td { padding: 8px 0; border-bottom: 1px solid var(--mg-line); vertical-align: top; }
.mg-table td.num { text-align: right; white-space: nowrap; font-weight: 700; }
.mg-table tfoot td { border-bottom: 0; }
.mg-table tr.tot td { font-family: var(--font-head); font-size: 1.05rem; }

/* Satış koşulları */
.mg-terms { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.mg-terms nav { position: sticky; top: calc(var(--header-h) + 14px); background: #fff; border: 1px solid var(--mg-line); border-radius: 16px; padding: 10px; }
.mg-terms nav a { display: block; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: #3F444F; font-size: .86rem; font-weight: 600; }
.mg-terms nav a:hover { background: var(--mg-bg); color: var(--mg-red); }
.mg-terms .prose h2 { font-size: 1.15rem; margin-top: 1.6em; scroll-margin-top: 140px; }
.mg-terms .prose h2:first-child { margin-top: 0; }

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1080px) {
    .mg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mg-usp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mg-how ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   TELEFON
   ========================================================= */
@media (max-width: 760px) {
    .mg-top { top: 0; position: relative; }
    .mg-top-row { flex-wrap: wrap; padding-top: 10px; }
    .mg-top h1 { font-size: 1rem; }
    .mg-search { order: 3; flex: 1 0 100%; }
    .mg-banner-in { grid-template-columns: 1fr; }
    .mg-hero { min-height: 190px; border-radius: 16px; }
    .mg-promos { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; }
    .mg-promos::-webkit-scrollbar { display: none; }
    .mg-promo { scroll-snap-align: start; padding: 12px 14px; }
    .mg-usp { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; }
    .mg-usp::-webkit-scrollbar { display: none; }
    .mg-usp li { flex: 0 0 auto; padding: 8px 10px; }
    .mg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mg-card { border-radius: 12px; }
    .mg-card-body { padding: 8px 10px 10px; }
    .mg-card-name { font-size: .84rem; }
    .mg-price strong { font-size: 1rem; }
    .mg-card-btn { padding: .5rem .4rem; font-size: .8rem; }
    .mg-toolbar { gap: 8px; }
    .mg-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
    .mg-filters::-webkit-scrollbar { display: none; }
    .mg-filter { flex: 0 0 auto; }
    .mg-how { padding: 16px; }
    .mg-how ol { grid-template-columns: 1fr; }
    .mg-custom { grid-template-columns: 1fr; }
    .mg-custom-text { padding: 18px; }
    .mg-cartbar { display: flex; }
    body.mg-has-bar .site-footer { padding-bottom: 90px; }

    .mg-pd { grid-template-columns: 1fr; gap: 12px; margin-top: 6px; }
    .mg-gal { margin: 0 -16px; }
    .mg-gal-main { border-radius: 0; border-left: 0; border-right: 0; }
    .mg-gal-arrow, .mg-thumbs { display: none; }
    .mg-gal-dots { display: flex; }
    .mg-info { position: static; border-radius: 16px; padding: 16px; }
    .mg-pd-price strong { font-size: 1.6rem; }
    .mg-buy .mg-add { display: none; }
    .mg-buy { justify-content: flex-start; }
    .mg-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--mg-line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
                 align-items: center; gap: 12px; box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
    .mg-sticky div { flex: 0 0 auto; }
    .mg-sticky span { display: block; font-size: .72rem; color: var(--mg-muted); }
    .mg-sticky strong { font-family: var(--font-head); font-size: 1.15rem; }
    .mg-sticky .mg-add { flex: 1; }
    body.mg-has-sticky .site-footer { padding-bottom: 86px; }
    .mg-acc { border-radius: 16px; }

    .mg-steps { font-size: .72rem; } .mg-steps li { padding: 6px 7px; } .mg-steps li span { display: none; } .mg-steps li.on span { display: inline; }
    .mg-cart { grid-template-columns: 1fr; }
    .mg-box { padding: 14px; border-radius: 16px; }
    .mg-line { grid-template-columns: 72px minmax(0, 1fr); }
    .mg-line img { width: 72px; height: 72px; }
    .mg-line-total { grid-column: 2; text-align: left; }
    .mg-fields { grid-template-columns: 1fr; }
    .mg-sum { position: static; }
    .mg-cart-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--mg-line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
                      display: flex; align-items: center; gap: 12px; box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
    .mg-cart-sticky strong { font-family: var(--font-head); font-size: 1.15rem; display: block; }
    .mg-cart-sticky span { font-size: .72rem; color: var(--mg-muted); }
    .mg-cart-sticky .mg-add { flex: 1; }
    .mg-progress li { font-size: .64rem; }
    .mg-track-tabs a { font-size: .74rem; }
    .mg-terms { grid-template-columns: 1fr; }
    .mg-terms nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
    .mg-terms nav a { flex: 0 0 auto; white-space: nowrap; }
    .mg-cc-preview canvas { max-width: 240px; }
}
@media (min-width: 761px) { .mg-cart-sticky { display: none; } }
