/* ============================================================
   ATES MTL B2B — Dark Navy Tema
   ============================================================ */
:root {
  --b-body:    #0d0f1a;
  --b-card:    #141728;
  --b-nav:     #090b18;
  --b-accent:  #BA3627;
  --b-accent2: #e05a47;
  --b-border:  rgba(255,255,255,.08);
  --b-border2: rgba(255,255,255,.13);
  --b-text:    #e2e8f0;
  --b-muted:   #7a8599;
  color-scheme: dark;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--b-body);
  color: var(--b-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #090b18; }
::-webkit-scrollbar-thumb { background: rgba(186,54,39,.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(186,54,39,.6); }

/* ── Üst Bar (Topbar) ──────────────────────────────────────── */
.b2b-topbar {
  background: #06070d;
  border-bottom: 1px solid rgba(186,54,39,.2);
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1;
}
.b2b-topbar .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 38px;
}
.b2b-topbar-left,
.b2b-topbar-right {
  display: flex;
  align-items: center;
}
.b2b-topbar-left  { gap: 0; }
.b2b-topbar-right { gap: 0; }
.b2b-topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.07);
  transition: color .15s, background .15s;
  cursor: default;
}
.b2b-topbar-item:first-child { border-left: 1px solid rgba(255,255,255,.07); }
a.b2b-topbar-item { cursor: pointer; }
a.b2b-topbar-item:hover {
  color: #e05a47;
  background: rgba(186,54,39,.06);
  text-decoration: none;
}
.b2b-topbar-item i {
  font-size: 1.05rem;
  color: #BA3627;
  line-height: 1;
  flex-shrink: 0;
}
a.b2b-topbar-item:hover i { color: #e05a47; }
.b2b-topbar-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 100%;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  font-size: 1.15rem;
  border-left: 1px solid rgba(255,255,255,.07);
  transition: color .15s, background .15s;
}
.b2b-topbar-social:last-child { border-right: 1px solid rgba(255,255,255,.07); }
.b2b-topbar-social:hover {
  color: var(--sc, #e05a47);
  background: rgba(255,255,255,.05);
  text-decoration: none;
}
/* Sipariş Takip — Topbar */
.b2b-st-topbar {
  display: flex;
  align-items: center;
  height: 100%;
  border-left: 1px solid rgba(255,255,255,.07);
  padding: 0 8px 0 10px;
  gap: 5px;
}
.b2b-st-tb-label { color: #e05a47; font-size: .95rem; line-height: 1; flex-shrink: 0; }
.b2b-st-tb-inp {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  padding: 3px 8px;
  color: #fff;
  font-size: .73rem;
  width: 150px;
  outline: none;
  transition: border-color .15s;
  height: 24px;
}
.b2b-st-tb-inp:focus { border-color: rgba(186,54,39,.5); }
.b2b-st-tb-inp::placeholder { color: rgba(255,255,255,.22); }
.b2b-st-tb-btn {
  background: rgba(186,54,39,.2);
  border: 1px solid rgba(186,54,39,.35);
  color: #e05a47;
  border-radius: 5px;
  width: 24px;
  height: 24px;
  font-size: .8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.b2b-st-tb-btn:hover { background: rgba(186,54,39,.45); }
.b2b-st-tb-btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 768px) { .b2b-st-topbar { display: none; } }

/* ── Navbar ────────────────────────────────────────────────── */
.b2b-navbar {
  background: var(--b-nav) !important;
  border-bottom: 1px solid rgba(186,54,39,.3);
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
  padding: 0 0;
  min-height: 85px;
}
.b2b-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
  padding: 0 20px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--b-text);
}
.brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg,#BA3627,#e05a47);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #fff;
  box-shadow: 0 2px 10px rgba(186,54,39,.4);
}
.brand-txt {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.brand-b2b {
  background: rgba(186,54,39,.22);
  color: #e05a47;
  border: 1px solid rgba(186,54,39,.35);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  vertical-align: middle;
  margin-left: 4px;
}
.b2b-nav-link {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .14s, background .14s;
}
.b2b-nav-link:hover, .b2b-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.b2b-nav-link.active { color: #e05a47; }
.b2b-nav-link .la-shopping-cart { font-size: 25px; }
.b2b-user-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  font-size: .84rem;
  padding: 6px 12px;
  border-radius: 8px;
}
.b2b-user-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.cart-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--b-accent); color: #fff;
  font-size: .6rem; font-weight: 800;
  border-radius: 10px; padding: 1px 5px;
  min-width: 16px; text-align: center;
  line-height: 1.4; display: inline-flex;
  align-items: center; justify-content: center;
}

/* ── Dropdown ──────────────────────────────────────────────── */
.b2b-dropdown {
  background: #1a1e35 !important;
  border: 1px solid var(--b-border2) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.45) !important;
  min-width: 200px;
}
.b2b-dropdown .dropdown-item {
  color: var(--b-text);
  font-size: .875rem;
  padding: 8px 16px;
  display: flex; align-items: center;
}
.b2b-dropdown .dropdown-item:hover { background: rgba(186,54,39,.12); color: #fff; }
.b2b-dropdown .dropdown-divider { border-color: var(--b-border); }

/* ── Sayfa layout ──────────────────────────────────────────── */
.b2b-page { flex: 1 0 auto; padding: 28px 0 40px; }
.b2b-wrap { /* kullanılır içerik blokları için */ }

/* ── Login / Register ──────────────────────────────────────── */
.b2b-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--b-body);
  background-image: radial-gradient(ellipse at 20% 10%, rgba(186,54,39,.1) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 90%, rgba(41,128,185,.06) 0%, transparent 50%);
}
.b2b-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-top: 3px solid var(--b-accent);
  border-radius: 14px;
  padding: 36px 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.b2b-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.b2b-auth-logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg,#BA3627,#e05a47);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #fff;
  box-shadow: 0 4px 16px rgba(186,54,39,.4);
}
.b2b-auth-logo-txt h2 {
  font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0; line-height: 1;
}
.b2b-auth-logo-txt small {
  font-size: .78rem; color: #e05a47; font-weight: 700; letter-spacing: .1em;
}
.b2b-auth-card h5 {
  font-size: 1.05rem; font-weight: 700; color: #fff;
  margin-bottom: 6px; text-align: center;
}
.b2b-auth-card .sub {
  color: var(--b-muted); font-size: .84rem; text-align: center; margin-bottom: 24px;
}

/* ── Form kontrolleri ──────────────────────────────────────── */
.b2b-form-group { margin-bottom: 16px; }
.b2b-form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}
.b2b-input {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--b-text);
  font-size: .9rem;
  padding: 10px 14px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  font-family: inherit;
}
.b2b-input:focus {
  border-color: var(--b-accent);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(186,54,39,.18);
  color: #fff;
}
.b2b-input::placeholder { color: rgba(255,255,255,.42); }
select.b2b-input { color-scheme: dark; }
select { color-scheme: dark; }
select option { background: #141728; color: #dde4f0; }
.b2b-input-icon { position: relative; }
.b2b-input-icon .b2b-input { padding-left: 40px; }
.b2b-input-icon .bi-ic {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.3); font-size: 1.1rem; pointer-events: none;
}

/* ── Butonlar ──────────────────────────────────────────────── */
.btn-b2b-primary {
  width: 100%;
  background: var(--b-accent);
  border: none;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  padding: 11px;
  border-radius: 9px;
  cursor: pointer;
  letter-spacing: .02em;
  box-shadow: 0 3px 12px rgba(186,54,39,.35);
  transition: background .15s, box-shadow .15s;
}
.btn-b2b-primary:hover {
  background: #9c2d20;
  box-shadow: 0 4px 18px rgba(186,54,39,.5);
}
.btn-b2b-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-b2b-secondary {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--b-text);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .14s;
}
.btn-b2b-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── Alert ─────────────────────────────────────────────────── */
.b2b-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 16px;
  display: none;
}
.b2b-alert.show { display: block; }
.b2b-alert.err  { background: rgba(186,54,39,.15); border: 1px solid rgba(186,54,39,.3); color: #f4a49a; }
.b2b-alert.ok   { background: rgba(26,107,60,.15);  border: 1px solid rgba(39,174,96,.3);  color: #6ee7a8; }

/* ── Katalog grid ──────────────────────────────────────────── */
.b2b-hero {
  background: linear-gradient(135deg,rgba(186,54,39,.12),rgba(41,128,185,.08));
  border: 1px solid rgba(186,54,39,.18);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 28px;
}
.b2b-hero h3 { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.b2b-hero p  { color: var(--b-muted); font-size: .9rem; margin: 0; }

/* ── Katalog Banner ─────────────────────────────────────────── */
.kat-banner-img-wrap {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  text-decoration: none;
}
.kat-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.b2b-search-bar {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 16px 10px 42px;
  color: var(--b-text);
  font-size: .9rem;
  width: 100%;
  max-width: 340px;
  outline: none;
  font-family: inherit;
}
.b2b-search-bar:focus { border-color: var(--b-accent); box-shadow: 0 0 0 3px rgba(186,54,39,.15); }
.b2b-search-wrap { position: relative; display: inline-block; }
.b2b-search-wrap .b2b-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.3); font-size: 1.05rem; }
.b2b-cat-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
  justify-content: center;
}
.cat-pill {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--b-border2);
  background: transparent;
  color: var(--b-muted);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .14s;
}
.cat-pill:hover { border-color: rgba(186,54,39,.4); color: #e05a47; }
.cat-pill.active { background: rgba(186,54,39,.18); border-color: rgba(186,54,39,.4); color: #e05a47; }

/* ── Ürün kartı ────────────────────────────────────────────── */
.urun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.urun-card {
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
}
.urun-card:hover {
  border-color: rgba(186,54,39,.35);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transform: translateY(-2px);
}
.urun-img-wrap {
  height: 160px;
  background: #0d0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--b-border);
}
.urun-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.urun-img-wrap .no-img {
  font-size: 3rem;
  color: rgba(255,255,255,.1);
}
.urun-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.urun-kat {
  font-size: .7rem; font-weight: 700;
  color: #e05a47;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
}
.urun-ad {
  font-size: .92rem; font-weight: 700; color: #fff;
  margin-bottom: 6px; line-height: 1.3;
}
.urun-kod { font-size: .75rem; color: var(--b-muted); margin-bottom: 8px; }
.urun-detay {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.urun-chip {
  font-size: .7rem; background: rgba(255,255,255,.06);
  border: 1px solid var(--b-border);
  border-radius: 5px; padding: 2px 7px;
  color: rgba(255,255,255,.55);
}
.urun-stok {
  font-size: .75rem; margin-bottom: 12px;
}
.stok-ok  { color: #4ade80; }
.stok-low { color: #fbbf24; }
.stok-no  { color: #f87171; }
.urun-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.urun-fiyat { font-size: 1.05rem; font-weight: 800; color: #fff; }
.urun-fiyat small { font-size: .7rem; color: var(--b-muted); font-weight: 400; }
.btn-sepet {
  background: var(--b-accent);
  border: none;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .14s;
  white-space: nowrap;
}
.btn-sepet:hover { background: #9c2d20; }
.btn-sepet:disabled { opacity: .4; cursor: not-allowed; }

/* ── Qty kontrol ───────────────────────────────────────────── */
.qty-ctrl {
  display: flex; align-items: center; gap: 4px;
}
.qty-btn {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  color: #fff;
  font-size: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.qty-btn:hover { background: rgba(186,54,39,.25); }
.qty-inp {
  width: 44px;
  text-align: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 4px 6px;
  font-family: inherit;
}
.qty-inp:focus { outline: none; border-color: var(--b-accent); }

/* ── Sepet sayfası ─────────────────────────────────────────── */
.sepet-card {
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: 12px;
  overflow: hidden;
}
.sepet-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--b-border);
}
.sepet-item:last-child { border-bottom: none; }
.sepet-urun-img {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.sepet-urun-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.sepet-info { flex: 1; min-width: 0; }
.sepet-ad { font-size: .9rem; font-weight: 700; color: #fff; }
.sepet-kod { font-size: .75rem; color: var(--b-muted); }
.sepet-fiyat { font-size: .9rem; font-weight: 700; color: #fff; white-space: nowrap; }
.btn-sil-sepet {
  background: transparent; border: none;
  color: rgba(255,255,255,.3); font-size: 1rem;
  cursor: pointer; padding: 4px;
  transition: color .12s;
}
.btn-sil-sepet:hover { color: #f87171; }
.sepet-ozet {
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: 12px;
  padding: 20px;
}
.sepet-ozet-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--b-border);
  font-size: .875rem; color: var(--b-muted);
}
.sepet-ozet-row:last-of-type { border-bottom: none; }
.sepet-ozet-row.total { color: #fff; font-weight: 800; font-size: 1.05rem; padding-top: 14px; }
.sepet-bos {
  text-align: center; padding: 60px 20px;
}
.sepet-bos i { font-size: 4rem; color: rgba(255,255,255,.1); margin-bottom: 16px; }
.sepet-bos p { color: var(--b-muted); margin-bottom: 20px; }

/* ── Sipariş geçmişi ───────────────────────────────────────── */
.sp-kart {
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.sp-hdr {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--b-border);
  background: rgba(255,255,255,.025);
  flex-wrap: wrap;
}
.sp-no { font-size: .88rem; font-weight: 800; color: #fff; }
.sp-tarih { font-size: .78rem; color: var(--b-muted); }
.sp-durum {
  font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  margin-left: auto;
}
.sp-durum.beklemede { background: rgba(180,130,0,.15); color: #fcd34d; }
.sp-durum.hazirlaniyor { background: rgba(41,128,185,.15); color: #93c5fd; }
.sp-durum.tamamlandi { background: rgba(30,107,60,.15); color: #4ade80; }
.sp-durum.iptal { background: rgba(146,43,33,.15); color: #f87171; }
.sp-body { padding: 14px 18px; }
.sp-kalem {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .84rem;
}
.sp-kalem:last-child { border-bottom: none; }
.sp-kalem-ad { color: rgba(255,255,255,.75); }
.sp-kalem-qty { color: var(--b-muted); font-size: .78rem; }
.sp-kalem-fiyat { color: #fff; font-weight: 600; }
.sp-toplam {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding-top: 12px; font-size: .95rem; font-weight: 800; color: #fff;
}

/* ── Boş durum ─────────────────────────────────────────────── */
.b2b-empty {
  text-align: center; padding: 64px 20px;
  color: var(--b-muted);
}
.b2b-empty i { font-size: 3.5rem; color: rgba(255,255,255,.1); display: block; margin-bottom: 16px; }
.b2b-empty p { font-size: .9rem; margin-bottom: 20px; }

/* ── Toast ─────────────────────────────────────────────────── */
#b2b-toast-wrap {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.b2b-toast {
  padding: 11px 16px; border-radius: 9px;
  font-size: .84rem; font-weight: 600; color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  max-width: 300px; animation: toastUp .2s ease;
}
@keyframes toastUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.b2b-toast.ok  { background: rgba(30,107,60,.95);  border: 1px solid rgba(74,222,128,.3); }
.b2b-toast.err { background: rgba(146,43,33,.95);  border: 1px solid rgba(248,113,113,.3); }
.b2b-toast.inf { background: rgba(26,74,122,.95);  border: 1px solid rgba(147,197,253,.3); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .b2b-auth-card { padding: 28px 22px; }
  .urun-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
  .b2b-hero { padding: 20px 18px; }
  .b2b-navbar .container { padding: 0 14px; }
}
@media (max-width: 480px) {
  .urun-grid { grid-template-columns: 1fr 1fr; }
  .urun-img-wrap { height: 120px; }
}

/* ── Footer ────────────────────────────────────────────────── */
.b2b-footer {
  flex-shrink: 0;
  background: var(--b-nav);
  border-top: 1px solid var(--b-border);
  padding: 14px 0;
  text-align: center;
}

/* ══════════════════════════════════════════
   MODEL KART — Yeni Katalog Tasarımı
══════════════════════════════════════════ */
.urun-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.model-card {
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.model-card:hover {
  border-color: rgba(186,54,39,.35);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transform: translateY(-2px);
}
.model-kat {
  font-size: .68rem; font-weight: 800;
  color: #e05a47; letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px 16px 0;
}
.model-img-wrap {
  height: 220px;
  background: #0d0f1a;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--b-border);
}
.model-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .2s;
}
.model-img-wrap:hover img { transform: scale(1.04); }
.no-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.15); font-size: 2.5rem;
}
.img-zoom-ico {
  position: absolute; bottom: 8px; right: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  border-radius: 6px; padding: 3px 7px;
  font-size: .72rem; opacity: 0; transition: opacity .15s;
}
.model-img-wrap:hover .img-zoom-ico { opacity: 1; }
.model-body {
  padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px;
}
.model-ad {
  font-size: .95rem; font-weight: 800; color: #fff; line-height: 1.35;
}
.model-fiyat-row { display: flex; align-items: baseline; gap: 4px; }
.model-fiyat { font-size: 1.2rem; font-weight: 800; color: #e05a47; }
.model-birim { font-size: .75rem; color: var(--b-muted); }
.model-stok { font-size: .78rem; }

/* Renk seçimi */
.renk-sec-wrap { display: flex; flex-direction: column; gap: 6px; }
.renk-sec-lbl { font-size: .68rem; font-weight: 700; color: var(--b-muted); letter-spacing: .04em; text-transform: uppercase; }
.renk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.renk-chip {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--b-muted);
  border-radius: 20px; padding: 4px 12px;
  font-size: .75rem; font-weight: 600; cursor: pointer;
  transition: all .12s; white-space: nowrap;
}
.renk-chip:hover { border-color: rgba(186,54,39,.4); color: #fff; }
.renk-chip.active {
  background: rgba(186,54,39,.18);
  border-color: rgba(186,54,39,.5);
  color: #e05a47;
}

/* Toplu miktar */
.toplu-qty-wrap {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 12px;
}
.toplu-qty-label {
  font-size: .68rem; font-weight: 700; color: var(--b-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.toplu-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.toplu-qty-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff; border-radius: 7px;
  padding: 5px 10px; font-size: .78rem; font-weight: 700;
  cursor: pointer; transition: all .12s; min-width: 42px; text-align: center;
}
.toplu-qty-btn:hover { background: rgba(186,54,39,.15); border-color: rgba(186,54,39,.4); color: #e05a47; }
.toplu-qty-btn.active { background: rgba(186,54,39,.25); border-color: rgba(186,54,39,.6); color: #e05a47; }
.serbest-qty-row { display: flex; align-items: center; gap: 8px; }
.serbest-qty-inp {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: #fff; border-radius: 7px; padding: 6px 10px;
  font-size: .82rem; width: 90px; outline: none; font-family: inherit;
}
.serbest-qty-inp:focus { border-color: rgba(186,54,39,.4); }
.serbest-qty-lbl { font-size: .78rem; color: var(--b-muted); }
.btn-model-sepet {
  background: var(--b-accent); border: none; color: #fff;
  border-radius: 9px; padding: 10px 0;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: background .12s; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-model-sepet:hover { background: #9c2d20; }
.btn-model-sepet:disabled { opacity: .35; cursor: not-allowed; }

/* Açıklama */
.model-aciklama {
  font-size: .78rem; color: var(--b-muted); line-height: 1.6;
  border-top: 1px solid var(--b-border); padding-top: 10px;
}

/* Görüntüleme modu */
.gorunum-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; color: rgba(234,179,8,.7);
  background: rgba(234,179,8,.07); border: 1px solid rgba(234,179,8,.15);
  border-radius: 8px; padding: 8px 14px;
}

@media (max-width: 640px) {
  .urun-grid { grid-template-columns: 1fr; }
  .model-img-wrap { height: 180px; }
}

/* Katalog kart — link wrapper */
.model-card-link {
  text-decoration: none; color: inherit; cursor: pointer;
}
.model-card-link:hover { color: inherit; }

/* Kategori başlık alanı — resmin üstünde ayrı bölüm */
.model-kat-header {
  padding: 7px 14px;
  text-align: center;
  font-size: .68rem; font-weight: 800;
  color: var(--b-accent2);
  text-transform: uppercase; letter-spacing: .07em;
  background: rgba(186,54,39,.10);
  border-bottom: 1px solid rgba(186,54,39,.18);
}

/* Varyant sayısı rozeti */
.varyant-badge {
  position: absolute; bottom: 8px; left: 10px;
  background: rgba(186,54,39,.85); color: #fff;
  font-size: .68rem; font-weight: 700;
  border-radius: 12px; padding: 2px 9px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Görsel yoksa placeholder */
.no-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.15); font-size: 2.5rem;
}

/* Kart body — ortalanmış */
.model-body {
  padding: 14px 16px 16px; flex: 1;
  display: flex; flex-direction: column;
  gap: 8px; align-items: center; text-align: center;
}
.model-ad {
  font-size: .88rem; font-weight: 800; color: #fff;
  line-height: 1.35;
}
.model-fiyat-row {
  display: flex; align-items: baseline;
  justify-content: center; gap: 2px;
}
.model-stok { font-size: .76rem; }
.model-kod {
  font-size: .72rem; font-weight: 600; color: var(--b-muted);
  letter-spacing: .04em; text-transform: uppercase;
}
.model-alt-model {
  font-size: .75rem; color: #94a3b8; margin-top: -4px;
}

/* ══════════════════════════════════════════
   ÜRÜN DETAY SAYFASI (urun.php)
══════════════════════════════════════════ */

/* Breadcrumb */
.urun-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  font-size: .8rem; color: var(--b-muted);
  margin-bottom: 20px;
}
.urun-breadcrumb a { color: var(--b-muted); text-decoration: none; }
.urun-breadcrumb a:hover { color: var(--b-accent2); }
.bc-sep { opacity: .4; }
.bc-current { color: var(--b-text); font-weight: 600; }

/* Galeri */
.urun-galeri { display: flex; flex-direction: column; gap: 10px; }

.urun-ana-gorsel {
  position: relative;
  background: #0d0f1a;
  border: 1px solid var(--b-border);
  border-radius: 14px; overflow: hidden;
  height: 420px;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-in;
}
.urun-ana-gorsel img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .25s;
}
.urun-ana-gorsel:hover img { transform: scale(1.04); }

.zoom-hint {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .72rem; border-radius: 6px; padding: 3px 8px;
  opacity: 0; transition: opacity .15s;
  display: flex; align-items: center; gap: 4px;
}
.urun-ana-gorsel:hover .zoom-hint { opacity: 1; }

.gorsel-yok {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--b-muted); font-size: 2.5rem;
}
.gorsel-yok span { font-size: .82rem; }

/* Thumbnail şeridi */
.urun-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.urun-thumb {
  width: 68px; height: 68px;
  border: 2px solid var(--b-border);
  border-radius: 9px; overflow: hidden;
  cursor: pointer; transition: border-color .12s;
  flex-shrink: 0;
}
.urun-thumb img { width: 100%; height: 100%; object-fit: cover; }
.urun-thumb.active  { border-color: var(--b-accent); }
.urun-thumb:hover   { border-color: rgba(186,54,39,.5); }

/* Detay panel */
.urun-detay-panel {
  display: flex; flex-direction: column; gap: 14px;
  padding: 4px 0;
}

.ud-kategori {
  font-size: .68rem; font-weight: 800; color: var(--b-accent2);
  text-transform: uppercase; letter-spacing: .06em;
}
.ud-baslik {
  font-size: 1.35rem; font-weight: 800; color: #fff;
  line-height: 1.3; margin: 0;
}
.ud-stok-wrap { font-size: .82rem; }
.ud-fiyat-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.ud-fiyat { font-size: 1.65rem; font-weight: 800; color: var(--b-accent2); }
.ud-birim { font-size: .82rem; color: var(--b-muted); }
.ud-kdv-lbl { font-size: .74rem; color: var(--b-muted); background: rgba(255,255,255,.05); border-radius: 6px; padding: 2px 7px; }

.ud-divider { border: none; border-top: 1px solid var(--b-border); margin: 0; }

.ud-section-lbl {
  font-size: .75rem; font-weight: 700; color: var(--b-muted);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 8px;
}
.ud-section-lbl strong { color: var(--b-text); font-weight: 800; text-transform: none; letter-spacing: 0; font-size: .82rem; }

/* Renk chips (detay sayfası) */
.ud-renk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ud-renk-chip {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.13);
  color: var(--b-muted); border-radius: 8px;
  padding: 6px 16px; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .12s; position: relative;
}
.ud-renk-chip:hover { border-color: rgba(186,54,39,.4); color: #fff; }
.ud-renk-chip.active { background: rgba(186,54,39,.18); border-color: #BA3627; color: var(--b-accent2); font-weight: 800; }
.ud-renk-chip[data-stok-yok="1"] { opacity: .45; }
.chip-stok-no { color: #f87171; font-size: .7rem; position: absolute; top: 3px; right: 5px; }

/* Özellikler */
.ud-ozellikler { display: flex; flex-wrap: wrap; gap: 8px; }
.ud-oz-item {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--b-border);
  border-radius: 9px; padding: 8px 14px;
  min-width: 90px;
}
.ud-oz-lbl { font-size: .67rem; font-weight: 700; color: var(--b-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.ud-oz-val { font-size: .88rem; font-weight: 700; color: var(--b-text); }

/* Miktar bölümü */
.ud-miktar-section { display: flex; flex-direction: column; gap: 10px; }
.ud-toplu-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.ud-toplu-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  color: #fff; border-radius: 8px;
  padding: 7px 14px; font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: all .12s; min-width: 50px; text-align: center;
}
.ud-toplu-btn:hover { background: rgba(186,54,39,.15); border-color: rgba(186,54,39,.4); color: var(--b-accent2); }
.ud-toplu-btn.active { background: rgba(186,54,39,.25); border-color: #BA3627; color: var(--b-accent2); }

.ud-serbest-row { display: flex; align-items: center; gap: 8px; }
.ud-qty-inp {
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.13);
  color: #fff; border-radius: 9px; padding: 8px 14px;
  font-size: .9rem; font-family: inherit; width: 110px; outline: none;
  transition: border-color .12s;
}

/* ══════════════════════════════════════════
   MOBİL HAMBURGER & OFFCANVAS MENÜ
══════════════════════════════════════════ */

/* Hamburger butonu */
.b2b-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  padding: 7px 10px;
  color: rgba(255,255,255,.8);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background .14s, color .14s;
  min-width: 40px; min-height: 40px;
}
.b2b-hamburger:hover { background: rgba(186,54,39,.18); color: #e05a47; border-color: rgba(186,54,39,.35); }

/* Offcanvas panel */
.b2b-offcanvas {
  background: #090b18 !important;
  border-left: 1px solid rgba(186,54,39,.3) !important;
  max-width: 300px;
}
.b2b-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 14px 18px;
  background: rgba(186,54,39,.05);
}
.b2b-offcanvas .offcanvas-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Kapat butonu */
.b2b-offcanvas-close {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; width: 34px; height: 34px;
  color: rgba(255,255,255,.6); font-size: 1.1rem; cursor: pointer;
  transition: background .14s, color .14s;
  margin-left: auto;
}
.b2b-offcanvas-close:hover { background: rgba(186,54,39,.25); color: #fff; }

/* Kullanıcı kutusu */
.mob-user-box {
  background: rgba(186,54,39,.08);
  border: 1px solid rgba(186,54,39,.2);
  border-radius: 10px; padding: 10px 14px;
  margin-bottom: 14px;
}

/* Mobil nav */
.mob-nav {
  display: flex; flex-direction: column; gap: 2px;
}
.mob-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 9px;
  color: rgba(255,255,255,.72); text-decoration: none;
  font-size: .9rem; font-weight: 600;
  transition: color .14s, background .14s;
  min-height: 44px;
}
.mob-nav a i { font-size: 1.15rem; color: rgba(255,255,255,.35); flex-shrink: 0; width: 20px; text-align: center; }
.mob-nav a:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.mob-nav a.active { color: #e05a47; background: rgba(186,54,39,.1); }
.mob-nav a.active i { color: #e05a47; }

/* Ayraç */
.mob-divider {
  height: 1px; background: rgba(255,255,255,.06);
  margin: 12px 0;
}

/* Çıkış linki */
.mob-cikis {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 9px;
  color: #f87171; font-size: .875rem; font-weight: 600;
  text-decoration: none; transition: background .14s;
  min-height: 44px;
}
.mob-cikis:hover { background: rgba(248,113,113,.1); color: #fca5a5; text-decoration: none; }
.mob-cikis i { font-size: 1.1rem; }

/* İletişim linkleri */
.mob-contact {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.55); font-size: .84rem;
  text-decoration: none; padding: 6px 4px;
  transition: color .14s;
}
.mob-contact:hover { color: #e05a47; text-decoration: none; }

/* ══════════════════════════════════════════
   GENEL MOBİL DÜZENLEMELER
══════════════════════════════════════════ */

/* Topbar — telefon/e-posta çok küçük ekranda gizle */
@media (max-width: 640px) {
  .b2b-topbar-left { display: none; }
  .b2b-topbar .container { justify-content: flex-end; }
}
/* Topbar — sosyal ikonlar tablet */
@media (max-width: 480px) {
  .b2b-topbar { display: none; }
}

/* Navbar yüksekliği mobilde küçülsün */
@media (max-width: 991.98px) {
  .b2b-navbar { min-height: 64px; }
  .b2b-navbar .container { height: 64px; padding: 0 14px; }

  /* Duyuru bandı padding */
  .b2b-hero { padding: 18px 16px; margin-bottom: 20px; }
  .b2b-hero h3 { font-size: 1.1rem; }

  /* Sayfa padding */
  .b2b-page { padding: 18px 0 32px; }
}

/* Tablet: katalog grid 2-3 kolon */
@media (max-width: 991.98px) {
  .urun-grid { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
}

/* Mobil: katalog 2 kolon */
@media (max-width: 640px) {
  .urun-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .model-img-wrap { height: 150px; }
  .model-body { padding: 10px 12px 12px; }
  .model-ad { font-size: .82rem; }
  .model-fiyat { font-size: 1.05rem; }
}

/* Küçük mobil: katalog 1 kolon */
@media (max-width: 400px) {
  .urun-grid { grid-template-columns: 1fr; }
}

/* Sepet item — mobilde dikey */
@media (max-width: 640px) {
  .sepet-item {
    flex-wrap: wrap; gap: 10px; padding: 12px 14px;
  }
  .sepet-urun-img { width: 48px; height: 48px; }
  .sepet-info { min-width: calc(100% - 60px); }
  .sepet-fiyat { margin-left: 60px; }
}

/* Sipariş kartı header — mobilde wrap */
@media (max-width: 576px) {
  .sp-hdr { gap: 8px; padding: 12px 14px; }
  .sp-no { font-size: .82rem; }
  .sp-durum { margin-left: 0; }
  .sp-body { padding: 12px 14px; }
  .sp-kalem { font-size: .8rem; }
}

/* Ürün detay sayfası — mobilde tek kolon */
@media (max-width: 767px) {
  .ud-renk-chips { gap: 6px; }
  .ud-renk-chip { padding: 5px 12px; font-size: .78rem; }
  .ud-ozellikler { gap: 6px; }
  .ud-oz-item { min-width: 76px; padding: 7px 10px; }
  .ud-oz-lbl { font-size: .62rem; }
  .ud-oz-val { font-size: .82rem; }
}

/* Auth kartı küçük mobil */
@media (max-width: 400px) {
  .b2b-auth-card { padding: 24px 16px; }
}

/* Toast mobilde sola dayan */
@media (max-width: 576px) {
  #b2b-toast-wrap {
    bottom: 12px; right: 12px; left: 12px;
  }
  .b2b-toast { max-width: 100%; }
}

/* Offcanvas backdrop — Bootstrap override */
.offcanvas-backdrop { background: rgba(0,0,0,.7) !important; }

.ud-qty-inp:focus { border-color: rgba(186,54,39,.5); }
.ud-qty-lbl { font-size: .82rem; color: var(--b-muted); }

/* Sepete ekle butonu */
.ud-sepet-btn {
  background: var(--b-accent); border: none; color: #fff;
  border-radius: 12px; padding: 14px 0;
  font-size: 1rem; font-weight: 800; cursor: pointer;
  width: 100%; transition: background .15s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  letter-spacing: .01em;
}
.ud-sepet-btn:hover:not(:disabled) { background: #9c2d20; transform: translateY(-1px); }
.ud-sepet-btn:active:not(:disabled) { transform: translateY(0); }
.ud-sepet-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Geri linki */
.ud-geri-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--b-muted); text-decoration: none;
  transition: color .12s;
}
.ud-geri-link:hover { color: var(--b-text); }

/* Açıklama kartı */
.urun-aciklama-card {
  margin-top: 24px;
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: 14px; padding: 20px 24px;
}
.ua-baslik {
  font-size: .8rem; font-weight: 800; color: var(--b-muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 12px;
}
.ua-icerik {
  font-size: .88rem; color: var(--b-text); line-height: 1.7;
}

/* Detay satır boşluğu */
.urun-detay-row { margin-bottom: 10px; }

@media (max-width: 768px) {
  .urun-ana-gorsel { height: 280px; }
  .ud-baslik { font-size: 1.1rem; }
  .ud-fiyat  { font-size: 1.3rem; }
}
