/* Boztekin Bayi Portalı — ERP'nin satış portalı (sales-login / sales-app) görsel diliyle. */
:root {
  --blue: #0c639e;
  --blue-600: #084e80;
  --blue-900: #084572;
  --blue-50: #eaf4fb;
  --blue-25: #f5f9fc;
  --ink: #263b4d;
  --head: #1b3f5a;
  --text: #42596a;
  --muted: #728698;
  --faint: #8b9dac;
  --line: #e0e9ef;
  --line-2: #d9e5ed;
  --row: #edf2f6;
  --bg: #f4f7fa;
  --orange: #d5774e;
  --red: #a6433c;
  --green: #3b7657;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; transition: background .15s, box-shadow .15s, border-color .15s; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #1979b5; outline-offset: 2px; }
.ic { flex: none; }
.muted { color: var(--faint); font-size: 11px; }
.eyebrow { color: #4e80a1; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
s { color: var(--faint); }

/* ---------- logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.logo img { display: block; width: 100%; height: auto; }
.logo small { font-size: 9px; letter-spacing: 2px; color: #69869b; font-weight: 700; }

/* ---------- düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 8px 13px;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: #fff; color: #42647e; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.btn:hover { background: #f4f9fc; }
.btn.primary { border-color: #0b5c93; background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-600); }
.btn.danger { border-color: #f0d5d2; color: var(--red); }
.btn.danger:hover { background: #fdf4f3; }
.btn.small { min-height: 30px; padding: 5px 10px; font-size: 11px; }
.btn.block { width: 100%; min-height: 42px; }
.btn .count {
  display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--orange); color: #fff; font-size: 10px;
}
.link {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 0; border: 0;
  background: transparent; color: #0d689e; font-size: 12px; font-weight: 600; text-align: left;
}
.link:hover { text-decoration: underline; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: 6px; background: transparent; color: #7990a0;
}
.icon-btn:hover { background: #eef4f8; color: var(--red); }

/* ---------- giriş ---------- */
.login {
  min-height: 100vh; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 460px);
  grid-template-rows: 1fr auto; align-items: center; gap: 0 8vw;
  padding: 7vh max(8vw, 30px) 0;
  background: radial-gradient(ellipse at 18% 17%, #e4f1fa 0, transparent 40%), linear-gradient(135deg, #f4f8fc, #fff 65%, #edf5fb);
}
.login-brand { justify-self: center; width: min(100%, 560px); }
.login-brand .logo { max-width: 300px; }
.login-intro { margin-top: 60px; padding-left: 20px; border-left: 3px solid #1979b5; }
.login-intro > span { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: #146a9f; }
.login-intro h1 { margin: 13px 0; color: #10466d; font: italic 600 clamp(31px, 4vw, 48px) / 1.15 Georgia, serif; letter-spacing: -1px; }
.login-intro p { margin: 0; max-width: 440px; color: #687e90; font-size: 14px; }
.login-web { display: inline-block; margin: 40px 0 0 20px; color: #0d6ba5; font-size: 13px; }
.login-web:hover { text-decoration: underline; }
.login-card {
  justify-self: center; width: 100%; padding: 38px;
  border: 1px solid #dce9f2; border-radius: 16px; background: #fff; box-shadow: 0 22px 65px #143f6018;
}
.login-icon { width: 49px; height: 49px; display: grid; place-items: center; margin-bottom: 19px; border-radius: 12px; background: var(--blue-50); color: #126da6; }
.login-card > small:first-of-type { display: block; color: #5b829e; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.login-card h2 { margin: 8px 0; font-size: 24px; color: #1a3f5b; }
.login-card > p { margin: 0 0 22px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.login-card form { display: flex; flex-direction: column; gap: 15px; }
.login-card label { display: block; color: #597286; font-size: 11.5px; font-weight: 600; }
.login-card label > div { display: flex; align-items: center; gap: 10px; margin-top: 7px; padding: 0 12px; border: 1px solid #dce7ef; border-radius: 7px; color: #8399a9; }
.login-card label > div:focus-within { border-color: #1979b5; box-shadow: 0 0 0 3px #1979b51f; }
.login-card label > div > span { display: grid; }
.login-card input { flex: 1; min-width: 0; padding: 13px 0; border: 0; outline: 0; background: transparent; color: #263d4e; font-size: 14px; }
.login-card label button { display: grid; padding: 4px; border: 0; background: transparent; color: #7990a0; }
.login-submit {
  display: flex; align-items: center; justify-content: space-between; margin-top: 7px; padding: 14px 16px;
  border: 0; border-radius: 7px; background: linear-gradient(100deg, #084572, #0f6eaa); color: #fff; font-size: 13.5px; font-weight: 700;
}
.login-submit:hover { filter: brightness(1.07); }
.login-submit span { font-size: 18px; font-weight: 400; }
.login-note { display: block; margin-top: 19px; text-align: center; color: var(--faint); font-size: 11px; }
.login-note b { color: #5b829e; }
.alert { margin-bottom: 14px; padding: 11px 13px; border: 1px solid #f0d5d2; border-radius: 7px; background: #fdf4f3; color: var(--red); font-size: 12px; }
.login-footer, .app-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #8898a5; font-size: 11px; }
.login-footer { grid-column: 1 / -1; justify-content: center; padding: 28px 0 22px; }
.login-footer span, .app-footer span { color: #587992; font-weight: 700; }
.login-footer i, .app-footer i { width: 3px; height: 3px; border-radius: 50%; background: #91aabd; }
.login-footer a:hover { text-decoration: underline; }
.login-note a { color: #3f7aa6; text-decoration: underline; }
.legal-links { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: inherit; gap: 4px 16px; }
.legal-links a { color: #6d8597; }
.legal-links a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- üst çubuk ---------- */
.app { min-height: 100vh; }
.app-header {
  position: sticky; top: 0; z-index: 30;
  min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px max(calc((100vw - 1320px) / 2), 28px);
  background: #fff; border-bottom: 1px solid #e1eaf1;
}
.app-logo { width: 190px; gap: 4px; }
.app-logo small { font-size: 8px; }
.app-header-right { display: flex; align-items: center; gap: 9px; }
.user-chip { display: flex; align-items: center; gap: 9px; margin-right: 10px; color: #3e586d; font-size: 12px; line-height: 1.3; }
.user-chip > span { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 50%; background: #e6f1f9; color: #0d639e; font-weight: 700; font-size: 12px; }
.user-chip b { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { color: var(--faint); font-size: 11px; }

/* ---------- kayan bant ---------- */
.ticker { overflow: hidden; background: linear-gradient(100deg, #084572, #0f6eaa); color: #fff; font-size: 12px; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track > div { display: flex; }
.ticker-track span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 26px; white-space: nowrap; }
.ticker-track .ic { opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- ana alan ---------- */
.app-main { max-width: 1320px; margin: auto; padding: 28px 28px 10px; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.welcome > div:first-child > span { color: #4e80a1; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.welcome h1 { margin: 5px 0; font-size: 25px; letter-spacing: -.5px; color: var(--head); line-height: 1.2; }
.welcome p { margin: 0; color: var(--muted); font-size: 12.5px; }
.notice { display: flex; align-items: center; gap: 8px; flex: none; padding: 10px 13px; border: 1px solid #dcebf5; border-radius: 8px; background: #eef7fc; color: #286b96; font-size: 11.5px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.stat {
  display: flex; flex-direction: column; gap: 4px; padding: 15px 17px; text-align: left;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 4px 16px #183c5608;
}
.stat:hover { border-color: #c5dbea; background: #fcfdff; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.stat-top .ic { color: #5b93b9; }
.stat b { color: var(--head); font-size: 21px; letter-spacing: -.3px; line-height: 1.25; }
.stat small { color: var(--faint); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin-bottom: 17px; border: 1px solid #e2ebf1; border-radius: 10px; background: #fff; scrollbar-width: thin; }
.tabs button { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 11px 14px; border: 0; border-radius: 7px; background: transparent; color: #647b8c; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tabs button:hover { background: var(--blue-25); }
.tabs button.active { background: var(--blue-50); color: #07568e; }
.tabs button > b { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 10px; }

.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 4px 16px #183c5608; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid #eaf0f4; }
.panel-head > div:first-child { min-width: 0; }
.panel-head h2 { margin: 0; color: #24465f; font-size: 16px; }
.panel-head p { margin: 4px 0 0; color: #7d91a0; font-size: 12px; }
.app-footer { margin: 20px 3px 26px; }

/* ---------- katalog ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 14px 20px; border-bottom: 1px solid #eaf0f4; background: #fbfdfe; }
.toolbar select, .search, .field input, .summary input, .summary textarea {
  min-height: 38px; border: 1px solid #dce6ed; border-radius: 7px; background: #fff; color: var(--ink); font-size: 12.5px;
}
.toolbar select { padding: 0 9px; max-width: 190px; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: #8399a9; }
.search:focus-within { border-color: #1979b5; box-shadow: 0 0 0 3px #1979b51f; }
.search input { flex: 1; min-width: 0; height: 36px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 7px; color: #597286; font-size: 12px; font-weight: 600; cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--blue); }
.seg { display: flex; flex: none; padding: 3px; border: 1px solid var(--line-2); border-radius: 7px; }
.seg button { display: grid; place-items: center; width: 32px; height: 28px; border: 0; border-radius: 5px; background: transparent; color: #7990a0; }
.seg button.active { background: var(--blue-50); color: #07568e; }
.result-count { padding: 13px 20px 0; color: var(--faint); font-size: 11.5px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; padding: 13px 20px 20px; }
.product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: box-shadow .15s, border-color .15s; }
.product:hover { border-color: #c5dbea; box-shadow: 0 10px 26px #183c5612; }
.product-image { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 12px; border: 0; border-bottom: 1px solid var(--row); background: #fff; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.no-image { display: grid; place-items: center; gap: 5px; width: 100%; height: 100%; min-height: 60px; color: #b4c4d0; background: var(--blue-25); border-radius: 6px; }
.no-image small { font-size: 10px; }
.flags { position: absolute; top: 9px; left: 9px; display: flex; gap: 5px; }
.flags.static { position: static; margin: 0 0 4px; }
.flag { display: inline-block; padding: 3px 7px; border-radius: 20px; font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.flag.campaign { background: #fdeee6; color: #b4572d; }
.flag.new { background: #eaf5ef; color: var(--green); }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 12px 13px 13px; }
.product-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #0d639e; font-size: 12px; letter-spacing: .3px; }
.product-code i { padding: 2px 7px; border-radius: 20px; background: #eff3f6; color: #687d8d; font-size: 10px; font-style: normal; font-weight: 600; }
.product h3 { margin: 5px 0 2px; color: #24465f; font-size: 13.5px; line-height: 1.35; }
.product p { margin: 0; color: var(--text); font-size: 12px; }
.product-body > small { display: block; margin-top: 3px; color: var(--faint); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 11px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; line-height: 1.25; }
.price s { flex-basis: 100%; font-size: 11px; }
.price b { color: var(--head); font-size: 16px; white-space: nowrap; }
.price small { color: var(--faint); font-size: 10px; }
td .price { justify-content: flex-end; }
td .price b { font-size: 13px; }
.in-cart { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.product-buy { display: flex; gap: 8px; margin-top: 10px; }
.product-buy .btn { flex: 1; padding: 8px 9px; }
.qty { display: inline-flex; flex: none; align-items: stretch; height: 36px; border: 1px solid #dce6ed; border-radius: 7px; background: #fff; overflow: hidden; }
.qty button { display: grid; place-items: center; width: 27px; border: 0; background: var(--blue-25); color: #5c7a90; }
.qty button:hover { background: var(--blue-50); color: #07568e; }
.qty input { width: 44px; border: 0; outline: 0; text-align: center; font-size: 13px; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty:focus-within { border-color: #1979b5; }
.more { display: flex; justify-content: center; padding: 4px 20px 22px; }

/* ---------- tablolar ---------- */
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 12.5px; }
th { padding: 12px 14px; background: var(--blue-25); border-bottom: 1px solid #e5edf3; color: #71889a; text-align: left; font-size: 10.5px; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--row); color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td b { color: #2b4c64; }
td small { display: block; margin-top: 3px; color: #8295a3; font-size: 11px; }
.num { text-align: right; white-space: nowrap; }
td.num .in-cart { display: flex; justify-content: flex-end; margin-top: 4px; }
.thumb { width: 74px; padding-right: 0; }
.thumb button { display: grid; place-items: center; width: 58px; height: 46px; padding: 3px; border: 1px solid var(--row); border-radius: 6px; background: #fff; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb .no-image { min-height: 0; }
.thumb .no-image small { display: none; }
.thumb .no-image svg { width: 18px; height: 18px; }
.row-actions { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 14px; }
.warn { color: #98611c; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 20px; background: #eff3f6; color: #687d8d; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status.pending { background: #fff3df; color: #98611c; }
.status.approved { background: var(--blue-50); color: #07568e; }
.status.partial { background: #f3effb; color: #6a4ea1; }
.status.shipped { background: #eaf5ef; color: var(--green); }
.status.rejected { background: #fbebea; color: #a64943; }
.empty { display: grid; justify-items: center; gap: 4px; padding: 46px 20px 22px; color: #92a6b5; text-align: center; }
.empty b { margin-top: 6px; color: #4d6a80; font-size: 14px; }
.empty p { margin: 0; max-width: 430px; font-size: 12px; }

/* ---------- sepet ---------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
.cart table { min-width: 620px; }
.summary { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-left: 1px solid #eaf0f4; background: #fbfdfe; align-self: stretch; }
.summary h3 { margin: 0 0 4px; color: #24465f; font-size: 14px; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; color: var(--text); font-size: 12.5px; }
.summary > div b { color: #2b4c64; white-space: nowrap; }
.summary .total { margin: 2px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.summary .total b { color: var(--head); font-size: 18px; }
.summary label, .field { display: block; color: #597286; font-size: 11.5px; font-weight: 600; }
.summary label small { font-weight: 400; color: var(--faint); }
.summary input, .summary textarea, .field input { display: block; width: 100%; margin-top: 6px; padding: 9px 10px; }
.summary textarea { resize: vertical; min-height: 70px; }
.summary .btn { margin-top: 4px; }

/* ---------- favoriler ve duyurular ---------- */
.fav-list, .news { display: flex; flex-direction: column; }
.fav, .news-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--row); }
.fav:last-child, .news-item:last-child { border-bottom: 0; }
.fav > div:first-child, .news-item > div:nth-child(2) { flex: 1; min-width: 0; }
.fav h3, .news-item h3 { margin: 0; color: #24465f; font-size: 14px; }
.fav p { margin: 3px 0; color: var(--text); font-size: 12px; }
.fav small { color: var(--faint); font-size: 11px; }
.news-item { align-items: flex-start; }
.news-item.unread { background: #f8fbfe; }
.news-item h3 { margin: 4px 0; }
.news-item p { margin: 0; max-width: 760px; color: var(--text); font-size: 12.5px; line-height: 1.65; }
.news-icon, .news-thumb { display: grid; place-items: center; flex: none; width: 64px; height: 52px; border: 1px solid var(--row); border-radius: 8px; background: #fff; color: #5b93b9; padding: 3px; }
.news-icon { background: var(--blue-50); border-color: transparent; }
.news-thumb img { width: 100%; height: 100%; object-fit: contain; }
.news-thumb .no-image small { display: none; }
.news-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.news-price b { color: #b4572d; font-size: 16px; }
.news-price small { color: var(--faint); font-size: 10px; }
.dot { margin-left: 4px; padding: 2px 6px; border-radius: 20px; background: var(--orange); color: #fff; font-style: normal; letter-spacing: 0; }
.news-item .row-actions { flex: none; padding-top: 2px; }

/* ---------- pencere ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: #12324c66; backdrop-filter: blur(4px); }
.modal { position: relative; width: 520px; max-width: 100%; max-height: 92vh; overflow: auto; padding: 28px; border-radius: 13px; background: #fff; box-shadow: 0 20px 100px #122c4433; }
.modal.wide { width: 880px; }
.modal:focus { outline: 0; }
.modal .close { position: absolute; top: 14px; right: 14px; }
.modal .close:hover { color: var(--ink); }
.modal-header { padding-right: 34px; margin-bottom: 16px; }
.modal-header h2 { margin: 0; color: var(--head); font-size: 19px; }
.modal-header p { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.modal .table-wrap { border: 1px solid var(--line); border-radius: 8px; }
.modal table { min-width: 560px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.modal p.muted { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.review { margin: 10px 0 0; padding: 10px 12px; border-radius: 7px; background: #fbebea; color: #8d3d37; font-size: 12px; }
.lines { max-height: 250px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.lines > div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 12px; border-bottom: 1px solid var(--row); font-size: 12.5px; }
.lines > div:last-child { border-bottom: 0; }
.lines small { color: var(--faint); }
.lines b { white-space: nowrap; color: #2b4c64; }
.confirm-total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 14px; color: var(--muted); font-size: 12.5px; }
.confirm-total b { color: var(--head); font-size: 18px; }
.confirm-total small { color: var(--faint); font-size: 11px; font-weight: 400; }
.terms { max-height: 260px; overflow: auto; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; color: var(--text); font-size: 12.5px; line-height: 1.75; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.detail-image { display: grid; place-items: center; min-height: 280px; padding: 14px; border: 1px solid var(--row); border-radius: 10px; }
.detail-image img { max-width: 100%; max-height: 360px; object-fit: contain; }
.detail-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.detail-body h2 { margin: 0; padding-right: 30px; color: var(--head); font-size: 20px; line-height: 1.3; }
.detail dl { margin: 6px 0 2px; border-top: 1px solid var(--row); }
.detail dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--row); font-size: 12.5px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; color: #2b4c64; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.detail .oem-note { display: block; color: var(--muted); font-size: 11px; line-height: 1.55; text-decoration: none; }
.detail .oem-note:hover { color: var(--blue); text-decoration: underline; }
.detail-buy { margin-top: auto; padding-top: 10px; }
.detail-buy .price b { font-size: 22px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 10px; max-width: 90vw; padding: 14px 20px; transform: translateX(-50%); border-radius: 9px; background: #0b3d63; color: #fff; font-size: 13px; box-shadow: 0 8px 30px #12324c40; }

/* ---------- dar ekranlar ---------- */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart { grid-template-columns: 1fr; }
  .summary { border-left: 0; border-top: 1px solid #eaf0f4; }
}
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto; gap: 24px; padding: 26px 17px 0; align-items: start; }
  .login-brand { max-width: 460px; }
  .login-brand .logo { max-width: 220px; }
  .login-intro { margin-top: 22px; }
  .login-intro h1 { font-size: 28px; }
  .login-intro p { font-size: 13px; }
  .login-web { margin: 12px 0 0 20px; }
  .login-card { max-width: 460px; padding: 26px 22px; }
  .login-footer { padding: 4px 0 20px; }

  .app-header { padding: 9px 14px; gap: 10px; }
  .app-logo { width: 132px; }
  .app-logo small { font-size: 7px; letter-spacing: 1.5px; }
  .user-chip { margin-right: 0; }
  .user-chip > div { display: none; }
  .hide-sm { display: none; }
  .btn { padding: 8px 11px; }
  .app-main { padding: 18px 12px 6px; }
  .welcome { flex-direction: column; align-items: flex-start; gap: 12px; }
  .welcome h1 { font-size: 21px; }
  .notice { align-self: stretch; }
  .stats { gap: 9px; }
  .stat { padding: 12px 13px; }
  .stat b { font-size: 18px; }
  .panel-head { padding: 15px 14px; }
  .toolbar { padding: 12px 14px; }
  .toolbar select { flex: 1 1 calc(50% - 5px); max-width: none; min-width: 0; }
  .result-count { padding: 12px 14px 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px 16px; }
  .product-body { padding: 10px; }
  .product-buy { flex-direction: column; }
  .product-buy .qty { width: 100%; }
  .product-buy .qty input { flex: 1; width: auto; }
  .price b { font-size: 15px; }
  .fav, .news-item { flex-wrap: wrap; padding: 14px; }
  .fav .row-actions, .news-item .row-actions { justify-content: flex-start; width: 100%; }
  .news-item .row-actions { padding-left: 82px; }
  .summary { padding: 16px 14px; }
  .modal-backdrop { padding: 10px; align-items: flex-end; }
  .modal { padding: 22px 16px; border-radius: 13px 13px 8px 8px; }
  .detail { grid-template-columns: 1fr; gap: 14px; }
  .detail-image { min-height: 0; }
  .detail-image img { max-height: 220px; }
  .modal-actions .btn { flex: 1; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
  .product-buy { flex-direction: row; }
  .product-buy .qty { width: auto; }
  .product-buy .qty input { flex: none; width: 44px; }
  .app-logo { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker-track > div[aria-hidden] { display: none; }
  * { transition: none !important; }
}
