:root {
  --brand: var(--blue);
  --brand-koyu: #0A3FC0;
  --brand-acik: var(--tint);
  --mg-ink: var(--ink);
  --mg-gri: var(--muted);
  --mg-cizgi: var(--line);
}

.mg-wrap { background: var(--soft); padding: 34px 0 80px; }

.mg-kat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .mg-kat-grid { grid-template-columns: repeat(3, 1fr); } }
.mg-kat-kart { display: block; background: #fff; border: 1px solid var(--mg-cizgi); border-radius: 20px; overflow: hidden; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.mg-kat-kart:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -20px rgba(10,18,51,.3); border-color: var(--brand); }
.mg-kat-gorsel { aspect-ratio: 1/1; background: var(--brand-acik); display: grid; place-items: center; overflow: hidden; }
.mg-kat-gorsel img { width: 100%; height: 100%; object-fit: cover; }
.mg-kat-gorsel i { font-size: 30px; color: var(--brand); opacity: .5; }
.mg-kat-bilgi { padding: 12px 14px; }
.mg-kat-bilgi h3 { font-size: 15.5px; font-weight: 800; color: var(--mg-ink); margin: 0 0 2px; line-height: 1.3; }
.mg-kat-bilgi span { font-size: 12.5px; color: var(--mg-gri); }

.mg-kat-aciklama { color: var(--mg-gri); font-size: 15px; margin: 0 0 22px; max-width: 700px; }
.mg-urun-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.mg-urun-kart { display: block; background: #fff; border: 1px solid var(--mg-cizgi); border-radius: 20px; overflow: hidden; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.mg-urun-kart:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(10,18,51,.28); border-color: var(--brand); }
.mg-urun-gorsel { aspect-ratio: 1/1; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.mg-urun-gorsel img { width: 100%; height: 100%; object-fit: cover; }
.mg-urun-gorsel i { font-size: 30px; color: #cfd0da; }
.mg-urun-alt { padding: 13px 15px; }
.mg-urun-ad { font-weight: 600; color: var(--mg-ink); font-size: 15px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-urun-fiyat { color: var(--brand-koyu); font-weight: 800; font-size: 16px; }

.mg-detay { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.mg-galeri-ana { position: relative; aspect-ratio: 1/1; background: #fff; border: 1px solid var(--mg-cizgi); border-radius: 22px; overflow: hidden; display: grid; place-items: center; }
.mg-stok-rozet { position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0; box-shadow: 0 2px 10px rgba(28, 34, 51, .14); }
.mg-galeri-ana img { width: 100%; height: 100%; object-fit: contain; }
.mg-gorsel-yok i { font-size: 54px; color: #d3d4de; }
.mg-galeri-kucuk { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.mg-galeri-kucuk button { width: 72px; height: 72px; border-radius: 14px; border: 2px solid var(--mg-cizgi); background: #fff; overflow: hidden; cursor: pointer; padding: 0; transition: border-color .15s ease; }
.mg-galeri-kucuk button.aktif { border-color: var(--brand); }
.mg-galeri-kucuk img { width: 100%; height: 100%; object-fit: cover; }

.mg-kat-etiket { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); text-decoration: none; margin-bottom: 10px; }
.mg-kat-etiket:hover { text-decoration: underline; }
.mg-detay-bilgi h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--mg-ink); margin: 0 0 14px; line-height: 1.25; }
.mg-fiyat { font-size: 28px; font-weight: 800; color: var(--brand-koyu); margin-bottom: 6px; }
.mg-kdv { font-size: 13px; color: var(--mg-gri); margin: 0 0 16px; }
.mg-kdv strong { color: var(--ink-2); font-weight: 700; }
.mg-stok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.mg-stok.var { background: #eafaf0; color: #1f9d55; }
.mg-stok.yok { background: #fdeaea; color: #e05252; }
.mg-aciklama { color: var(--mg-gri); font-size: 15.5px; line-height: 1.75; }
.mg-aciklama p { margin: 0 0 12px; }
.mg-aciklama p:last-child { margin-bottom: 0; }
.mg-aciklama ul, .mg-aciklama ol { margin: 0 0 12px; padding-left: 22px; }
.mg-aciklama li { margin-bottom: 5px; }
.mg-aciklama h2, .mg-aciklama h3, .mg-aciklama h4, .mg-aciklama h5, .mg-aciklama h6 { color: var(--mg-ink); margin: 16px 0 8px; font-weight: 700; line-height: 1.35; }
.mg-aciklama a { color: var(--brand); font-weight: 600; }
.mg-aciklama strong, .mg-aciklama b { color: var(--mg-ink); }
.mg-aciklama blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--brand); background: var(--brand-acik); border-radius: 0 8px 8px 0; }

.mg-ekle-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.mg-adet { display: flex; flex-direction: column; gap: 5px; }
.mg-adet label { font-size: 12px; font-weight: 700; color: var(--mg-gri); }
.mg-adet input { width: 80px; padding: 11px 12px; border: 1px solid var(--mg-cizgi); border-radius: 14px; font-size: 15px; text-align: center; }
.mg-btn-ekle { display: inline-flex; align-items: center; gap: 9px; background: var(--brand); color: #fff; border: 0; padding: 13px 26px; border-radius: 14px; font-weight: 700; font-size: 15.5px; cursor: pointer; box-shadow: 0 12px 26px -12px rgba(11,87,245,.6); transition: transform .15s ease, background .15s ease; }
.mg-btn-ekle:hover { transform: translateY(-2px); background: var(--brand-koyu); }
.mg-btn-ekle:disabled { background: #c7c9d6; box-shadow: none; cursor: not-allowed; transform: none; }

.mg-bos { text-align: center; padding: 60px 20px; color: var(--mg-gri); }
.mg-bos i { font-size: 46px; color: var(--brand); opacity: .4; margin-bottom: 16px; display: block; }
.mg-bos a { color: var(--brand); font-weight: 700; }

@media (max-width: 820px) {
  .mg-detay { grid-template-columns: 1fr; gap: 26px; }
}

.breadcrumb_area .breadcrumb_content a { color: var(--edge); transition: color .15s ease; }
.breadcrumb_area .breadcrumb_content a:hover { color: #ffffff; text-decoration: underline; }

.mg-layout { display: grid; grid-template-columns: 248px 1fr; gap: 28px; align-items: start; }
.mg-icerik { min-width: 0; }
.mg-yan { position: sticky; top: calc(var(--header-h) + 18px); background: #fff; border: 1px solid var(--mg-cizgi); border-radius: 20px; padding: 14px; }
.mg-yan-baslik { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--mg-gri); padding: 4px 10px 12px; display: flex; align-items: center; gap: 7px; }
.mg-yan-baslik i { color: var(--brand); }
.mg-yan-liste { display: flex; flex-direction: column; gap: 2px; }
.mg-yan-link { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .14s ease, color .14s ease; }
.mg-yan-link i { font-size: 13px; color: #9aa1b4; width: 16px; text-align: center; flex: 0 0 auto; }
.mg-yan-link > span:not(.mg-yan-adet) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-yan-adet { flex: 0 0 auto; min-width: 22px; text-align: center; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--line-2); color: var(--muted); }
.mg-yan-link:hover .mg-yan-adet { background: #fff; color: var(--brand); }
.mg-yan-link.aktif .mg-yan-adet { background: rgba(255,255,255,.22); color: #fff; }
.mg-yan-link:hover { background: var(--brand-acik); color: var(--brand-koyu); }
.mg-yan-link:hover i { color: var(--brand); }
.mg-yan-link.aktif { background: var(--brand); color: #fff; }
.mg-yan-link.aktif i { color: #fff; }
.mg-yan-ulas { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 11px; border-radius: 12px; background: var(--brand-acik); color: var(--brand-koyu); font-weight: 700; font-size: 13.5px; text-decoration: none; transition: background .14s ease, color .14s ease; }
.mg-yan-ulas:hover { background: var(--brand); color: #fff; }

.mg-geri { display: inline-flex; align-items: center; gap: 7px; color: var(--mg-gri); font-size: 13.5px; font-weight: 600; text-decoration: none; margin-bottom: 16px; transition: color .14s ease; }
.mg-geri:hover { color: var(--brand); }

.mg-detay-alt { margin-top: 26px; background: #fff; border: 1px solid var(--mg-cizgi); border-radius: 20px; padding: 22px 24px; }
.mg-alt-baslik { font-size: 17px; font-weight: 800; color: var(--mg-ink); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line-2); }
.mg-ozellik-tablo { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.mg-ozellik-tablo tr { border-bottom: 1px solid var(--line-2); }
.mg-ozellik-tablo tr:last-child { border-bottom: 0; }
.mg-ozellik-tablo th { text-align: left; font-weight: 700; color: var(--mg-ink); padding: 11px 16px 11px 0; width: 38%; vertical-align: top; }
.mg-ozellik-tablo td { color: var(--mg-gri); padding: 11px 0; vertical-align: top; }

.mg-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 14px; font-size: 14.5px; font-weight: 600; box-shadow: 0 12px 34px -10px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; z-index: 9999; max-width: 90vw; text-align: center; }
.mg-toast.goster { opacity: 1; transform: translateX(-50%) translateY(0); }
.mg-toast.ok { background: #17663b; }
.mg-toast.hata { background: #b4242f; }

@media (max-width: 767px) {
  .mg-kat-grid, .mg-urun-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .mg-kat-bilgi { padding: 10px 12px; }
  .mg-kat-bilgi h3 { font-size: 14px; }
  .mg-kat-bilgi span { font-size: 11.5px; }
  .mg-urun-alt { padding: 11px 12px; }
  .mg-urun-ad { font-size: 13.5px; }
  .mg-urun-fiyat { font-size: 15px; }
}

@media (max-width: 900px) {
  .mg-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mg-yan { position: static; padding: 8px; min-width: 0; }
  .mg-yan-baslik { display: none; }
  .mg-yan-liste { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 2px; min-width: 0; -webkit-overflow-scrolling: touch; }
  .mg-yan-link { white-space: nowrap; flex: 0 0 auto; padding: 7px 12px; background: var(--soft); font-size: 13px; }
  .mg-yan-link i { display: none; }
  .mg-yan-adet { min-width: 18px; font-size: 11px; padding: 1px 6px; }
  .mg-yan-ulas { display: none; }
  .mg-detay-alt { padding: 18px 16px; }
}

.mg-secenek-not { font-size: 12.5px; color: var(--mg-gri); margin: 10px 0 0; display: flex; align-items: center; gap: 6px; }
.mg-secenek-not i { color: var(--brand); }
.mg-modal[hidden] { display: none; }
.mg-modal { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mg-modal-arka { position: absolute; inset: 0; background: rgba(15, 18, 30, .55); }
.mg-modal-kutu { position: relative; background: #fff; border-radius: 22px; width: 100%; max-width: 480px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); }
.mg-modal-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--mg-cizgi); }
.mg-modal-bas h3 { font-size: 17px; font-weight: 800; color: var(--mg-ink); margin: 0; }
.mg-modal-kapat { width: 34px; height: 34px; border: 0; background: var(--soft); border-radius: 11px; color: var(--muted); cursor: pointer; font-size: 15px; flex: 0 0 auto; }
.mg-modal-kapat:hover { background: var(--line-2); color: var(--ink); }
.mg-modal-govde { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.mg-alan-etiket { display: block; font-size: 13.5px; font-weight: 700; color: var(--mg-ink); margin-bottom: 7px; }
.mg-zorunlu { color: #e05252; }
.mg-alan-input { width: 100%; padding: 10px 12px; border: 1px solid var(--mg-cizgi); border-radius: 12px; font-size: 14.5px; font-family: inherit; }
.mg-alan-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,87,245, .12); }
textarea.mg-alan-input { resize: vertical; }
.mg-secenekler { display: flex; flex-direction: column; gap: 8px; }
.mg-secenek { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--mg-cizgi); border-radius: 12px; cursor: pointer; transition: border-color .14s ease, background .14s ease; }
.mg-secenek:hover { border-color: var(--brand); background: var(--brand-acik); }
.mg-secenek input { accent-color: var(--brand); width: 17px; height: 17px; flex: 0 0 auto; }
.mg-secenek-metin { flex: 1; font-size: 14.5px; color: var(--ink-2); }
.mg-secenek-fiyat { font-size: 13px; font-weight: 700; color: var(--brand-koyu); flex: 0 0 auto; }
.mg-modal-alt { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--mg-cizgi); background: var(--soft); }
.mg-modal-alt .mg-adet { flex-direction: column; }
.mg-modal-toplam { text-align: right; }
.mg-modal-toplam span { display: block; font-size: 12px; color: var(--mg-gri); }
.mg-modal-toplam strong { font-size: 22px; font-weight: 800; color: var(--brand-koyu); }
.mg-modal-hata { margin: 0; padding: 10px 20px 0; color: #c0392b; font-size: 13.5px; font-weight: 600; }
.mg-modal-hata[hidden] { display: none; }
.mg-modal-ekle { margin: 14px 20px 20px; width: calc(100% - 40px); justify-content: center; }

.mg-iade { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.mg-iade i { flex: 0 0 auto; margin-top: 2px; font-size: 15px; }
.mg-iade a { font-weight: 600; text-decoration: none; }
.mg-iade a:hover { text-decoration: underline; }
.mg-iade-var { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.mg-iade-var i { color: #059669; }
.mg-iade-var a { color: #047857; }
.mg-iade-yok { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.mg-iade-yok i { color: #ea580c; }
.mg-iade-yok a { color: #c2410c; }
