/* ===================================================================
   Mağaza arayüzü. Renkler ve ölçüler :root üzerinde tanımlı.
   =================================================================== */
:root {
  --paper: #F6F4F1;
  --surface: #FFFFFF;
  --ink: #18212D;
  --ink-2: #3B4656;
  --muted: #5B6675;
  --line: #DCE2EA;
  --line-2: #EBEFF4;
  --blue: #AB311E;          /* marka kırmızısı (logo) */
  --blue-deep: #86230F;
  --blue-wash: #F8EDE8;
  --cream: #F8EDD6;
  --info: #1F4E8C;
  --info-wash: #E9EFF7;
  --tag: #FFC83D;
  --tag-ink: #3D2E00;
  --ok: #17784B;
  --ok-wash: #E4F4EC;
  --warn: #9A5B00;
  --warn-wash: #FFF4DA;
  --err: #B3261E;
  --err-wash: #FCE9E7;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(24, 33, 45, .06), 0 8px 24px -12px rgba(24, 33, 45, .18);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 2px; border-radius: 4px; }
.narrow { font-stretch: 70%; }

/* ------------------------------------------------------------ üst şerit */
.topbar { background: var(--ink); color: #D9E0EA; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 36px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .contact { display: flex; gap: 20px; }
.topbar .notice { display: flex; align-items: center; gap: 8px; }
.topbar .notice::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tag); flex: none; }

.dealer-strip { background: var(--blue); color: #fff; font-size: .9rem; }
.dealer-strip .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; min-height: 40px; }
.dealer-strip strong { font-weight: 700; }
.dealer-strip a { color: #fff; }
.dealer-strip .spacer { flex: 1; }

/* ------------------------------------------------------------ başlık */
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 52px; height: 52px; border-radius: 6px; flex: none; }
.logo-text { font-size: .95rem; font-weight: 650; line-height: 1.2; color: var(--ink-2); max-width: 15ch; }
.logo-text small { display: block; font-size: .7rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--muted); margin-top: 3px; }

.search { display: flex; max-width: 560px; width: 100%; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.search:focus-within { border-color: var(--blue); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; padding: 11px 14px; font: inherit; color: inherit; min-width: 0; }
.search input:focus { outline: none; }
.search button { border: 0; background: transparent; padding: 0 16px; color: var(--ink-2); cursor: pointer; }

.header-actions { display: flex; gap: 6px; align-items: center; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.hbtn:hover { background: var(--paper); color: var(--ink); }
.hbtn svg { width: 22px; height: 22px; }
.hbtn .count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--tag); color: var(--tag-ink); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.hbtn.cart { background: var(--ink); color: #fff; padding-right: 16px; }
.hbtn.cart:hover { background: var(--blue-deep); color: #fff; }
.menu-toggle { display: none; }

/* ------------------------------------------------------------ menü */
.nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; gap: 2px; align-items: stretch; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; height: 48px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; }
.nav-item > a:hover, .nav-item:focus-within > a { border-bottom-color: var(--blue); color: var(--blue); }
.nav .push { margin-left: auto; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); padding: 8px; display: none; z-index: 30; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.dropdown a:hover { background: var(--blue-wash); color: var(--blue-deep); }
.dropdown a.all { color: var(--blue); font-weight: 600; border-top: 1px solid var(--line-2); margin-top: 4px; }

/* ------------------------------------------------------------ butonlar ve form */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r); border: 1.5px solid transparent; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--blue); padding: 0 8px; }
.btn-danger { background: #fff; border-color: #F1B9B4; color: var(--err); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.field .hint { color: var(--muted); font-size: .85rem; }
.field .error, .form-error { color: var(--err); font-size: .875rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: #fff; font: inherit; color: inherit;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.input.invalid { border-color: var(--err); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }

/* ------------------------------------------------------------ uyarılar */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--r); border: 1px solid; font-weight: 500; }
.flash-success { background: var(--ok-wash); border-color: #B7E0C9; color: #0F5535; }
.flash-error { background: var(--err-wash); border-color: #F1B9B4; color: #8C1D16; }
.flash-warning { background: var(--warn-wash); border-color: #F0D58F; color: #6B4000; }
.flash-info { background: var(--info-wash); border-color: #C9D6E8; color: var(--info); }

.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: var(--ok-wash); color: var(--ok); }
.badge-warn { background: var(--warn-wash); color: var(--warn); }
.badge-err { background: var(--err-wash); color: var(--err); }
.badge-blue { background: var(--info-wash); color: var(--info); }
.badge-tag { background: var(--tag); color: var(--tag-ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin: 20px 0 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span + span::before, .crumbs a + span::before, .crumbs a + a::before { content: "/"; margin-right: 8px; color: var(--line); }

/* ------------------------------------------------------------ ana sayfa: fiş seçici */
.hero { padding: 40px 0 56px; background:
  linear-gradient(180deg, var(--surface) 0, var(--surface) 70%, var(--paper) 70%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.9rem); font-weight: 800; font-stretch: 72%; line-height: .98; letter-spacing: -.025em; margin-bottom: 18px; }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 26px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 28px; justify-content: start; margin: 0; padding: 0; list-style: none; }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong { font-size: 1.05rem; }
.hero-facts span { color: var(--muted); font-size: .88rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.receipt { position: relative; background: #fff; border-radius: 4px 4px 0 0; padding: 26px 28px 34px; box-shadow: var(--shadow); max-width: 470px; justify-self: end; width: 100%;
  --tooth: 12px;
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 6px, #000 6.5px) bottom/var(--tooth) var(--tooth) repeat-x, linear-gradient(#000, #000) top/100% calc(100% - var(--tooth)) no-repeat;
  mask: radial-gradient(circle at 50% 100%, transparent 6px, #000 6.5px) bottom/var(--tooth) var(--tooth) repeat-x, linear-gradient(#000, #000) top/100% calc(100% - var(--tooth)) no-repeat;
  animation: print .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .receipt { animation: none; } }
.receipt-head { text-align: center; border-bottom: 2px dashed var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.receipt-head strong { display: block; font-stretch: 75%; font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; }
.receipt-head span { color: var(--muted); font-size: .85rem; }
.receipt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper); padding: 4px; border-radius: var(--r); margin-bottom: 18px; }
.receipt-tabs button { border: 0; background: transparent; padding: 9px; border-radius: 7px; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer; }
.receipt-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.receipt-row { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 14px; }
.receipt-row label { font-size: .8rem; font-weight: 650; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; min-width: 46px; justify-content: center; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 700; font-stretch: 85%; font-size: .98rem; cursor: pointer; background: #fff; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--tag); outline-offset: 1px; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--line); padding-top: 14px; margin-top: 4px; margin-bottom: 14px; }
.receipt-total strong { font-size: 2rem; font-stretch: 70%; font-weight: 800; letter-spacing: -.01em; }
.receipt-total span { color: var(--muted); font-size: .9rem; }
.receipt .barcode { height: 34px; margin: 14px auto 0; width: 70%; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: .85; }

/* kategori kutuları */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { display: grid; grid-template-columns: 1fr 112px; gap: 12px; align-items: center; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); min-height: 150px; }
.cat-card:hover { border-color: var(--ink-2); color: var(--ink); }
.cat-card h3 { margin-bottom: 4px; }
.cat-card p { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.cat-card .go { font-weight: 650; color: var(--blue); font-size: .92rem; }
.cat-card img { border-radius: var(--r); }

/* ------------------------------------------------------------ ürün kartı */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; }
.pcard:hover { border-color: #B9C3D1; }
.pcard-media { position: relative; display: block; aspect-ratio: 1; background: #F1EEEA; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-media .badge { position: absolute; top: 12px; left: 12px; }
.pcard-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-spec { font-stretch: 68%; font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.pcard-spec small { font-size: .9rem; font-stretch: 100%; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.pcard-name { color: var(--ink-2); text-decoration: none; font-size: .93rem; line-height: 1.35; min-height: 2.7em; }
.pcard-name:hover { color: var(--blue); }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); }
.pcard-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; padding-top: 6px; }
.price { display: grid; line-height: 1.15; }
.price strong { font-size: 1.3rem; font-weight: 800; }
.price .vat { font-size: .78rem; color: var(--muted); font-weight: 500; }
.price del { color: var(--muted); font-size: .85rem; }
.price .from { font-size: .78rem; color: var(--ok); font-weight: 600; }
.add-btn { width: 44px; height: 44px; border-radius: var(--r); border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.add-btn:hover { background: var(--blue); }
.add-btn:disabled { background: var(--line); cursor: not-allowed; }
.add-btn svg { width: 20px; height: 20px; }
.stock-out { color: var(--err); font-weight: 600; font-size: .85rem; }

/* güven şeridi */
.assure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.assure div { padding: 22px 24px; display: grid; gap: 4px; }
.assure div + div { border-left: 1px solid var(--line); }
.assure strong { font-size: 1.02rem; }
.assure span { color: var(--muted); font-size: .9rem; }

.dealer-band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.dealer-band h2 { font-stretch: 75%; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; }
.dealer-band p { color: #C9D2DE; }
.dealer-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.dealer-band li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.dealer-band li svg { color: var(--tag); width: 22px; height: 22px; margin-top: 2px; }
.dealer-band .muted { color: #9AA6B6; }
.dealer-band .btn-outline { background: transparent; color: #fff; border-color: #5B6675; }

/* ------------------------------------------------------------ liste sayfası */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding-bottom: 64px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: sticky; top: 96px; }
.filters h3 { font-size: .95rem; margin: 18px 0 10px; }
.filters h3:first-child { margin-top: 0; }
.filters .chips .chip span { min-width: 40px; padding: 5px 8px; font-size: .9rem; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.subcats a { padding: 7px 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.subcats a:hover { border-color: var(--blue); color: var(--blue); }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.list-head select { width: auto; min-height: 40px; }
.grid-products.three { grid-template-columns: repeat(3, 1fr); }
.empty { text-align: center; padding: 56px 24px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* ------------------------------------------------------------ ürün detay */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.product-media { background: #F1EEEA; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.product-spec { font-stretch: 65%; font-weight: 800; font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: .9; letter-spacing: -.02em; margin: 6px 0 10px; }
.product-spec small { font-size: 1.1rem; font-stretch: 100%; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin: 22px 0; }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 4px; }
.buy-price strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -.01em; }
.buy-price .vat { color: var(--muted); }
.buy-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin-top: 16px; }
.qty { display: grid; grid-template-columns: 44px 1fr 44px; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; height: 54px; background: #fff; }
.qty button { border: 0; background: var(--paper); font-size: 1.25rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--line-2); }
.qty input { border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 1.1rem; width: 100%; min-width: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tiers { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .92rem; }
.tiers th, .tiers td { padding: 8px 10px; border-top: 1px solid var(--line-2); text-align: left; }
.tiers th { font-weight: 600; color: var(--muted); font-size: .82rem; }
.tiers tr.active td { background: var(--ok-wash); font-weight: 650; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.spec-table th { color: var(--muted); font-weight: 500; width: 42%; }
.ship-note { display: flex; gap: 10px; align-items: center; color: var(--ok); font-weight: 600; font-size: .92rem; margin-top: 14px; }
.ship-note svg { width: 20px; height: 20px; }
.richtext { max-width: 72ch; }
.richtext ul { padding-left: 20px; }

/* ------------------------------------------------------------ sepet / ödeme */
.page-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-bottom: 64px; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cart-table th { text-align: left; font-size: .82rem; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBFC; }
.cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-prod { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.cart-prod img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--line); }
.cart-prod a { color: var(--ink); text-decoration: none; font-weight: 600; }
.cart-table .qty { height: 42px; width: 130px; grid-template-columns: 36px 1fr 36px; }
.num { text-align: right; white-space: nowrap; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: sticky; top: 96px; }
.summary h3 { margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.2rem; font-weight: 800; }
.sum-row .ok { color: var(--ok); font-weight: 650; }
.progress { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin: 6px 0 4px; }
.progress span { display: block; height: 100%; background: var(--ok); }
.pay-options { display: grid; gap: 10px; }
.pay-opt { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 2px; }
.pay-opt strong { display: block; }
.pay-opt span { color: var(--muted); font-size: .9rem; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
.form-section h2 { font-size: 1.15rem; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.form-section h2 .step { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--paper); border-radius: var(--r); padding: 4px; gap: 4px; margin-bottom: 16px; }
.seg label { padding: 8px 16px; border-radius: 7px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* sipariş / banka */
.bank { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 4px; }
.bank .iban { font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 10px; font: inherit; font-size: .8rem; cursor: pointer; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline small { color: var(--muted); display: block; }
.order-hero { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.big-check { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-wash); color: var(--ok); display: grid; place-items: center; flex: none; }

/* ------------------------------------------------------------ hesap / bayi paneli */
.panel { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; padding: 28px 0 64px; }
.side { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; position: sticky; top: 96px; }
.side .who { padding: 12px 12px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.side .who strong { display: block; line-height: 1.25; }
.side a svg { width: 18px; height: 18px; flex: none; }
.side a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 550; }
.side a:hover { background: var(--paper); }
.side a.on { background: var(--blue-wash); color: var(--blue-deep); font-weight: 650; }
.side .group { font-size: .78rem; color: var(--muted); padding: 14px 12px 4px; font-weight: 600; }
.side form button { width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; font: inherit; color: var(--err); cursor: pointer; border-radius: var(--r-sm); }
.side form button:hover { background: var(--err-wash); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.stat span { color: var(--muted); font-size: .88rem; display: block; margin-bottom: 4px; }
.stat strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; }
.stat.main { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.main span { color: #B7C1CE; }
.stat .act { margin-top: 12px; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
.pos { color: var(--ok); font-weight: 650; }
.neg { color: var(--err); font-weight: 650; }
.quick-table td .input { min-height: 38px; width: 90px; text-align: center; padding: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .input { width: auto; min-height: 40px; }
.sticky-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ------------------------------------------------------------ alt bilgi */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 0; padding: 48px 0 0; font-size: .93rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; }
.footer h4 { font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--blue); }
.footer .legal { border-top: 1px solid var(--line); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.paylogos { display: flex; gap: 8px; flex-wrap: wrap; }
.paylogos span { border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; font-weight: 700; font-size: .78rem; color: var(--ink-2); }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 50; }
.wa-float svg { width: 28px; height: 28px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--r); display: flex; gap: 16px; align-items: center; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--tag); font-weight: 700; white-space: nowrap; }

.auth { max-width: 460px; margin: 40px auto 72px; }
.auth.wide { max-width: 760px; }
.auth .card { padding: 32px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ------------------------------------------------------------ duyarlı */
@media (max-width: 1080px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .grid-products.three { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .receipt { justify-self: start; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .assure { grid-template-columns: 1fr 1fr; }
  .assure div:nth-child(3) { border-left: 0; }
  .assure div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .header .wrap { grid-template-columns: auto 1fr auto; gap: 12px; min-height: 64px; }
  .header .search { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-bottom: 12px; }
  .hbtn .label { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav .wrap { flex-direction: column; padding: 8px 20px 16px; }
  .nav-item > a { height: 44px; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav .push { margin-left: 0; }
  .topbar .notice { display: none; }
  .listing, .page-layout, .product, .panel { grid-template-columns: 1fr; }
  .filters, .summary, .side { position: static; }
  .cat-grid { grid-template-columns: 1fr; }
  .dealer-band { grid-template-columns: 1fr; padding: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat.main { grid-column: 1 / -1; }
  .product { gap: 24px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid-products, .grid-products.three { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard-body { padding: 12px; }
  .pcard-spec { font-size: 1.5rem; }
  .price strong { font-size: 1.1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .assure { grid-template-columns: 1fr; }
  .assure div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line-2); }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
  .topbar .contact span.hours { display: none; }
  .buy-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .receipt { padding: 22px 18px 30px; }
}

@media print {
  .topbar, .header, .nav, .footer, .wa-float, .side, .no-print { display: none !important; }
  body { background: #fff; }
}
.pay-opt strong svg, .form-section h2 svg, .btn svg { display: inline-block; vertical-align: -4px; margin-right: 4px; }
.pay-opt strong svg { width: 18px; height: 18px; }
.table th.num, .table td.num, .cart-table th.num { text-align: right; }
@media (max-width: 1080px) { .hero { background: var(--surface); } }

/* logo */
.footer .logo-mark { width: 72px; height: 72px; }
.footer .logo-text { max-width: 28ch; font-weight: 500; color: var(--muted); }
@media (max-width: 600px) { .header .logo-text { display: none; } .logo-mark { width: 44px; height: 44px; } }
