/* ===========================================================================
   Great Toner | Bayi Paneli Stilleri
   Genel site (style.css) ile birlikte yüklenir; renk değişkenlerini paylaşır.
   Sınıflar "b-" önekiyle, public stillerle çakışmaz.
   =========================================================================== */
.bayi-page { background: var(--mist); min-height: 100vh; display: flex; flex-direction: column; }

/* Üst marka çubuğu */
.b-bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.b-bar__inner { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.b-bar__brand img { display: block; height: 40px; width: auto; }
.b-bar__right { display: flex; align-items: center; gap: 12px; }
.b-bar__user { font-size: .9rem; color: var(--slate); }
.b-bar__user b { color: var(--navy); }

/* İçerik */
.b-main { flex: 1; padding: 28px 0 50px; }
.b-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; }
.b-welcome { margin: 0 0 4px; }
.b-sub { color: var(--slate); margin: 0 0 24px; }

.b-grid { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }

.b-info dl { margin: 0; }
.b-info dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); margin-top: 12px; }
.b-info dt:first-child { margin-top: 0; }
.b-info dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); word-break: break-word; }

/* Fiyat listesi */
.b-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.b-toolbar h2 { margin: 0; font-size: 1.1rem; }
.b-search { padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; min-width: 240px; }
.b-search:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,74,143,.12); }

.b-table-wrap { overflow-x: auto; }
.b-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.b-table th, .b-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.b-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); background: var(--mist); white-space: nowrap; }
.b-table tbody tr:hover { background: #f7fafd; }
.b-thumb { width: 46px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--mist); display: block; }
.b-thumb--empty { display: flex; align-items: center; justify-content: center; font-size: .62rem; color: var(--slate); }
.b-price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.b-muted { color: var(--slate); }
.b-instock { color: #1c6b3f; font-weight: 600; }
.b-out { color: #a3322a; font-weight: 600; }
.b-empty { text-align: center; padding: 36px 16px; color: var(--slate); }

/* Bayi menüsü */
.b-nav { display: flex; gap: 6px; margin-left: 6px; }
.b-nav a { padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--slate); }
.b-nav a:hover { background: var(--mist); color: var(--navy); text-decoration: none; }
.b-nav a.active { background: var(--ink); color: #fff; }
.b-nav__count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 10px; background: var(--signal); color: #fff; font-size: .72rem; line-height: 18px; text-align: center; }
.b-nav a.active .b-nav__count { background: #fff; color: var(--ink); }

/* Sepet / sipariş ortak öğeler */
.b-qty { width: 76px; padding: 8px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; text-align: center; }
.b-qty:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,74,143,.12); }
.b-right { text-align: right; }
.b-totals { display: flex; justify-content: flex-end; gap: 18px; align-items: baseline; padding: 16px 4px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.b-totals .lbl { color: var(--slate); }
.b-totals .amt { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.b-cart-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.b-stale { opacity: .6; }

/* Tutar özeti */
.b-sumtable { max-width: 360px; margin-left: auto; margin-top: 16px; }
.b-sumline { display: flex; justify-content: space-between; padding: 6px 0; color: var(--slate); }
.b-sumline span:last-child { color: var(--navy); font-weight: 600; }
.b-sumline--total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-size: 1.05rem; }
.b-sumline--total span:last-child { color: var(--ink); font-weight: 800; font-size: 1.25rem; }

/* Ödeme yöntemi seçimi */
.b-pay { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 10px; cursor: pointer; }
.b-pay:hover { border-color: var(--signal); }
.b-pay input { margin-top: 3px; }

/* Banka hesabı kartı (Havale/EFT) */
.b-bank { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: var(--mist); }
.b-bank__name { font-weight: 700; color: var(--navy); }
.b-bank__iban { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.02rem; letter-spacing: .03em; color: var(--ink); margin-top: 4px; }
.b-bank__meta { color: var(--slate); font-size: .85rem; margin-top: 2px; }

/* Durum rozetleri */
.b-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .76rem; font-weight: 700; }
.b-badge--info  { background: #e6f0fb; color: var(--ink); }
.b-badge--warn  { background: #fff7e6; color: #8a6100; }
.b-badge--ok    { background: #e7f6ee; color: #1c6b3f; }
.b-badge--bad   { background: #fdecea; color: #a3322a; }
.b-badge--muted { background: #eef2f6; color: var(--slate); }

@media (max-width: 900px) {
    .b-grid { grid-template-columns: 1fr; }
    .b-bar__inner { flex-wrap: wrap; row-gap: 8px; }
    .b-bar__user { display: none; }
    .b-nav { order: 3; width: 100%; justify-content: center; }
    .b-wrap { padding: 0 16px; }
}
