/* Make2Go — diğer projelerden (NEFESSİ / Shine) alınan ek özellikler. Elle yazılır.
   duyuru bandı · ürün sayfasında sabit "Sepete ekle" çubuğu · sepette "bunu da tasarla" · 404 sayfası */

/* ---- duyuru bandı: mesajlar sağdan sola kayar (m2g-more.js iki kopya dizer) ---- */
.m2g-ann { position: relative; height: 36px; overflow: hidden; background: #FFD60A; color: #000; font-family: 'Jost', sans-serif; font-size: 14px; line-height: 36px; white-space: nowrap; }
.m2g-ann__track { display: flex; width: max-content; will-change: transform; }
.m2g-ann.is-run .m2g-ann__track { animation: m2g-ann var(--m2g-ann-dur, 30s) linear infinite; }
.m2g-ann:hover .m2g-ann__track, .m2g-ann:focus-within .m2g-ann__track { animation-play-state: paused; }
@keyframes m2g-ann { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.m2g-ann__msg { display: inline-block; padding: 0 28px; color: #000 !important; text-decoration: none !important; }
.m2g-ann__msg::after { content: '✦'; margin-left: 56px; font-size: 11px; opacity: .55; }
.m2g-ann__msg strong { font-weight: 700; }
.m2g-ann__msg:hover strong { text-decoration: underline; }
@media (max-width: 749px) { .m2g-ann { height: 32px; line-height: 32px; font-size: 12.5px; } .m2g-ann__msg { padding: 0 16px; } .m2g-ann__msg::after { margin-left: 32px; } }
/* kullanıcı isteği: sistemde "animasyonları azalt" açık olsa da kayar (üstüne gelince / dokununca durur) */
/* ---- ürün sayfası: sabit sepete ekle çubuğu ---- */
.m2g-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0)); background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 -8px 24px rgb(0 0 0 / .10); font-family: 'Jost', sans-serif; transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.m2g-sticky.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.m2g-sticky__img { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #f3f4f6; }
.m2g-sticky__txt { flex: 1; min-width: 0; }
.m2g-sticky__title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 600; color: #111827; }
.m2g-sticky__meta { display: block; font-size: 13px; color: #6b7280; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.m2g-sticky__btn { flex: none; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: #111827; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.m2g-sticky__btn:hover { background: #000; }
@media (max-width: 899px) {
  .m2g-sticky { bottom: calc(54px + env(safe-area-inset-bottom, 0)); padding-bottom: 10px; }
  .m2g-sticky__img { display: none; }
  .m2g-sticky__btn { padding: 0 18px; font-size: 14px; }
}
@media (min-width: 900px) { .m2g-sticky { padding-left: max(40px, calc((100% - 1200px) / 2)); padding-right: max(40px, calc((100% - 1200px) / 2)); } }

/* ---- sepet: bunu da tasarla ---- */
.m2g-xsell { margin: 32px 0 8px; font-family: 'Jost', sans-serif; }
.m2g-xsell h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.m2g-xsell__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.m2g-xsell__card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border: 1.5px solid #e5e7eb; border-radius: 14px; background: #fff; color: #111827 !important; text-align: center; text-decoration: none !important; transition: border-color .15s ease, transform .15s ease; }
.m2g-xsell__card:hover { border-color: #111827; transform: translateY(-2px); }
.m2g-xsell__card img { width: 88px; height: 88px; object-fit: contain; }
.m2g-xsell__card strong { font-size: 15px; }
.m2g-xsell__card span { font-size: 13px; color: #6b7280; }
@media (max-width: 599px) { .m2g-xsell__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- 404 ---- */
.m2g-404 { max-width: 720px; margin: 0 auto; padding: 56px 16px 72px; text-align: center; font-family: 'Jost', sans-serif; }
.m2g-404__num { margin: 0; font-size: clamp(88px, 18vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: #111827; }
.m2g-404__num span { display: inline-block; color: #FFD60A; -webkit-text-stroke: 3px #111827; }
.m2g-404 h1 { margin: 12px 0 8px; font-size: 26px; font-weight: 700; }
.m2g-404 p { margin: 0 auto 24px; max-width: 480px; color: #4b5563; font-size: 16px; }
.m2g-404__search { display: flex; gap: 8px; max-width: 460px; margin: 0 auto 24px; }
.m2g-404__search input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 1.5px solid #d1d5db; border-radius: 999px; font: inherit; }
.m2g-404__search button, .m2g-404__btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border: 2px solid #111827; border-radius: 999px; background: #111827; color: #fff !important; font: inherit; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.m2g-404__btn--alt { background: #fff; color: #111827 !important; }
.m2g-404__btn--y { background: #FFD60A; color: #000 !important; }
.m2g-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---- sepet: adet + güncelle, 2 cm sağında "Sil" ---- */
.m2g-qty-row { display: flex; align-items: center; }
.m2g-qty-row .input-group { flex: none; }
#m2g-main .m2g-qty-row .input-group-btn:last-child > .btn { border-radius: 0 12px 12px 0; }
.m2g-del { flex: none; margin-left: 2cm; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1.5px solid transparent; border-radius: 999px; background: none; color: #6b7280; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.m2g-del:hover, .m2g-del:focus-visible { background: #dc2626; border-color: #dc2626; color: #fff; text-decoration: none; transform: scale(1.06); box-shadow: 0 6px 16px rgb(220 38 38 / .35); outline: none; }
.m2g-del:active { transform: scale(.97); }
@media (max-width: 767px) { .m2g-del { margin-left: 16px; } }

/* ---- geri sayım bandı ---- */
.m2g-cd { position: relative; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 44px; background: #111827; color: #fff; font-family: 'Jost', sans-serif; font-size: 14px; text-align: center; }
.m2g-cd[hidden] { display: none; }
.m2g-cd a { color: #fff !important; text-decoration: none !important; }
.m2g-cd a:hover .m2g-cd__go { text-decoration: underline; }
.m2g-cd__time { display: inline-block; margin: 0 6px; font-variant-numeric: tabular-nums; }
.m2g-cd__time b { display: inline-block; min-width: 26px; padding: 1px 4px; border-radius: 6px; background: #FFD60A; color: #000; font-weight: 800; }
.m2g-cd__go { font-weight: 700; color: #FFD60A; }
.m2g-cd__x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .7; }
.m2g-cd__x:hover { opacity: 1; }
@media (max-width: 749px) { .m2g-cd { font-size: 12.5px; padding: 6px 36px 6px 12px; } .m2g-cd__go { display: none; } .m2g-cd__time b { min-width: 22px; } }

/* ---- ürün resmi büyüteci ---- */
.m2g-zoom-host { overflow: hidden; }
.m2g-zoom-host [data-main-img] { transition: transform .25s ease, opacity .2s; cursor: zoom-in; }
.m2g-zoom-host [data-main-img].is-zoom { transform: scale(1.9); }

/* ---- teslimat şehri + tahmini teslim ---- */
.m2g-city { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border: 1.5px dashed #d1d5db; border-radius: 12px; font-size: 14px; color: #374151; }
.m2g-city svg { flex: none; margin-top: 2px; color: #111827; }
.m2g-city__txt { display: flex; flex-direction: column; gap: 2px; }
.m2g-city__btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: #111827; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.m2g-city__btn:hover { color: #000; background: #FFD60A; }
.m2g-city__eta strong { color: #111827; }
.m2g-cityd { position: fixed; inset: 0; z-index: 2200; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Jost', sans-serif; }
.m2g-cityd[hidden] { display: none; }
.m2g-cityd__overlay { position: absolute; inset: 0; background: rgb(0 0 0 / .5); }
.m2g-cityd__box { position: relative; display: flex; flex-direction: column; width: min(460px, 100%); max-height: min(640px, 90vh); padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgb(0 0 0 / .3); }
.m2g-cityd__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.m2g-cityd__head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.m2g-cityd__x { width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; }
.m2g-cityd__q { height: 46px; padding: 0 16px; margin-bottom: 10px; border: 1.5px solid #d1d5db; border-radius: 999px; font: inherit; font-size: 15px; }
.m2g-cityd__q:focus { outline: none; border-color: #111827; }
.m2g-cityd__list { flex: 1; overflow: auto; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.m2g-cityd__list [hidden] { display: none; }
.m2g-cityd__list button { width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.m2g-cityd__list button:hover, .m2g-cityd__list button:focus-visible { background: #f3f4f6; outline: none; }
.m2g-cityd__list button.is-on { background: #FFD60A; font-weight: 700; }
.m2g-cityd__empty { margin: 8px 0 0; color: #6b7280; }
@media (max-width: 599px) { .m2g-cityd { align-items: flex-end; padding: 0; } .m2g-cityd__box { border-radius: 20px 20px 0 0; max-height: 80vh; } }

/* ---- başlık: hesabım / favoriler fareyle üstüne gelince açılır (sepet: çekmece, m2g-bag.js) ---- */
@media (hover: hover) and (pointer: fine) {
  .m2g-header .m2g-dd:not(#cart):hover > .dropdown-menu, .m2g-wdd:hover > .m2g-wdd__menu, .m2g-wdd:focus-within > .m2g-wdd__menu { display: block; }
  .m2g-header .m2g-dd:not(#cart)::after, .m2g-wdd::after { content: ''; position: absolute; left: -10px; right: -10px; top: 100%; height: 14px; }
}
.m2g-wdd { position: relative; display: inline-flex; }
.m2g-wdd__menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); z-index: 1050; width: 320px; max-width: calc(100vw - 24px); padding: 12px; border-radius: 12px; background: #fff; color: #111827; box-shadow: 0 18px 48px rgb(0 0 0 / .22); font-family: 'Jost', sans-serif; }
.m2g-wdd__h { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.m2g-wdd__list { list-style: none; margin: 0; padding: 0; }
.m2g-wdd__list a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; color: #111827 !important; text-decoration: none !important; }
.m2g-wdd__list a:hover { background: #fef9c3; }
.m2g-wdd__list img { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #f3f4f6; }
.m2g-wdd__list span { min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.m2g-wdd__list b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.m2g-wdd__list small { color: #6b7280; font-size: 13px; }
.m2g-wdd__empty { margin: 0 0 10px; color: #6b7280; font-size: 14px; }
.m2g-wdd__all { display: flex; align-items: center; justify-content: center; height: 42px; margin-top: 8px; border-radius: 999px; background: #111827; color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.m2g-wdd__all:hover { background: #000; }

/* ---- bilgi sayfaları (Üyelik Sözleşmesi vb.) ---- */
.m2g-legal { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; font-family: 'Jost', sans-serif; color: #1f2937; }
.m2g-legal__crumbs { font-size: 13px; color: #6b7280; margin-bottom: 16px; }
.m2g-legal__crumbs a { color: #6b7280; }
.m2g-legal h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: #111827; }
.m2g-legal h2 { margin: 32px 0 10px; font-size: 20px; font-weight: 700; color: #111827; }
#m2g-main .m2g-legal p, .m2g-legal li { font-size: 16px; line-height: 1.7; }
.m2g-legal ol, .m2g-legal ul { padding-left: 22px; }
.m2g-legal li { margin-bottom: 6px; }
#m2g-main .m2g-legal .m2g-legal__meta { color: #6b7280; font-size: 14px; }

/* ---- sabit butonlar: WhatsApp + başa dön ---- */
.m2g-fab { position: fixed; right: 18px; bottom: 22px; z-index: 1030; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px; }
.m2g-fab a, .m2g-fab button { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 8px 22px rgb(0 0 0 / .22); transition: transform .2s ease, opacity .25s ease, box-shadow .2s; }
.m2g-fab a:hover, .m2g-fab button:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 26px rgb(0 0 0 / .28); }
.m2g-fab__wa { background: #25D366; color: #fff !important; }
.m2g-fab__wa svg { width: 30px; height: 30px; }
.m2g-fab__top { background: #111827; color: #FFD60A; }
.m2g-fab__top svg { width: 22px; height: 22px; }
.m2g-fab__top[hidden] { display: inline-flex !important; opacity: 0; pointer-events: none; transform: translateY(10px); }
.m2g-sticky.is-on ~ .m2g-fab, body.m2g-has-sticky .m2g-fab { bottom: 96px; }
@media (max-width: 899px) {
  .m2g-fab { right: 12px; bottom: calc(66px + env(safe-area-inset-bottom, 0)); gap: 10px; }
  .m2g-fab a, .m2g-fab button { width: 48px; height: 48px; }
  body.m2g-has-sticky .m2g-fab { bottom: calc(140px + env(safe-area-inset-bottom, 0)); }
}

/* ---------------------------------------------------------------- Sırala açılır menüsü (m2g-more.js) */
.m2g-sdd__native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.m2g-sdd { position: relative; display: inline-flex; }
.m2g-sdd__btn { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; cursor: pointer; white-space: nowrap; }
.m2g-sdd__btn:focus { outline: none; }
.m2g-sdd__btn:focus-visible { outline: 2px solid #111; outline-offset: 3px; border-radius: 4px; }
.m2g-sdd__label { overflow: hidden; text-overflow: ellipsis; max-width: 24ch; }
.m2g-sdd__chev { flex: none; transition: transform .2s; }
.m2g-sdd.is-open .m2g-sdd__chev { transform: rotate(180deg); }
/* çerçevesi kendi üzerinde olanlar (favoriler, OpenCart kategori / arama / indirim) */
.m2g-sdd--box .m2g-sdd__btn { min-height: 40px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: 14px; color: #111; transition: border-color .15s; }
.m2g-sdd--box .m2g-sdd__btn:hover, .m2g-sdd--box.is-open .m2g-sdd__btn { border-color: #111; }
.m2g-sdd--pill .m2g-sdd__btn { min-height: 42px; padding: 0 16px; border-width: 1.5px; border-radius: 999px; }
/* koleksiyon: çerçeve etiketin (gsc__btn) üzerinde */
.gsc__sort { cursor: pointer; }
.gsc__sort:has(.m2g-sdd.is-open) { box-shadow: 0 0 0 3px rgb(17 17 17 / .08); }
.m2g-sdd__menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 230px; max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 12px 32px rgb(0 0 0 / .12), 0 2px 6px rgb(0 0 0 / .06); text-align: left; animation: m2g-sdd-in .14s ease-out; }
.gsc__sort .m2g-sdd__menu { right: -11px; }
.m2g-sdd__menu:focus { outline: none; }
@keyframes m2g-sdd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.m2g-sdd__opt { display: flex; align-items: center; gap: 8px; padding: 9px 12px 9px 8px; border-radius: 6px; font-size: 14px; font-weight: 400; line-height: 1.3; color: #111; cursor: pointer; white-space: nowrap; }
.m2g-sdd__opt.is-active { background: #f3f4f6; }
.m2g-sdd__opt.is-selected { font-weight: 600; }
.m2g-sdd__tick { flex: none; visibility: hidden; color: #111; }
.m2g-sdd__opt.is-selected .m2g-sdd__tick { visibility: visible; }
@media (max-width: 749px) {
  .m2g-sdd__label { max-width: 14ch; }
  .m2g-sdd__menu { min-width: 210px; }
}

/* Kural: her sayfada tek gezinme öğesi = üstteki "‹ önceki sayfa" bağlantısı (footer.twig zinciri). Yol satırları (breadcrumb) gizli;
   işaretleme yerinde kalır (bazı OpenCart betikleri uyarıları .breadcrumb'ın altına ekliyor). */
.gpd__crumbs, .m2g-crumbs, .m2g-legal__crumbs, #m2g-main ul.breadcrumb { display: none !important; }

/* ---- Ürün adları: footer linklerindeki animasyon (üzerine gelince soldan sağa uzayan sarı alt çizgi) ----
   Ana sayfa ürün satırları + Müşteri Tasarımları (.gsp__title), koleksiyon (.gsc__name), stil galerisi (.gsg__product-title). */
.gsp__title, .gsc__name, .gsg__product-title {
  width: fit-content; max-width: 100%; text-decoration: none !important;
  background: linear-gradient(var(--m2g-yellow, #ffd60a), var(--m2g-yellow, #ffd60a)) no-repeat 0 100% / 0 6px;
  transition: background-size .25s ease;
}
.gsp__title:hover, .gsp__title:focus-visible, .gsc__name:hover, .gsc__name:focus-visible,
.gsg__product-title:hover, .gsg__product-title:focus-visible { background-size: 100% 6px; text-decoration: none !important; color: #000; }
.gsp__info .gsp__title { align-self: center; }

/* admin › Menüler: link ikonu (emoji) ve mobil menüde açılır olmayan doğrudan bağlantı */
.gnav__ico { display: inline-flex; justify-content: center; width: 1.4em; margin-right: 6px; font-size: 1.05em; line-height: 1; }
.gnav-m__direct { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--m2g-line); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: inherit !important; text-decoration: none !important; }

/* sayaç satırındaki "Mobil uygulamayı indir" bağlantısı (Site Ayarları › Geri sayım bandı) */
.m2g-cd { flex-wrap: wrap; column-gap: 14px; row-gap: 4px; }
.m2g-cd__app { display: inline-flex; align-items: center; padding: 2px 12px; border: 1px solid #FFD60A; border-radius: 999px; color: #FFD60A !important; font-weight: 700; white-space: nowrap; text-decoration: none !important; }
.m2g-cd__app:hover { background: #FFD60A; color: #111827 !important; }
@media (display-mode: standalone) { .m2g-cd__app, .m2g-appline { display: none !important; } }
