/* Make2Go — mağaza sayfaları: kategori / arama / indirim listeleri + OpenCart'ın varsayılan sayfaları
   (sepet, ödeme, hesap, iletişim, site haritası, 404). Varsayılan şablonların yapısı korunur; yalnız görünüm değişir. */

/* ===== Listeleme sayfaları ===== */
.m2g-shop { max-width: 1850px; margin: 0 auto; padding: 18px 40px 70px; }
.m2g-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--m2g-muted); margin-bottom: 18px; }
.m2g-crumbs a { color: var(--m2g-muted); text-decoration: none; }
.m2g-crumbs a:hover { color: var(--m2g-ink); text-decoration: underline; text-decoration-color: var(--m2g-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.m2g-crumbs a:last-child { color: var(--m2g-ink); font-weight: 600; }

.m2g-shop__head { margin: 0 0 26px; }
.m2g-shop__head .m2g-eyebrow { background: #fef3c7; color: #92400e; }
.m2g-shop__head h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 12px 0 0; }
.m2g-shop__desc { max-width: 720px; margin-top: 12px; color: #4b5563; font-size: 16px; line-height: 1.6; }
.m2g-shop__desc p:last-child { margin: 0; }

.m2g-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: -6px 0 24px; }
.m2g-chip { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--m2g-line); font-weight: 600; font-size: 14px; color: var(--m2g-ink) !important; text-decoration: none !important; transition: border-color .2s, background .2s; }
.m2g-chip:hover { border-color: #000; background: #fef9c3; }

.m2g-shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; margin-bottom: 24px; border-top: 1px solid var(--m2g-line); border-bottom: 1px solid var(--m2g-line); }
.m2g-shop__count { margin: 0; font-weight: 600; color: #4b5563; }
.m2g-select { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; font-size: 14px; color: #4b5563; }
.m2g-select select { height: 42px; padding: 0 38px 0 16px; border: 1.5px solid var(--m2g-line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 15px center;
  -webkit-appearance: none; appearance: none; font: 600 14px var(--m2g-font); color: var(--m2g-ink); cursor: pointer; }
.m2g-select select:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgb(255 214 10 / .6); }

.m2g-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.m2g-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.m2g-card__img { display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #f3f4f6; }
.m2g-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.m2g-card:hover .m2g-card__img img { transform: scale(1.04); }
.m2g-card__fav { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--m2g-ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgb(0 0 0 / .12); cursor: pointer; transition: transform .15s, color .15s; }
.m2g-card__fav:hover { transform: scale(1.08); color: #e11d48; }
.m2g-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 2px 0; flex: 1; }
.m2g-card__name { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0; }
.m2g-card__name a { color: var(--m2g-ink) !important; text-decoration: none !important; display: block; padding: 2px 0; }
.m2g-card__name a:hover { text-decoration: underline !important; text-decoration-color: var(--m2g-yellow) !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }
.m2g-card__price { margin: 0; font-size: 16px; font-weight: 700; }
.m2g-card__price ins { text-decoration: none; color: #b91c1c; }
.m2g-card__price del { color: var(--m2g-muted); font-weight: 500; margin-left: 4px; }
.m2g-card__btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; height: 46px; border-radius: 999px; border: 1.5px solid #000; background: var(--m2g-yellow);
  color: #000 !important; font-weight: 700; font-size: 15px; text-decoration: none !important; box-shadow: 0 3px 0 rgb(0 0 0 / .3); transition: transform .15s, box-shadow .15s; }
.m2g-card__btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgb(0 0 0 / .3); }

.m2g-shop__pages { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; color: var(--m2g-muted); font-size: 14px; }
.m2g-shop__pages p { margin: 0; }
.m2g-shop__empty { padding: 50px 24px; text-align: center; border: 1.5px dashed var(--m2g-line); border-radius: 18px; }
.m2g-shop__empty p { font-size: 17px; color: #4b5563; max-width: 520px; margin: 0 auto 20px; }

.m2g-find { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 30px; }
.m2g-find input[type=search], .m2g-find select { height: 50px; border: 1.5px solid var(--m2g-line); border-radius: 999px; padding: 0 20px; font: 500 16px var(--m2g-font); color: var(--m2g-ink); background: #fff; }
.m2g-find input[type=search] { flex: 1 1 320px; min-width: 0; }
.m2g-find select { flex: 0 1 240px; -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center; }
.m2g-find input:focus, .m2g-find select:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgb(255 214 10 / .6); }
.m2g-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: 14px; color: #4b5563; cursor: pointer; min-height: 44px; }
.m2g-check input { width: 18px; height: 18px; margin: 0; accent-color: #000; }

@media (max-width: 1199px) { .m2g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .m2g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; } }
@media (max-width: 749px) {
  .m2g-shop { padding: 12px 15px 50px; }
  .m2g-card__name { font-size: 15px; }
  .m2g-card__price { font-size: 15px; }
  .m2g-card__btn { height: 44px; font-size: 14px; }
  .m2g-card__fav { top: 8px; right: 8px; width: 40px; height: 40px; }
  .m2g-shop__bar { flex-wrap: wrap; }
  .m2g-find select, .m2g-find .m2g-btn { flex: 1 1 100%; }
}

/* ===== Sayfalama (OpenCart .pagination) ===== */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pagination > li > a, .pagination > li > span { float: none; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; margin: 0 !important;
  border: 1.5px solid var(--m2g-line) !important; border-radius: 999px !important; color: var(--m2g-ink); font-weight: 600; background: #fff; }
.pagination > li > a:hover { border-color: #000 !important; background: #fef9c3; color: #000; }
.pagination > .active > span, .pagination > .active > span:hover { background: var(--m2g-ink) !important; border-color: var(--m2g-ink) !important; color: #fff !important; }

/* ===== OpenCart varsayılan sayfaları (sepet, ödeme, hesap, iletişim…) ===== */
#m2g-main > .container { width: auto; max-width: 1850px; padding: 18px 40px 70px; }
#m2g-main > .container > .row { margin-left: -12px; margin-right: -12px; }
#m2g-main .breadcrumb { background: none; border: 0; padding: 0; margin: 0 0 18px; font-size: 13px; }
#m2g-main .breadcrumb > li { text-shadow: none; padding: 0; }
#m2g-main .breadcrumb > li + li:before { content: "/"; color: var(--m2g-muted); padding: 0 8px; }
#m2g-main .breadcrumb > li:after { display: none; }
#m2g-main .breadcrumb a { color: var(--m2g-muted); }
#m2g-main .breadcrumb > li:last-child a { color: var(--m2g-ink); font-weight: 600; }
#m2g-main #content > h1, #m2g-main #content > h2:first-child { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 24px; }
#m2g-main #content h2 { font-weight: 700; }
#m2g-main legend { font-family: var(--m2g-font); font-weight: 700; font-size: 20px; border-bottom-color: var(--m2g-line); padding-bottom: 10px; }

/* formlar */
#m2g-main .form-control { height: 48px; border: 1.5px solid var(--m2g-line); border-radius: 12px; box-shadow: none; font-family: var(--m2g-font); font-size: 16px; color: var(--m2g-ink); }
#m2g-main textarea.form-control { height: auto; min-height: 120px; }
#m2g-main .form-control:focus { border-color: #000; box-shadow: 0 0 0 3px rgb(255 214 10 / .6); }
#m2g-main .control-label { font-weight: 600; }
#m2g-main .input-group .form-control:first-child { border-radius: 12px 0 0 12px; }
#m2g-main .input-group-btn:last-child > .btn { height: 48px; border-radius: 0 12px 12px 0; }
#m2g-main .input-group-btn .btn + .btn { margin-left: -1px; }
#m2g-main .has-error .form-control { border-color: #dc2626; }
#m2g-main .text-danger { color: #dc2626; }

/* butonlar */
#m2g-main .btn { font-family: var(--m2g-font); font-weight: 700; text-shadow: none; background-image: none; box-shadow: none; }
#m2g-main .btn-primary, #m2g-main .btn-default, #m2g-main .btn-danger, #m2g-main .btn-info { min-height: 46px; padding: 11px 24px; border-radius: 999px; }
#m2g-main .btn-primary { box-shadow: 0 3px 0 rgb(0 0 0 / .3); }
#m2g-main .btn-default { background: #fff; border: 1.5px solid var(--m2g-ink); color: var(--m2g-ink); }
#m2g-main .btn-default:hover { background: #fef9c3; }
#m2g-main .btn-danger { background: #fff; border: 1.5px solid #fecaca; color: #dc2626; }
#m2g-main .btn-danger:hover { background: #fef2f2; border-color: #dc2626; }
#m2g-main .btn-info { background: var(--m2g-ink); border-color: var(--m2g-ink); color: #fff; }
#m2g-main .input-group-btn .btn-primary, #m2g-main .input-group-btn .btn-danger { min-height: 48px; padding: 0 16px; border-radius: 0; box-shadow: none; }
#m2g-main .input-group-btn:last-child > .btn:last-child { border-radius: 0 12px 12px 0; }
#m2g-main .buttons { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 24px 0; }
#m2g-main .buttons::before, #m2g-main .buttons::after { display: none; }
#m2g-main .buttons .pull-left, #m2g-main .buttons .pull-right { float: none !important; }
#m2g-main .buttons .pull-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* tablolar */
#m2g-main .table-responsive { border: 1.5px solid var(--m2g-line); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
#m2g-main .table-bordered { border: 0; margin: 0; }
#m2g-main .table-bordered > thead > tr > td, #m2g-main .table-bordered > tbody > tr > td, #m2g-main .table-bordered > tfoot > tr > td { border: 0; border-bottom: 1px solid var(--m2g-line); padding: 14px 16px; vertical-align: middle; }
#m2g-main .table-bordered > thead > tr > td { background: #f9fafb; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #4b5563; }
#m2g-main .table-bordered > tbody > tr:last-child > td { border-bottom: 0; }
#m2g-main .img-thumbnail { border-radius: 12px; border: 0; background: #f3f4f6; padding: 0; }
#m2g-main small { color: var(--m2g-muted); }

/* açılır paneller (kupon, kargo hesabı, ödeme adımları) */
#m2g-main .panel { border: 1.5px solid var(--m2g-line); border-radius: 16px; box-shadow: none; overflow: hidden; margin-bottom: 12px; }
#m2g-main .panel-default > .panel-heading { background: #fff; border: 0; padding: 0; }
#m2g-main .panel-title { font-family: var(--m2g-font); font-size: 17px; font-weight: 700; }
#m2g-main .panel-title > a, #m2g-main .panel-title { display: block; padding: 16px 20px; color: var(--m2g-ink); text-decoration: none; }
#m2g-main .panel-title > a { padding: 0; }
#m2g-main .panel-title > a:hover { color: #000; }
#m2g-main .panel-body { border-top: 1px solid var(--m2g-line) !important; padding: 20px; }
#m2g-main .panel-group .panel + .panel { margin-top: 12px; }

/* uyarılar */
#m2g-main .alert, #alert .alert { border-radius: 14px; border-width: 1.5px; font-weight: 500; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-success a { color: #065f46; font-weight: 700; text-decoration: underline; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* sepet */
#checkout-cart #content > h1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#checkout-cart form .table-bordered td:nth-child(3) { display: none; } /* ürün kodu */
#checkout-cart .input-group.btn-block { max-width: 190px !important; }
#checkout-cart .input-group .form-control { text-align: center; }
#checkout-cart .col-sm-4.col-sm-offset-8 .table-bordered td { font-size: 16px; }
#checkout-cart .col-sm-4.col-sm-offset-8 .table-bordered tr:last-child td { font-weight: 800; font-size: 19px; }
#checkout-cart .table-bordered > tbody > tr > td.text-right:last-child { font-weight: 700; }
/* ödeme adımları: sıradaki adım soluk */
#checkout-checkout .panel-heading .panel-title:not(:has(a)) { color: #9ca3af; }
#checkout-checkout .radio label, #checkout-checkout .checkbox label { min-height: 28px; font-weight: 500; }
#checkout-checkout .radio input, #checkout-checkout .checkbox input { accent-color: #000; }

/* sol/sağ sütun modülleri (hesap menüsü vb.) */
#m2g-main .list-group-item { border-color: var(--m2g-line); font-weight: 500; }
#m2g-main .list-group-item:first-child { border-radius: 14px 14px 0 0; }
#m2g-main .list-group-item:last-child { border-radius: 0 0 14px 14px; }
#m2g-main a.list-group-item:hover, #m2g-main .list-group-item.active { background: #fef9c3; border-color: var(--m2g-line); color: #000; }

/* hesap sayfaları: bağlantı listeleri kart gibi */
#account-account #content > ul.list-unstyled { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 30px; }
#account-account #content > ul.list-unstyled a { display: flex; align-items: center; min-height: 52px; padding: 0 18px; border: 1.5px solid var(--m2g-line); border-radius: 14px; font-weight: 600; text-decoration: none; }
#account-account #content > ul.list-unstyled a:hover { border-color: #000; background: #fef9c3; }
#account-login .well { background: #fff; border: 1.5px solid var(--m2g-line); border-radius: 18px; box-shadow: none; padding: 28px; min-height: 0; }
#account-login .well h2 { margin-top: 0; }

@media (max-width: 749px) {
  #m2g-main > .container { padding: 12px 15px 50px; }
  #m2g-main .buttons { flex-direction: column-reverse; align-items: stretch; }
  #m2g-main .buttons .pull-right { margin-left: 0; flex-direction: column; align-items: stretch; }
  #m2g-main .buttons .btn { width: 100%; }
  #checkout-cart .col-sm-4.col-sm-offset-8 { margin-left: 0; }
  /* sepet satırları telefonda kart: görsel | ad + seçenekler / adet / toplam */
  #checkout-cart form .table-responsive { overflow: visible; }
  #checkout-cart form .table-bordered, #checkout-cart form .table-bordered tbody { display: block; width: 100%; }
  #checkout-cart form .table-bordered thead { display: none; }
  #checkout-cart form .table-bordered tbody tr { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; padding: 16px; border-bottom: 1px solid var(--m2g-line); }
  #checkout-cart form .table-bordered tbody tr:last-child { border-bottom: 0; }
  #checkout-cart form .table-bordered tbody td { display: block; border: 0 !important; padding: 0 !important; text-align: left !important; }
  #checkout-cart form .table-bordered td:nth-child(1) { grid-column: 1; grid-row: 1 / span 3; }
  #checkout-cart form .table-bordered td:nth-child(n+2) { grid-column: 2; }
  #checkout-cart form .table-bordered td:nth-child(5) { display: none; }
  #checkout-cart form .table-bordered td:nth-child(6) { font-size: 17px; }
  #checkout-cart form .table-bordered td small { display: block; overflow-wrap: anywhere; margin-top: 2px; }
  #checkout-cart form .table-bordered td:nth-child(2) br { display: none; }
}
