/* ---------- TOKENS — Steel Blue & Brick palette ---------- */
:root{
  --ink:           #1c1d1f;
  --ink-soft:      #4a4d54;
  --ink-muted:     #5f636f;
  --cream:         #f3f2ec;
  --paper:         #f8f7f1;
  --ice:           #dee3eb;
  --ice-deep:      #ccd3df;
  --brand:          #2e4a6b;   /* steel blue — primary brand */
  --brand-deep:     #1f3550;
  --steel:         #6b7689;
  --accent:         #8b2e1a;   /* brick red — secondary brand */
  --accent-deep:    #6d2010;
  --accent-soft:    rgba(139,46,26,0.10);
  --accent-surface:          #d8a99c;   /* terracotta — engineering surface */
  --rule:          rgba(46,74,107,0.12);
  --rule-soft:     rgba(46,74,107,0.06);
}

*{box-sizing:border-box; margin:0; padding:0;}
html,body{
  background: var(--cream);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a{ color: inherit; text-decoration: none; }

/* ---------- TYPE ---------- */
.mono{ font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace; }
h1, h2, h3 { font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; font-weight: 600; letter-spacing: -0.015em; line-height: 1.14; color: var(--ink); }
h1 { font-size: clamp(34px, 4.2vw, 46px); letter-spacing: -0.022em; line-height: 1.08; }
h2 { font-size: clamp(26px, 3.0vw, 36px); line-height: 1.16; }
h3 { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.25; font-weight: 500; }
.overline{
  font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
/* hero overline overridden below to paper-on-photo */
.body-l{ font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.body-m{ font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.body-s{ font-size: 14px; line-height: 1.55; color: var(--ink-muted); }

/* ---------- BUTTONS ---------- */
.btn{
  display: inline-block;
  padding: 16px 32px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .12s linear, color .12s linear, border-color .12s linear;
}
.btn-solid{ background: var(--accent); color: var(--paper); border: 1px solid var(--accent); }
.btn-solid:hover{ background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost{ background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover{ background: var(--brand); color: var(--paper); }
.btn-ghost-light{ background: transparent; color: var(--ice); border: 1px solid var(--ice); }
.btn-ghost-light:hover{ background: var(--ice); color: var(--brand); }
.btn-sm{ padding: 10px 18px; font-size: 11px; letter-spacing: 0.14em; }
/* Asistan butonu: header + alt bant -- ikon + etiket hizalama (btn ile ayni boyut) */
.asistan-btn{ display: inline-flex; align-items: center; gap: 9px; }
.asistan-btn svg{ width: 17px; height: 17px; display: block; flex-shrink: 0; }
/* Madde 22: iOS Safari 16px altı input'a odaklanınca otomatik zoom yapar -> mobil/tablette 16px (checkbox/radio hariç). */
@media (max-width: 960px){
  input:not([type="checkbox"]):not([type="radio"]), textarea, select { font-size: 16px !important; }
}

/* ---------- LAYOUT ---------- */
.container{ width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow{ width: 100%; max-width: 980px; margin: 0 auto; padding: 0 32px; }

/* ---------- TOP BAR ---------- */
.topbar{
  background: var(--accent);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.topbar a{ color: var(--paper); }
.topbar .dot{ background: var(--paper); opacity: 0.6; }
.topbar .row{
  padding: 9px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.topbar .left, .topbar .right{ display: flex; gap: 28px; align-items: center; }
.topbar a{ opacity: 0.9; }
.topbar a:hover{ opacity: 1; }
.topbar .dot{ width: 4px; height: 4px; display: inline-block; }

/* ---------- HEADER ---------- */
header.site{
  background: var(--ice);
  border-bottom: 1px solid var(--rule);
}
header.site .row{
  padding: 20px 6vw;
  display: flex;
  align-items: center;
  gap: 28px;
}
header.site .logo{
  height: 56px;
  width: auto;
  flex-shrink: 0;
  transform: scale(1.3);
  transform-origin: left center;
}
header.site nav{
  display: flex;
  gap: 22px;
  align-items: center;
}
header.site nav a{
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding: 6px 0;
  white-space: nowrap;            /* keep multi-word labels (Bilgi Bankası) on one line */
  border-bottom: 1px solid transparent;
  transition: border-color .12s linear;
}
header.site nav a:hover,
header.site nav a.active{ border-color: var(--accent); color: var(--accent); }
header.site .cta{ flex-shrink: 0; margin-left: auto; display: flex; align-items: center; gap: 16px; }
/* nav dropdown: Hakkımızda > ATAVAL, Referanslar (desktop = hover panel) */
header.site nav .nav-drop{ position: relative; display: flex; align-items: center; }
header.site nav .nav-drop > a{ display: inline-flex; align-items: center; gap: 6px; }
header.site nav .nav-drop > a::after{ content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
header.site nav .nav-drop-menu{ position: absolute; top: 100%; left: 0; margin-top: 6px; min-width: 184px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 12px 30px rgba(28,29,31,0.14); display: none; flex-direction: column; padding: 4px 0; z-index: 60; }
header.site nav .nav-drop:hover .nav-drop-menu, header.site nav .nav-drop:focus-within .nav-drop-menu{ display: flex; }
header.site nav .nav-drop-menu a{ padding: 9px 18px; width: auto; white-space: nowrap; border-bottom: none; }
header.site nav .nav-drop-menu a:hover{ background: var(--ice); color: var(--accent); border-bottom: none; }

/* ---------- HOME HERO ---------- */
.hero{
  background-color: #14181f;
  background-image: url('/assets/hero.webp?v=2');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--paper);
  position: relative;
  /* 135px = topbar (~38px) + header (~97px): hero alti ilk ekranin altina denk gelir */
  min-height: calc(100vh - 135px);
  min-height: calc(100svh - 135px);
  display: flex;
  align-items: center;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,24,31,0.88) 0%, rgba(20,24,31,0.62) 45%, rgba(20,24,31,0.18) 100%);
  z-index: 0;
}
.hero .container{
  position: relative;
  z-index: 1;
  max-width: none;            /* remove the centering cap so content hugs the left */
  margin: 0;
  padding: 0 6vw;             /* left gutter aligns with the header logo */
}
.hero .text{ max-width: 900px; }
.hero .text .overline{ margin-bottom: 24px; display: block; font-size: 12px; letter-spacing: 0.16em; color: var(--paper); opacity: 0.9; }
.hero .text h1{ font-size: clamp(36px, 5.4vw, 66px); line-height: 1.04; margin-bottom: 21px; color: var(--paper); }
.hero .text .lead{ font-size: clamp(15px, 1.6vw, 26px); max-width: 615px; line-height: 1.5; margin-bottom: 36px; color: rgba(250,248,241,0.95); }
.hero .text .actions{ display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero .text .actions .btn{ font-size: 15px; padding: 16px 39px; }

/* ---------- ANINDA TEKLIF (Siparis Asistani cekmecesi) ---------- */
/* teklif-launcher.js "Aninda Teklif" butonlarinda (a[href="#teklif"]) sagdan
   kayan panel olarak acar (cart.js Teklif Listesi cekmecesiyle ayni desen)
   ve uygulamayi tembel yukler. */
.teklif-scrim{
  position: fixed;
  inset: 0;
  background: rgba(28,29,31,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 1010;
}
.teklif-scrim.open{ opacity: 1; visibility: visible; }
.teklif-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 600px;
  max-width: 96vw;
  background: var(--cream);
  box-shadow: -16px 0 48px rgba(28,29,31,0.18);
  transform: translateX(100%);
  transition: transform .24s ease;
  z-index: 1011;
  display: flex;
  flex-direction: column;
}
.teklif-drawer.open{ transform: translateX(0); }
.teklif-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--ice);
  flex-shrink: 0;
}
.teklif-head h2{ font-size: 15px; font-weight: 700; margin: 0; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.teklif-close{
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0;
}
.teklif-close:hover{ background: var(--ice-deep); color: var(--ink); }
.teklif-close svg{ width: 20px; height: 20px; }
.teklif-body{ flex: 1; min-height: 0; display: flex; flex-direction: column; }
.teklif-body #teklif-root{ flex: 1; min-height: 0; }
@media (max-width: 640px){ .teklif-drawer{ width: 100%; max-width: 100vw; } }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero{
  background: var(--accent);
  padding: 88px 0 56px 0;
  border-bottom: 0;
  position: relative;
  color: var(--paper);
}
.page-hero .crumbs{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.page-hero .crumbs a:hover{ color: var(--accent-surface); }
.page-hero .crumbs .sep{ color: rgba(248,247,241,0.55); opacity: 1; }
.page-hero h1{ max-width: 820px; margin-bottom: 18px; color: var(--paper); }
.page-hero .lede{ max-width: 640px; font-size: 18px; color: rgba(248,247,241,0.88); }
/* Photo variant (sector detail pages): image set inline per page under a
   strong accent-red scrim — hero still reads red, photo shows through. */
.page-hero.has-photo{
  background-color: var(--accent);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- HOME teaser sections ---------- */
.teaser-sectors{
  padding: 80px 0 64px 0;
  background: var(--paper);
}
.teaser-sectors .head{
  margin-bottom: 32px;
}
.teaser-sectors .head h2{ max-width: 540px; margin-bottom: 16px; }
.teaser-sectors .head .body-m{ max-width: 560px; }
.teaser-sectors .tiles{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.teaser-sectors .tile{
  padding: 28px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  background: var(--ice);
  transition: background .15s ease;
}
.teaser-sectors .tile:hover{ background: var(--ice-deep); }
.teaser-sectors .tile .num{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--steel);
}
.teaser-sectors .tile .name{
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
}
.teaser-sectors .tile .note{
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: auto;
}
/* Photo variant: background image set inline per tile, scrim keeps text legible */
.teaser-sectors .tile.has-photo{
  position: relative;
  overflow: hidden;
  min-height: 240px;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.teaser-sectors .tile.has-photo::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,20,0.86) 0%, rgba(10,14,20,0.46) 52%, rgba(10,14,20,0.18) 100%);
  transition: background .15s ease;
  pointer-events: none;
}
.teaser-sectors .tile.has-photo:hover{ background-color: var(--ink); }
.teaser-sectors .tile.has-photo:hover::after{
  background: linear-gradient(to top, rgba(10,14,20,0.92) 0%, rgba(10,14,20,0.56) 52%, rgba(10,14,20,0.26) 100%);
}
.teaser-sectors .tile.has-photo .name,
.teaser-sectors .tile.has-photo .note{
  position: relative;
  z-index: 1;
}
.teaser-sectors .tile.has-photo .name{ color: var(--paper); }
.teaser-sectors .tile.has-photo .note{ color: rgba(250,248,241,0.88); }
/* Mobile (<768px): compact horizontal cards like the category list below —
   left-side black gradient carries the text, image shows on the right */
@media (max-width: 767px){
  .teaser-sectors .tile.has-photo{
    min-height: 0;
    height: 112px;
    padding: 0 18px;
    justify-content: center;
    gap: 4px;
  }
  .teaser-sectors .tile.has-photo::after{
    background: linear-gradient(to right, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.62) 42%, rgba(0,0,0,0.08) 78%, transparent 100%);
  }
  .teaser-sectors .tile.has-photo:hover::after{
    background: linear-gradient(to right, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.62) 42%, rgba(0,0,0,0.08) 78%, transparent 100%);
  }
  .teaser-sectors .tile.has-photo .name{ font-size: 17px; padding-right: 20%; }
  .teaser-sectors .tile.has-photo .note{
    margin-top: 0;
    padding-right: 26%;
    font-size: 12px;
    line-height: 1.45;
  }
}
.teaser-products{
  padding: 88px 0 88px 0;
  background: var(--cream);
  border-top: 1px solid var(--rule);
}
.teaser-products .head{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  margin-bottom: 40px;
  align-items: end;
}
.teaser-products .list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
}
.teaser-products .row{
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.teaser-products .row:first-child,
.teaser-products .row:nth-child(2){ border-top: 1px solid var(--rule); }
.teaser-products .row .idx{
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.teaser-products .row .name{
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.teaser-products .row .meta{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ---------- HOME PRODUCT CAROUSEL ---------- */
.teaser-carousel{
  padding: 88px 0 96px 0;
  background: var(--cream);
  border-top: 1px solid var(--rule);
}
.teaser-carousel .head{
  margin-bottom: 36px;
}
.teaser-carousel .head h2{ max-width: 540px; margin-bottom: 16px; }
.teaser-carousel .head .body-l{ max-width: 560px; }
/* Category cards: horizontal photo cards with a left-side black gradient
   carrying the name. Single-column list on mobile, 3x3 grid from 768px up.
   No carousel, no autoplay. */
.teaser-carousel .track-wrap{
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.teaser-carousel .track{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.teaser-carousel .card{
  height: 112px;
  position: relative;
  overflow: hidden;
  background: var(--ink) center center / cover no-repeat;
  display: block;
  color: var(--paper);
}
.teaser-carousel .card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.62) 42%, rgba(0,0,0,0.08) 78%, transparent 100%);
  pointer-events: none;
}
.teaser-carousel .card .body{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 25%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
  color: var(--paper);
  z-index: 2;
}
.teaser-carousel .card .name{
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 4px;
}
.teaser-carousel .card .sub{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,248,241,0.92);
}
@media (min-width: 768px){
  .teaser-carousel .track-wrap{ padding: 0 32px; }
  .teaser-carousel .track{ grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .teaser-carousel .card{ height: 128px; }
  .teaser-carousel .card .name{ font-size: 18px; }
}

/* ---------- CONTACT STRIP (home) ---------- */
.contact-strip{
  background: var(--accent);
  color: var(--paper);
  padding: 88px 0 80px 0;
}
.contact-strip .grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-strip h2{ color: var(--paper); margin-bottom: 16px; }
.contact-strip .lead{ color: rgba(250,248,241,0.85); font-size: 17px; max-width: 480px; }
.contact-strip .right{
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;   /* mobilde 3 buton tek satıra sığmıyor -> yatay taşmayı önle */
}
.contact-strip .right .btn{ padding: 14px 22px; white-space: nowrap; }

/* ---------- PRODUCT CATEGORY GRID (urunler/) ---------- */
.cat-grid{
  padding: 72px 0 96px 0;
  background: var(--cream);
}
.cat-grid .list{
  border-top: 1px solid var(--rule);
}
.cat-grid .cat-row{
  display: grid;
  grid-template-columns: 80px 1.2fr 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color .12s linear;
}
.cat-grid .cat-row:hover{ background: var(--accent-soft); }
.cat-grid .cat-row .idx{
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--steel);
}
.cat-grid .cat-row .name{
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}
.cat-grid .cat-row .desc{
  font-size: 14px;
  color: var(--ink-muted);
}
.cat-grid .cat-row .meta{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ---------- SUBCATEGORY GRID (category page) ---------- */
.subcat-grid{
  padding: 64px 0 96px 0;
  background: var(--cream);
}
.subcat-grid .list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
}
.subcat-grid .subcat{
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 18px;
  align-items: baseline;
}
.subcat-grid .subcat:first-child,
.subcat-grid .subcat:nth-child(2){ border-top: 1px solid var(--rule); }
.subcat-grid .subcat .idx{
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.subcat-grid .subcat .name{ font-size: 18px; font-weight: 500; color: var(--ink); }
.subcat-grid .subcat .count{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- COMPARISON TABLE (subcategory/Tier 2) ---------- */
.compare{
  padding: 64px 0 96px 0;
  background: var(--cream);
}
.compare .tools{
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
  gap: 32px;
  flex-wrap: wrap;
}
.compare .tools .filters{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.compare .tools .filter{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  cursor: pointer;
}
.compare .tools .filter.active{ background: var(--accent); color: var(--paper); border-color: var(--accent); }
.compare .tools .count{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.compare table{
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--rule);
}
.compare thead th{
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: left;
  font-weight: 500;
  padding: 14px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  white-space: nowrap;
}
.compare tbody td{
  padding: 18px 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink);
  vertical-align: middle;
}
.compare tbody td.sku{
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.compare tbody td.name{ font-weight: 500; }
.compare tbody td a.detail{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 2px;
}
.compare tbody td a.detail:hover{ color: var(--accent); border-bottom-color: var(--accent); }
.compare tbody td .actions{ display: flex; gap: 12px; }
.compare tbody tr:hover td{ background: var(--accent-soft); }

/* ---------- SKU DETAIL (Tier 3a) ---------- */
.sku-page{
  background: var(--cream);
  padding: 64px 0 80px 0;
}
.sku-page .grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}
.sku-page .visual{
  background: var(--ice-deep);
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.sku-page .visual img{ width: 100%; height: 100%; object-fit: cover; object-position: 30% center; display: block; }
.sku-page .visual .badge{
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--accent);
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 14px;
}
.sku-page .info .code{
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.sku-page .info h1{ font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 16px; line-height: 1.15; }
.sku-page .info .desc{ color: var(--ink-soft); font-size: 16px; margin-bottom: 32px; max-width: 540px; }
.sku-page .info .specs{ border-top: 1px solid var(--rule); margin-bottom: 32px; }
.sku-page .info .specs .row{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.sku-page .info .specs .row .k{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.sku-page .info .specs .row .v{ font-size: 14px; color: var(--ink); }
.sku-page .info .actions{ display: flex; gap: 14px; flex-wrap: wrap; }
.sku-related{
  background: var(--paper);
  padding: 72px 0 88px 0;
  border-top: 1px solid var(--rule);
}
.sku-related h3{ margin-bottom: 24px; }
.sku-related .list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.sku-related .item{
  padding: 22px 18px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.sku-related .item:last-child{ border-right: 0; }
.sku-related .item .sku{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
.sku-related .item .name{ font-size: 16px; font-weight: 500; color: var(--ink); }

/* ---------- SECTORS PAGE ---------- */
.sectors-list{
  padding: 64px 0 96px 0;
  background: var(--cream);
}
.sectors-list .container{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 22px;
}
.sectors-list .item{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color .12s linear, box-shadow .12s linear, transform .12s linear;
}
.sectors-list .item:hover{ border-color: var(--ice-deep); box-shadow: 0 8px 26px rgba(31,53,80,0.09); transform: translateY(-2px); }
.sectors-list .item .name{
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.sectors-list .item .desc{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}
.sectors-list .item .arrow{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 4px;
}
/* Photo variant: same treatment as the homepage sector tiles — background
   image set inline per card, dark scrim for text legibility */
.sectors-list .item.has-photo{
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 0;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sectors-list .item.has-photo::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,20,0.88) 0%, rgba(10,14,20,0.48) 52%, rgba(10,14,20,0.18) 100%);
  transition: background .15s ease;
  pointer-events: none;
}
.sectors-list .item.has-photo:hover::after{
  background: linear-gradient(to top, rgba(10,14,20,0.94) 0%, rgba(10,14,20,0.58) 52%, rgba(10,14,20,0.26) 100%);
}
.sectors-list .item.has-photo .name,
.sectors-list .item.has-photo .desc,
.sectors-list .item.has-photo .arrow{
  position: relative;
  z-index: 1;
}
.sectors-list .item.has-photo .name{ color: var(--paper); }
.sectors-list .item.has-photo .desc{ color: rgba(250,248,241,0.88); }
.sectors-list .item.has-photo .arrow{ color: var(--accent-surface); }
/* Mobile (<768px): compact horizontal cards, same treatment as the homepage
   sector tiles — left-side black gradient carries the text, image shows on
   the right. Desc is longer than the homepage note, so clamp to two lines
   and drop the arrow. */
@media (max-width: 767px){
  .sectors-list .item.has-photo{
    min-height: 0;
    height: 112px;
    padding: 0 18px;
    justify-content: center;
    gap: 4px;
  }
  .sectors-list .item.has-photo::after{
    background: linear-gradient(to right, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.62) 42%, rgba(0,0,0,0.08) 78%, transparent 100%);
  }
  .sectors-list .item.has-photo:hover::after{
    background: linear-gradient(to right, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.62) 42%, rgba(0,0,0,0.08) 78%, transparent 100%);
  }
  .sectors-list .item.has-photo .name{ font-size: 17px; padding-right: 20%; }
  .sectors-list .item.has-photo .desc{
    flex: none;
    margin-top: 0;
    padding-right: 26%;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sectors-list .item.has-photo .arrow{ display: none; }
}

/* ---------- SECTOR DETAIL ---------- */
.sector-sec{ padding: 60px 0; border-bottom: 1px solid var(--rule); background: var(--paper); }
.sector-sec .wrap{ display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 56px; align-items: start; }
.sector-sec .overline{ font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.sector-intro h2{ font-size: 26px; line-height: 1.22; margin-top: 10px; color: var(--ink); }
.sector-intro p, .sector-std p{ font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.sector-lines h2{ font-size: 20px; margin-bottom: 22px; color: var(--ink); }
.sector-lines table{ width: 100%; border-collapse: collapse; border: 1px solid var(--rule); }
.sector-lines th{ text-align: left; background: var(--brand); color: var(--paper); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 16px; }
.sector-lines td{ padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-soft); vertical-align: top; }
.sector-lines tr:last-child td{ border-bottom: 0; }
.sector-lines td:first-child{ width: 34%; }
.sector-lines td a{ color: var(--brand); border-bottom: 1px solid var(--brand); padding-bottom: 1px; font-weight: 500; }
.sector-lines td a:hover{ color: var(--accent); border-bottom-color: var(--accent); }
.sector-close{ background: var(--brand-deep); }
.sector-close .container{ display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 36px; padding-bottom: 36px; flex-wrap: wrap; }
.sector-close p{ color: var(--paper); font-size: 18px; line-height: 1.5; max-width: 620px; margin: 0; }
@media (max-width: 760px){
  .sector-sec .wrap{ grid-template-columns: 1fr; gap: 18px; }
  .sector-lines td:first-child{ width: auto; }
}

/* ---------- SOLUTIONS PAGE ---------- */
.solutions{
  padding: 64px 0 96px 0;
  background: var(--cream);
}
.solutions .grid{
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 80px;
  align-items: start;
}
.solutions .title-col h2{ margin-bottom: 16px; }
.solutions .title-col p{ font-size: 16px; color: var(--ink-soft); max-width: 320px; }
.solutions ul{ list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.solutions ul li{
  padding: 24px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px;
}
.solutions ul li .head{ margin-bottom: 2px; }
.solutions ul li .name{ font-size: 17px; font-weight: 600; color: var(--ink); }
.solutions ul li .desc{ font-size: 14px; color: var(--ink-soft); line-height: 1.5; max-width: none; }

/* ---------- ENGINEERING (calculators page) ---------- */
.eng-page{
  padding: 64px 0 96px 0;
  background: var(--cream);
}
.eng-page .block{ margin-bottom: 56px; }
.eng-page .block:last-child{ margin-bottom: 0; }
.eng-page .block h2{ font-size: 22px; margin-bottom: 20px; }
.eng-page .block .grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--brand);
  border-left: 1px solid var(--brand);
  border-right: 1px solid var(--brand);
}
.eng-page .tool{
  padding: 24px 28px 28px 28px;
  border-bottom: 1px solid var(--brand);
  border-right: 1px solid var(--brand);
  background: transparent;
}
.eng-page .tool:nth-child(2n){ border-right: 0; }
.eng-page .tool .tag{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eng-page .tool .name{
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin: 8px 0 8px 0;
}
.eng-page .tool .desc{ font-size: 14px; color: var(--ink-muted); margin-bottom: 14px; max-width: 360px; }
.eng-page .tool .status{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eng-page .tool .status.live{ color: var(--accent); }
.eng-page .tool .status.soon{ color: var(--accent); }

/* ---------- KNOWLEDGE BASE ---------- */
.kb-page{
  padding: 64px 0 96px 0;
  background: var(--cream);
}
.kb-page .grid{
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 64px;
  align-items: start;
}
.kb-page aside h4{
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 36px 0 16px;
  font-weight: 500;
}
.kb-page aside h4:first-child{ margin-top: 0; }
.kb-page aside ul{ list-style: none; border-top: 1px solid var(--rule); }
.kb-page aside ul li{
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.kb-page aside ul li .n{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ink-muted);
}
.kb-page .posts{ border-top: 1px solid var(--rule); }
.kb-page .post{
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}
.kb-page .post .meta{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.6;
}
.kb-page .post h3{ font-size: 22px; margin-bottom: 8px; line-height: 1.25; }
.kb-page .post .excerpt{ font-size: 15px; color: var(--ink-soft); max-width: 640px; }
.kb-page .post:hover h3{ color: var(--accent); }
.kb-page .post .meta{ color: var(--accent); }

/* ---------- REFERENCES PAGE ---------- */
.refs-page{
  padding: 64px 0 96px 0;
  background: var(--cream);
}
.refs-page h2.subhead{ font-size: 20px; margin-bottom: 20px; }
.refs-page .logos{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 64px;
}
.refs-page .logos .item{
  height: 92px;
  border-right: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.refs-page .logos .item:nth-child(6n){ border-right: 0; }
.refs-page .logos .item:nth-child(n+7){ border-top: 1px solid var(--rule); }

/* DEMO placeholder: the Ayvaz logo recoloured across the reference cells.
   The logo PNG's alpha is used as a CSS mask so background-color paints the
   mark any colour on a white cell. Grayscale by default, full colour + lift on
   hover. Swap for real client logos before production. */
.refs-page .logos .item.logo-cell{ background: #fff; padding: 18px 22px; }
.refs-page .ayvaz-mark{
  display: block;
  width: 100%;
  height: 44px;
  -webkit-mask: url(/assets/ayvaz-logo.png) center / contain no-repeat;
          mask: url(/assets/ayvaz-logo.png) center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(28,29,31,0.12));
  transition: transform .28s ease, filter .28s ease;
}
.refs-page .logo-cell:hover .ayvaz-mark{
  transform: scale(1.10);
  filter: drop-shadow(0 8px 16px rgba(28,29,31,0.24));
}
.refs-page .ayvaz-mark.c1{ background-color: #2e4a6b; }
.refs-page .ayvaz-mark.c2{ background-color: #8b2e1a; }
.refs-page .ayvaz-mark.c3{ background-color: #1f7a4d; }
.refs-page .ayvaz-mark.c4{ background-color: #c4942a; }
.refs-page .ayvaz-mark.c5{ background-color: #6a2c91; }
.refs-page .ayvaz-mark.c6{ background-color: #1f8a8a; }
.refs-page .ayvaz-mark.c7{ background-color: #b5275f; }
.refs-page .ayvaz-mark.c8{ background-color: #d2691e; }
.refs-page .ayvaz-mark.c9{ background-color: #355e9c; }
.refs-page .ayvaz-mark.c10{ background-color: #5d7a23; }
.refs-page .ayvaz-mark.c11{ background-color: #9c1f2e; }
.refs-page .ayvaz-mark.c12{ background-color: #374151; }
.refs-page .projects{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 22px;
}
.refs-page .project{
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .12s linear, box-shadow .12s linear, transform .12s linear;
}
.refs-page .project:hover{ border-color: var(--ice-deep); box-shadow: 0 8px 26px rgba(31,53,80,0.09); transform: translateY(-2px); }
.refs-page .project .name{ font-size: 18px; font-weight: 600; color: var(--ink); }
.refs-page .project .desc{ font-size: 13px; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.refs-page .project .meta{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- ABOUT PAGE ---------- */
.about-page{
  padding: 64px 0 96px 0;
  background: var(--cream);
}
.about-page .lead-block{
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 72px;
  margin-bottom: 80px;
  align-items: start;
}
.about-page .lead-block h2{ margin-bottom: 16px; }
.about-page .lead-block .body-l{ max-width: 600px; }
.about-page .info-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
.about-page .info-grid .cell{
  padding: 28px 28px 32px 28px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.about-page .info-grid .cell:nth-child(2n){ border-right: 0; }
.about-page .info-grid .cell h4{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.about-page .info-grid .cell .value{
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 17px;
  color: var(--ink);
}
.about-page .legal{
  margin-top: 64px;
  padding: 32px 28px;
  border: 1px solid var(--rule);
  background: var(--paper);
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 32px;
}
.about-page .legal h4{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.about-page .legal .rows{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
.about-page .legal .rows .k{
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}
.about-page .legal .rows .v{ font-size: 14px; color: var(--ink); }

/* ---------- CONTACT PAGE ---------- */
.contact-page{
  padding: 64px 0 96px 0;
  background: var(--cream);
}
.contact-page .grid{
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 88px;
  align-items: start;
}
.contact-page .channels{ border-top: 1px solid var(--rule); }
.contact-page .channels .row{
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: baseline;
}
.contact-page .channels .row .label{
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.contact-page .channels .row .value{
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  color: var(--ink);
}
.contact-page .form{
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 36px 32px 32px 32px;
}
.contact-page .form h3{ font-size: 22px; margin-bottom: 20px; }
.contact-page .form .field{ margin-bottom: 16px; }
.contact-page .form label{
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-page .form input,
.contact-page .form textarea,
.contact-page .form select{
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .12s linear;
}
.contact-page .form input:focus,
.contact-page .form textarea:focus,
.contact-page .form select:focus{ border-color: var(--brand); }
.contact-page .form textarea{ min-height: 92px; resize: vertical; }
.contact-page .form .sla{
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 14px;
  letter-spacing: 0.04em;
}
.contact-page .map{
  margin-top: 64px;
  width: 100%;
  height: 280px;
  background: var(--ice-deep);
  border: 1px solid var(--rule);
  display: block;
}

/* ---------- FOOTER ---------- */
footer.site{
  background: var(--brand-deep);
  color: rgba(232,236,245,0.78);
  padding: 56px 6vw 28px 6vw;
}
footer.site .grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(232,236,245,0.12);
}
footer.site .brand h2{
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 18px;
  color: var(--ice);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
footer.site .brand p{ font-size: 14px; max-width: 280px; }
footer.site .col h3{
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 500;
}
footer.site .col ul{ list-style: none; }
footer.site .col li{ padding: 5px 0; font-size: 14px; }
footer.site .col a:hover{ color: var(--ice); }
footer.site .legal{
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(232,236,245,0.65);
}

/* ---- mobile hamburger (hidden by default; the <960px media query in the
   RESPONSIVE section below must come later in the file to win the cascade) ---- */
.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; flex-shrink: 0;
  border: 1px solid var(--rule); background: transparent; cursor: pointer;
}
.nav-toggle span{
  display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--ink);
  transition: transform .18s ease, opacity .18s ease;
}
header.site.nav-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
header.site.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
header.site.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px){
  .compare table{ font-size: 13px; }
  .compare thead th, .compare tbody td{ padding: 12px 10px; }
}
/* Header-only: switch to the hamburger before the full nav (7 items + account +
   CTA) would overflow. The site grids still go single-column at 960px below. */
@media (max-width: 1180px){
  header.site .row{ flex-wrap: wrap; gap: 20px; }
  .nav-toggle{ display: inline-flex; margin-left: auto; }
  header.site nav{ order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 6px; display: none; }
  header.site.nav-open nav{ display: flex; }
  header.site nav a{ padding: 8px 0; width: 100%; }
  header.site nav .nav-drop{ flex-direction: column; align-items: flex-start; width: 100%; }
  header.site nav .nav-drop-menu{ position: static; display: flex; margin: 0 0 0 16px; padding: 0; min-width: 0; background: transparent; border: none; box-shadow: none; }
  header.site nav .nav-drop-menu a{ padding: 8px 0; }
  header.site nav .nav-drop > a::after{ display: none; }
  header.site .cta{ margin-left: 0; order: 2; }
  .nav-toggle{ order: 3; margin-left: 12px; }
}
@media (max-width: 960px){
  header.site .row{ flex-wrap: wrap; gap: 20px; }
  .nav-toggle{ display: inline-flex; margin-left: auto; }
  header.site nav{ order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 6px; display: none; }
  header.site.nav-open nav{ display: flex; }
  header.site nav a{ padding: 8px 0; width: 100%; }
  /* nav dropdown collapses to indented inline sub-links in the hamburger panel */
  header.site nav .nav-drop{ flex-direction: column; align-items: flex-start; width: 100%; }
  header.site nav .nav-drop-menu{ position: static; display: flex; margin: 0 0 0 16px; padding: 0; min-width: 0; background: transparent; border: none; box-shadow: none; }
  header.site nav .nav-drop-menu a{ padding: 8px 0; }
  header.site nav .nav-drop > a::after{ display: none; }
  header.site .cta{ margin-left: 0; }
  .hero{ padding: 96px 0; min-height: 100vh; min-height: 100svh; background-size: cover; background-position: center;
    background-image: url('/assets/hero-1280.webp?v=2'); }
  .hero .text{ max-width: 100%; }
  .teaser-sectors .head{ grid-template-columns: 1fr; gap: 24px; }
  .teaser-sectors .tiles{ grid-template-columns: 1fr; }
  .teaser-sectors .tile{ border-right: 0; }
  .teaser-products .head{ grid-template-columns: 1fr; gap: 24px; }
  .teaser-products .list{ grid-template-columns: 1fr; column-gap: 0; }
  .teaser-products .row:nth-child(2){ border-top: 0; }
  .contact-strip .grid{ grid-template-columns: 1fr; gap: 32px; }
  .contact-strip .right{ justify-content: flex-start; }
  .cat-grid .cat-row{ grid-template-columns: 60px 1fr; }
  .cat-grid .cat-row .desc, .cat-grid .cat-row .meta{ grid-column: 1 / -1; padding-left: 76px; }
  .subcat-grid .list{ grid-template-columns: 1fr; column-gap: 0; }
  .subcat-grid .subcat:nth-child(2){ border-top: 0; }
  .compare{ overflow-x: auto; }
  .compare table{ min-width: 720px; }
  .sku-page .grid{ grid-template-columns: 1fr; gap: 40px; }
  .sku-related .list{ grid-template-columns: repeat(2, 1fr); }
  .sku-related .item:nth-child(2){ border-right: 0; }
  .solutions .grid{ grid-template-columns: 1fr; gap: 40px; }
  .eng-page .block .grid{ grid-template-columns: 1fr; }
  .eng-page .tool{ border-right: 0; }
  .kb-page .grid{ grid-template-columns: 1fr; gap: 40px; }
  .refs-page .logos{ grid-template-columns: repeat(3, 1fr); }
  .refs-page .logos .item:nth-child(3n){ border-right: 0; }
  .refs-page .logos .item:nth-child(n+4){ border-top: 1px solid var(--rule); }
  .refs-page .logos .item:nth-child(3n+1){ border-right: 1px solid var(--rule); }
  .refs-page .logos .item:nth-child(6n){ border-right: 0; }
  .about-page .lead-block{ grid-template-columns: 1fr; gap: 32px; }
  .about-page .info-grid{ grid-template-columns: 1fr; }
  .about-page .info-grid .cell{ border-right: 0; }
  .about-page .legal{ grid-template-columns: 1fr; }
  .about-page .legal .rows{ grid-template-columns: 1fr; }
  .contact-page .grid{ grid-template-columns: 1fr; gap: 48px; }
  .contact-page .channels .row{ grid-template-columns: 100px 1fr; }
  footer.site .grid{ grid-template-columns: 1fr 1fr; gap: 32px; }
  footer.site .brand{ grid-column: 1 / -1; }
}
@media (max-width: 560px){
  .topbar .right{ display: none; }
  /* one-line topbar: phone / email / hours fade in rotation */
  .topbar .left{ position: relative; display: block; width: 100%; height: 1.4em; overflow: hidden; }
  .topbar .left .dot{ display: none; }
  .topbar .left > span:not(.dot), .topbar .left > a{
    position: absolute; top: 0; left: 0; width: 100%; text-align: center;
    white-space: nowrap; opacity: 0; animation: topbar-rotate 17.5s linear infinite;
  }
  .topbar .left > span:nth-child(1){ animation-delay: 0s; }
  .topbar .left > a:nth-child(3){ animation-delay: 3.5s; }
  .topbar .left > span:nth-child(5){ animation-delay: 7s; }
  .topbar .left > span:nth-child(7){ animation-delay: 10.5s; }
  .topbar .left > a:nth-child(9){ animation-delay: 14s; }
  header.site .row{ padding: 16px 6vw; }
  header.site .logo{ height: 44px; }
  /* keep the account/login control (only login entry on the site);
     drop the Ürünleri Gör button (duplicated in the nav) */
  header.site .cta{ order: 2; margin-left: auto; }
  header.site .cta .btn{ display: none; }
  .nav-toggle{ order: 3; margin-left: 12px; }
  header.site .acct-btn{ padding: 10px 12px; font-size: 13px; }
  footer.site .grid{ grid-template-columns: 1fr; }
  .topbar { font-size: 11px; }
}
/* 5 items x 3.5s = 17.5s cycle; each item owns a 20% window */
@keyframes topbar-rotate{
  0%{ opacity: 0; }
  3%{ opacity: 1; }
  17%{ opacity: 1; }
  20%{ opacity: 0; }
  100%{ opacity: 0; }
}
@media (max-width: 560px) and (prefers-reduced-motion: reduce){
  .topbar .left > span:not(.dot), .topbar .left > a{ animation: none; }
  .topbar .left > span:nth-child(1){ opacity: 1; }
}

/* ---------- PRODUCT CATEGORY CARDS (urunler/ redesign) ---------- */
.cat-cards{ padding: 56px 0 96px 0; background: var(--cream); }
.cat-cards .grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px,100%), 1fr));
  gap: 22px;
}
/* Yedek parçalar kategorilerden mavi bir çizgiyle ayrılır */
.cat-cards .grid-spare{
  border-top: 2px solid var(--brand);
  margin-top: 36px;
  padding-top: 36px;
}
/* featured selector banner spans the full row */
.cat-feature{
  margin-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--brand-deep); color: var(--paper);
  padding: 34px 36px; flex-wrap: wrap;
}
.cat-feature .t{ max-width: 640px; }
.cat-feature .overline{ color: var(--accent-surface); margin-bottom: 10px; display: block; }
.cat-feature h2{ color: var(--paper); font-size: 24px; margin-bottom: 8px; }
.cat-feature p{ color: rgba(248,247,241,0.82); font-size: 15px; }
.cat-feature .btn{ flex: 0 0 auto; }

.cat-card{
  background: var(--paper); border: 1px solid var(--rule);
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  transition: border-color .12s linear, box-shadow .12s linear, transform .12s linear;
}
.cat-card .cat-thumb{
  height: 168px; background: var(--ink) center / cover no-repeat;
  border-bottom: 1px solid var(--rule);
}
a.cat-card:hover .cat-thumb{ filter: brightness(1.05); }
.cat-card.is-soon .cat-thumb{ filter: grayscale(1) opacity(0.55); }
a.cat-card:hover{ border-color: var(--ice-deep); box-shadow: 0 8px 26px rgba(31,53,80,0.09); transform: translateY(-2px); }
.cat-card .body{ padding: 18px 24px 22px 24px; flex: 1; }
.cat-card h3{ font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.2; }
.cat-card p{ font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.cat-card .foot{
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 24px; border-top: 1px solid var(--rule);
}
.cat-card .go{
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); border-bottom: 1px solid var(--brand); padding-bottom: 2px;
}
a.cat-card:hover .go{ color: var(--accent); border-bottom-color: var(--accent); }
.cat-card .soon{
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); background: var(--cream); border: 1px solid var(--rule); padding: 4px 9px;
}
.cat-card.is-soon{ opacity: 0.72; }
.cat-card .tag-count{ font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-muted); }

@media (max-width: 560px){
  .cat-feature{ padding: 26px 22px; }
  .cat-feature h2{ font-size: 21px; }
}

/* ---- accessibility: skip link + focus ring ---- */
.skip-link{
  position: absolute; left: 8px; top: -52px; z-index: 2000;
  background: var(--brand); color: var(--paper);
  padding: 10px 16px; font: 600 14px "IBM Plex Sans", sans-serif;
  transition: top .15s ease;
}
.skip-link:focus{ top: 8px; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- legal pages + footer legal links ---- */
.legal-doc{ max-width: 760px; }
.legal-doc h2{ font-size: 20px; margin: 28px 0 10px; }
.legal-doc p{ font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 12px; }
.legal-note{ background: var(--ice); border: 1px solid var(--rule); padding: 14px 16px; margin: 0 0 8px; }
.legal-links a{ color: var(--ink-muted); }
.legal-links a:hover{ color: var(--accent); }
/* koyu footer'da ink-muted okunmaz -> footer kopyası açık renk */
footer.site .legal-links a{ color: rgba(232,236,245,0.78); }
footer.site .legal-links a:hover{ color: #fff; }

/* picture wrapper shouldn't affect layout; the inner img keeps existing sizing */
picture { display: contents; }

/* ---- print ---- */
@media print {
  .topbar, .nav-toggle, header.site nav, header.site .cta, .skip-link,
  .cart-btn, .cart-scrim, .cart-drawer, .cookie-bar, .to-top { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; }
  .hero, .page-hero { background: none !important; min-height: auto; padding: 16px 0; }
  .hero::before { display: none !important; }
  .hero .text h1, .hero .text .lead, .hero .text .overline,
  .page-hero h1, .page-hero .lede { color: #000 !important; }
  .btn { border: 1px solid #000 !important; color: #000 !important; background: #fff !important; }
  header.site, footer.site { border: none; }
  main a[href^="http"]::after, main a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  section, .legal-doc, .product-card { page-break-inside: avoid; }
}

/* ---- customer login: header account control + modal (auth.js) ----
   NOTE: .cta layout lives in the header base styles near the top of this
   file; do not re-declare display here or it overrides the <=560px hide. */
.acct{ display: flex; align-items: center; }
.acct-btn{
  font: 500 15px/1 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink); background: transparent;
  border: 1px solid var(--rule); border-radius: 0;
  padding: 12px 18px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .2s ease, color .2s ease;
}
.acct-btn:hover{ border-color: var(--brand); color: var(--brand); }
.acct-btn .caret{ width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; }
/* Initials avatar: a standalone circle beside the name button (not inside it);
   fill colour is set inline per-user by auth.js, text stays white. */
.acct-menu .acct-ava{
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font: 600 14px/1 "IBM Plex Sans", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: .3px;
}
.acct-menu{ position: relative; display: inline-flex; align-items: center; gap: 10px; }
/* Signed-in name sits bare beside the avatar -- no box around it (the
   logged-out "Giriş Yap" button keeps its border; this is scoped to .acct-menu). */
.acct-menu .acct-btn{ border: 0; padding: 6px 4px; }
.acct-pop{
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--rule); border-radius: 0;
  box-shadow: 0 10px 30px rgba(28,29,31,0.12); padding: 12px; min-width: 200px; z-index: 60;
}
.acct-pop .acct-email{ font-size: 12px; color: var(--ink-muted); word-break: break-all; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.acct-pop .acct-link{
  display: block; font: 500 14px/1 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink); padding: 9px 6px; border-radius: 0;
}
.acct-pop .acct-link:hover{ background: var(--ice); color: var(--brand); }
.acct-pop .acct-admin{ color: var(--brand); font-weight: 600; margin-bottom: 6px; padding-bottom: 9px; border-bottom: 1px solid var(--rule); }
.acct-pop .acct-admin:hover{ background: var(--ice); color: var(--brand-deep); }
.acct-logout{
  width: 100%; text-align: left; font: 500 14px/1 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--accent); background: transparent; border: 0; padding: 9px 6px; cursor: pointer; border-radius: 0;
  margin-top: 6px; border-top: 1px solid var(--rule);
}
.acct-logout:hover{ background: var(--accent-soft); }

.auth-modal{ position: fixed; inset: 0; z-index: 200; display: none; }
.auth-modal.open{ display: block; }
.auth-scrim{ position: absolute; inset: 0; background: rgba(28,29,31,0.45); }
.auth-card{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(92vw, 400px); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 0; padding: 28px 26px;
  box-shadow: 0 24px 60px rgba(28,29,31,0.28);
}
.auth-x{ position: absolute; right: 14px; top: 10px; font-size: 26px; line-height: 1; color: var(--ink-muted); background: none; border: 0; cursor: pointer; }
.auth-title{ font-size: 22px; margin: 0 0 6px; color: var(--ink); }
.auth-sub{ font-size: 13px; color: var(--ink-soft); margin: 0 0 20px; }
.auth-google{
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 "IBM Plex Sans", system-ui, sans-serif; color: var(--ink);
  background: #fff; border: 1px solid var(--ice-deep); border-radius: 0; padding: 12px; cursor: pointer;
  transition: border-color .2s ease;
}
.auth-google:hover{ border-color: var(--brand); }
.auth-google .g{ font-weight: 700; color: var(--brand); font-size: 17px; }
.auth-or{ text-align: center; position: relative; margin: 18px 0; }
.auth-or::before{ content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--rule); }
.auth-or span{ position: relative; background: var(--paper); padding: 0 12px; font-size: 12px; color: var(--ink-muted); }
.auth-form label{ display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.auth-form input{
  display: block; width: 100%; margin-top: 5px; box-sizing: border-box;
  font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--ice-deep); border-radius: 0; padding: 11px 12px;
}
.auth-form input:focus{ outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.auth-err{ display: none; font-size: 13px; color: var(--accent); margin: 2px 0 12px; }
.auth-submit{
  width: 100%; font: 600 15px/1 "IBM Plex Sans", system-ui, sans-serif; color: #fff;
  background: var(--brand); border: 0; border-radius: 0; padding: 13px; cursor: pointer; margin-top: 4px;
}
.auth-submit:hover{ background: var(--brand-deep); }
.auth-submit:disabled{ opacity: .6; cursor: default; }
.auth-foot{ display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.auth-link{ font-size: 13px; color: var(--brand); background: none; border: 0; cursor: pointer; padding: 0; }
.auth-link:hover{ text-decoration: underline; }
@media (max-width: 560px){
  .acct-btn{ padding: 10px 14px; font-size: 14px; }
}

/* ---- customer dashboard (/hesabim/, account.js) -------------------------- */
.account-page{ padding: 56px 0 88px; }
.cart-savedraft{ width: 100%; justify-content: center; margin-bottom: 10px; }
.acct-loading{ padding: 80px 0; text-align: center; color: var(--ink-muted); }
.acct-gate{ max-width: 520px; margin: 24px auto; text-align: center; }
.acct-gate h1{ margin-bottom: 14px; }
.acct-gate p{ color: var(--ink-soft); margin-bottom: 26px; }
.acct-wrap{ display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.acct-side{ position: sticky; top: 24px; background: var(--paper); border: 1px solid var(--rule); padding: 22px; }
.acct-id{ display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.acct-avatar{ width: 44px; height: 44px; flex-shrink: 0; background: var(--brand); color: var(--paper); display: flex; align-items: center; justify-content: center; font: 600 19px "IBM Plex Sans", sans-serif; }
.acct-name{ font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.2; }
.acct-mail{ font-size: 12px; color: var(--ink-muted); word-break: break-all; }
.acct-nav{ display: flex; flex-direction: column; gap: 2px; }
.acct-nav a{ font: 500 15px/1 "IBM Plex Sans", sans-serif; color: var(--ink-soft); padding: 11px 12px; }
.acct-nav a:hover{ background: var(--ice); color: var(--ink); }
.acct-nav a.active{ background: var(--ice); color: var(--brand); font-weight: 600; }
.acct-signout{ margin-top: 16px; width: 100%; text-align: left; font: 500 14px/1 "IBM Plex Sans", sans-serif; color: var(--accent); background: transparent; border: 1px solid var(--rule); padding: 11px 12px; cursor: pointer; }
.acct-signout:hover{ background: var(--accent-soft); border-color: var(--accent); }
.acct-main{ min-width: 0; }
.acct-h{ font-size: 24px; margin-bottom: 6px; }
.acct-h3{ font-size: 16px; margin: 30px 0 14px; display: flex; align-items: center; gap: 10px; }
.acct-h3:first-of-type{ margin-top: 8px; }
.acct-count{ font: 600 12px/1 "IBM Plex Mono", monospace; background: var(--ice); color: var(--ink-soft); padding: 4px 8px; }
.acct-sub{ color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.acct-muted{ color: var(--ink-muted); }
.acct-form{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 640px; }
.acct-form.narrow{ grid-template-columns: 1fr; max-width: 480px; }
.acct-fld{ display: flex; flex-direction: column; }
.acct-fld-wide{ grid-column: 1 / -1; }
.acct-fld label{ font-size: 13px; color: var(--ink-soft); margin-bottom: 5px; }
.acct-fld input, .acct-fld textarea{ font: 400 15px "IBM Plex Sans", sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--ice-deep); border-radius: 0; padding: 11px 12px; }
.acct-fld input:focus, .acct-fld textarea:focus{ outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.acct-fld input:disabled{ background: var(--cream); color: var(--ink-muted); }
.acct-actions{ grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.acct-status{ font-size: 13px; color: var(--ink-soft); }
.acct-status.ok{ color: var(--brand); }
.acct-status.err{ color: var(--accent); }
.acct-cards{ display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.acct-card{ background: var(--paper); border: 1px solid var(--rule); padding: 18px 18px 16px; }
.acct-card-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.acct-card-head h4{ font-size: 15px; line-height: 1.3; }
.acct-total{ font: 600 15px "IBM Plex Mono", monospace; color: var(--brand); white-space: normal; text-align: right; }
.acct-meta{ font-size: 12px; }
.acct-note{ font-size: 13px; color: var(--ink-soft); background: var(--cream); padding: 8px 10px; margin: 10px 0; }
.acct-ship{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.acct-items{ list-style: none; margin: 12px 0; padding: 0; }
.acct-items li{ font-size: 13px; color: var(--ink-soft); padding: 4px 0; border-bottom: 1px dashed var(--rule); }
.acct-items li:last-child{ border-bottom: 0; }
.acct-items .q{ font-family: "IBM Plex Mono", monospace; color: var(--ink); font-weight: 600; }
.acct-items .attrs{ font-family: "IBM Plex Mono", monospace; color: var(--ink-muted); font-size: 12px; }
.acct-card-actions{ display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn.sm{ padding: 9px 16px; font-size: 11px; }
.btn-ghost{ background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover{ background: var(--brand); color: var(--paper); }
.btn-ghost.danger{ color: var(--accent); border-color: var(--accent); }
.btn-ghost.danger:hover{ background: var(--accent); color: var(--paper); }
.acct-badge{ font: 600 11px/1 "IBM Plex Sans", sans-serif; padding: 5px 9px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; }
.acct-badge.ok{ background: rgba(46,74,107,0.12); color: var(--brand); }
.acct-badge.wait{ background: rgba(139,46,26,0.10); color: var(--accent); }
.acct-badge.done{ background: var(--brand); color: var(--paper); }
.acct-badge.muted{ background: var(--ice); color: var(--ink-muted); }
/* shipment scheme, unified with the admin panel: yellow / blue / green-soft / green */
.acct-badge.q-yellow{ background: rgba(202,138,4,0.18); color: #8a5e08; }
.acct-badge.q-blue{ background: rgba(46,74,107,0.12); color: var(--brand); }
.acct-badge.q-green-soft{ background: rgba(31,122,71,0.16); color: #15643a; }
.acct-badge.q-green{ background: #15643a; color: var(--paper); }
.acct-badge.q-red{ background: var(--accent); color: var(--paper); }   /* İade reddedildi -- red, mirrors admin-crm.css */
/* partial-shipment parcels on a customer order card (read-only) */
.acct-parcels{ list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.acct-parcel{ border: 1px solid var(--rule); padding: 10px 12px; }
.acct-parcel-head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.acct-parcel-head b{ font: 600 13px/1 "IBM Plex Sans", sans-serif; }
.acct-parcel-lines{ font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
/* Siparişlerim card: a summary that opens a details popup on click. */
.acct-order{ cursor: pointer; transition: border-color 140ms ease, box-shadow 140ms ease; }
.acct-order:hover{ border-color: var(--ice-deep); box-shadow: 0 6px 18px rgba(28,29,31,0.08); }
.acct-order:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
.acct-order .acct-ship{ margin-bottom: 0; }
.acct-order .acct-count{ font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.acct-order-chev{ margin-left: auto; display: inline-flex; align-items: center; color: var(--ink-muted); transition: transform 140ms ease, color 140ms ease; }
.acct-order:hover .acct-order-chev, .acct-order:focus-visible .acct-order-chev{ color: var(--brand); transform: translateX(2px); }
/* small section heading inside the order detail popup */
.acct-modal-h{ font: 600 12px/1 "IBM Plex Sans", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin: 16px 0 2px; }
/* per-line shipment state in the popup's "Sipariş kalemleri" list */
.acct-item-line.acct-line-teslim{ text-decoration: line-through; text-decoration-color: #1f7a47; text-decoration-thickness: 1px; color: var(--ink-muted); }
.acct-line-tag{ display: inline-block; margin-left: 8px; padding: 3px 7px; font: 600 10px/1 "IBM Plex Sans", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; background: rgba(31,122,71,0.16); color: #15643a; }
.acct-empty{ background: var(--paper); border: 1px dashed var(--ice-deep); padding: 30px 24px; text-align: center; color: var(--ink-soft); }
.acct-empty-t{ font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.acct-demo{ display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 12px; }
.acct-sec-row{ display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--rule); margin-top: 24px; }
.acct-sec-row p{ font-size: 13px; margin-top: 3px; }
.acct-sec-row.danger strong{ color: var(--accent); }
@media (max-width: 860px){
  .acct-wrap{ grid-template-columns: 1fr; gap: 24px; }
  .acct-side{ position: static; }
  .acct-nav{ flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .acct-nav a{ border-left: 0; border-bottom: 3px solid transparent; padding: 9px 12px; }
  .acct-nav a.active{ border-left: 0; border-bottom-color: var(--accent); }
  .acct-form{ grid-template-columns: 1fr; }
}

/* ---- admin panel (/admin/, admin.js) ------------------------------------ */
.adm-bar{ display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.adm-stats{ display: flex; gap: 10px; flex-wrap: wrap; }
.adm-stat{ background: var(--paper); border: 1px solid var(--rule); padding: 12px 18px; display: flex; flex-direction: column; min-width: 96px; }
.adm-n{ font: 600 24px "IBM Plex Mono", monospace; color: var(--brand); line-height: 1; }
.adm-l{ font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.adm-list{ display: flex; flex-direction: column; gap: 18px; }
.adm-card{ background: var(--paper); border: 1px solid var(--rule); padding: 20px; }
.adm-card-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; flex-wrap: wrap; }
.adm-card-head h3{ font-size: 17px; }
.adm-pills{ display: flex; gap: 8px; flex-wrap: wrap; }
.adm-contact{ font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.adm-acc-toggle{ display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 14px; padding: 10px 14px; background: var(--cream); border: 1px solid var(--rule); cursor: pointer; font: 600 13px/1 "IBM Plex Sans", sans-serif; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; }
.adm-acc-toggle:hover{ background: var(--ice); }
.adm-caret{ width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transition: transform .15s ease; }
.adm-acc-toggle.open .adm-caret{ transform: rotate(180deg); }
.adm-acc-body{ margin-top: 14px; }
.adm-cols{ display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.adm-col h4{ font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin-bottom: 12px; }
.adm-sub{ border: 1px solid var(--rule); padding: 12px 14px; margin-bottom: 12px; background: var(--cream); }
.adm-sub-head{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.adm-line{ font-size: 13px; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px dashed var(--rule); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-line:last-child{ border-bottom: 0; }
.adm-form-slot{ margin-top: 10px; }
.adm-form{ background: var(--cream); border: 1px solid var(--rule); padding: 14px; margin-top: 10px; }
.adm-form label{ display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.adm-form input, .adm-form select, .adm-form textarea{ display: block; width: 100%; margin-top: 4px; font: 400 14px "IBM Plex Sans", sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--ice-deep); border-radius: 0; padding: 9px 11px; box-sizing: border-box; }
.adm-form input:focus, .adm-form select:focus, .adm-form textarea:focus{ outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.adm-form-row{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.adm-form-actions{ display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.adm-kpis{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 4px; }
.adm-kpi{ background: var(--paper); border: 1px solid var(--rule); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.adm-kpi-l{ font-size: 13px; color: var(--ink-muted); }
.adm-kpi-v{ font: 600 20px "IBM Plex Mono", monospace; color: var(--brand); }
.adm-bar-row{ display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.adm-bar-l{ flex: 0 0 130px; font-size: 13px; color: var(--ink-soft); }
.adm-bar-track{ flex: 1; height: 12px; background: var(--ice); overflow: hidden; }
.adm-bar-fill{ display: block; height: 100%; background: var(--brand); }
.adm-bar-n{ flex: 0 0 32px; text-align: right; font: 600 13px "IBM Plex Mono", monospace; color: var(--ink); }
@media (max-width: 860px){
  .adm-cols{ grid-template-columns: 1fr; gap: 20px; }
  .adm-form-row{ grid-template-columns: 1fr; }
  .adm-kpis{ grid-template-columns: 1fr; }
}

/* ---------- Mühendislik araç sayfaları ---------- */
.eng-page a.tool{ display: block; transition: background .15s ease; }
.eng-page a.tool:hover{ background: var(--paper); }
.eng-page .tool .status.live{ color: var(--brand); font-weight: 600; }
.eng-page a.tool:hover .status.live::after{ content: " \2192"; }

.eng-tool{ padding: 56px 0 96px; background: var(--cream); }
.eng-tool .lead-note{ max-width: 720px; color: var(--ink-soft); margin-bottom: 36px; font-size: 16px; }
.eng-tool .panel{
  background: var(--paper);
  border: 1px solid var(--brand);
  padding: 28px 28px 32px;
  margin-bottom: 40px;
}
.eng-tool .panel:last-of-type{ margin-bottom: 0; }
.eng-tool .panel h2{ font-size: 18px; margin-bottom: 20px; }
.eng-tool .field-row{ display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.eng-tool .field{ display: flex; flex-direction: column; gap: 6px; }
.eng-tool label{ font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.eng-tool input[type=number], .eng-tool input[type=text], .eng-tool select{
  font: 400 16px "IBM Plex Sans", sans-serif;
  padding: 11px 14px; border: 1px solid var(--ice-deep); background: var(--cream); color: var(--ink); min-width: 150px; border-radius: 0;
}
.eng-tool input[readonly]{ background: var(--ice); color: var(--ink-soft); }
.eng-tool input:focus, .eng-tool select:focus{ outline: 2px solid var(--accent); outline-offset: 1px; }
.eng-tool .seg{ display: inline-flex; border: 1px solid var(--brand); flex-wrap: wrap; }
.eng-tool .seg button{
  font: 500 12px "IBM Plex Sans", sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 11px 18px; background: transparent; color: var(--ink); border: 0; cursor: pointer; border-right: 1px solid var(--brand);
}
.eng-tool .seg button:last-child{ border-right: 0; }
.eng-tool .seg button.active{ background: var(--brand); color: var(--paper); }
.eng-tool .result{ margin-top: 24px; padding: 20px 24px; background: var(--ice); }
.eng-tool .result .big{ font-size: 28px; font-weight: 600; color: var(--brand-deep); letter-spacing: -0.02em; line-height: 1.2; }
.eng-tool .result .big small{ font-size: 15px; font-weight: 400; color: var(--ink-muted); }
.eng-tool .result .sub{ font-size: 14px; color: var(--ink-soft); margin-top: 8px; line-height: 1.55; }
.eng-tool table{ width: 100%; border-collapse: collapse; font-size: 14px; }
.eng-tool thead th{
  text-align: left; font: 500 11px "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper); background: var(--brand); padding: 11px 14px; white-space: nowrap;
}
.eng-tool tbody td{ padding: 10px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.eng-tool tbody tr:nth-child(2n){ background: var(--paper); }
.eng-tool tbody tr.hit{ background: var(--accent-surface); }
.eng-tool .tbl-wrap{ overflow-x: auto; border: 1px solid var(--brand); }
.eng-tool .tbl-note{ font-size: 13px; color: var(--ink-muted); margin: 14px 0 0; }
.eng-tool .disclaimer{ margin-top: 36px; font-size: 13px; color: var(--ink-muted); border-top: 1px solid var(--rule); padding-top: 18px; max-width: 760px; line-height: 1.6; }
.eng-tool .disclaimer a{ color: var(--accent); text-decoration: underline; }
@media (max-width: 640px){
  .eng-tool .field{ width: 100%; }
  .eng-tool .field input, .eng-tool .field select{ min-width: 0; width: 100%; }
}
.eng-tool .result .kv-grid{ display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.eng-tool .result .kv-grid b{ color: var(--brand-deep); font-weight: 600; }
.eng-tool .result .kv-grid span{ white-space: nowrap; }
.eng-tool td.chip{ text-align: center; font-weight: 600; font-family: "IBM Plex Mono", monospace; }
.eng-tool .chip-a{ background: #d8e6d2; color: #2f5524; }
.eng-tool .chip-b{ background: #f3e4c2; color: #6d4f12; }
.eng-tool .chip-c{ background: #e8cfc8; color: #7a2418; }
.eng-tool .chip-na{ background: var(--ice); color: var(--ink-muted); }
.eng-tool th.rowh{ text-align: left; background: var(--ice); color: var(--ink); font-weight: 600; white-space: nowrap; position: sticky; left: 0; }
.eng-tool .legend{ display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 0 0; font-size: 13px; color: var(--ink-soft); }
.eng-tool .legend span{ display: inline-flex; align-items: center; gap: 7px; }
.eng-tool .legend i{ width: 24px; height: 18px; display: inline-block; border-radius: 2px; font-style: normal; text-align: center; font: 600 11px/18px "IBM Plex Mono", monospace; }

/* ---- /hesabim/ mobile bottom navigation (app-style; mirrors the admin one) ---- */
.acct-bottomnav{ display: none; }
.acct-more-sheet[hidden], .acct-more-scrim[hidden]{ display: none; }
@media (max-width: 860px){
  .acct-side{ display: none; }
  .acct-main{ padding-bottom: calc(80px + env(safe-area-inset-bottom, 0)); }
  .acct-bottomnav{ display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; justify-content: space-around;
    background: var(--brand); border-top: 1px solid rgba(248,247,241,0.16); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0)); }
  .acct-bn-item{ flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: 0; cursor: pointer; color: rgba(248,247,241,0.74); text-decoration: none;
    font: 500 10px/1.15 "IBM Plex Sans", sans-serif; padding: 6px 2px; }
  .acct-bn-item svg{ width: 22px; height: 22px; display: block; }
  .acct-bn-lbl{ max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .acct-bn-item.active{ color: var(--paper); }
  .acct-more-scrim{ display: block; position: fixed; inset: 0; background: rgba(28,29,31,0.45); z-index: 95; }
  .acct-more-sheet{ display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; background: var(--paper);
    max-height: 82vh; overflow-y: auto; padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0)); box-shadow: 0 -14px 34px rgba(28,29,31,0.3); }
  .acct-more-head{ display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 12px; font: 600 15px "IBM Plex Sans", sans-serif; color: var(--ink); }
  .acct-more-close{ background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-soft); width: 34px; height: 34px; }
  .acct-more-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .acct-more-item{ display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--ink); background: #fff;
    border: 1px solid var(--rule); cursor: pointer; text-align: left; text-decoration: none; font: 500 13px "IBM Plex Sans", sans-serif; }
  .acct-more-item svg{ width: 20px; height: 20px; flex: none; color: var(--brand); }
  .acct-more-item.active{ border-color: var(--brand); background: var(--ice); font-weight: 600; }
  /* lift the floating WhatsApp / to-top buttons above the bottom bar so they don't overlap it */
  body.acct-app .wa-float, body.acct-app .to-top{ bottom: calc(84px + env(safe-area-inset-bottom, 0)); }
  /* ...and get them out of the way entirely while the "Daha Fazla" sheet is open */
  body.acct-sheet-open .wa-float, body.acct-sheet-open .to-top{ display: none; }
  /* app-like account view on mobile: drop the site chrome (topbar / header+hamburger
     / hero). Scoped to body.acct-app so the signed-out gate still keeps the header. */
  body.acct-app .topbar, body.acct-app header.site, body.acct-app .page-hero{ display: none; }
  body.acct-app .account-page{ padding-top: calc(18px + env(safe-area-inset-top, 0)); }
}
.eng-tool .abbr{ font-size: 12px; color: var(--ink-muted); margin: 12px 0 0; line-height: 1.6; }
/* Malzeme uyumluluk matrisi: yatay scroll olmadan konteynıra sığar */
.eng-tool table.matrix{ table-layout: fixed; width: 100%; font-size: 13px; }
.eng-tool table.matrix thead th{ padding: 8px 3px; white-space: normal; text-align: center; font-size: 10px; letter-spacing: 0.02em; vertical-align: middle; }
.eng-tool table.matrix thead th:first-child{ text-align: left; padding-left: 12px; width: 22%; }
.eng-tool table.matrix th.rowh{ white-space: normal; padding: 9px 12px; font-size: 12px; position: static; }
.eng-tool table.matrix td.chip{ padding: 9px 2px; white-space: normal; }
