/* NWME tasarım dili — v0.3/v0.4 (Astra FIGMA-VISUAL-DIRECTION v0.3, LOCAL-DESIGN v0.4). apps/preview'dan taşındı; demo bandı ve örnek durum stilleri çıkarıldı. */
:root {
  --navy: #0b1f3a;
  --navy-2: #13294b;
  --navy-line: #1f3a63;
  --stage: #eef2f7;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
  --text: #0f172a;
  --muted: #475569;
  --page: #f8fafc;
  --card: #ffffff;
  --line: #cbd5e1;
  --control-line: #64748b;
  --primary: #0057d9;
  --primary-hover: #0046ae;
  --soft: #f1f5f9;
  --ok-text: #166534;
  --ok-bg: #f0fdf4;
  --warn-text: #92400e;
  --warn-bg: #fffbeb;
  --err-text: #b91c1c;
  --err-bg: #fef2f2;
  --radius: 12px;
  --pad: 32px;
  /* v0.6 atlas (VISUAL-ATLAS-v06): store.css applies these to the store surface only. */
  --cobalt: #1a56db;
  --cobalt-hover: #1446b8;
  --cobalt-soft: #e8effc;
  --cobalt-on-navy: #60a5fa;
  --store-page: #f3f6fb;
  --store-line: #dbe3ee;
  --store-zebra: #f6f9fc;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  overflow-wrap: break-word;
  /* Amounts line up wherever they appear, not only in tables (NWME-017m). */
  font-variant-numeric: tabular-nums;
}

.cell-main,
.product-card__title,
.buy-box h1,
.breadcrumb {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 40px;
}

h2 {
  font-size: 24px;
  line-height: 32px;
}

h3 {
  font-size: 18px;
  line-height: 26px;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: 8px;
}

.skip-link:focus {
  top: 8px;
}

.container {
  width: 100%;
  max-width: calc(1280px + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
  line-height: 20px;
}

.num,
.price,
table {
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons and fields ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--card);
  color: var(--primary);
  border-color: var(--control-line);
}

.btn-secondary:hover {
  background: var(--soft);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  padding-inline: 8px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  background: #e2e8f0;
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

label,
.label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

input[type="text"],
input[type="search"],
select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--primary);
  flex: none;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}

.field {
  margin-bottom: 16px;
}

.field-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  margin-top: 4px;
}

.field-error {
  color: var(--err-text);
  font-size: 14px;
  line-height: 20px;
  margin-top: 4px;
  font-weight: 600;
}

[aria-invalid="true"] {
  border-color: var(--err-text) !important;
  border-width: 2px !important;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
}

legend {
  font-weight: 700;
  padding: 0;
  margin-bottom: 4px;
}

/* ---------- Store header ---------- */

.store-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.store-header__inner {
  display: grid;
  grid-template-columns: auto minmax(420px, 560px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}

.logo {
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.search {
  display: flex;
  gap: 8px;
}

.search input {
  flex: 1;
  min-width: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-note {
  color: var(--muted);
  font-size: 14px;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.category-nav {
  border-top: 1px solid var(--line);
}

.category-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  list-style: none;
  padding: 0;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.category-nav a:hover,
.category-nav a[aria-current="page"] {
  color: var(--primary);
  box-shadow: inset 0 -3px 0 var(--primary);
}

/* ---------- Generic blocks ---------- */

main {
  display: block;
  padding-block: 24px 48px;
}

.section {
  margin-top: 48px;
}

.section > h2 {
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.tag {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notice {
  width: calc(100% - 2 * var(--pad));
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.notice form {
  margin: 0;
}

.notice--success {
  background: var(--ok-bg);
  color: var(--ok-text);
  border-color: currentColor;
}

.notice--info {
  background: #eff6ff;
  color: #1e3a8a;
  border-color: currentColor;
}

.notice--warning {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-color: currentColor;
}

.notice--error {
  background: var(--err-bg);
  color: var(--err-text);
  border-color: currentColor;
}

.notice__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 2px solid currentColor;
  font-weight: 700;
  font-size: 13px;
}

.live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.empty-state {
  text-align: center;
  padding-block: 48px;
}

.empty-state > * + * {
  margin-top: 16px;
}

.empty-state p {
  color: var(--muted);
}

.empty-state .empty-state__title {
  color: inherit;
  font-weight: 600;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--control-line);
  border-radius: 22px;
  background: var(--card);
  text-decoration: none;
  font-weight: 600;
}

.chip[aria-current="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.chip-remove::after {
  content: "×";
  margin-left: 8px;
  font-size: 18px;
}

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding-block: 32px;
  color: var(--muted);
}

.site-footer h2 {
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  margin-bottom: 4px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- C01 ---------- */

.hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: center;
}

.hero__text > * + * {
  margin-top: 16px;
}

.hero__text p {
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.hero__media {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: #94a3b8;
  text-align: center;
}

.hero__svg {
  width: 100%;
  max-height: 280px;
}

.hero__media figcaption {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  min-height: 44px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}

.category-card:hover {
  border-color: var(--primary);
}

.category-card .icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.category-card__name {
  font-weight: 700;
}

.category-card__count {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.product-card__media {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--soft);
  border-radius: 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 20px;
  margin-bottom: 4px;
}

.product-card__media .icon {
  width: 64px;
  height: 64px;
}

.product-card__title {
  font-size: 16px;
  line-height: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__title a {
  color: var(--text);
  text-decoration: none;
}

.product-card__title a:hover {
  text-decoration: underline;
}

.sku {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.specs {
  list-style: none;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
}

.specs span {
  color: var(--muted);
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid currentColor;
}

.stock--ok {
  color: var(--ok-text);
  background: var(--ok-bg);
}

.stock--low {
  color: var(--warn-text);
  background: var(--warn-bg);
}

.stock--out {
  color: var(--err-text);
  background: var(--err-bg);
}

.price__value {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.price__note {
  font-size: 13px;
  color: var(--muted);
}

.product-card .btn {
  margin-top: auto;
}

/* ---------- C02 ---------- */

.list-head > * + * {
  margin-top: 8px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.list-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.filter-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.filter-panel h2 {
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 12px;
}

.price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-range label {
  font-weight: 400;
  font-size: 14px;
}

.filter-actions {
  display: grid;
  gap: 8px;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sort-form {
  display: flex;
  align-items: end;
  gap: 8px;
}

.sort-form select {
  width: auto;
}

.mobile-tools {
  display: none;
  gap: 8px;
}

.mobile-tools .btn {
  flex: 1;
}

dialog.drawer {
  margin: 0 0 0 auto;
  width: min(400px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  background: var(--card);
  color: var(--text);
}

dialog.drawer::backdrop {
  background: rgb(15 23 42 / 55%);
}

.drawer__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h2,
.drawer__head .drawer__title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.drawer__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- C03 ---------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  font-size: 14px;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 4px;
  color: var(--muted);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.breadcrumb [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.detail {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}

.gallery__main {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #64748b;
}

.gallery__main .icon {
  width: 120px;
  height: 120px;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
}

.gallery__thumbs li {
  aspect-ratio: 1 / 1;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.gallery__thumbs .icon {
  width: 32px;
  height: 32px;
}

.buy-box > * + * {
  margin-top: 12px;
}

.buy-box h1 {
  font-size: 28px;
  line-height: 36px;
}

.price-block .price__value {
  font-size: 28px;
  line-height: 36px;
}

.price-block p + p {
  color: var(--muted);
}

.qty-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.info-blocks {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.info-blocks h2 {
  margin-bottom: 12px;
}

.spec-list {
  display: grid;
  grid-template-columns: minmax(120px, 240px) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.spec-list dt,
.spec-list dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
  padding-right: 16px;
}

table.spec-list {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

table.spec-list th,
table.spec-list td {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

table.spec-list th {
  width: 240px;
  min-width: 120px;
  padding-right: 16px;
  color: var(--muted);
  font-weight: inherit;
}

/* ---------- C04 ---------- */

.cart-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
  background: var(--card);
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table thead th {
  background: var(--soft);
  font-weight: 700;
}

.data-table .num {
  text-align: right;
  white-space: nowrap;
}

.table-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.inline-form input[type="text"] {
  width: 72px;
}

.summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
}

.summary dt {
  color: var(--muted);
}

.summary dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.summary dt.total,
.summary dd.total {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.summary > * + * {
  margin-top: 16px;
}

.result-ref {
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- Admin / dealer shell ---------- */

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
}

.app-sidebar__title {
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 8px 12px 16px;
}

.side-menu {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
}

.side-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.side-menu a:hover {
  background: var(--soft);
}

.side-menu a[aria-current="page"] {
  background: #e8f0fd;
  color: var(--primary);
  font-weight: 700;
}

.planned {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 6px;
  white-space: nowrap;
}

.app-main {
  min-width: 0;
}

.app-topbar {
  min-height: 64px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 24px;
}

.app-topbar .h1-like {
  font-size: 20px;
  line-height: 28px;
  margin-right: auto;
}

.app-topbar form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.app-topbar label {
  font-size: 13px;
  line-height: 20px;
  margin-bottom: 2px;
}

.app-topbar select {
  width: auto;
}

.menu-button {
  display: none;
}

.app-content {
  padding: 24px;
}

.app-content > * + * {
  margin-top: 24px;
}

.app-shell main {
  padding: 0;
}

.app-shell .notice {
  width: calc(100% - 48px);
  margin-top: 16px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kpi-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.kpi__label {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.kpi__value {
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.kpi details {
  margin-top: 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.kpi summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
}

.two-col {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.panel > h2 {
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 12px;
}

.panel > * + * {
  margin-top: 12px;
}

.chart {
  width: 100%;
  height: 200px;
  display: block;
  border-bottom: 1px solid var(--line);
}

.chart .bar {
  fill: var(--primary);
}

.chart-labels {
  display: flex;
  list-style: none;
  padding: 0;
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.chart-labels li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}

.panel details > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.pending-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pending-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.pending-list summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

.pending-list details[open] {
  padding-bottom: 12px;
}

.pending-list p {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.count-pill {
  flex: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 8px;
  font-size: 14px;
}

.provider-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.provider-list li {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

.provider-status {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.status-chip {
  display: inline-block;
  font-size: 12px;
  line-height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--soft);
  white-space: nowrap;
}

/* Dealer */

.dealer-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.dealer-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding-block: 12px;
}

.dealer-name {
  font-size: 24px;
  line-height: 32px;
}

.dealer-header__top .cart-link {
  margin-left: auto;
}

.dealer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  list-style: none;
  padding: 0;
}

.dealer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.dealer-nav a[aria-current="page"] {
  color: var(--primary);
  box-shadow: inset 0 -3px 0 var(--primary);
}

.dealer-content > * + * {
  margin-top: 24px;
}

.quick-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.qo-search {
  display: flex;
  gap: 8px;
  align-items: end;
}

.qo-search .field {
  flex: 1;
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  :root {
    --pad: 24px;
  }
}

@media (max-width: 1023px) {
  .store-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid,
.product-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .quick-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell > .app-sidebar {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  :root {
    --pad: 16px;
  }

  h1 {
    font-size: 24px;
    line-height: 32px;
  }

  h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .store-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "search search";
    gap: 0 12px;
    min-height: 0;
  }

  .logo {
    grid-area: logo;
    min-height: 64px;
  }

  .header-actions {
    grid-area: actions;
  }

  .search {
    grid-area: search;
    padding-bottom: 12px;
  }

  .account-note {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero__media {
    padding: 12px;
  }

  .hero__svg {
    max-height: 160px;
  }

  .hero__media {
    max-height: 200px;
    overflow: hidden;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid,
.product-grid--4,
.kpi-grid,
.kpi-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-layout > .filter-panel,
  .list-toolbar .sort-form {
    display: none;
  }

  .mobile-tools {
    display: flex;
    width: 100%;
  }

  .detail,
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-list dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  table.spec-list tr,
  table.spec-list th,
  table.spec-list td {
    display: block;
    width: auto;
  }

  table.spec-list th {
    border-bottom: 0;
    padding-bottom: 0;
  }

  /* Tables become stacked cards; every cell carries its column label. */
  .stack-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .stack-table,
  .stack-table tbody,
  .stack-table tr,
  .stack-table td,
  .stack-table th {
    display: block;
    width: 100%;
  }

  .stack-table tr {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }

  .stack-table td,
  .stack-table th {
    border: 0;
    padding: 6px 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    text-align: right;
  }

  .stack-table .num {
    text-align: right;
  }

  .stack-table [data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
    text-align: left;
  }

  .stack-table .cell-main {
    display: block;
    text-align: left;
  }

  .app-content {
    padding: 16px;
  }

  .app-topbar {
    padding: 8px 16px;
  }

  .app-shell .notice {
    width: calc(100% - 32px);
  }

  .qty-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .qo-search {
    flex-wrap: wrap;
  }

  .drawer__foot {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- v0.3 ortak görsel katman ---------- */

body {
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  letter-spacing: -0.01em;
  font-weight: 700;
}

.btn {
  border-radius: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  box-shadow: var(--shadow-sm);
}

/* Amount-only elements: money must never break across lines. */
.price__value,
.kpi__value,
.tile__value,
.limit-card__value,
.cart-line__amount,
.summary dd,
.panel-head__aside .num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.btn-secondary {
  border-color: var(--control-line);
  color: var(--navy);
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: var(--soft);
  color: var(--navy);
}

.btn-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
}

.logo {
  gap: 10px;
  color: var(--navy);
  letter-spacing: 0.04em;
  font-size: 26px;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0;
}

.site-footer {
  background: var(--navy);
  border-top: 0;
  color: #cbd5e1;
  padding-block: 40px;
}

.site-footer h2 {
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: #fff;
}

.notice {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/*
 * Printable documents (body.print-doc, .dealer-print). The top-left margin
 * carries the saved company legal name from /yazdir/sirket.css (NWME-017b);
 * it stays empty until Şirket bilgileri has one.
 *
 * Task 1177: shared `.dealer-print` root — A4 page, chrome off, thead/tfoot
 * repeat, no truncated/clipped table cells, row page-breaks. PDF-free: these
 * rules are for browser print only (no generated-PDF download path).
 */
@media print {
  @page doc {
    size: A4;
    margin: 20mm 14mm 18mm;

    @top-left {
      content: "";
      color: #475569;
      font-size: 9pt;
    }

    @bottom-right {
      content: "Sayfa " counter(page) " / " counter(pages);
      color: #475569;
      font-size: 9pt;
    }
  }

  .print-doc,
  .dealer-print {
    page: doc;
  }

  body.print-doc {
    background: #fff;
    color: var(--text);
  }

  .print-doc .skip-link,
  .print-doc .live-region,
  .print-doc .store-header,
  .print-doc .site-footer,
  .print-doc .account-nav,
  .print-doc .notice,
  .print-doc .btn,
  .print-doc form,
  .print-doc .attempts {
    display: none !important;
  }

  .print-doc .account-layout {
    display: block;
    max-width: none;
    padding: 0;
  }

  .print-doc .card {
    border: 1px solid var(--line);
    box-shadow: none;
  }

  /* Dealer document root: hide portal chrome that is not the document body. */
  .dealer-print .portal-crumbs,
  .dealer-print .admin-head__actions,
  .dealer-print .admin-module-tabs,
  .dealer-print .bp-subnav {
    display: none !important;
  }

  .dealer-print.portal-contract,
  .dealer-print .portal-contract {
    overflow: visible !important;
    max-width: none !important;
  }

  .print-doc a[href],
  .dealer-print a[href] {
    color: inherit;
    text-decoration: none;
  }

  .print-doc a[href]::after,
  .dealer-print a[href]::after {
    content: none !important;
  }

  thead {
    display: table-header-group;
  }

  tfoot {
    display: table-footer-group;
  }

  /* Full table width; never clip or ellipsize cells across page breaks. */
  .dealer-print .bp-table-wrap,
  .dealer-print .portal-table-scroll,
  .dealer-print .table-card,
  .dealer-print [class*="table-wrap"] {
    overflow: visible !important;
    max-width: none !important;
  }

  .dealer-print table {
    width: 100% !important;
    max-width: none !important;
  }

  .dealer-print th,
  .dealer-print td {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word;
  }

  tr,
  .order-line,
  .dealer-facts > div,
  .summary dl,
  .dealer-print .bp-summary-strip > div,
  .dealer-print .bp-facts > div {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
}

/* 1475: shared state icon (states.ts uiState) has only a viewBox, so outside a
 * styled surface it grew to its container width (~300 px "Veri yok" arrows in
 * the admin shell). Zero-specificity default: surface rules (.ds-v2 28 px,
 * .page-auth) still win. */
:where(.ui-state__icon) {
  display: inline-flex;
  flex: none;
}

:where(.ui-state__icon) > .ui-icon {
  width: 24px;
  height: 24px;
}

/* 1875: a bundled PNG arrives as <picture data-photo-bundled> with an AVIF
 * <source> (1860). The picture and its source take no box, so the <img> is laid
 * out exactly like the bare <img> these photos had before: same box, same photo
 * position. The /media <picture> rules (1611/1621) skip it. */
picture[data-photo-bundled] {
  display: contents;
}

picture[data-photo-bundled] > source {
  display: none;
}

/* Some views size the photo box from the image ratio; a resized AVIF's ratio
 * is rounded, so each bundled photo keeps its PNG ratio (exactly the box the
 * bare PNG had). */
/* bundled-avif:start — generated by scripts/media/bundled-avif.ts */
picture[data-photo-bundled] > img[src="/assets/img/products/dell-poweredge-r770-drives.png"] {
  aspect-ratio: 1400 / 424;
}

picture[data-photo-bundled] > img[src="/assets/img/products/dell-poweredge-r770.png"] {
  aspect-ratio: 1400 / 430;
}

picture[data-photo-bundled] > img[src="/assets/img/products/dell-poweredge-r7725-front.png"] {
  aspect-ratio: 1400 / 435;
}

picture[data-photo-bundled] > img[src="/assets/img/products/dell-poweredge-r7725-right.png"] {
  aspect-ratio: 1400 / 411;
}

picture[data-photo-bundled] > img[src="/assets/img/products/dell-poweredge-r7725.png"] {
  aspect-ratio: 1400 / 410;
}

picture[data-photo-bundled] > img[src="/assets/img/products/hpe-proliant-compute-dl360-gen12.png"] {
  aspect-ratio: 1100 / 907;
}

picture[data-photo-bundled] > img[src="/assets/img/products/hpe-proliant-compute-dl380-gen12.png"] {
  aspect-ratio: 1400 / 532;
}
/* bundled-avif:end */
