/* ==========================================================================
   GRAFION ATÖLYE — Mağaza tasarım sistemi  (v2 · "Atölye defteri")
   --------------------------------------------------------------------------
   Sanat yönetimi: 3D baskı stüdyosunun teknik çizim / spec-sheet dili.
   · Büyük, sıkı Poppins başlıklar + küçük mono teknik etiketler (katman, ölçü, №)
   · İnce çizgiler (hairline), sakin yüzeyler; vurgu rengi yalnız odak noktalarında
   · Yüzen arayüz (araç çubuğu, sheet, alt sekme, çubuklar) buzlu cam
   · İmza hareket: "katman katman baskı" (clip-path steps) — yalnız transform/opacity/clip
   · Mobil: alt sekme çubuğu, sürüklenebilir alt sayfalar, yapışkan aksiyon çubukları
   Sitenin token'larını (--bg, --surface, --accent…) kullanır; açık/koyu tema otomatik.
   ========================================================================== */

:root {
  --mg-r-xl: 30px;
  --mg-r: 22px;
  --mg-r-sm: 14px;
  --mg-gap: clamp(.9rem, 2vw, 1.5rem);
  --mg-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --mg-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent);
  --mg-glass: color-mix(in srgb, var(--surface) 62%, transparent);
  --mg-glass-strong: color-mix(in srgb, var(--surface) 84%, transparent);
  --mg-glass-line: color-mix(in srgb, var(--text) 10%, transparent);
  --mg-glass-hi: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
  --mg-blur: blur(22px) saturate(160%);
  --mg-studio: radial-gradient(120% 90% at 50% 12%, var(--surface) 0%, var(--surface-2) 60%, var(--bg-2) 100%);
  --mg-success: #10b981;
  --mg-danger: #ef4444;
  --mg-warn: #f59e0b;
  --mg-head: 78px;          /* site header yüksekliği */
  --mg-tab-h: 0px;          /* mobil alt sekme çubuğu yüksekliği (JS/medya ile) */
}
:root[data-theme="dark"] {
  --mg-studio: radial-gradient(120% 90% at 50% 10%, #211b31 0%, #14111d 60%, #0c0a12 100%);
}

/* ------------------------------------------------------------------ Temel */
.mg-page { padding-top: clamp(6.5rem, 12vh, 8.5rem); padding-bottom: var(--section-y); }
.mg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mg-muted { color: var(--text-muted); }
.mg-soft { color: var(--text-soft); }
.mg-ico { width: 1.15em; height: 1.15em; flex: none; }
.mg-hide { display: none !important; }
.mg-mono { font-family: var(--mg-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }

/* Küçük teknik etiket (eski "eyebrow" yerine) */
.mg-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mg-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
}
.mg-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: rgb(var(--accent-rgb)); flex: none; }
a.mg-eyebrow:hover { color: var(--text); }

.mg-h1 { font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .94; letter-spacing: -.045em; font-weight: 600; }
.mg-h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.mg-h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.015em; font-weight: 600; }
.mg-section { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.mg-section__head { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: clamp(1.25rem, 3vw, 2.25rem); flex-wrap: wrap; }
.mg-section__head > div > .mg-h2, .mg-section__head > div > h1 { margin-top: .85rem; }
.mg-section__head p { max-width: 52ch; margin-top: .8rem; color: var(--text-soft); line-height: 1.6; }

/* Cam yüzey yardımcısı */
.mg-glass {
  background: var(--mg-glass); border: 1px solid var(--mg-glass-line);
  -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur);
  box-shadow: var(--mg-glass-hi), 0 18px 50px -30px rgba(0, 0, 0, .55);
}

/* ------------------------------------------------------------------ Butonlar */
.mg-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.55rem; border-radius: 100px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1; letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
  -webkit-tap-highlight-color: transparent; isolation: isolate; overflow: hidden; text-decoration: none;
}
.mg-btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .45s var(--ease-out); }
.mg-btn:active { transform: scale(.975); }
.mg-btn--primary { background: rgb(var(--accent-rgb)); color: var(--accent-ink); }
.mg-btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--text); transform: translateY(101%); transition: transform .5s var(--ease-out);
}
@media (hover: hover) {
  .mg-btn--primary:hover { color: var(--bg); }
  .mg-btn--primary:hover::before { transform: none; }
  .mg-btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
}
.mg-btn--ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.mg-btn--ghost:hover { border-color: var(--text); }
.mg-btn--soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.mg-btn--soft:hover { border-color: var(--border-strong); background: var(--surface); }
.mg-btn--ink { background: var(--text); color: var(--bg); }
.mg-btn--block { width: 100%; }
.mg-btn--lg { min-height: 58px; font-size: 1rem; padding: 0 1.9rem; }
.mg-btn--sm { min-height: 40px; padding: 0 1.05rem; font-size: .85rem; }
.mg-btn[disabled], .mg-btn.is-busy { pointer-events: none; }
.mg-btn[disabled] { opacity: .5; }
.mg-btn.is-busy { color: transparent !important; }
.mg-btn.is-busy > * { opacity: 0; }
.mg-btn.is-busy::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 2px solid var(--accent-ink); border-right-color: transparent; animation: mgSpin .7s linear infinite;
}
.mg-btn--ghost.is-busy::after, .mg-btn--soft.is-busy::after { border-color: var(--text); border-right-color: transparent; }
.mg-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--text); position: relative; padding-block: .3rem; }
.mg-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease-out); }
.mg-link:hover::after { transform: scaleX(0); }
.mg-link svg { width: 1.05em; height: 1.05em; transition: transform .45s var(--ease-out); }
.mg-link:hover svg { transform: translateX(4px); }

.mg-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer;
  transition: transform .3s var(--ease-out), color .25s, border-color .25s, background .25s;
  -webkit-tap-highlight-color: transparent;
}
.mg-iconbtn:hover { border-color: var(--text); }
.mg-iconbtn:active { transform: scale(.94); }
.mg-iconbtn svg { width: 20px; height: 20px; }
@keyframes mgSpin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------- Header sepet ikonu */
.mg-cartbtn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text);
  transition: border-color .25s, color .25s, background .25s;
}
.mg-cartbtn:hover { border-color: var(--text); }
.mg-cartbtn svg { width: 19px; height: 19px; }
.mg-cartbtn__n, .mg-tab__n {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 20px;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  background: rgb(var(--accent-rgb)); color: var(--accent-ink);
  box-shadow: 0 0 0 2px var(--bg); transition: transform .4s var(--ease-out);
}
.mg-cartbtn__n[data-n="0"], .mg-tab__n[data-n="0"] { transform: scale(0); }
.is-bump { animation: mgBump .6s var(--ease-out); }
.is-bump .mg-cartbtn__n, .is-bump .mg-tab__n { animation: mgPop .6s var(--ease-out); }
@keyframes mgBump { 0%,100% { transform: none; } 30% { transform: scale(1.14) rotate(-7deg); } 60% { transform: scale(.95) rotate(3deg); } }
@keyframes mgPop { 0% { transform: scale(.4); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ===================================================================== HERO */
.mg-hero { position: relative; padding-top: calc(var(--mg-head) + clamp(1.5rem, 5vh, 3.5rem)); padding-bottom: clamp(1.5rem, 4vw, 3rem); overflow: clip; }
.mg-hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: stretch; }
@media (min-width: 1024px) { .mg-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: min(78vh, 780px); } }
.mg-hero__copy { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(.5rem, 2vw, 2rem); }
.mg-hero__title { margin: 1.4rem 0 1.4rem; max-width: 11ch; }
.mg-hero__title .on { padding-right: .06em; }
.mg-hero__lead { font-size: clamp(1rem, 1.3vw, 1.18rem); color: var(--text-soft); line-height: 1.65; max-width: 46ch; }
.mg-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.1rem; }
.mg-hero__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2.25rem, 5vw, 3.75rem); max-width: 600px; border-top: 1px solid var(--border); }
.mg-spec { padding: 1rem 1rem 0 0; }
.mg-spec + .mg-spec { padding-left: 1rem; border-left: 1px solid var(--border); }
.mg-spec b { display: block; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.mg-spec b small { font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--text-muted); margin-left: .15em; }
.mg-spec span { display: block; margin-top: .25rem; font-family: var(--mg-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); line-height: 1.45; }

/* Sahne: teknik çizim çerçevesi + baskı tablası */
.mg-stage {
  position: relative; min-height: 440px; border-radius: var(--mg-r-xl); overflow: hidden; isolation: isolate;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(90% 70% at 50% 40%, color-mix(in srgb, var(--c-violet) 16%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  --mx: 0; --my: 0;
}
@media (max-width: 1023px) { .mg-stage { aspect-ratio: 1 / 1.02; min-height: 0; } }
.mg-stage__bar { position: absolute; left: 0; right: 0; z-index: 4; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-family: var(--mg-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.mg-stage__bar--top { top: 0; }
.mg-stage__bar--bot { bottom: 0; align-items: center; }
.mg-stage__bar b { color: var(--text); font-weight: 500; }
.mg-stage__prog { flex: 1; height: 2px; border-radius: 2px; background: var(--border); overflow: hidden; max-width: 160px; }
.mg-stage__prog i { display: block; height: 100%; width: 100%; background: rgb(var(--accent-rgb)); transform: scaleX(var(--p, 1)); transform-origin: left; }
.mg-stage__rig { position: absolute; inset: 0; transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 8px), 0); transition: transform 1s var(--ease-out); }
.mg-stage__plate {
  position: absolute; left: 50%; bottom: 15%; width: 64%; aspect-ratio: 3.2 / 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--text) 10%, transparent), transparent);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.mg-stage__plate::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--text) 12%, transparent); }
.mg-stage__obj { position: absolute; left: 50%; bottom: 17%; width: 66%; aspect-ratio: 1; translate: -50% 0; }
.mg-stage__obj img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 34px rgba(10, 4, 24, .45)); }
.mg-printmask { position: relative; width: 100%; height: 100%; }
.mg-stage.is-ready .mg-printmask { clip-path: inset(100% 0 0 0); }
.mg-stage.is-printing .mg-printmask { animation: mgPrintUp 2.6s steps(40, end) forwards; }
.mg-stage.is-printed .mg-printmask { clip-path: none; }
/* Nozül: baskı boyunca yukarı tırmanır, yatay tarar */
.mg-nozzle { position: absolute; left: 50%; width: 66%; bottom: 17%; height: 66%; translate: -50% 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out); }
.mg-nozzle__lane { position: absolute; left: -6%; right: -6%; bottom: 0; height: 1px; background: color-mix(in srgb, rgb(var(--accent-rgb)) 70%, transparent); box-shadow: 0 0 14px 1px color-mix(in srgb, rgb(var(--accent-rgb)) 60%, transparent); }
.mg-nozzle__head { position: absolute; left: 50%; bottom: 0; width: 34px; height: 30px; translate: -50% 0; }
.mg-nozzle__head::before { content: ""; position: absolute; inset: 0 3px 10px; border-radius: 7px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); }
.mg-nozzle__head::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 10px; height: 10px; translate: -50% 0; clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%); background: rgb(var(--accent-rgb)); }
.mg-stage.is-printing .mg-nozzle { opacity: 1; }
.mg-stage.is-printing .mg-nozzle__lane, .mg-stage.is-printing .mg-nozzle__head { animation: mgClimb 2.6s steps(40, end) forwards; }
.mg-stage.is-printing .mg-nozzle__head::before, .mg-stage.is-printing .mg-nozzle__head::after { animation: mgScan .34s var(--ease-in-out) infinite alternate; }
@keyframes mgClimb { from { transform: translateY(0); } to { transform: translateY(-100cqh); } }
@keyframes mgScan { from { transform: translateX(-70px); } to { transform: translateX(70px); } }
.mg-nozzle { container-type: size; }
/* Teknik açıklama çizgileri */
.mg-note { position: absolute; z-index: 5; display: flex; align-items: center; gap: .6rem; font-family: var(--mg-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.mg-note b { display: block; color: var(--text); font-weight: 500; letter-spacing: .04em; }
.mg-note i { display: block; height: 1px; width: clamp(28px, 6vw, 70px); background: color-mix(in srgb, var(--text) 30%, transparent); position: relative; }
.mg-note i::after { content: ""; position: absolute; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--accent-rgb)); box-shadow: 0 0 0 4px color-mix(in srgb, rgb(var(--accent-rgb)) 18%, transparent); }
.mg-note--l i::after { right: -3px; }
.mg-note--r { flex-direction: row-reverse; text-align: right; }
.mg-note--r i::after { left: -3px; }
.mg-note--1 { left: 1.2rem; top: 30%; }
.mg-note--2 { right: 1.2rem; top: 46%; }
.mg-note--3 { left: 1.2rem; bottom: 22%; }
.mg-stage.is-printed .mg-note { opacity: 1; transform: none; }
.mg-stage.is-printed .mg-note--2 { transition-delay: .15s; }
.mg-stage.is-printed .mg-note--3 { transition-delay: .3s; }
@media (max-width: 640px) { .mg-note--3 { display: none; } .mg-note i { width: 22px; } .mg-note { font-size: .6rem; } }

/* Vitrin sahnesindeki büyük obje baskısı (yalnızca mağaza hero'su) */
@keyframes mgPrintUp { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ===================================================== GÖRSEL AÇILIŞI */
/* Görsel yüklenip ekrana girince "fotoğraf banyosu" gibi netleşir: bulanık + hafif büyük + soluk → net.
   Kart zemini ürünün kendi tonunda olduğu için beklerken boşluk hissi yok. (Sınıf adları geriye uyum için korunur.) */
.mg-print { position: relative; }
.mg-print > .mg-print__in { position: absolute; inset: 0;
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform 1.4s cubic-bezier(.16,1,.3,1), filter 1s cubic-bezier(.16,1,.3,1); }
.mg-print.is-wait > .mg-print__in { opacity: 0; transform: scale(1.07); filter: blur(14px) saturate(.4); }
.mg-print.is-printing > .mg-print__in, .mg-print.is-printed > .mg-print__in { opacity: 1; transform: none; filter: none; }
/* Kart gövdesi de görselle birlikte, bir tık geriden gelir */
.mg-card:has(.mg-print.is-wait) .mg-card__body { opacity: 0; transform: translateY(10px); }
.mg-card__body { transition: opacity .7s .12s cubic-bezier(.16,1,.3,1), transform .9s .12s cubic-bezier(.16,1,.3,1); }


/* =========================================================== KOLEKSİYON */
.mg-bento { display: grid; gap: var(--mg-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 980px) { .mg-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; } .mg-bento > :first-child { grid-column: span 2; grid-row: span 2; } }
.mg-coll {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 210px; padding: 1.1rem 1.2rem 1.2rem;
  border-radius: var(--mg-r); overflow: hidden; isolation: isolate; color: #fff; background: var(--c-indigo);
}
.mg-coll img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
.mg-coll::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 6, 20, .35) 0%, transparent 30%, transparent 50%, rgba(10, 6, 20, .78)); }
.mg-coll__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mg-mono); font-size: .68rem; letter-spacing: .12em; opacity: .85; }
.mg-coll__arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .6s var(--ease-out), background .3s; }
.mg-coll__arrow svg { width: 17px; height: 17px; transform: rotate(-45deg); transition: transform .6s var(--ease-out); }
.mg-coll b { font-size: clamp(1.2rem, 2.2vw, 1.85rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.mg-coll span.mg-coll__n { font-family: var(--mg-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-top: .4rem; display: block; }
@media (hover: hover) {
  .mg-coll:hover img { transform: scale(1.06); }
  .mg-coll:hover .mg-coll__arrow { background: #fff; color: #0b0810; }
  .mg-coll:hover .mg-coll__arrow svg { transform: rotate(0); }
}

/* ================================================================ TOOLBAR (cam kapsül) */
.mg-toolbar { position: sticky; top: 12px; z-index: 40; transition: top .5s var(--ease-out); }
body:has(.header:not(.is-hidden)) .mg-toolbar { top: calc(var(--mg-head) + 6px); }
.mg-toolbar__row {
  display: flex; align-items: center; gap: .5rem; padding: 6px; border-radius: 100px;
  background: var(--mg-glass); border: 1px solid var(--mg-glass-line);
  -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur);
  box-shadow: var(--mg-glass-hi);
  transition: box-shadow .4s var(--ease-out), background .4s var(--ease-out);
}
.mg-toolbar.is-stuck .mg-toolbar__row { background: var(--mg-glass-strong); box-shadow: var(--mg-glass-hi), 0 22px 50px -26px rgba(0, 0, 0, .6); }
.mg-cats { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; scroll-snap-type: x proximity; -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.mg-cats::-webkit-scrollbar { display: none; }
.mg-cats__ind { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 100px; background: var(--text); z-index: 0; transition: transform .55s var(--ease-out), width .55s var(--ease-out); pointer-events: none; }
.mg-cat {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 1.05rem; border-radius: 100px; scroll-snap-align: start;
  color: var(--text-soft); font-weight: 600; font-size: .88rem; white-space: nowrap; transition: color .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.mg-cat:hover { color: var(--text); }
.mg-cat small { font-family: var(--mg-mono); font-size: .66rem; color: var(--text-muted); font-weight: 500; transition: color .35s; }
.mg-cat.is-active { color: var(--bg); }
.mg-cat.is-active small { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.mg-cats:not(.has-ind) .mg-cat.is-active { background: var(--text); }
.mg-tools { display: flex; align-items: center; gap: .35rem; flex: none; }
.mg-search { position: relative; }
.mg-search input {
  height: 42px; width: 210px; padding: 0 1rem 0 2.5rem; border-radius: 100px; border: 1px solid transparent;
  background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); font: inherit; font-size: .88rem;
  transition: width .5s var(--ease-out), border-color .25s, background .25s;
}
.mg-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mg-search input:focus { outline: none; border-color: color-mix(in srgb, var(--text) 25%, transparent); background: var(--surface); width: 250px; }
.mg-search input::placeholder { color: var(--text-muted); }
.mg-search svg { position: absolute; left: .9rem; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--text-muted); pointer-events: none; }
.mg-select {
  height: 42px; padding: 0 2.3rem 0 1rem; border-radius: 100px; border: 1px solid transparent; color: var(--text);
  background-color: color-mix(in srgb, var(--text) 6%, transparent);
  font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23978fa9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 15px;
}
.mg-select option { background: var(--surface); color: var(--text); }
.mg-select:focus { outline: none; border-color: color-mix(in srgb, var(--text) 25%, transparent); }
.mg-filterbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 42px; padding: 0 1.05rem; border-radius: 100px; border: 0;
  background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer;
  transition: background .25s; -webkit-tap-highlight-color: transparent;
}
.mg-filterbtn:hover { background: color-mix(in srgb, var(--text) 11%, transparent); }
.mg-filterbtn svg { width: 17px; height: 17px; }
.mg-filterbtn[data-n]:not([data-n="0"])::after { content: attr(data-n); position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: rgb(var(--accent-rgb)); color: var(--accent-ink); }
.mg-tools__m { display: none; }
@media (max-width: 899px) {
  .mg-toolbar__row { border-radius: 22px; flex-wrap: wrap; }
  .mg-tools .mg-search, .mg-tools .mg-select, .mg-tools .mg-filterbtn--d { display: none; }
  .mg-tools__m { display: inline-flex; }
  .mg-filterbtn.mg-tools__m { width: 42px; padding: 0; }
  .mg-filterbtn.mg-tools__m span { display: none; }
  .mg-toolbar.is-search .mg-search--m { display: block; }
}
.mg-search--m { display: none; flex-basis: 100%; order: 3; padding: 0 2px 2px; }
.mg-search--m input, .mg-search--m input:focus { width: 100%; background: var(--surface); }
.mg-resultbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 1.1rem; flex-wrap: wrap; }
.mg-resultbar > span { font-family: var(--mg-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

/* ================================================================== GRID */
.mg-grid { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem) var(--mg-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); transition: opacity .35s var(--ease-out); }
@media (min-width: 768px) { .mg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mg-grid.is-loading { opacity: .35; pointer-events: none; }
@media (max-width: 767px) {
  .mg-grid { gap: 1.5rem .75rem; }
  /* Önerilerde yatay kaydırmalı ray (uygulama hissi) */
  .mg-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); scroll-padding-inline: calc(50vw - 50%); }
  .mg-rail::-webkit-scrollbar { display: none; }
  .mg-rail > * { scroll-snap-align: start; }
}

/* ================================================================== KART */
.mg-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.mg-card__frame { position: relative; display: flex; flex-direction: column; flex: 1; }
.mg-card__media {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--mg-r); overflow: hidden; isolation: isolate;
  background: var(--mg-studio); box-shadow: inset 0 0 0 1px var(--border);
}
.mg-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease-out), transform 1.4s var(--ease-out); }
.mg-card__img2 { opacity: 0; }
.mg-card__media::before { /* katman çizgisi dokusu */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 4px); mix-blend-mode: overlay; transition: opacity .7s var(--ease-out);
}
.mg-card__badges { position: absolute; left: .7rem; top: .7rem; z-index: 3; display: flex; flex-wrap: wrap; gap: .3rem; max-width: calc(100% - 4rem); pointer-events: none; }
.mg-badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 .55rem; border-radius: 7px;
  font-family: var(--mg-mono); font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: var(--mg-glass-strong); color: var(--text); border: 1px solid var(--mg-glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mg-badge--sale { background: rgb(var(--accent-rgb)); color: var(--accent-ink); border-color: transparent; }
.mg-badge--yeni { background: var(--text); color: var(--bg); border-color: transparent; }
.mg-badge--out { color: var(--text-muted); }
.mg-card__fav {
  position: absolute; right: .6rem; top: .6rem; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mg-glass-strong); border: 1px solid var(--mg-glass-line); color: var(--text); cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .35s var(--ease-out), color .25s, opacity .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.mg-card__fav svg { width: 17px; height: 17px; transition: fill .25s; }
.mg-card__fav:active { transform: scale(.9); }
.mg-card__fav.is-on, [data-mg-fav].is-on { color: #f43f5e; }
.mg-card__fav.is-on svg, [data-mg-fav].is-on svg { fill: currentColor; }
[data-mg-fav].is-pop svg { animation: mgPop .5s var(--ease-out); }
/* Hızlı ekle: masaüstünde görselin altından kayan cam çubuk, mobilde yuvarlak + */
.mg-card__quick {
  position: absolute; z-index: 3; right: .6rem; bottom: .6rem; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 0; cursor: pointer; background: var(--text); color: var(--bg); font: inherit; font-weight: 600; font-size: .85rem;
  transition: transform .45s var(--ease-out), opacity .35s var(--ease-out), background .3s, color .3s; -webkit-tap-highlight-color: transparent;
}
.mg-card__quick svg { width: 19px; height: 19px; }
.mg-card__quick span { display: none; }
.mg-card__quick:active { transform: scale(.92); }
.mg-card__quick.is-done { background: var(--mg-success); color: #fff; }
.mg-card__quick.is-busy { pointer-events: none; }
.mg-card__quick.is-busy svg { animation: mgSpin .8s linear infinite; }
@media (hover: hover) and (pointer: fine) {
  .mg-card:hover .mg-card__media img { transform: scale(1.04); }
  .mg-card:hover .mg-card__img2 { opacity: 1; }
  .mg-card:hover .mg-card__media::before { opacity: 1; }
  .mg-card__fav { opacity: 0; transform: translateY(-4px); }
  .mg-card:hover .mg-card__fav, .mg-card__fav.is-on, .mg-card__fav:focus-visible { opacity: 1; transform: none; }
  .mg-card__quick {
    left: .6rem; right: .6rem; bottom: .6rem; width: auto; height: 46px; border-radius: 15px; display: flex; gap: .5rem; justify-content: center;
    background: var(--mg-glass-strong); color: var(--text); border: 1px solid var(--mg-glass-line);
    -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur);
    opacity: 0; transform: translateY(14px);
  }
  .mg-card__quick span { display: inline; }
  .mg-card:hover .mg-card__quick, .mg-card__quick:focus-visible { opacity: 1; transform: none; }
  .mg-card__quick:hover { background: var(--text); color: var(--bg); }
}
.mg-card__body { padding: .95rem .15rem 0; display: grid; gap: .35rem; }
.mg-card__row { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.mg-card__title { font-weight: 600; font-size: clamp(.92rem, 1.2vw, 1.02rem); line-height: 1.3; letter-spacing: -.012em; color: var(--text); min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.mg-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 16px; }
.mg-card__cat { font-family: var(--mg-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-price { display: inline-flex; flex-direction: row; align-items: baseline; gap: .5rem; flex: none; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; }
.mg-price del { font-weight: 500; font-size: .8em; color: var(--text-muted); text-decoration-thickness: 1px; }
.mg-price--sale ins { text-decoration: none; color: rgb(var(--accent-rgb)); }
@media (max-width: 520px) {
  .mg-card__row { flex-direction: column; gap: .2rem; }
  .mg-price { gap: .45rem; }
}
.mg-swatches { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.mg-swatches i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.mg-swatches small { font-family: var(--mg-mono); font-size: .62rem; color: var(--text-muted); margin-left: 3px; }
.mg-stars { display: inline-flex; align-items: center; gap: 1px; color: #f5b301; }
.mg-stars svg { width: 13px; height: 13px; }
.mg-stars .is-off { color: var(--border-strong); }
.mg-stars small { color: var(--text-muted); font-size: .74rem; margin-left: 5px; font-variant-numeric: tabular-nums; }

/* Boş / yükle */
.mg-empty { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1.25rem; border: 1px dashed var(--border-strong); border-radius: var(--mg-r-xl); }
.mg-empty__ico { width: 68px; height: 68px; margin: 0 auto 1.25rem; display: grid; place-items: center; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.mg-empty__ico svg { width: 30px; height: 30px; }
.mg-empty h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.025em; }
.mg-empty p { color: var(--text-soft); margin: .6rem auto 1.5rem; max-width: 44ch; line-height: 1.6; }
.mg-more { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.mg-more > span:first-child { font-family: var(--mg-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.mg-more__bar { width: 180px; height: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.mg-more__bar i { display: block; height: 100%; background: var(--text); transition: width .6s var(--ease-out); }

/* ============================================================ SHEET (yan / alt panel) */
.mg-sheet { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.mg-sheet__veil { position: absolute; inset: 0; background: rgba(6, 3, 14, .52); opacity: 0; transition: opacity .45s var(--ease-out); }
.mg-sheet__panel {
  position: absolute; right: 10px; top: 10px; bottom: 10px; width: min(440px, calc(100vw - 20px)); display: flex; flex-direction: column;
  border-radius: 26px; overflow: hidden;
  background: var(--mg-glass-strong); border: 1px solid var(--mg-glass-line);
  -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur);
  box-shadow: var(--mg-glass-hi), 0 40px 90px -30px rgba(0, 0, 0, .7);
  transform: translateX(calc(100% + 20px)); transition: transform .6s var(--ease-out);
}
.mg-sheet.is-open { pointer-events: auto; }
.mg-sheet.is-open .mg-sheet__veil { opacity: 1; }
.mg-sheet.is-open .mg-sheet__panel { transform: none; }
.mg-sheet__grab { display: none; }
.mg-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem 1.1rem 1.5rem; border-bottom: 1px solid var(--border); }
.mg-sheet__head h3 { font-size: 1.12rem; letter-spacing: -.02em; display: flex; align-items: baseline; gap: .5rem; }
.mg-sheet__head h3 small { font-family: var(--mg-mono); font-size: .7rem; color: var(--text-muted); font-weight: 500; }
.mg-sheet__body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; overscroll-behavior: contain; scrollbar-width: thin; }
.mg-sheet__foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
@media (max-width: 767px) {
  .mg-sheet__panel { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 90dvh; border-radius: 26px 26px 0 0; border-bottom: 0; transform: translateY(102%); transition: transform .55s var(--ease-out); }
  .mg-sheet.is-drag .mg-sheet__panel { transition: none; }
  .mg-sheet__grab { display: block; position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 3; touch-action: none; cursor: grab; }
  .mg-sheet__grab::before { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: color-mix(in srgb, var(--text) 28%, transparent); }
  .mg-sheet__head { padding-top: 1.5rem; touch-action: none; }
}
.mg-fgroup { padding-block: 1.2rem; border-bottom: 1px solid var(--border); }
.mg-fgroup:first-child { padding-top: 0; }
.mg-fgroup:last-child { border-bottom: 0; }
.mg-fgroup h4 { font-family: var(--mg-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .9rem; font-weight: 500; }
.mg-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; }
.mg-range span { color: var(--text-muted); }
.mg-radiolist { display: grid; gap: 2px; }
.mg-radiolist label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: 0 .9rem; border-radius: 12px; cursor: pointer; font-weight: 500; color: var(--text-soft); transition: background .2s, color .2s; }
.mg-radiolist input { position: absolute; opacity: 0; pointer-events: none; }
.mg-radiolist label::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; transition: border .25s, box-shadow .25s; }
.mg-radiolist label:has(input:checked) { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.mg-radiolist label:has(input:checked)::after { border: 5.5px solid rgb(var(--accent-rgb)); }

/* ================================================================ FORM */
.mg-field { position: relative; display: flex; flex-direction: column; gap: .45rem; }
.mg-field > label, .mg-label { font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.mg-field .req { color: rgb(var(--accent-rgb)); }
.mg-input, .mg-textarea, select.mg-input {
  width: 100%; min-height: 54px; padding: .9rem 1.05rem; border-radius: var(--mg-r-sm); border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
select.mg-input { appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23978fa9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; }
select.mg-input option { background: var(--surface); color: var(--text); }
.mg-textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.mg-input:hover, .mg-textarea:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); }
.mg-input:focus, .mg-textarea:focus { outline: none; border-color: rgb(var(--accent-rgb)); box-shadow: var(--mg-ring); background: var(--surface); }
.mg-input::placeholder, .mg-textarea::placeholder { color: var(--text-muted); }
.mg-field.is-error .mg-input, .mg-field.is-error .mg-textarea { border-color: var(--mg-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mg-danger) 20%, transparent); }
.mg-field__err { font-size: .78rem; color: var(--mg-danger); display: none; }
.mg-field.is-error .mg-field__err { display: block; }
.mg-field__hint { font-size: .76rem; color: var(--text-muted); }
.mg-fields { display: grid; gap: 1rem; }
@media (min-width: 640px) { .mg-fields--2 { grid-template-columns: 1fr 1fr; } .mg-span-2 { grid-column: span 2; } }

/* Yüzen etiketli alan */
.mg-float { position: relative; display: block; }
.mg-float .mg-input { padding: 1.45rem 1.05rem .5rem; min-height: 60px; }
.mg-float > label {
  position: absolute; left: 1.1rem; top: 1.15rem; font-size: .98rem; font-weight: 500; color: var(--text-muted); pointer-events: none;
  transform-origin: left top; transition: transform .35s var(--ease-out), color .25s;
}
.mg-float .mg-input:focus + label, .mg-float .mg-input:not(:placeholder-shown) + label { transform: translateY(-.62rem) scale(.76); color: var(--text-soft); }
.mg-float .mg-input:focus + label { color: rgb(var(--accent-rgb)); }
.mg-float .mg-input::placeholder { color: transparent; }
.mg-float__eye { position: absolute; right: .55rem; top: 9px; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; }
.mg-float__eye:hover { color: var(--text); }
.mg-float__eye svg { width: 19px; height: 19px; }
.mg-float.is-error .mg-input { border-color: var(--mg-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mg-danger) 20%, transparent); }
.mg-float.is-error .mg-field__err { display: block; margin-top: .4rem; }
.mg-float.is-ok .mg-input { border-color: color-mix(in srgb, var(--mg-success) 55%, var(--border-strong)); }
.mg-float__ok { position: absolute; right: 1rem; top: 21px; width: 18px; height: 18px; color: var(--mg-success); opacity: 0; transform: scale(.5); transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none; }
.mg-float.is-ok .mg-float__ok { opacity: 1; transform: none; }
.mg-float:has(.mg-float__eye) .mg-float__ok { right: 3.4rem; }
.mg-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .55rem; }
.mg-meter i { height: 3px; border-radius: 3px; background: var(--border); transition: background .35s; }
.mg-meter[data-s="1"] i:nth-child(-n+1) { background: var(--mg-danger); }
.mg-meter[data-s="2"] i:nth-child(-n+2) { background: var(--mg-warn); }
.mg-meter[data-s="3"] i:nth-child(-n+3) { background: rgb(var(--accent-rgb)); }
.mg-meter[data-s="4"] i { background: var(--mg-success); }

.mg-check { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; font-size: .9rem; color: var(--text-soft); line-height: 1.5; }
.mg-check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--border-strong); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s; }
.mg-check input::after { content: ""; width: 11px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .3s var(--ease-out); }
.mg-check input:checked { background: rgb(var(--accent-rgb)); border-color: rgb(var(--accent-rgb)); }
.mg-check input:checked::after { transform: rotate(-45deg) scale(1); }
.mg-check input:focus-visible { box-shadow: var(--mg-ring); }
.mg-check.is-error input { border-color: var(--mg-danger); }
.mg-check a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 3px; }
.mg-check a:hover { text-decoration-color: currentColor; }
.mg-seg { position: relative; display: inline-flex; padding: 4px; border-radius: 100px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.mg-seg label { position: relative; cursor: pointer; }
.mg-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mg-seg span { display: block; padding: .6rem 1.15rem; border-radius: 100px; font-size: .86rem; font-weight: 600; color: var(--text-soft); transition: background .3s, color .3s; }
.mg-seg input:checked + span { background: var(--text); color: var(--bg); }
.mg-seg input:focus-visible + span { box-shadow: var(--mg-ring); }

/* Seçim kartı (adres, ödeme) */
.mg-choice { position: relative; display: block; cursor: pointer; }
.mg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.mg-choice__box { display: flex; gap: .85rem; align-items: flex-start; height: 100%; padding: 1rem 1.1rem; border-radius: var(--mg-r-sm); border: 1px solid var(--border-strong); transition: border-color .25s, box-shadow .25s, background .25s; }
.mg-choice__dot { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--border-strong); transition: border .25s; }
.mg-choice input:checked + .mg-choice__box { border-color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); }
.mg-choice input:checked + .mg-choice__box .mg-choice__dot { border: 6px solid rgb(var(--accent-rgb)); }
.mg-choice input:focus-visible + .mg-choice__box { box-shadow: var(--mg-ring); }
.mg-choice__txt { min-width: 0; font-size: .88rem; color: var(--text-soft); line-height: 1.5; }
.mg-choice__txt b { display: block; color: var(--text); font-size: .95rem; margin-bottom: .1rem; }
.mg-choices { display: grid; gap: .65rem; }
@media (min-width: 640px) { .mg-choices--2 { grid-template-columns: 1fr 1fr; } }

/* ============================================================ ÜRÜN DETAY */
.mg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-family: var(--mg-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: clamp(1.1rem, 2.5vw, 1.75rem); }
.mg-crumbs a:hover { color: var(--text); }
.mg-crumbs svg { width: 12px; height: 12px; opacity: .55; }
.mg-crumbs span[aria-current] { color: var(--text-soft); }
.mg-pd { display: grid; gap: clamp(1.5rem, 4vw, 4.5rem); }
@media (min-width: 980px) {
  .mg-pd { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; }
  .mg-pd__gallery { position: sticky; top: 24px; transition: top .5s var(--ease-out); }
  body:has(.header:not(.is-hidden)) .mg-pd__gallery { top: calc(var(--mg-head) + 16px); }
}
.mg-gal { display: grid; gap: .75rem; }
@media (min-width: 1280px) { .mg-gal--side { grid-template-columns: 76px minmax(0, 1fr); } .mg-gal--side .mg-gal__thumbs { flex-direction: column; order: -1; max-height: 640px; } }
.mg-gal__main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--mg-r-xl); overflow: hidden; background: var(--mg-studio); box-shadow: inset 0 0 0 1px var(--border); cursor: zoom-in; isolation: isolate; outline: none; }
.mg-gal__main:focus-visible { box-shadow: inset 0 0 0 1px var(--border), var(--mg-ring); }
/* Kaydırma şeridi (scroll-snap): mobilde doğal momentum, masaüstünde JS ile git() */
.mg-gal__track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.mg-gal__track::-webkit-scrollbar { display: none; }
.mg-gal__slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; }
.mg-gal__slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform .55s var(--ease-out); -webkit-user-drag: none; user-select: none; }
@media (hover: hover) and (pointer: fine) { .mg-gal__main.is-zoom .mg-gal__slide.is-active img { transform: scale(1.85); transition: transform .3s var(--ease-out); } }
.mg-gal__nav { position: absolute; top: 50%; z-index: 4; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--mg-glass-line); background: var(--mg-glass-strong); color: var(--text); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .3s, transform .3s var(--ease-out); }
.mg-gal__nav svg { width: 19px; height: 19px; }
.mg-gal__nav--prev { left: 1rem; } .mg-gal__nav--next { right: 1rem; }
.mg-gal__main:hover .mg-gal__nav, .mg-gal__nav:focus-visible { opacity: 1; }
.mg-gal__nav:active { transform: scale(.92); }
@media (hover: none) { .mg-gal__nav { display: none; } }
.mg-gal__count { position: absolute; left: 1rem; top: 1rem; z-index: 4; font-family: var(--mg-mono); font-size: .68rem; letter-spacing: .1em; padding: .4rem .65rem; border-radius: 8px; background: var(--mg-glass-strong); border: 1px solid var(--mg-glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; }
.mg-gal__dots { position: absolute; left: 50%; bottom: 1rem; z-index: 4; translate: -50% 0; display: none; gap: 5px; padding: 6px 8px; border-radius: 20px; background: var(--mg-glass-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mg-gal__dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--text); opacity: .3; transition: width .4s var(--ease-out), opacity .4s; }
.mg-gal__dots i.is-active { width: 18px; opacity: 1; }
@media (max-width: 979px) { .mg-gal__dots { display: flex; } }
.mg-gal__3d { position: absolute; right: 1rem; bottom: 1rem; z-index: 5; display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 1rem; border-radius: 100px; border: 1px solid var(--mg-glass-line); background: var(--mg-glass-strong); color: var(--text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mg-gal__3d svg { width: 17px; height: 17px; }
.mg-gal__viewer { position: absolute; inset: 0; z-index: 3; display: none; background: var(--mg-studio); }
.mg-gal__viewer.is-on { display: block; }
.mg-gal__viewer model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
@media (max-width: 979px) { .mg-gal__3d { bottom: 3.4rem; } }
.mg-gal__thumbs { display: flex; gap: .55rem; overflow: auto; scrollbar-width: none; padding: 2px; }
.mg-gal__thumbs::-webkit-scrollbar { display: none; }
.mg-gal__thumb { position: relative; flex: none; width: 72px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 0; background: var(--mg-studio); cursor: pointer; padding: 0; opacity: .55; transition: opacity .3s; }
.mg-gal__thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .3s; }
.mg-gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mg-gal__thumb:hover { opacity: .9; }
.mg-gal__thumb.is-active { opacity: 1; }
.mg-gal__thumb.is-active::after { box-shadow: inset 0 0 0 2px rgb(var(--accent-rgb)); }
@media (max-width: 979px) {
  /* Ürün sayfasında galeri kenardan kenara (uygulama hissi) */
  .mg-pd__gallery .mg-gal__main { border-radius: 0; margin-inline: calc(50% - 50vw); box-shadow: none; aspect-ratio: 1 / 1.05; }
  .mg-pd__gallery .mg-gal__thumbs { display: none; }
}

.mg-pd__info { display: flex; flex-direction: column; gap: 1.35rem; min-width: 0; }
.mg-pd__form { grid-template-columns: minmax(0, 1fr); }
.mg-opt, .mg-personal, .mg-buy { min-width: 0; }
.mg-pd__title { font-size: clamp(1.9rem, 3.4vw, 3.1rem); line-height: 1; letter-spacing: -.04em; margin-top: .9rem; font-weight: 600; }
.mg-pd__title a:hover { color: rgb(var(--accent-rgb)); }
.mg-pd__meta { display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap; font-family: var(--mg-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.mg-pd__price { display: flex; align-items: baseline; gap: .4rem .85rem; flex-wrap: wrap; }
.mg-pd__price b { font-size: clamp(1.7rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.mg-pd__price del { color: var(--text-muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
.mg-pd__price .mg-badge { align-self: center; }
.mg-pd__price small { font-family: var(--mg-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.mg-pd__lead { color: var(--text-soft); line-height: 1.7; max-width: 52ch; }
.mg-pd__divider { height: 1px; background: var(--border); }
.mg-opt { display: grid; gap: .7rem; }
.mg-opt__label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .9rem; font-weight: 600; color: var(--text); }
.mg-opt__label b { font-weight: 500; color: var(--text-muted); font-size: .86rem; text-align: right; transition: color .2s; }
.mg-opt.is-set .mg-opt__label b { color: var(--text-soft); }
.mg-opt.is-error .mg-opt__label, .mg-opt.is-error .mg-opt__label b { color: var(--mg-danger); }
.mg-opt.is-error .mg-opt__vals { animation: mgShake .45s var(--ease-out); }
@keyframes mgShake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.mg-opt__vals { display: flex; flex-wrap: wrap; gap: .5rem; }
.mg-swatch { position: relative; width: 46px; height: 46px; border-radius: 50%; padding: 0; border: 0; cursor: pointer; background: transparent; -webkit-tap-highlight-color: transparent; }
.mg-swatch i { position: absolute; inset: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), inset 0 -6px 10px rgba(0,0,0,.18), inset 0 4px 8px rgba(255,255,255,.22); transition: inset .35s var(--ease-out); }
.mg-swatch::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border-strong); transition: box-shadow .3s var(--ease-out); }
.mg-swatch:hover::before { box-shadow: inset 0 0 0 1px var(--text-muted); }
.mg-swatch.is-active::before { box-shadow: inset 0 0 0 2px var(--text); }
.mg-swatch.is-active i { inset: 5px; }
.mg-swatch.is-out { opacity: .4; cursor: not-allowed; }
.mg-swatch.is-out::after { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 1.5px; background: var(--text); transform: rotate(-45deg); }
.mg-pill {
  position: relative; min-height: 48px; padding: 0 1.1rem; border-radius: 14px; border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.15;
  transition: border-color .25s, background .25s, color .25s; -webkit-tap-highlight-color: transparent;
}
.mg-pill small { font-family: var(--mg-mono); color: var(--text-muted); font-weight: 500; font-size: .64rem; letter-spacing: .04em; }
.mg-pill:hover { border-color: var(--text-muted); }
.mg-pill.is-active { border-color: var(--text); background: var(--text); color: var(--bg); }
.mg-pill.is-active small { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.mg-pill.is-out { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.mg-personal { padding: 1rem; border-radius: var(--mg-r-sm); border: 1px solid var(--border); background: color-mix(in srgb, var(--text) 3%, transparent); display: grid; gap: .75rem; }
.mg-personal__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .9rem; font-weight: 600; color: var(--text); }
.mg-personal__head label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .2rem .45rem; min-width: 0; }
.mg-personal__head b { flex: none; }
.mg-personal__head .mg-muted { font-weight: 500; }
.mg-personal__head b { font-family: var(--mg-mono); font-size: .72rem; font-weight: 500; color: var(--text-soft); }
.mg-personal__preview { display: flex; align-items: center; gap: .75rem; font-family: var(--mg-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.mg-personal__preview span {
  flex: 1; min-width: 0; text-align: center; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; letter-spacing: .06em; text-transform: none; color: var(--text-soft);
  padding: .65rem .8rem; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, color-mix(in srgb, var(--text) 4%, transparent), color-mix(in srgb, var(--text) 9%, transparent));
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35), inset 0 -1px 0 color-mix(in srgb, #fff 6%, transparent);
  text-shadow: 0 1px 0 color-mix(in srgb, #fff 8%, transparent), 0 -1px 0 rgba(0,0,0,.4);
}
.mg-buy { display: flex; gap: .55rem; align-items: stretch; }
.mg-qty { display: inline-flex; align-items: center; height: 58px; border-radius: 100px; border: 1px solid var(--border-strong); flex: none; }
.mg-qty button { width: 44px; height: 100%; border: 0; background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; border-radius: 100px; -webkit-tap-highlight-color: transparent; }
.mg-qty button:hover { color: rgb(var(--accent-rgb)); }
.mg-qty button:active { transform: scale(.88); }
.mg-qty button svg { width: 17px; height: 17px; }
.mg-qty input { width: 34px; height: 100%; border: 0; background: transparent; text-align: center; color: var(--text); font: inherit; font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; padding: 0; }
.mg-qty input::-webkit-outer-spin-button, .mg-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.mg-qty input:focus { outline: none; }
.mg-qty--sm { height: 38px; }
.mg-qty--sm button { width: 34px; }
.mg-qty--sm input { width: 26px; font-size: .9rem; }
.mg-buy .mg-btn--lg { flex: 1; min-width: 0; }
.mg-buy .mg-iconbtn { width: 58px; height: 58px; }
.mg-perks { display: grid; border-top: 1px solid var(--border); }
.mg-perk { display: flex; gap: .85rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--text-soft); line-height: 1.45; }
.mg-perk svg { width: 19px; height: 19px; flex: none; color: var(--text); }
.mg-perk b { color: var(--text); font-weight: 600; }
.mg-acc { border-bottom: 1px solid var(--border); }
.mg-acc:first-of-type { border-top: 1px solid var(--border); }
.mg-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; list-style: none; font-weight: 600; letter-spacing: -.01em; }
.mg-acc summary::-webkit-details-marker { display: none; }
.mg-acc summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .45s var(--ease-out); opacity: .7; }
.mg-acc[open] summary::after { transform: rotate(135deg); }
.mg-acc__body { padding-bottom: 1.35rem; color: var(--text-soft); line-height: 1.75; font-size: .95rem; }
.mg-acc__body ul { padding-left: 1.2rem; list-style: disc; display: grid; gap: .3rem; }
.mg-acc__body h2, .mg-acc__body h3 { color: var(--text); margin: 1rem 0 .4rem; font-size: 1.05rem; }
.mg-acc__body p + p { margin-top: .7rem; }
.mg-acc__body a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mg-specs { display: grid; grid-template-columns: auto 1fr; gap: 0 1.5rem; font-size: .9rem; }
.mg-specs dt, .mg-specs dd { padding: .55rem 0; border-bottom: 1px dashed var(--border); }
.mg-specs dt { font-family: var(--mg-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); align-self: center; }
.mg-specs dd { color: var(--text); font-weight: 500; }

/* Üretim süreci */
.mg-process { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); position: relative; }
@media (min-width: 980px) { .mg-process { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mg-process__line { position: absolute; left: 0; right: 0; top: -1px; height: 1px; overflow: hidden; }
.mg-process__line i { display: block; height: 100%; background: rgb(var(--accent-rgb)); transform: scaleX(0); transform-origin: left; transition: transform 2.4s var(--ease-in-out); }
.mg-process.is-in .mg-process__line i { transform: scaleX(1); }
.mg-step { position: relative; padding: 1.5rem 1.25rem 0 0; counter-increment: mgstep; }
.mg-process { counter-reset: mgstep; }
.mg-step::before { content: counter(mgstep, decimal-leading-zero); display: block; font-family: var(--mg-mono); font-size: .7rem; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 1.5rem; }
.mg-step__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--border-strong); color: var(--text); margin-bottom: 1rem; transition: background .6s var(--ease-out), color .6s, border-color .6s; }
.mg-step__ico svg { width: 22px; height: 22px; }
.mg-process.is-in .mg-step__ico { background: var(--text); color: var(--bg); border-color: var(--text); }
.mg-process.is-in .mg-step:nth-child(3) .mg-step__ico { transition-delay: .6s; }
.mg-process.is-in .mg-step:nth-child(4) .mg-step__ico { transition-delay: 1.2s; }
.mg-process.is-in .mg-step:nth-child(5) .mg-step__ico { transition-delay: 1.8s; }
.mg-step h4 { font-size: 1.05rem; letter-spacing: -.015em; margin-bottom: .4rem; }
.mg-step p { font-size: .88rem; color: var(--text-soft); line-height: 1.6; max-width: 30ch; }

/* Yorumlar */
.mg-reviews { display: grid; gap: var(--mg-gap); }
@media (min-width: 980px) { .mg-reviews { grid-template-columns: 320px minmax(0, 1fr); align-items: start; } }
.mg-rscore { padding: 1.6rem; border-radius: var(--mg-r-xl); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.mg-rscore b { display: block; font-size: 3.6rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.mg-rscore .mg-stars svg { width: 18px; height: 18px; }
.mg-review { padding: 1.3rem 0; border-bottom: 1px solid var(--border); }
.mg-review:first-child { padding-top: 0; }
.mg-review__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; font-size: .9rem; }
.mg-review__head b { font-weight: 600; }
.mg-review__ok { display: inline-flex; align-items: center; gap: .3rem; color: var(--mg-success); font-family: var(--mg-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.mg-review__ok svg { width: 13px; height: 13px; }
.mg-review__meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-family: var(--mg-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.mg-review__src { color: var(--text-soft); }
.mg-review p { color: var(--text-soft); line-height: 1.65; font-size: .95rem; }
.mg-review__reply { margin-top: .8rem; padding: .85rem 1rem; border-radius: 12px; background: var(--surface-2); font-size: .88rem; color: var(--text-soft); border-left: 2px solid rgb(var(--accent-rgb)); }
.mg-rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.mg-rate input { position: absolute; opacity: 0; pointer-events: none; }
.mg-rate label { cursor: pointer; color: var(--border-strong); transition: color .2s, transform .2s; }
.mg-rate label svg { width: 30px; height: 30px; fill: currentColor; }
.mg-rate label:hover, .mg-rate label:hover ~ label, .mg-rate input:checked ~ label { color: #f5b301; }
.mg-rate label:hover { transform: scale(1.12); }

/* ============================================================ ALT AKSİYON ÇUBUKLARI (mobil) */
.mg-dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 700;
  display: flex; align-items: center; gap: .75rem; padding: 8px 8px 8px 1.1rem; border-radius: 24px;
  background: var(--mg-glass-strong); border: 1px solid var(--mg-glass-line);
  -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur);
  box-shadow: var(--mg-glass-hi), 0 20px 50px -20px rgba(0, 0, 0, .6);
  transform: translateY(calc(100% + 30px)); transition: transform .6s var(--ease-out);
}
.mg-dock.is-on { transform: none; }
.mg-dock__info { min-width: 0; flex: 1; line-height: 1.25; }
.mg-dock__info span { display: block; font-family: var(--mg-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-dock__info b { font-size: 1.08rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mg-dock .mg-btn { min-height: 52px; border-radius: 18px; padding: 0 1.3rem; flex: none; }
@media (min-width: 980px) { .mg-dock { display: none; } }
body.mg-has-dock { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 980px) { body.mg-has-dock { padding-bottom: 0; } }

/* Alt sekme çubuğu */
.mg-tabbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 690;
  display: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px; border-radius: 24px;
  background: var(--mg-glass-strong); border: 1px solid var(--mg-glass-line);
  -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur);
  box-shadow: var(--mg-glass-hi), 0 20px 50px -20px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ease-out);
}
@media (max-width: 767px) {
  .mg-tabbar { display: grid; }
  body.mg-has-tabbar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.mg-has-dock .mg-tabbar { transform: translateY(calc(100% + 30px)); }
}
.mg-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; border-radius: 18px; color: var(--text-muted); font-size: .64rem; font-weight: 600; letter-spacing: .01em; border: 0; background: transparent; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .25s, background .25s; }
.mg-tab svg { width: 21px; height: 21px; transition: transform .4s var(--ease-out); }
.mg-tab:active svg { transform: scale(.86); }
.mg-tab.is-active { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.mg-tab__ico { position: relative; display: grid; }
.mg-tab__n { top: -6px; right: -10px; }

/* ============================================================ DRAWER (SEPET) */
.mg-ship { padding: .95rem 1.5rem 1.05rem; border-bottom: 1px solid var(--border); }
.mg-ship p { font-size: .84rem; color: var(--text-soft); margin-bottom: .7rem; }
.mg-ship p b { color: var(--text); }
.mg-ship.is-free p { color: var(--mg-success); font-weight: 600; }
.mg-ship__bar { position: relative; height: 4px; border-radius: 4px; background: var(--border); margin-right: 13px; }
.mg-ship__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--text); width: var(--p, 0%); transition: width .9s var(--ease-out); }
.mg-ship.is-free .mg-ship__bar i { background: var(--mg-success); }
.mg-ship__bar svg { position: absolute; top: 50%; left: var(--p, 0%); width: 26px; height: 26px; padding: 5px; translate: -50% -50%; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); transition: left .9s var(--ease-out); }
.mg-ship.is-free .mg-ship__bar svg { color: var(--mg-success); border-color: var(--mg-success); }
.mg-lines { display: flex; flex-direction: column; }
.mg-line { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.mg-line:last-child { border-bottom: 0; }
.mg-line.is-removing { opacity: 0; transform: translateX(30px); }
.mg-line__img { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--mg-studio); }
.mg-line__img img { width: 100%; height: 100%; object-fit: cover; }
.mg-line__info { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.mg-line__top { display: flex; justify-content: space-between; gap: .75rem; }
.mg-line__name { font-weight: 600; font-size: .95rem; line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
.mg-line__name:hover { color: rgb(var(--accent-rgb)); }
.mg-line__opts { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
.mg-line__opts em { font-style: normal; color: var(--text-soft); }
.mg-line__bot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .4rem; }
.mg-line__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.mg-line__rm { width: 32px; height: 32px; margin: -4px -6px 0 0; border-radius: 50%; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; display: grid; place-items: center; flex: none; }
.mg-line__rm:hover { color: var(--mg-danger); background: color-mix(in srgb, var(--mg-danger) 10%, transparent); }
.mg-line__rm svg { width: 16px; height: 16px; }
@media (min-width: 768px) { .mg-cart .mg-line { grid-template-columns: 116px minmax(0, 1fr); gap: 1.25rem; padding: 1.35rem 0; } }
.mg-totals { display: grid; gap: .6rem; font-size: .92rem; }
.mg-totals > div { display: flex; justify-content: space-between; gap: 1rem; color: var(--text-soft); }
.mg-totals > div b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.mg-totals .is-discount b { color: var(--mg-success); }
.mg-totals .is-total { align-items: baseline; padding-top: .9rem; margin-top: .3rem; border-top: 1px solid var(--border); color: var(--text); font-weight: 600; }
.mg-totals .is-total b { font-size: 1.55rem; letter-spacing: -.035em; }
.mg-totals small { display: block; text-align: right; font-family: var(--mg-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.mg-drawer__empty { text-align: center; padding: 3rem 1rem; }
.mg-drawer__actions { display: grid; gap: .55rem; margin-top: 1rem; }
.mg-notice { display: flex; gap: .65rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; font-size: .86rem; line-height: 1.5; background: color-mix(in srgb, var(--mg-warn) 10%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--mg-warn) 28%, transparent); }
.mg-notice--err { background: color-mix(in srgb, var(--mg-danger) 9%, transparent); border-color: color-mix(in srgb, var(--mg-danger) 30%, transparent); }
.mg-notice--ok { background: color-mix(in srgb, var(--mg-success) 9%, transparent); border-color: color-mix(in srgb, var(--mg-success) 30%, transparent); }
.mg-notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ============================================================== SEPET SAYFASI */
.mg-pagehead { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.mg-pagehead h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: .95; letter-spacing: -.045em; font-weight: 600; }
.mg-pagehead h1 sup { font-family: var(--mg-mono); font-size: .9rem; letter-spacing: .05em; color: var(--text-muted); vertical-align: top; margin-left: .35rem; font-weight: 500; position: relative; top: .6em; }
.mg-cart { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 980px) {
  .mg-cart { grid-template-columns: minmax(0, 1fr) 410px; align-items: start; }
  .mg-summary { position: sticky; top: 24px; transition: top .5s var(--ease-out); }
  body:has(.header:not(.is-hidden)) .mg-summary { top: calc(var(--mg-head) + 16px); }
}
.mg-panel { padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--mg-r-xl); background: var(--surface); border: 1px solid var(--border); }
.mg-panel + .mg-panel { margin-top: 1rem; }
.mg-panel--glass { background: var(--mg-glass); -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur); border-color: var(--mg-glass-line); box-shadow: var(--mg-glass-hi); }
.mg-panel__title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; font-size: 1.1rem; letter-spacing: -.02em; }
.mg-panel__title a { font-family: var(--mg-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.mg-panel__title a:hover { color: var(--text); }
.mg-coupon { display: flex; gap: .45rem; padding: 4px; border-radius: 100px; border: 1px dashed var(--border-strong); }
.mg-coupon .mg-input { min-height: 44px; border: 0; background: transparent; box-shadow: none !important; padding: 0 .9rem; font-family: var(--mg-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
.mg-coupon .mg-input::placeholder { letter-spacing: .1em; }
.mg-coupon .mg-btn { min-height: 44px; padding: 0 1.1rem; }
.mg-coupon:focus-within { border-color: rgb(var(--accent-rgb)); border-style: solid; }
.mg-coupon-on { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--mg-success) 9%, transparent); border: 1px dashed color-mix(in srgb, var(--mg-success) 45%, transparent); font-size: .86rem; }
.mg-coupon-on > span { display: inline-flex; align-items: center; gap: .45rem; }
.mg-coupon-on b { font-family: var(--mg-mono); letter-spacing: .1em; }
.mg-coupon-on button { border: 0; background: none; color: var(--text-muted); cursor: pointer; font: inherit; font-size: .8rem; text-decoration: underline; }
.mg-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; margin-top: 1.1rem; }
.mg-trust div { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mg-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.mg-trust svg { width: 15px; height: 15px; color: var(--text-soft); }
.mg-paylogos { display: flex; justify-content: center; margin-top: 1rem; }
.mg-paylogos img { max-height: 28px; width: auto; opacity: .8; }

/* ============================================================== ÖDEME (CHECKOUT) */
.mg-steps { display: flex; align-items: center; gap: .6rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); font-family: var(--mg-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); flex-wrap: wrap; }
.mg-steps span { display: inline-flex; align-items: center; gap: .5rem; }
.mg-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .64rem; border: 1px solid var(--border-strong); }
.mg-steps .is-done { color: var(--text-soft); }
.mg-steps .is-done i { background: var(--text); border-color: var(--text); color: var(--bg); }
.mg-steps .is-now { color: var(--text); }
.mg-steps .is-now i { background: rgb(var(--accent-rgb)); border-color: transparent; color: var(--accent-ink); }
.mg-steps b { width: 22px; height: 1px; background: var(--border-strong); }
.mg-co-sec { padding: clamp(1.25rem, 2.5vw, 1.9rem); border-radius: var(--mg-r-xl); background: var(--surface); border: 1px solid var(--border); }
.mg-co-sec + .mg-co-sec { margin-top: 1rem; }
.mg-co-sec__head { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.35rem; }
.mg-co-sec__head i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-family: var(--mg-mono); font-weight: 500; font-size: .74rem; background: var(--text); color: var(--bg); flex: none; margin-top: 1px; }
.mg-co-sec__head h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.mg-co-sec__head p { font-size: .82rem; color: var(--text-muted); margin-top: .15rem; }
.mg-mini { display: grid; gap: .85rem; max-height: 320px; overflow: auto; padding: 8px 4px 2px 0; margin-bottom: 1.1rem; scrollbar-width: thin; }
.mg-mini__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .85rem; align-items: center; font-size: .88rem; font-weight: 500; }
.mg-mini__img { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--mg-studio); }
.mg-mini__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.mg-mini__img em { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 20px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; font-style: normal; background: var(--text); color: var(--bg); box-shadow: 0 0 0 2px var(--surface); }
.mg-mini__item span { display: block; color: var(--text-muted); font-size: .76rem; margin-top: .15rem; font-weight: 400; }
.mg-mini__item b { font-weight: 600; font-variant-numeric: tabular-nums; }
/* Mobil: katlanır sipariş özeti */
.mg-cosum { display: none; }
@media (max-width: 979px) {
  .mg-cosum { display: block; margin-bottom: 1rem; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
  .mg-cosum summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; cursor: pointer; font-weight: 600; font-size: .92rem; }
  .mg-cosum summary::-webkit-details-marker { display: none; }
  .mg-cosum summary span { display: inline-flex; align-items: center; gap: .5rem; }
  .mg-cosum summary svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); transform: rotate(90deg); }
  .mg-cosum[open] summary svg { transform: rotate(-90deg); }
  .mg-cosum summary b { font-variant-numeric: tabular-nums; }
  .mg-cosum > div { padding: 0 1.15rem 1.15rem; }
  .mg-co .mg-summary .mg-mini { display: none; }
}

/* ============================================================== GİRİŞ / KAYIT (ödeme) */
.mg-auth { display: grid; gap: 0; border-radius: 34px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
@media (min-width: 980px) { .mg-auth { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 640px; } }
.mg-auth__scene {
  position: relative; overflow: hidden; isolation: isolate; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.25rem, 3vw, 2.25rem);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(80% 70% at 50% 62%, color-mix(in srgb, var(--c-violet) 22%, transparent), transparent 70%),
    var(--bg-2);
  border-right: 1px solid var(--border);
}
.mg-auth__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.mg-auth__top { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mg-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.mg-auth__top b { color: var(--text); font-weight: 500; }
.mg-auth__hl { max-width: min(24rem, 52%); position: relative; }
.mg-auth__hl h1 { font-size: clamp(1.9rem, 2.9vw, 2.9rem); line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.mg-auth__hl p { margin-top: .9rem; color: var(--text-soft); line-height: 1.6; font-size: .92rem; }
.mg-auth__readout { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; font-family: var(--mg-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.mg-auth__readout b { color: var(--text); font-weight: 500; }
.mg-auth__bar { height: 2px; border-radius: 2px; background: var(--border-strong); overflow: hidden; }
.mg-auth__bar i { display: block; height: 100%; width: 100%; background: rgb(var(--accent-rgb)); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .9s var(--ease-out); }
.mg-auth__state { color: var(--text); transition: color .3s; }
.mg-auth.is-full .mg-auth__state { color: var(--mg-success); }
.mg-auth__cart { display: flex; align-items: center; gap: .85rem; margin-top: 1.25rem; padding: .6rem .9rem .6rem .6rem; border-radius: 18px; width: max-content; max-width: 100%; }
.mg-auth__thumbs { display: flex; }
.mg-auth__thumbs img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; box-shadow: 0 0 0 2px var(--surface); background: var(--surface-2); }
.mg-auth__thumbs img + img { margin-left: -12px; }
.mg-auth__cart span { font-size: .82rem; color: var(--text-soft); line-height: 1.3; }
.mg-auth__cart b { display: block; color: var(--text); font-variant-numeric: tabular-nums; }
.mg-auth__form { padding: clamp(1.5rem, 3.5vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.mg-auth__form > * { width: 100%; max-width: 440px; margin-inline: auto; }
.mg-google { position: relative; display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; min-height: 58px; border-radius: 100px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-weight: 600; transition: border-color .25s, transform .35s var(--ease-out), background .25s; overflow: hidden; }
.mg-google:hover { border-color: var(--text); background: var(--surface); }
.mg-google:active { transform: scale(.98); }
.mg-google svg { width: 21px; height: 21px; }
.mg-google small { position: absolute; right: 1.1rem; font-family: var(--mg-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
@media (max-width: 420px) { .mg-google small { display: none; } }
.mg-or { display: flex; align-items: center; gap: 1rem; margin: 1.4rem auto; font-family: var(--mg-mono); font-size: .64rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .14em; }
.mg-or::before, .mg-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.mg-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 100px; background: color-mix(in srgb, var(--text) 6%, transparent); margin-bottom: 1.35rem; }
.mg-tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 100px; background: var(--text); transition: transform .55s var(--ease-out); }
.mg-tabs[data-aktif="giris"]::before { transform: translateX(100%); }
.mg-tabs button { position: relative; z-index: 1; height: 44px; border-radius: 100px; border: 0; background: transparent; color: var(--text-soft); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: color .4s var(--ease-out); }
.mg-tabs button.is-active { color: var(--bg); }
.mg-auth__panel { display: grid; gap: .85rem; }
.mg-auth__panel[hidden] { display: none; }
.mg-auth__panel.is-in > * { animation: mgRise .55s var(--ease-out) both; }
.mg-auth__panel.is-in > :nth-child(2) { animation-delay: .05s; }
.mg-auth__panel.is-in > :nth-child(3) { animation-delay: .1s; }
.mg-auth__panel.is-in > :nth-child(4) { animation-delay: .15s; }
.mg-auth__panel.is-in > :nth-child(5) { animation-delay: .2s; }
@keyframes mgRise { from { opacity: 0; transform: translateY(10px); } }
.mg-auth__panel .mg-check { margin-top: .2rem; font-size: .86rem; }
.mg-auth__panel .mg-btn { margin-top: .4rem; }
.mg-auth__legal { margin-top: 1.25rem; text-align: center; font-size: .76rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 979px) {
  .mg-auth { border-radius: 28px; }
  .mg-auth__scene { min-height: 0; aspect-ratio: 1 / .78; border-right: 0; border-bottom: 1px solid var(--border); }
  .mg-auth__hl { max-width: 58%; }
  .mg-auth__hl h1 { font-size: clamp(1.45rem, 6vw, 2.1rem); }
  .mg-auth__hl p, .mg-auth__cart { display: none; }
}
@media (max-width: 767px) {
  .mg-auth-wrap { margin-inline: calc(50% - 50vw + 8px); }
}

/* ============================================================== GİRİŞ / KAYIT / ŞİFRE SAYFASI */
.ua { padding-top: clamp(5.75rem, 11vh, 7.5rem); padding-bottom: clamp(2rem, 6vh, 4rem); }
.mg-auth--page { min-height: min(780px, calc(100svh - 9rem)); border-radius: 36px; }
@media (min-width: 980px) { .mg-auth--page { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.mg-auth--page .mg-auth__scene { cursor: crosshair; }
/* imleci izleyen yumuşak ışık (canvas'ın altında) */
.mg-auth--page .mg-auth__scene::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 62%), color-mix(in srgb, var(--c-violet) 18%, transparent), transparent 68%);
  transition: opacity .6s; opacity: .9;
}
/* Sahne düzeni: üst satır · dev kelime · (boşluk) · kontrol listesi · okuma şeridi */
.mg-auth--page .mg-auth__scene { container-type: inline-size; justify-content: flex-start; }
.mg-auth--page .mg-auth__readout { margin-top: 1rem; }
/* Dev kelime: kontur + alttan yükselen katmanlı dolgu (--p: 0→1) + nozül çizgisi */
.ua__word { position: relative; align-self: flex-start; margin-top: clamp(1.25rem, 5cqi, 2.75rem); line-height: .82; font-weight: 600; letter-spacing: -.065em;
  font-size: clamp(4.2rem, 10vw, 10rem); font-size: 24cqi; padding: 0 .06em .08em 0; user-select: none; }
.ua__word-o, .ua__word-f { display: block; margin: 0; font: inherit; letter-spacing: inherit; line-height: inherit; white-space: nowrap; }
.ua__word-o { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 30%, transparent); }
.ua__word-f { position: absolute; inset: 0; padding: inherit; color: transparent;
  background: repeating-linear-gradient(to top, rgb(var(--accent-rgb)) 0 .045em, color-mix(in srgb, rgb(var(--accent-rgb)) 62%, var(--text)) .045em .06em);
  -webkit-background-clip: text; background-clip: text;
  clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0); transition: clip-path .9s cubic-bezier(.16,1,.3,1); }
.ua__word-n { position: absolute; left: -2%; right: -4%; height: 1px; bottom: calc(var(--p, 0) * 92% + 4%); background: rgb(var(--accent-rgb));
  box-shadow: 0 0 10px 1px rgb(var(--accent-rgb) / .8); opacity: 0; transition: bottom .9s cubic-bezier(.16,1,.3,1), opacity .4s; }
.mg-auth--page:not(.is-full) .ua__word-n { opacity: calc(min(1, var(--p, 0) * 40)); }
.ua__word.is-anim .ua__word-o { animation: uaKes 1.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes uaKes { from { clip-path: inset(0 100% 0 0); transform: translateX(-.04em); } to { clip-path: inset(0 -5% 0 0); } }
/* Dilimleyici kontrol listesi */
.ua__spec { list-style: none; margin: auto 0 0; padding: 0; width: min(15.5rem, 46%); display: grid; gap: .45rem; font-family: var(--mg-mono, ui-monospace, monospace); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.ua__spec li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; transition: color .35s; }
.ua__spec li i { height: 1px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 6px); opacity: .45; }
.ua__spec li b { font-weight: 500; }
.ua__spec li.is-ok { color: var(--text); }
.ua__spec li.is-ok b { color: rgb(var(--accent-rgb)); }
.ua__spec:empty { display: none; }
.ua__title { font-size: clamp(1.35rem, 2vw, 1.65rem); letter-spacing: -.035em; font-weight: 600; line-height: 1.1; margin-bottom: .2rem; }
.ua__lead { font-size: .9rem; line-height: 1.6; margin: -.25rem 0 .35rem; }
.ua__not { margin-bottom: 1.1rem; }
.ua__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .1rem; }
.ua__row .mg-check { margin-top: 0; }
.ua__forgot, .ua__back { font-size: .84rem; color: var(--text-soft); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 25%, transparent); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.ua__forgot:hover, .ua__back:hover { color: var(--text); text-decoration-color: currentColor; }
.ua__back { display: inline-flex; align-items: center; gap: .35rem; justify-self: center; margin-top: .35rem; text-decoration: none; }
.ua__back svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.ua__back:hover svg { transform: translateX(-3px); }
.ua__done { text-align: center; justify-items: center; }
.ua__done .mg-btn { margin-top: .75rem; }
.ua__done p { max-width: 24rem; line-height: 1.6; font-size: .92rem; }
.ua__done-ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: rgb(var(--accent-rgb)); background: color-mix(in srgb, rgb(var(--accent-rgb)) 12%, transparent); box-shadow: 0 0 0 10px color-mix(in srgb, rgb(var(--accent-rgb)) 6%, transparent); margin-bottom: .5rem; }
.ua__done-ic svg { width: 26px; height: 26px; }
.ua__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mg-home .on::after, .mg-page .on::after, .mg-hero .on::after, .mg-section .on::after { display: none; }
.ua__otp { height: 72px; text-align: center; font: 600 2rem/1 var(--mg-mono, ui-monospace, monospace); letter-spacing: .5em; padding-left: .5em; }
.ua__otp::placeholder { color: color-mix(in srgb, var(--text) 25%, transparent); letter-spacing: .5em; }
.mg-auth__legal a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.mg-auth__panel .mg-check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent); }
/* Sekme göstergesi: bu sayfada sıra Giriş · Kayıt */
.mg-tabs--gk[data-aktif="giris"]::before { transform: none; }
.mg-tabs--gk[data-aktif="kayit"]::before { transform: translateX(100%); }
/* Baskı tamamlanınca düğme "hazır" nefesi */
.mg-auth.is-full .mg-auth__panel:not([hidden]) .mg-btn--primary { box-shadow: 0 0 0 5px color-mix(in srgb, rgb(var(--accent-rgb)) 22%, transparent), 0 14px 40px -12px rgb(var(--accent-rgb) / .6); }
@media (max-width: 979px) {
  .ua { padding-top: clamp(5rem, 10vh, 6rem); }
  .mg-auth--page { min-height: 0; border-radius: 30px; }
  .mg-auth--page .mg-auth__scene { aspect-ratio: auto; min-height: 17rem; cursor: default; }
  .ua__spec { display: none; }
  .ua__word { margin-top: .9rem; font-size: 22cqi; }
}
@media (max-width: 767px) {
  .ua .mg-auth { margin-inline: calc(50% - 50vw + 8px); }
  .mg-auth--page .mg-auth__scene { min-height: 15rem; }
  .mg-auth--page .mg-auth__readout { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .ua__word.is-anim .ua__word-o { animation: none; } .ua__word-f, .ua__word-n { transition: none; } }

/* ============================================================== MAĞAZA KAPALI ("Atölye hazırlanıyor") */
.mk { padding-top: clamp(5.75rem, 11vh, 7.5rem); padding-bottom: clamp(2rem, 6vh, 4rem); }
.mk__stage {
  position: relative; isolation: isolate; overflow: hidden; container-type: inline-size;
  display: flex; flex-direction: column; gap: clamp(1rem, 2.4vw, 1.75rem);
  min-height: min(820px, calc(100svh - 9rem)); padding: clamp(1.25rem, 3.2vw, 2.6rem);
  border-radius: 36px; border: 1px solid var(--border);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(60% 70% at 72% 64%, color-mix(in srgb, var(--c-violet) 24%, transparent), transparent 70%),
    var(--bg-2);
}
.mk__stage::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 72%) var(--my, 64%), color-mix(in srgb, var(--c-violet) 16%, transparent), transparent 68%); }
.mk__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.mk__top { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mg-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.mk__top b { color: var(--text); font-weight: 500; }
.mk__top span:last-child { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); }
.mk__led { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 0 rgb(245 158 11 / .55); animation: mkLed 2.4s ease-out infinite; }
@keyframes mkLed { 0% { box-shadow: 0 0 0 0 rgb(245 158 11 / .55); } 70%, 100% { box-shadow: 0 0 0 9px rgb(245 158 11 / 0); } }
/* Dev kelime: kontur + katmanlı dolgu (--p) + nozül çizgisi — giriş sahnesiyle aynı dil */
.mk__word { position: relative; align-self: flex-start; margin-top: clamp(.5rem, 3cqi, 2rem); line-height: .8; font-weight: 600; letter-spacing: -.065em;
  font-size: clamp(4.5rem, 13vw, 13rem); font-size: 19cqi; padding: 0 .06em .08em 0; user-select: none; max-width: 100%; }
.mk__word-o, .mk__word-f { display: block; white-space: nowrap; }
.mk__word-o { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 30%, transparent); }
.mk__word-f { position: absolute; inset: 0; padding: inherit; color: transparent;
  background: repeating-linear-gradient(to top, rgb(var(--accent-rgb)) 0 .045em, color-mix(in srgb, rgb(var(--accent-rgb)) 62%, var(--text)) .045em .06em);
  -webkit-background-clip: text; background-clip: text; clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0); transition: clip-path .6s linear; }
.mk__word-n { position: absolute; left: -2%; right: -4%; height: 1px; bottom: calc(var(--p, 0) * 92% + 4%); background: rgb(var(--accent-rgb)); box-shadow: 0 0 10px 1px rgb(var(--accent-rgb) / .8); transition: bottom .6s linear; }
.mk__body { max-width: min(30rem, 52%); }
.mk__title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; }
.mk__text { margin-top: .85rem; color: var(--text-soft); line-height: 1.65; font-size: .95rem; max-width: 26rem; }
.mk__count { display: flex; gap: .5rem; margin-top: 1.4rem; }
.mk__count span { display: grid; justify-items: center; gap: .2rem; min-width: 4.4rem; padding: .7rem .5rem .55rem; border-radius: 16px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mk__count b { font-family: var(--mg-mono); font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mk__count small { font-family: var(--mg-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.mk__date { margin-top: .7rem; font-family: var(--mg-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.mk__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.mk__readout { margin-top: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; font-family: var(--mg-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.mk__readout b { color: var(--text); font-weight: 500; }
.mk__bar { height: 2px; border-radius: 2px; background: var(--border-strong); overflow: hidden; }
.mk__bar i { display: block; height: 100%; background: rgb(var(--accent-rgb)); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .6s linear; }
@media (max-width: 860px) {
  .mk__stage { min-height: 0; border-radius: 28px; padding-bottom: 1.25rem; }
  .mk__body { max-width: 100%; }
  .mk__word { font-size: 22cqi; }
  /* mobilde vazo sağ üstte küçük kalır; metin altta tam genişlik */
  .mk__actions .mg-btn { flex: 1 1 auto; justify-content: center; }
  .mk__count span { min-width: 0; flex: 1; }
  /* Mobil: vazo üstte kendi bandında, kelime ve metin onun altında (üst üste binmesin) */
  .mk__stage canvas { height: 250px; }
  .mk__word { margin-top: 175px; }
}
@media (max-width: 767px) { .mk .mk__stage { margin-inline: calc(50% - 50vw + 8px); } }
@media (prefers-reduced-motion: reduce) { .mk__led { animation: none; } .mk__word-f, .mk__word-n, .mk__bar i { transition: none; } }

/* Güvenli ödeme sayfası */
.mg-pay { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 980px) { .mg-pay { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.mg-pay__frame { position: relative; min-height: 480px; border-radius: var(--mg-r-xl); background: #fff; border: 1px solid var(--border); overflow: hidden; padding: clamp(.5rem, 2vw, 1.25rem); }
.mg-pay__frame #iyzipay-checkout-form { min-height: 440px; }
.mg-pay__frame iframe { width: 100%; border: 0; }
.mg-pay__loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 1rem; color: #4a4356; font-size: .9rem; background: #fff; z-index: 0; }
.mg-pay__loading i { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #e9e1f5; border-top-color: #5c2d91; animation: mgSpin .8s linear infinite; }
.mg-secure { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.2rem; border-radius: var(--mg-r-sm); background: color-mix(in srgb, var(--mg-success) 8%, transparent); border: 1px solid color-mix(in srgb, var(--mg-success) 25%, transparent); font-size: .86rem; color: var(--text-soft); margin-bottom: 1rem; }
.mg-secure svg { width: 22px; height: 22px; color: var(--mg-success); flex: none; }

/* ============================================================== SİPARİŞ / BAŞARI */
.mg-success { position: relative; text-align: center; padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3rem); }
.mg-success__check { width: 92px; height: 92px; margin: 0 auto 1.5rem; }
.mg-success__check circle { stroke: var(--mg-success); stroke-width: 2.5; fill: color-mix(in srgb, var(--mg-success) 10%, transparent); stroke-dasharray: 280; stroke-dashoffset: 280; animation: mgDraw .9s var(--ease-out) .2s forwards; }
.mg-success__check path { stroke: var(--mg-success); stroke-width: 4.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: mgDraw .5s var(--ease-out) .95s forwards; }
@keyframes mgDraw { to { stroke-dashoffset: 0; } }
.mg-success h1 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.mg-success p { color: var(--text-soft); max-width: 52ch; margin: 1rem auto 0; line-height: 1.65; }
.mg-orderno { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.5rem; padding: .45rem .5rem .45rem 1.1rem; border-radius: 100px; border: 1px solid var(--border-strong); font-family: var(--mg-mono); font-weight: 500; letter-spacing: .1em; }
.mg-orderno button { height: 34px; padding: 0 .9rem; border-radius: 100px; border: 0; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); font: inherit; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: 0; cursor: pointer; }
.mg-confetti { position: absolute; inset: -20px 0 auto; height: 0; pointer-events: none; z-index: 2; }
.mg-confetti i { position: absolute; top: 0; width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: mgConfetti 2.6s var(--ease-out) forwards; }
@keyframes mgConfetti { 0% { opacity: 1; transform: translate3d(0,0,0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--r)); } }
.mg-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; margin: 1rem 0 .5rem; }
.mg-timeline::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 21px; height: 1px; background: var(--border-strong); }
.mg-timeline__fill { position: absolute; left: 12.5%; top: 21px; height: 1px; width: calc(75% * var(--p, 0)); background: var(--text); transition: width 1.4s var(--ease-out) .3s; }
.mg-tl { position: relative; display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; font-size: .8rem; color: var(--text-muted); }
.mg-tl i { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-muted); }
.mg-tl i svg { width: 19px; height: 19px; }
.mg-tl.is-done i { background: var(--text); color: var(--bg); border-color: var(--text); }
.mg-tl.is-now i { box-shadow: 0 0 0 6px color-mix(in srgb, var(--text) 10%, transparent); }
.mg-tl.is-done, .mg-tl.is-now { color: var(--text); font-weight: 600; }
.mg-tl small { font-family: var(--mg-mono); font-weight: 500; color: var(--text-muted); font-size: .62rem; letter-spacing: .06em; }
.mg-od { display: grid; gap: 1rem; }
@media (min-width: 980px) { .mg-od { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.mg-addr { font-size: .9rem; line-height: 1.65; color: var(--text-soft); }
.mg-addr b { color: var(--text); }
.mg-status { display: inline-flex; align-items: center; gap: .4rem; height: 26px; padding: 0 .7rem; border-radius: 8px; font-family: var(--mg-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.mg-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mg-legal { font-size: .88rem; line-height: 1.7; color: var(--text-soft); }
.mg-legal h3 { color: var(--text); font-size: 1.15rem; margin-bottom: .8rem; letter-spacing: -.02em; }
.mg-legal p { margin-bottom: .8rem; }
.mg-legal ul { padding-left: 1.2rem; list-style: disc; margin-bottom: .8rem; }
.mg-legal table { margin: .5rem 0 1rem; }
.mg-orders { display: grid; gap: .75rem; }
.mg-order { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--mg-r); background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, transform .35s var(--ease-out); }
.mg-order:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.mg-order__thumbs { display: flex; }
.mg-order__thumbs img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; border: 2px solid var(--surface); background: var(--surface-2); }
.mg-order__thumbs img + img { margin-left: -14px; }
.mg-order__top { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.mg-order__top b { font-family: var(--mg-mono); letter-spacing: .08em; font-weight: 500; }
.mg-order__meta { font-size: .82rem; color: var(--text-muted); }

/* ============================================================== MODAL / LIGHTBOX */
.mg-modal { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 1.25rem; pointer-events: none; }
.mg-modal__veil { position: absolute; inset: 0; background: rgba(6, 3, 14, .55); opacity: 0; transition: opacity .4s var(--ease-out); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mg-modal__box {
  position: relative; width: min(1040px, 100%); max-height: min(88vh, 860px); display: flex; flex-direction: column; border-radius: 30px; overflow: hidden;
  background: var(--mg-glass-strong); border: 1px solid var(--mg-glass-line); -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur);
  box-shadow: var(--mg-glass-hi), 0 50px 120px -40px rgba(0, 0, 0, .8);
  transform: translateY(26px) scale(.98); opacity: 0; transition: transform .55s var(--ease-out), opacity .4s var(--ease-out);
}
.mg-modal--narrow .mg-modal__box { width: min(720px, 100%); }
.mg-modal.is-open { pointer-events: auto; }
.mg-modal.is-open .mg-modal__veil { opacity: 1; }
.mg-modal.is-open .mg-modal__box { transform: none; opacity: 1; }
.mg-modal__close { position: absolute; right: 1rem; top: 1rem; z-index: 6; background: var(--mg-glass-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: var(--mg-glass-line); }
.mg-modal__body { flex: 1; min-height: 0; overflow-y: auto; padding: clamp(1.25rem, 3vw, 2rem); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.mg-modal__body::-webkit-scrollbar { width: 8px; }
.mg-modal__body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.mg-modal__body::-webkit-scrollbar-track { background: transparent; }
.mg-qv { display: grid; gap: 1.5rem; }
@media (min-width: 768px) {
  .mg-qv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .mg-qv > :first-child { position: sticky; top: 0; }
  .mg-qv .mg-pd__title { padding-right: 3rem; }
}
.mg-qv .mg-gal__main { cursor: default; border-radius: 22px; }
.mg-qv .mg-pd__title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
@media (max-width: 767px) {
  .mg-modal { padding: 0; place-items: end stretch; }
  .mg-modal__box { width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; border-bottom: 0; transform: translateY(102%); opacity: 1; }
  .mg-modal.is-drag .mg-modal__box { transition: none; }
  .mg-modal__body { padding: 1.5rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom)); }
  .mg-modal .mg-sheet__grab { display: block; position: absolute; left: 0; right: 60px; top: 0; height: 28px; z-index: 5; touch-action: none; }
  .mg-modal .mg-sheet__grab::before { content: ""; position: absolute; left: calc(50% + 30px); top: 9px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: color-mix(in srgb, var(--text) 28%, transparent); }
  .mg-modal__close { top: .7rem; right: .7rem; width: 38px; height: 38px; }
}
.mg-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(6, 3, 14, .95); display: none; align-items: center; justify-content: center; touch-action: none; }
.mg-lightbox.is-open { display: flex; animation: mgFade .3s var(--ease-out); }
.mg-lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 14px; user-select: none; }
.mg-lightbox .mg-iconbtn { position: absolute; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.mg-lightbox [data-lb-close] { top: 1rem; right: 1rem; }
.mg-lightbox [data-lb-prev] { left: 1rem; top: 50%; translate: 0 -50%; }
.mg-lightbox [data-lb-next] { right: 1rem; top: 50%; translate: 0 -50%; }
@keyframes mgFade { from { opacity: 0; } }

/* ================================================================== TOAST */
.mg-toasts { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 1100; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; width: min(calc(100vw - 20px), 420px); transition: bottom .5s var(--ease-out); }
.mg-toast {
  pointer-events: auto; display: flex; align-items: center; gap: .75rem; width: 100%; padding: .6rem .6rem .6rem .95rem; border-radius: 20px;
  background: var(--text); color: var(--bg); box-shadow: 0 22px 50px -14px rgba(0,0,0,.55); font-size: .88rem; font-weight: 500;
  animation: mgToastIn .55s var(--ease-out);
}
.mg-toast.is-out { animation: mgToastOut .35s var(--ease-in-out) forwards; }
.mg-toast img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; margin-left: -.35rem; }
.mg-toast > svg { width: 19px; height: 19px; flex: none; }
.mg-toast--ok > svg { color: #10b981; }
.mg-toast--err > svg { color: #ef4444; }
.mg-toast span { flex: 1; min-width: 0; line-height: 1.35; }
.mg-toast a, .mg-toast button { flex: none; height: 36px; padding: 0 .95rem; border-radius: 100px; border: 0; display: inline-flex; align-items: center; background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
@keyframes mgToastIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes mgToastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (max-width: 767px) { body.mg-has-tabbar .mg-toasts, body.mg-has-dock .mg-toasts { bottom: calc(92px + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) and (max-width: 979px) { body.mg-has-dock .mg-toasts { bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* Sepete uçan görsel */
.mg-fly { position: fixed; z-index: 1200; width: 72px; height: 72px; border-radius: 18px; object-fit: cover; pointer-events: none; box-shadow: 0 14px 30px -8px rgba(36, 18, 63, .5); will-change: transform, opacity; }

/* ============================================================== SAYFALAMA */
.mg-pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; flex-wrap: wrap; }
.mg-pager a, .mg-pager span { min-width: 42px; height: 42px; padding: 0 .8rem; border-radius: 100px; display: grid; place-items: center; border: 1px solid var(--border-strong); font-weight: 600; font-size: .88rem; }
.mg-pager .is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Mağaza alt güven bandı */
.mg-assure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--border); }
@media (min-width: 980px) { .mg-assure { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mg-assure > div { display: grid; gap: .9rem; padding: 1.5rem 1.25rem 0 0; align-content: start; }
.mg-assure > div + div { padding-left: 1.25rem; border-left: 1px solid var(--border); }
@media (max-width: 979px) { .mg-assure > div:nth-child(3) { padding-left: 0; border-left: 0; } .mg-assure > div:nth-child(n+3) { margin-top: 1.25rem; } }
.mg-assure svg { width: 22px; height: 22px; color: var(--text); }
.mg-assure b { display: block; font-size: .95rem; letter-spacing: -.01em; margin-bottom: .3rem; }
.mg-assure span { font-size: .82rem; color: var(--text-muted); line-height: 1.5; display: block; }

/* ================================================================ HAREKET AZALT */
@media (prefers-reduced-motion: reduce) {
  .mg-ticker__track, .mg-nozzle__head::before, .mg-nozzle__head::after { animation: none !important; }
  .mg-print > .mg-print__in { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .mg-stage.is-ready .mg-printmask { clip-path: none !important; }
  .mg-stage.is-printing .mg-printmask { animation: none !important; }
  .mg-stage__rig { transform: none !important; }
  .mg-confetti { display: none; }
  .mg-success__check circle, .mg-success__check path { animation: none; stroke-dashoffset: 0; }
  .mg-card__media img, .mg-sheet__panel, .mg-modal__box, .mg-dock, .mg-cats__ind, .mg-tabs::before { transition-duration: .01ms !important; }
  .mg-auth__panel.is-in > * { animation: none; }
}

/* ================================================= ANA SAYFA · Sizin için seçtiklerimiz */
.mg-home .section-head { margin-bottom: clamp(1.5rem, 3.5vw, 2.75rem); }
.mg-home__lead { margin-top: 1rem; max-width: 48ch; line-height: 1.65; }
@media (min-width: 1024px) {
  .mg-home__grid--vitrin { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
  .mg-home__grid--vitrin > :first-child { grid-column: span 2; grid-row: span 2; }
  .mg-home__grid--vitrin > :first-child .mg-card__media { aspect-ratio: auto; flex: 1; min-height: 420px; }
  .mg-home__grid--vitrin > :first-child .mg-card__frame { flex: 1; }
  .mg-home__grid--vitrin > :first-child .mg-card__title { font-size: 1.35rem; }
}

/* ================================================================ HESABIM (üye merkezi) */
.mg-hs__hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--border); }
.mg-hs__who { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.6rem); min-width: 0; }
.mg-hs__who h1 { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin-top: .6rem; }
.mg-hs__mail { margin-top: .55rem; color: var(--text-muted); font-size: .9rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.mg-hs__avatar { position: relative; flex: none; width: clamp(64px, 9vw, 96px); aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border), 0 20px 40px -24px rgba(0,0,0,.6); }
.mg-hs__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mg-hs__avatar--lg { width: 88px; border-radius: 24px; cursor: pointer; }
.mg-hs__avatar--lg i { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--text); color: var(--bg); font-style: normal; }
.mg-hs__avatar--lg i svg { width: 14px; height: 14px; }
.mg-hs__acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.mg-hs__layout { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
@media (min-width: 980px) {
  .mg-hs__layout { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
  .mg-hs__nav { position: sticky; top: 24px; transition: top .5s var(--ease-out); }
  body:has(.header:not(.is-hidden)) .mg-hs__nav { top: calc(var(--mg-head) + 16px); }
}
.mg-hs__nav { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 24px; background: var(--mg-glass); border: 1px solid var(--mg-glass-line); -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur); box-shadow: var(--mg-glass-hi); }
.mg-hs__nav a { display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: 0 .95rem; border-radius: 17px; color: var(--text-soft); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background .25s, color .25s; }
.mg-hs__nav a svg { width: 18px; height: 18px; flex: none; }
.mg-hs__nav a span { flex: 1; }
.mg-hs__nav a small { font-family: var(--mg-mono); font-size: .66rem; color: var(--text-muted); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 7%, transparent); }
.mg-hs__nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.mg-hs__nav a.is-active { background: var(--text); color: var(--bg); }
.mg-hs__nav a.is-active small { background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); }
@media (max-width: 979px) {
  .mg-hs__nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-radius: 100px; position: sticky; top: 10px; z-index: 30; }
  body:has(.header:not(.is-hidden)) .mg-hs__nav { top: calc(var(--mg-head) + 6px); }
  .mg-hs__nav::-webkit-scrollbar { display: none; }
  .mg-hs__nav a { min-height: 42px; border-radius: 100px; padding: 0 1rem; font-size: .85rem; }
  .mg-hs__nav a span { flex: none; }
}
.mg-hs__main { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.mg-hs__card { display: block; padding: clamp(1.1rem, 2.4vw, 1.6rem); border-radius: var(--mg-r-xl); background: var(--surface); border: 1px solid var(--border); }
.mg-hs__cardhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mg-hs__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--mg-r-xl); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.mg-hs__stats a { padding: 1.2rem 1.25rem 1.1rem; display: grid; gap: .3rem; transition: background .25s; }
.mg-hs__stats a + a { border-left: 1px solid var(--border); }
.mg-hs__stats a:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.mg-hs__stats b { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.mg-hs__stats span { font-family: var(--mg-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 640px) { .mg-hs__stats { grid-template-columns: 1fr 1fr; } .mg-hs__stats a:nth-child(3) { border-left: 0; } .mg-hs__stats a:nth-child(n+3) { border-top: 1px solid var(--border); } }
.mg-hs__lastrow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mg-hs__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.4rem; }
.mg-hs__track::before, .mg-hs__track::after { content: ""; position: absolute; left: 12.5%; top: 17px; height: 1px; }
.mg-hs__track::before { right: 12.5%; background: var(--border-strong); }
.mg-hs__track::after { width: calc(75% * var(--p, 0)); background: var(--text); transition: width 1.2s var(--ease-out); }
.mg-hs__track span { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .45rem; font-family: var(--mg-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.mg-hs__track i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); }
.mg-hs__track i svg { width: 16px; height: 16px; }
.mg-hs__track .is-done { color: var(--text); }
.mg-hs__track .is-done i { background: var(--text); color: var(--bg); border-color: var(--text); }
.mg-hs__track .is-now i { box-shadow: 0 0 0 5px color-mix(in srgb, rgb(var(--accent-rgb)) 22%, transparent); background: rgb(var(--accent-rgb)); border-color: transparent; color: var(--accent-ink); }
.mg-hs__empty { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.mg-hs__empty .mg-empty__ico { margin: 0; }
.mg-hs__empty > div { flex: 1; min-width: 200px; }
.mg-hs__block { margin-top: .75rem; }
.mg-hs__quick { display: grid; gap: .75rem; margin-top: .5rem; }
@media (min-width: 768px) { .mg-hs__quick { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.mg-hs__quick .mg-hs__card { display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.15rem; border-radius: 22px; transition: border-color .25s, transform .35s var(--ease-out); }
.mg-hs__quick .mg-hs__card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.mg-hs__quick .mg-hs__card > svg:first-child { width: 22px; height: 22px; flex: none; }
.mg-hs__quick .mg-hs__card > svg:last-child { width: 16px; height: 16px; flex: none; color: var(--text-muted); }
.mg-hs__quick .mg-hs__card div { flex: 1; min-width: 0; }
.mg-hs__quick b { display: block; font-size: .92rem; }
.mg-hs__quick span { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
@media (min-width: 980px) { .mg-hs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mg-hs__addrs { display: grid; gap: .75rem; }
@media (min-width: 768px) { .mg-hs__addrs { grid-template-columns: 1fr 1fr; } }
.mg-hs__addr.is-def { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.mg-hs__addract { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--border); font-size: .84rem; }
.mg-hs__form[hidden] { display: none; }
.mg-hs__profile { display: grid; gap: 1rem; }
.mg-hs__profile .mg-h3 { margin-bottom: 1rem; }
.mg-hs__photo { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.mg-hs__save { display: flex; justify-content: flex-end; }
@media (max-width: 640px) { .mg-hs__save .mg-btn { width: 100%; } .mg-hs__acts { width: 100%; } .mg-hs__acts .mg-btn { flex: 1; } }

/* Teklif modu (fiyatlar gizli) */
.mg-price--ask { font-family: var(--mg-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.mg-pd__price--ask { flex-direction: column; align-items: flex-start; gap: .3rem; }
.mg-pd__price--ask b { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.mg-pd__price--ask small { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: .9rem; color: var(--text-soft); }
@media (min-width: 1280px) { .mg-hs .mg-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mg-hs .mg-grid--4 > :nth-child(4) { display: none; } }
@media (min-width: 768px) and (max-width: 1279px) { .mg-hs .mg-grid--4 > :nth-child(4) { display: none; } }

/* ===================================================== HAVALE / EFT (v5) */
.mg-iban { display: grid; gap: 1.25rem; }
.mg-iban__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.mg-iban__eyebrow { font-family: var(--mg-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.mg-iban__head h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.2; margin-top: .35rem; letter-spacing: -.01em; }
.mg-iban__amt { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: .1rem .75rem; text-align: right; }
.mg-iban__amt span { grid-column: 1 / -1; font-family: var(--mg-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.mg-iban__amt b { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mg-iban__amt button, .mg-iban__note button { font-family: inherit; font-size: .72rem; font-weight: 600; line-height: 1; padding: .4rem .6rem; border-radius: 8px; border: 1px solid var(--border-strong); background: none; color: inherit; cursor: pointer; }
.mg-iban__amt button:hover, .mg-iban__note button:hover { border-color: var(--text); }
.mg-iban__list { display: grid; gap: .65rem; }
@media (min-width: 900px) { .mg-iban__list:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; } }
.mg-iban__acc { display: grid; gap: .35rem; padding: 1.1rem 1.2rem; border-radius: var(--mg-r-sm); border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--text) 2.5%, transparent); }
.mg-iban__bank { font-family: var(--mg-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.mg-iban__no { font-family: var(--mg-mono); font-size: clamp(.95rem, 1.6vw, 1.12rem); font-weight: 600; letter-spacing: .04em; word-spacing: .1em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mg-iban__to { font-size: .86rem; color: var(--text-muted); }
.mg-iban__to b { color: var(--text); font-weight: 600; }
.mg-iban__btns { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }
.mg-iban__note { display: grid; gap: .55rem; padding-top: 1.1rem; border-top: 1px dashed var(--border-strong); }
.mg-iban__note > div { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.mg-iban__note b { font-size: .88rem; }
.mg-iban__note code { font-family: var(--mg-mono); font-weight: 700; font-size: .95rem; letter-spacing: .06em; padding: .3rem .6rem; border-radius: 8px; background: rgb(var(--accent-rgb) / .12); }
.mg-iban__note p { font-size: .86rem; color: var(--text-muted); line-height: 1.6; }

/* Ödeme yöntemi seçimi */
.mg-paym .mg-choice__txt b { display: flex; align-items: center; gap: .5rem; }
.mg-paym .mg-choice__txt small { display: block; margin-top: .25rem; font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.mg-paym__tag { font-family: var(--mg-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .45rem; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--text-muted); font-weight: 500; }

/* ============================================== ÜRETİM ADIMLARI (v5) ---- */
.mg-make__list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; border-top: 1px solid var(--border); }
@media (min-width: 860px) { .mg-make__list { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }
.mg-make__rail { position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none; }
.mg-make__rail::before { content: ""; position: absolute; inset: 0; background: rgb(var(--accent-rgb)); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease-in-out, cubic-bezier(.65,0,.35,1)); }
.mg-make__rail i { position: absolute; top: -3.5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--accent-rgb)); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .18), 0 0 18px rgb(var(--accent-rgb) / .7); opacity: 0; transition: left 2.2s var(--ease-in-out, cubic-bezier(.65,0,.35,1)), opacity .4s; }
.mg-make.is-in .mg-make__rail::before { transform: scaleX(1); }
.mg-make.is-in .mg-make__rail i { left: calc(100% - 8px); opacity: 1; }
.mg-make__step { position: relative; display: grid; align-content: start; gap: .2rem; padding: 1.6rem clamp(1rem, 2.4vw, 2rem) 1.6rem 0; }
.mg-make__step + .mg-make__step { border-top: 1px solid var(--border); }
@media (min-width: 860px) {
  .mg-make__step { padding-top: 1.75rem; padding-bottom: .5rem; }
  .mg-make__step + .mg-make__step { border-top: 0; padding-left: clamp(1rem, 2.4vw, 2rem); border-left: 1px solid var(--border); }
}
.mg-make__meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.mg-make__no { font-family: var(--mg-mono); font-size: .7rem; letter-spacing: .12em; color: var(--text-muted); transition: color .5s calc(var(--i) * .55s + .2s); }
.mg-make.is-in .mg-make__no { color: rgb(var(--accent-rgb)); }
.mg-make__tag { font-family: var(--mg-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding: .3rem .55rem; border: 1px solid var(--border-strong); border-radius: 100px; white-space: nowrap; }
.mg-make__fig { margin: 1.1rem 0 1.2rem; height: clamp(92px, 9vw, 118px); color: var(--text); }
.mg-make__art { height: 100%; width: auto; max-width: 100%; overflow: visible; }
.mg-make__ink { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease-out, cubic-bezier(.16,1,.3,1)) calc(var(--i) * .55s + .25s); }
.mg-make__ink--acc { stroke: rgb(var(--accent-rgb)); stroke-width: 2; transition-delay: calc(var(--i) * .55s + .6s); }
.mg-make.is-in .mg-make__ink { stroke-dashoffset: 0; }
.mg-make__layer { stroke-width: 2.4; transform-box: fill-box; transform-origin: center; transform: scaleX(0); opacity: .9; transition: transform .45s var(--ease-out, cubic-bezier(.16,1,.3,1)) calc(var(--i) * .55s + .3s + var(--k) * .09s); }
.mg-make__layer:nth-child(even) { opacity: .62; }
.mg-make.is-in .mg-make__layer { transform: scaleX(1); }
.mg-make__nozzle { transform: translateY(58px); transition: transform 1.4s var(--ease-out, cubic-bezier(.16,1,.3,1)) calc(var(--i) * .55s + .3s); }
.mg-make__nozzle path:first-child { fill: currentColor; }
.mg-make.is-in .mg-make__nozzle { transform: translateY(0); }
.mg-make__step h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.02em; line-height: 1.2; }
.mg-make__step p { font-size: .9rem; line-height: 1.65; color: var(--text-soft); max-width: 36ch; margin-top: .45rem; }
@media (prefers-reduced-motion: reduce) {
  .mg-make__ink, .mg-make__layer, .mg-make__nozzle, .mg-make__rail::before, .mg-make__rail i { transition: none !important; }
}

/* ===================================================== GÜVEN BANDI (v5) - */
.mg-band { position: relative; display: grid; margin-top: clamp(3rem, 7vw, 5.5rem); border: 1px solid var(--border); border-radius: var(--mg-r-xl); background: color-mix(in srgb, var(--surface) 70%, transparent); overflow: hidden; }
@media (min-width: 640px) { .mg-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mg-band { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
.mg-band__ruler { position: absolute; left: 0; right: 0; top: 0; height: 9px; pointer-events: none; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 12px) top / 100% 5px no-repeat,
              repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 60px) top / 100% 9px no-repeat; }
.mg-band__item { position: relative; display: grid; align-content: start; gap: .35rem; padding: clamp(1.4rem, 2.4vw, 1.9rem) clamp(1.2rem, 2vw, 1.6rem) clamp(1.3rem, 2.2vw, 1.7rem); transition: background .35s; }
.mg-band__item + .mg-band__item { border-top: 1px solid var(--border); }
@media (min-width: 640px) {
  .mg-band__item + .mg-band__item { border-top: 0; }
  .mg-band__item:nth-child(n+4) { border-top: 1px solid var(--border); }
  .mg-band__item:nth-child(odd) { border-left: 1px solid var(--border); }
}
@media (min-width: 1100px) {
  .mg-band__item:nth-child(n+4) { border-top: 0; }
  .mg-band__item:nth-child(odd) { border-left: 0; }
  .mg-band__item + .mg-band__item { border-left: 1px solid var(--border); }
}
.mg-band__item:hover { background: color-mix(in srgb, var(--text) 2.5%, transparent); }
.mg-band__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.mg-band__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); transition: background .35s, color .35s, border-color .35s; }
.mg-band__ico svg { width: 18px; height: 18px; }
.mg-band__item:hover .mg-band__ico { background: var(--text); color: var(--bg); border-color: var(--text); }
.mg-band__n { font-family: var(--mg-mono); font-size: .62rem; letter-spacing: .14em; color: var(--text-muted); }
.mg-band__item b { font-size: 1rem; letter-spacing: -.015em; }
.mg-band__t { font-size: .84rem; line-height: 1.55; color: var(--text-muted); }
.mg-band__t b { font-size: inherit; color: var(--text); }
.mg-band__meter[hidden] { display: none; }
.mg-band__meter { display: block; height: 3px; margin-top: .7rem; border-radius: 3px; background: var(--border); overflow: hidden; }
.mg-band__meter i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: rgb(var(--accent-rgb)); transition: width .9s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.mg-band__item.is-free .mg-band__meter i { background: #10b981; }

/* Ürün videosu (galeri ilk slaytı) */
.mg-gal__slide--video { cursor: default; }
.mg-gal__slide video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; background: var(--mg-studio); }
.mg-gal__thumb--video { position: relative; }
.mg-gal__thumb--video img { width: 100%; height: 100%; object-fit: cover; }
.mg-gal__thumb--video i { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mg-gal__thumb--video i::after { content: ""; position: absolute; left: 10px; top: 8px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }

@media (max-width: 640px) {
  .mg-iban__amt { text-align: left; grid-template-columns: auto auto; justify-content: start; }
  .mg-iban__no { font-size: .9rem; letter-spacing: .02em; }
  .mg-make__step { grid-template-columns: 96px minmax(0, 1fr); column-gap: 1.1rem; padding-right: 0; }
  .mg-make__meta { grid-column: 1 / -1; }
  .mg-make__fig { grid-row: span 2; margin: .9rem 0 0; height: 70px; }
  .mg-make__step h3 { margin-top: .9rem; }
  .mg-make__step p { margin-top: .3rem; }
}

/* =====================================================================
   HERO · CANLI BASKI TABLASI (v5)
   Dev çizgili başlık arkada, ürün önde katman katman basılır; başlık da
   aynı katman adımlarıyla dolar. Baskı bitince sıradaki ürün tablaya gelir.
   --p: aktif baskı (0..1, katman adımlı) · --pt: başlık dolumu (ilk baskı)
   ===================================================================== */
.mg-bed { --p: 0; --pt: 0; --nx: 0; --mx: 0; --my: 0; --sy: 0;
  /* Tek ölçü: başlık puntosu. Başlık genişliği, sahne ve alt bölge buna bağlı → her ekranda aynı kompozisyon */
  --bed-gut: var(--gutter, clamp(1.25rem, 4vw, 3.5rem));
  /* Genişlik sitenin konteynerine (header ile aynı, panelden ayarlanan --container) eşit; başlık puntosu bu genişliğe sığacak şekilde hesaplanır */
  --bed-w: min(100%, var(--container, 1320px));
  --bed-fs: clamp(3.6rem, min(12.6vw, 19.5vh, (var(--container, 1320px) - 2 * var(--bed-gut)) / 7.6), 16rem); --bed-top: calc(var(--mg-head) + clamp(2.2rem, 5.5vh, 4rem));
  /* Yükseklik kompozisyona bağlı: uzun/dikey ekranlarda boş alan açılmaz, sonraki bölüm hemen başlar */
  position: relative; isolation: isolate; overflow: clip; min-height: clamp(720px, 100svh, calc(var(--mg-head) + var(--bed-fs) * 5.5)); color: var(--text); }
.mg-bed:not(.is-js) { --p: 1; --pt: 1; }

/* Tabla: perspektifte ızgara, ortada ısınan halka */
.mg-bed__floor { position: absolute; z-index: -2; left: -30%; right: -30%; bottom: -14%; height: 64%; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center bottom;
  transform: perspective(760px) rotateX(64deg) translateX(calc(var(--mx) * -14px)); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 22%, transparent 88%); mask-image: linear-gradient(to top, #000 22%, transparent 88%); }
.mg-bed__floor i { position: absolute; left: 50%; bottom: 26%; width: 34%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  border: 1px solid rgb(var(--accent-rgb) / .35); box-shadow: 0 0 80px 10px rgb(var(--accent-rgb) / .18), inset 0 0 60px rgb(var(--accent-rgb) / .14);
  opacity: calc(.35 + var(--p) * .65); }
.mg-bed__glow { position: absolute; z-index: -1; left: 50%; top: calc(var(--bed-top) + var(--bed-fs) * 2.45); /* sahnenin merkezi */ width: min(980px, 90vw); aspect-ratio: 1.4; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .26), transparent 70%); filter: blur(10px); opacity: calc(.4 + var(--p) * .6); }

/* Dev başlık: çizgi hâli + katman katman dolan iç */
.mg-bed__type { position: absolute; left: 0; right: 0; top: var(--bed-top); margin: 0 auto; width: var(--bed-w); box-sizing: border-box;
  padding-inline: var(--bed-gut); font-size: var(--bed-fs); line-height: .84; letter-spacing: -.062em; font-weight: 600;
  pointer-events: none; }
/* Katman sandviçi: ilk satırlar nesnenin ARKASINDA, son satır (vurgu) ÖNÜNDE */
.mg-bed__line { position: relative; z-index: 1; display: block; white-space: nowrap; transform: translate3d(calc(var(--mx) * (8px + var(--l) * 6px)), calc(var(--sy) * -9vh), 0); }
.mg-bed__line:last-child { z-index: 3; }
.mg-bed__line--2 { text-align: right; }
.mg-bed__line--3 { padding-left: 16%; }
.mg-bed__w { position: relative; display: inline-block; color: transparent; -webkit-text-stroke: 1.4px color-mix(in srgb, var(--text) 32%, transparent); }
.mg-bed__w::after { content: attr(data-w); position: absolute; inset: 0; color: var(--text); -webkit-text-stroke: 0;
  clip-path: inset(calc((1 - var(--pt)) * 100%) 0 0 0); }
.mg-bed__w.is-acc { -webkit-text-stroke-color: rgb(var(--accent-rgb) / .55); }
.mg-bed__w.is-acc::after { color: rgb(var(--accent-rgb)); }
/* her satır kendi katman aralığında dolar: alttan yukarı, satır satır */
.mg-bed__line--1 .mg-bed__w::after { clip-path: inset(calc((1 - clamp(0, var(--pt) * 3 - 2, 1)) * 100%) 0 0 0); }
.mg-bed__line--2 .mg-bed__w::after { clip-path: inset(calc((1 - clamp(0, var(--pt) * 3 - 1, 1)) * 100%) 0 0 0); }
.mg-bed__line--3 .mg-bed__w::after { clip-path: inset(calc((1 - clamp(0, var(--pt) * 3, 1)) * 100%) 0 0 0); }
.mg-bed__type:not(:has(.mg-bed__line--3)) .mg-bed__line--1 .mg-bed__w::after { clip-path: inset(calc((1 - clamp(0, var(--pt) * 2 - 1, 1)) * 100%) 0 0 0); }
.mg-bed__type:not(:has(.mg-bed__line--3)) .mg-bed__line--2 .mg-bed__w::after { clip-path: inset(calc((1 - clamp(0, var(--pt) * 2, 1)) * 100%) 0 0 0); }

/* Telemetri */
.mg-bed__hud { position: absolute; z-index: 3; left: 0; right: 0; margin-inline: auto; max-width: var(--bed-w); display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mg-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); pointer-events: none; }
.mg-bed__hud--top { top: calc(var(--mg-head) + .9rem); }
.mg-bed__hud b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.mg-bed__rec { display: inline-block; width: 7px; height: 7px; margin-right: .55rem; border-radius: 50%; background: rgb(var(--accent-rgb)); vertical-align: 1px; box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .2); }
.mg-bed.is-printing .mg-bed__rec { animation: mgBedRec 1s steps(2, jump-none) infinite; }
.mg-bed.is-done .mg-bed__rec { background: #10b981; box-shadow: 0 0 0 4px rgb(16 185 129 / .2); }
@keyframes mgBedRec { 50% { opacity: .25; } }

/* Sahne: ürün tablada */
.mg-bed__stage { position: absolute; z-index: 2; left: 50%; top: calc(var(--bed-top) + var(--bed-fs) * .95); width: min(calc(var(--bed-fs) * 3), 46vw); aspect-ratio: 1;
  translate: -50% 0; transform: perspective(1200px) rotateY(calc(var(--mx) * 5deg)) rotateX(calc(var(--my) * -3deg)) scale(calc(1 - var(--sy) * .08));
  transition: transform .9s var(--ease-out); }
.mg-bed__shadow { position: absolute; left: 12%; right: 12%; bottom: -5%; height: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 3, 14, .5), rgba(6, 3, 14, .16) 60%, transparent); filter: blur(8px); transform: scaleX(calc(.35 + var(--p) * .65)); opacity: calc(.3 + var(--p) * .7); }
[data-theme="light"] .mg-bed__shadow { background: radial-gradient(closest-side, rgba(46, 24, 92, .26), rgba(46, 24, 92, .08) 60%, transparent); }
.mg-bed__obj { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), transform .9s var(--ease-out), visibility 0s .9s; }
.mg-bed__obj.is-on { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out), visibility 0s; }
.mg-bed__obj.is-out { opacity: 0; visibility: visible; transform: translateY(-9%) scale(.96); }
.mg-bed__obj.is-out .mg-bed__print { clip-path: none; }
.mg-bed__print { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--p)) * 100%) -40% -40% -40%); } /* yalnızca üst kenar (baskı cephesi) keser; gölgeler yanda/altta kesilmez */
.mg-bed__print img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 34px 40px rgba(8, 3, 20, .5)); -webkit-user-drag: none; user-select: none; }
.mg-bed__obj.is-tile .mg-bed__print { inset: 6% 15% 1%; }
.mg-bed__obj.is-tile .mg-bed__print img { border-radius: 26px; box-shadow: 0 50px 90px -40px rgba(8, 3, 20, .55), 0 0 0 1px var(--border); background: var(--mg-studio); }
[data-theme="light"] .mg-bed__obj.is-tile .mg-bed__print img { box-shadow: 0 50px 90px -46px rgba(40, 20, 80, .35), 0 0 0 1px var(--border); }
.mg-bed__obj.is-tile .mg-bed__print img { object-fit: cover; filter: none; }

/* Baskı cephesi + nozul */
.mg-bed__front { position: absolute; left: -8%; right: -8%; bottom: calc(var(--p) * 100%); height: 2px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.mg-bed__front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(var(--accent-rgb)) 18%, #fff 50%, rgb(var(--accent-rgb)) 82%, transparent); box-shadow: 0 0 18px 2px rgb(var(--accent-rgb) / .7); }
.mg-bed.is-printing .mg-bed__front { opacity: 1; }
.mg-bed__nozzle { position: absolute; bottom: 1px; left: calc(50% + var(--nx) * 40%); width: 34px; height: 44px; translate: -50% 0; }
.mg-bed__nozzle::before { content: ""; position: absolute; left: 2px; right: 2px; top: 0; height: 26px; border-radius: 8px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.mg-bed__nozzle::after { content: ""; position: absolute; left: 50%; top: 26px; width: 14px; height: 16px; translate: -50% 0; clip-path: polygon(0 0, 100% 0, 64% 100%, 36% 100%); background: linear-gradient(#cfc7dd, #8f87a3); }
.mg-bed__nozzle i { position: absolute; left: 50%; bottom: -4px; width: 10px; height: 10px; translate: -50% 0; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 4px rgb(var(--accent-rgb) / .9), 0 0 30px 10px rgb(var(--accent-rgb) / .5); }

/* Nesneye bağlı etiketler (nesneyle birlikte döner/ölçeklenir) */
.mg-bed__tag { position: absolute; display: flex; align-items: center; gap: .6rem; font-family: var(--mg-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
  opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); pointer-events: none; }
.mg-bed__tag > span { padding: .35rem .55rem; border-radius: 8px; background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mg-bed__tag b { display: block; color: var(--text); font-weight: 500; letter-spacing: .04em; }
.mg-bed__tag i { width: clamp(28px, 5vw, 76px); height: 1px; background: color-mix(in srgb, var(--text) 32%, transparent); position: relative; }
.mg-bed__tag i::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--accent-rgb)); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .2); }
.mg-bed__tag--l { right: 86%; top: 12%; }
.mg-bed__tag--l i::after { right: -3px; }
.mg-bed__tag--r { left: 86%; top: 76%; }
.mg-bed__tag--r i::after { left: -3px; }
.mg-bed.is-done .mg-bed__obj.is-on .mg-bed__tag { opacity: 1; transform: none; }
.mg-bed.is-done .mg-bed__obj.is-on .mg-bed__tag--r { transition-delay: .15s; }

/* Alt bölge: metin + ürün kartı */
.mg-bed__foot { position: absolute; z-index: 3; left: 0; right: 0; margin-inline: auto; max-width: var(--bed-w); bottom: clamp(1.5rem, 4.5vh, 3rem); display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; pointer-events: none; }
.mg-bed__foot > * { pointer-events: auto; }
.mg-bed__copy { max-width: min(34ch, 30vw); }
.mg-bed__lead { margin-top: .9rem; font-size: .95rem; line-height: 1.6; color: var(--text-soft); }
.mg-bed__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; margin-top: 1.3rem; }
@media (max-height: 820px) and (min-width: 1024px) { .mg-bed__lead { display: none; } }
.mg-bed__card { display: grid; gap: .7rem; width: min(300px, 26vw); }
.mg-bed__chip { display: grid; gap: .3rem; padding: 1rem 1.1rem 1.05rem; border-radius: 20px; color: inherit; text-decoration: none; transition: transform .4s var(--ease-out), border-color .3s; }
.mg-bed__chip:hover { transform: translateY(-3px); border-color: rgb(var(--accent-rgb) / .5); }
.mg-bed__chip-k { font-family: var(--mg-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); min-height: 1em; }
.mg-bed__chip b { font-size: 1.08rem; letter-spacing: -.02em; line-height: 1.2; }
.mg-bed__chip-f { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.mg-bed__chip-f em { display: inline-flex; align-items: center; gap: .35rem; font-style: normal; font-size: .8rem; font-weight: 600; }
.mg-bed__chip-f em svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.mg-bed__chip:hover em svg { transform: translateX(3px); }
.mg-bed__card.is-swap .mg-bed__chip > * { opacity: 0; transform: translateY(4px); }
.mg-bed__chip > * { transition: opacity .25s, transform .25s; }
.mg-bed__dots { display: flex; gap: .4rem; }
.mg-bed__dots button { flex: 1; display: grid; gap: .4rem; padding: .3rem 0; border: 0; background: none; color: var(--text-muted); cursor: pointer; font-family: var(--mg-mono); font-size: .6rem; letter-spacing: .1em; text-align: left; }
.mg-bed__dots button i { display: block; height: 2px; border-radius: 2px; background: var(--border-strong); overflow: hidden; position: relative; }
.mg-bed__dots button i::after { content: ""; position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.mg-bed__dots button.is-on { color: var(--text); }
.mg-bed__dots button.is-on i::after { transform: scaleX(var(--t, 0)); }
.mg-bed__bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 2px; background: var(--border); }
.mg-bed__bar i { display: block; height: 100%; background: rgb(var(--accent-rgb)); transform: scaleX(var(--p)); transform-origin: left; }

/* ── Tablet & mobil: akış düzeni (yazı → tabla → kart → metin) */
@media (max-width: 1023px) {
  .mg-bed { min-height: 0; padding: calc(var(--mg-head) + 2.6rem) 0 2.25rem; display: flex; flex-direction: column; }
  .mg-bed__type { position: relative; top: auto; width: auto; font-size: clamp(3.4rem, 19.5vw, 10rem); padding-inline: 1.1rem; }
  .mg-bed__hud, .mg-bed__foot { max-width: none; }
  .mg-bed__line { transform: translate3d(0, calc(var(--sy) * -4vh), 0); }
  .mg-bed__line--3 { padding-left: 9%; }
  .mg-bed__w { -webkit-text-stroke-width: 1px; }
  .mg-bed__hud--top { top: calc(var(--mg-head) + .7rem); font-size: .56rem; letter-spacing: .1em; }
  .mg-bed__hud-r { display: none; }
  .mg-bed__stage { position: relative; left: auto; top: auto; bottom: auto; translate: none; width: min(84vw, 52svh, 560px); margin: -16vw auto 0; transform: scale(calc(1 - var(--sy) * .05)); }
  .mg-bed__tag { font-size: .56rem; }
  .mg-bed__tag i { width: 18px; }
  .mg-bed__tag--l { display: none; }
  .mg-bed__tag--l i::after { right: auto; left: -3px; }
  .mg-bed__tag--l i { display: none; }
  .mg-bed__tag--r { left: auto; right: -2%; top: auto; bottom: 6%; }
  .mg-bed__tag--r i { display: none; }
  .mg-bed__floor { height: 46%; bottom: 16%; background-size: 44px 44px; }
  .mg-bed__glow { top: 52%; }
  .mg-bed__foot { position: relative; bottom: auto; flex-direction: column-reverse; align-items: stretch; gap: 1.6rem; margin-top: 1.4rem; }
  .mg-bed__copy { max-width: none; }
  .mg-bed__card { width: auto; max-width: 480px; }
  .mg-bed__lead { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-bed__stage, .mg-bed__line, .mg-bed__floor { transform: none !important; transition: none !important; }
  .mg-bed__obj, .mg-bed__tag { transition: none !important; }
  .mg-bed.is-printing .mg-bed__rec { animation: none; }
}
