/* DKG Cutting Tools — light, technical, red-led. Manrope for headings, Inter for text. */
:root {
  --red: #c4302f;
  --red2: #e03b3a;
  --red-dk: #8f0d0d;
  --red-soft: #fbeceb;
  --ink: #1d1d1f;
  --ink2: #45464b;
  --mute: #76777c;
  --bg: #ffffff;
  --soft: #f3f3f4;
  --soft2: #e9e9eb;
  --line: #e3e3e6;
  --ok: #157a52; --ok-soft: #e6f4ee;
  --wait: #9a6400; --wait-soft: #fdf3e1;
  --head: "Manrope", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(18px, 4vw, 48px);
  --r: 12px;
  --grad: linear-gradient(100deg, #e03a3a 0%, #c42727 45%, #8f0a0a 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.mute { color: var(--mute); }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.small { font-size: 13.5px; }
.link { color: var(--red); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* Type */
.kicker { font: 700 12.5px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; }
h1 { font-weight: 300; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; }
h2 { font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; }
h1 b, h2 b { font-weight: 800; }
h3 { font-weight: 700; font-size: 18px; line-height: 1.3; }
.lead { font-size: clamp(16.5px, 1.25vw, 19px); color: var(--ink2); line-height: 1.65; max-width: 36em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font: 700 14.5px var(--head); background: var(--red); color: #fff; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--red-dk); }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.line:hover { border-color: #c9c9ce; background: var(--soft); }
.btn.white { background: #fff; color: var(--red); }
.btn.white:hover { background: #fff3f3; }
.btn.ghost-w { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn.ghost-w:hover { background: rgba(255, 255, 255, .1); }
.btn.lg { padding: 15px 26px; font-size: 15.5px; border-radius: 12px; }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 26px; font: 600 14.5px var(--head); color: var(--ink2); }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-color: var(--red); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { font: 600 12.5px var(--head); color: var(--mute); display: flex; gap: 6px; }
.lang a:hover { color: var(--red); }
.lang b { color: var(--ink); }
.search-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink2); }
.search-btn:hover { background: var(--soft); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); }
.burger i:first-child { top: 16px; } .burger i:last-child { top: 24px; }
.searchbar { border-top: 1px solid var(--line); background: #fff; }
.searchbar form { display: flex; gap: 8px; padding: 12px 0; }
.searchbar input { flex: 1; font: 16px var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.searchbar input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

/* Hero */
.hero { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 30%, rgba(255, 255, 255, .12), transparent 60%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 84px 0 92px; }
.hero .kicker { color: rgba(255, 255, 255, .85); }
.hero h1 { margin: 16px 0 20px; }
.hero .lead { color: rgba(255, 255, 255, .88); }
.hero .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-art { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: rgba(0, 0, 0, .18); box-shadow: 0 30px 60px rgba(60, 0, 0, .35); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-mark { position: absolute; right: -40px; bottom: -60px; width: 420px; opacity: .08; pointer-events: none; }

/* Sections */
.sec { padding: 88px 0; }
.sec.soft { background: var(--soft); }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-h h2 { margin-top: 10px; }
.sec-h p { max-width: 32em; color: var(--ink2); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.pillar svg { width: 64px; height: 64px; color: var(--red); }
.pillar h3 { font-weight: 300; font-size: 26px; letter-spacing: -.01em; }
.pillar p { color: var(--mute); margin-top: 6px; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.cat:hover { border-color: var(--red); box-shadow: 0 14px 34px rgba(29, 29, 31, .08); transform: translateY(-2px); }
.cat-img { aspect-ratio: 4 / 3; background: var(--soft); display: grid; place-items: center; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.cat-b { padding: 14px 16px 16px; }
.cat-b h3 { font-size: 16px; }
.cat-b span { font-size: 13px; color: var(--mute); }

/* Story + stats */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story p { color: var(--ink2); margin-top: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.stats b { display: block; font: 800 40px/1 var(--head); color: var(--red); letter-spacing: -.02em; }
.stats span { color: var(--ink2); font-size: 14.5px; }

/* CTA band */
.band { background: var(--grad); color: #fff; border-radius: 18px; padding: clamp(28px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .85); margin-top: 8px; max-width: 34em; }
.band .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* FAQ */
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font: 700 16px var(--head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font: 300 26px/1 var(--sans); color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; color: var(--ink2); }

/* Footer */
.foot { background: #151517; color: #c9c9ce; padding: 64px 0 28px; font-size: 14.5px; }
.foot-top { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; }
.foot .logo img { height: 40px; }
.foot h4 { font: 700 12.5px var(--head); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.foot p, .foot li { line-height: 1.9; }
.foot ul { list-style: none; }
.foot a:hover { color: #fff; }
.foot-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8f9096; }
.news { display: flex; gap: 8px; margin-top: 12px; }
.news input { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; font: 14px var(--sans); outline: none; }
.news input:focus { border-color: var(--red2); }

/* Page head (inner pages) */
.phead { background: var(--soft); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.crumbs { font-size: 13px; color: var(--mute); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.crumbs a:hover { color: var(--red); }
.phead h1 { font-size: clamp(32px, 4vw, 52px); }
.phead p { margin-top: 10px; }

/* Forms */
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 32px); }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.f input, .f select, .f textarea { width: 100%; font: 15px var(--sans); color: var(--ink); padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.f input[type=file] { padding: 9px; background: var(--soft); }
.f small { font-weight: 400; color: var(--mute); }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink2); }
.chk input { margin-top: 3px; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { font-size: 14px; min-height: 1.2em; }
.msg.ok { color: var(--ok); } .msg.err { color: #c22; }

/* Tables, tags */
.tbl-x { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 700 12px var(--head); letter-spacing: .04em; color: var(--mute); padding: 10px 12px; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:hover td { background: #fafafa; }
.tag { display: inline-block; font: 600 12px var(--head); padding: 3px 9px; border-radius: 99px; background: var(--soft2); color: var(--ink2); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.wait { background: var(--wait-soft); color: var(--wait); }

/* Toast */
.toast { position: fixed; z-index: 99; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; transition: all .3s; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .top-r .btn.line, .lang { display: none; }
  .nav.open { display: flex; position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; padding: 6px var(--pad) 20px; background: #fff; border-bottom: 1px solid var(--line); font-size: 17px; z-index: 60; }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-in, .story, .faq-in { grid-template-columns: 1fr; gap: 32px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 22px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .top-in { height: 64px; gap: 12px; }
  .logo img { height: 28px; }
  .top-r .btn { padding: 9px 12px; font-size: 13px; }
  .nav.open { inset: 64px 0 auto; }
  .hero-in { padding: 48px 0 56px; }
  .hero .row .btn { flex: 1 1 100%; }
  .sec { padding: 56px 0; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g2 { grid-template-columns: 1fr; }
  .stats b { font-size: 32px; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.legal { max-width: 820px; }
.legal h3 { margin: 30px 0 8px; }
.legal p { color: var(--ink2); }

/* ---------- shop: listing */
.shop { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.facets { position: sticky; top: 92px; display: grid; gap: 14px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
.facets h4 { font: 700 13px/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); margin-bottom: 8px; }
.facet { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.facet label { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 3px 0; cursor: pointer; color: var(--ink2); }
.facet label:hover { color: var(--ink); }
.facet label span { margin-left: auto; color: var(--mute); font-size: 12px; }
.facet input { accent-color: var(--red); width: 16px; height: 16px; }
.facet .more { font-size: 13px; color: var(--red); margin-top: 4px; }
.catlist a { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--ink2); }
.catlist a:hover, .catlist a.on { color: var(--red); font-weight: 600; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .q { flex: 1; min-width: 220px; display: flex; gap: 8px; }
.toolbar input, .toolbar select { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; }
.toolbar input { flex: 1; }
.toolbar input:focus, .toolbar select:focus { outline: 2px solid var(--red-soft); border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--red-soft); color: var(--red-dk); border-radius: 99px; padding: 4px 10px; font-size: 13px; }
.chip button { color: inherit; font-size: 15px; line-height: 1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pc { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pc:hover { box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); transform: translateY(-2px); border-color: #d4d4d8; }
.pc-img { aspect-ratio: 4/3; background: var(--soft); display: grid; place-items: center; padding: 14px; }
.pc-img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pc-b { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; }
.pc-b .mono { color: var(--red); font-size: 12px; }
.pc-b h3 { font-size: 15px; line-height: 1.35; }
.pc-b small { color: var(--mute); font-size: 12px; margin-top: auto; padding-top: 6px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pager button { min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.pager button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 48px 20px; text-align: center; color: var(--mute); border: 1px dashed var(--line); border-radius: var(--r); }
.filter-btn { display: none; }
.skel { background: linear-gradient(90deg, var(--soft) 0%, var(--soft2) 50%, var(--soft) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); min-height: 280px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- shop: product */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.gal-main { aspect-ratio: 1; background: var(--soft); border-radius: var(--r); display: grid; place-items: center; padding: 28px; }
.gal-main img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gal-th { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gal-th button { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 6px; }
.gal-th button.on { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.gal-th img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-info h1 { font-size: clamp(26px, 3vw, 36px); margin: 6px 0 10px; }
.pd-info .lead { font-size: 16px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px 0; font-size: 14px; }
.kv dt { color: var(--mute); }
.kv dd { font-weight: 500; }
.pd-cta { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); margin-top: 18px; }
.pd-cta p { font-size: 14px; color: var(--ink2); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 48px 0 20px; overflow-x: auto; }
.tabs button { padding: 12px 16px; font-weight: 600; font-size: 14px; color: var(--mute); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--red); }
.vt td.n, .vt th.n { text-align: right; font-variant-numeric: tabular-nums; }
.vt .qty { width: 72px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 14px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.stock.in::before { background: var(--ok); }
.stock.out::before { background: var(--red); }
.cart-pill { position: relative; }
.cart-pill b { position: absolute; top: -6px; right: -8px; background: var(--red); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

@media (max-width: 1080px) {
  .shop { grid-template-columns: 1fr; }
  .facets { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; background: #fff; z-index: 60; padding: 20px; box-shadow: 0 0 40px rgba(0,0,0,.25); transform: translateX(-105%); transition: transform .25s; }
  .facets.open { transform: none; }
  .filter-btn { display: inline-flex; }
  .pd { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- portal + admin */
.pt-gate { min-height: calc(100vh - 76px); display: grid; place-items: center; background: var(--soft); padding: 48px var(--pad); }
.pt-gate .card { width: 100%; max-width: 440px; }
.pt-gate h1 { font-size: 28px; margin-bottom: 6px; }
.pt { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 76px); }
.pt-side { background: var(--soft); border-right: 1px solid var(--line); padding: 26px 16px; display: flex; flex-direction: column; gap: 4px; }
.pt-side .who { padding: 0 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.pt-side .who b { display: block; font: 700 15px var(--head); }
.pt-side .who span { font-size: 12.5px; color: var(--mute); }
.pt-side a, .pt-side button.nv { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink2); text-align: left; }
.pt-side a:hover, .pt-side button.nv:hover { background: #fff; color: var(--ink); }
.pt-side a.on { background: #fff; color: var(--red); box-shadow: 0 1px 0 var(--line); font-weight: 600; }
.pt-side .cnt { background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.pt-main { padding: 32px clamp(18px, 3vw, 40px) 64px; min-width: 0; }
.pt-main h2 { font-size: 26px; margin-bottom: 4px; }
.pt-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.kpi span { font-size: 12.5px; color: var(--mute); }
.kpi b { display: block; font: 800 24px var(--head); margin-top: 4px; }
.sum { margin-left: auto; width: min(360px, 100%); display: grid; gap: 6px; font-size: 15px; margin-top: 16px; }
.sum div { display: flex; justify-content: space-between; }
.sum .tot { border-top: 2px solid var(--ink); padding-top: 8px; font: 800 19px var(--head); }
.pay-opts { display: grid; gap: 10px; margin: 8px 0 4px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.pay-opt input { accent-color: var(--red); margin-top: 3px; }
.pay-opt b { display: block; font-size: 15px; }
.pay-opt small { color: var(--mute); font-size: 13px; }
.bankbox { background: var(--soft); border-radius: 10px; padding: 14px 16px; font-size: 14px; display: grid; gap: 4px; }
.bankbox .mono { font-size: 15px; }
.steps-mini { display: flex; gap: 4px; }
.steps-mini i { height: 5px; flex: 1; border-radius: 3px; background: var(--soft2); }
.steps-mini i.on { background: var(--red); }
.row-act { display: flex; gap: 6px; flex-wrap: wrap; }
.tag.wait { background: var(--wait-soft); color: var(--wait); }
.dlg { position: fixed; inset: 0; background: rgba(20,20,22,.45); display: grid; place-items: center; z-index: 80; padding: 16px; }
.dlg .card { width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { padding: 8px 14px; font-size: 13.5px; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--ink); color: #fff; }
@media (max-width: 900px) {
  .pt { grid-template-columns: 1fr; }
  .pt-side { flex-direction: row; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pt-side .who { display: none; }
  .pt-side a, .pt-side button.nv { white-space: nowrap; }
}

/* product renders are long horizontal tools: show them diagonally in tiles, wide on the product page */
.pc-img, .cat-img { overflow: hidden; }
.pc-img img, .cat-img img { width: 100%; height: auto; padding: 0 6%; object-fit: contain; transform: rotate(-30deg) scale(1.12); transition: transform .35s ease; }
.pc:hover .pc-img img, .cat:hover .cat-img img { transform: rotate(-30deg) scale(1.2); }
.gal-main { aspect-ratio: 16 / 9; padding: 18px; }
.gal-main img { width: 100%; }
.gal-th button { width: 96px; height: 56px; }

.hero-art.tools { background: radial-gradient(120% 90% at 30% 20%, #ffffff 0%, #f1f1f3 70%, #e6e6e9 100%); }
.hero-art.tools img { position: absolute; left: 4%; width: 92%; height: auto; object-fit: contain; top: 28%; transform: translateY(-50%) rotate(-24deg); filter: drop-shadow(0 16px 16px rgba(0,0,0,.18)); }
.hero-art.tools img:nth-child(2) { top: 52%; }
.hero-art.tools img:nth-child(3) { top: 76%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art.tools img { animation: toolIn .9s cubic-bezier(.2,.8,.2,1) both; }
  .hero-art.tools img:nth-child(2) { animation-delay: .12s; }
  .hero-art.tools img:nth-child(3) { animation-delay: .24s; }
}
@keyframes toolIn { from { opacity: 0; transform: translate(-10%, -50%) rotate(-24deg); } to { opacity: 1; transform: translateY(-50%) rotate(-24deg); } }

/* admin team */
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: #fff; font: 700 12px var(--head); position: relative; flex: none; }
.av.on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.team-strip { margin-bottom: 22px; display: grid; gap: 16px; }
.ts-people { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ts-people .btn { margin-left: auto; }
.ts-p { display: flex; gap: 10px; align-items: center; }
.ts-p b { display: block; font-size: 14px; }
.ts-p small { color: var(--mute); font-size: 12px; }
.ts-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.ts-cols h4 { font: 700 12px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.feed { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.feed small { color: var(--mute); font-size: 12px; margin-left: 4px; }
.feed.long li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.mention { color: var(--red); }
.asg { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font-size: 13px; background: #fff; max-width: 170px; }
@media (max-width: 900px) { .ts-cols { grid-template-columns: 1fr; } }

/* admin document workspace (yönetim → Teklif · proforma · fatura) */
.db { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.db-main { display: grid; gap: 16px; min-width: 0; }
.db-sec { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.db-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; }
.db-sec h3 i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12.5px; }
.db .seg { flex-wrap: wrap; }
.db-pane { margin-top: 12px; }
.db-pane select, .db-find input, .db-sec textarea { width: 100%; font: 15px var(--sans); padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.db-card { display: grid; gap: 3px; margin-top: 10px; padding: 12px 14px; background: var(--soft); border-radius: 10px; font-size: 13.5px; }
.db-card:empty { display: none; }
.db-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 12px; }
.db-grid .wide { grid-column: 1 / -1; }
.db-grid[hidden] { display: none; }
.db .drop { padding: 22px 16px; border-radius: 12px; }
.db .drop span { font-size: 13px; color: var(--mute); font-weight: 400; }
.db-find { display: flex; gap: 8px; }
.db-find .btn { white-space: nowrap; }
.db-res { display: grid; margin-top: 6px; max-height: 340px; overflow: auto; }
.db-hit { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 70px auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.db-hit img { width: 44px; height: 44px; object-fit: contain; background: var(--soft); border-radius: 6px; }
.db-hit:hover { background: #fafafa; }
.db .qty { width: 70px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; text-align: right; }
.db-tbl td { vertical-align: top; white-space: normal; }
.db-tbl tr.bad td { background: var(--red-soft); }
#dbItems { margin-top: 14px; }
.db-sum { position: sticky; top: 16px; display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.db-firm { font-size: 16px; line-height: 1.3; }
.db-rows { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13.5px; padding: 10px 0; border-top: 1px solid var(--line); }
.db-rows span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.db-total { display: flex; justify-content: space-between; align-items: baseline; background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 14px; }
.db-total b { font-size: 19px; }
.db-sum .btn { width: 100%; justify-content: center; }
.db-sum .btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 1100px) { .db { grid-template-columns: 1fr; } .db-sum { position: static; } }
@media (max-width: 640px) { .db-grid { grid-template-columns: 1fr; } .db-hit { grid-template-columns: 40px minmax(0, 1fr) 64px auto; } .db-hit > .small.n { display: none; } }

/* catalogue picker bar (admin choosing sizes for a document) */
.pickbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: flex; gap: 12px; align-items: center; background: #111113; color: #fff; padding: 10px 12px 10px 18px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.3); font: 600 14px var(--sans); max-width: calc(100% - 32px); flex-wrap: wrap; }
.pickbar .btn { background: var(--red); color: #fff; border: 0; }
.pickbar button.x { color: #aaa; font-size: 13px; }
.pick-qty { width: 64px; padding: 6px 8px; border: 1.5px solid var(--red); border-radius: 6px; font-size: 14px; text-align: right; }

/* product advisor (document workspace + dealer portal) */
.adv .adv-box { width: min(1060px, 100%); max-height: 92vh; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; }
.adv-top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.adv-top b { font-size: 18px; }
.adv-top [data-x] { margin-left: auto; }
.adv-path { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.adv-path button { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; text-align: left; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; }
.adv-path button i { font-style: normal; grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; background: var(--soft2, #e9e9ec); display: grid; place-items: center; font-size: 11.5px; align-self: center; }
.adv-path button small { color: var(--red); font-size: 11.5px; }
.adv-path button.on { border-color: var(--ink); }
.adv-path button.on i { background: var(--ink); color: #fff; }
.adv-path button:disabled { opacity: .45; }
.adv-n { margin-left: auto; font: 600 13px var(--sans); color: var(--ok); }
.adv-body { overflow: auto; }
.adv-body h3 { margin: 4px 0 12px; font-size: 17px; }
.adv-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.adv-opt { display: grid; gap: 4px; text-align: left; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.adv-opt:hover:not(:disabled) { border-color: var(--red); }
.adv-opt.on { border-color: var(--ink); background: var(--soft); }
.adv-opt:disabled { opacity: .45; cursor: not-allowed; }
.adv-opt b { font-size: 15px; }
.adv-opt span { font-size: 13px; color: var(--mute); }
.adv-opt i { font-style: normal; font-size: 12px; color: var(--ok); font-weight: 600; }
.adv-opt svg { color: var(--ink); margin-bottom: 4px; }
.adv-sz input { width: 220px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.adv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; max-height: 150px; overflow: auto; }
.chip-b { padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; background: #fff; }
.chip-b.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.adv-res td { white-space: normal; vertical-align: top; }
.adv-res .qty { width: 70px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; text-align: right; }
.adv-pick { display: flex; gap: 10px; }
.adv-pick img { width: 54px; height: 54px; object-fit: contain; background: var(--soft); border-radius: 6px; flex: none; }
.adv-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; position: sticky; bottom: 0; background: #fff; padding-top: 10px; }
.adv-res td:first-child { white-space: nowrap; }

/* order pipeline tabs (yönetim → Siparişler) */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.flow button { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; color: var(--mute); }
.flow button b { font-size: 22px; color: var(--ink); }
.flow button.on { border-color: var(--ink); background: var(--ink); color: #ddd; }
.flow button.on b { color: #fff; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* dimensioned drawing on the product page (above the size table) */
.pd-draw { margin: 0 0 18px; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pd-draw-x { overflow-x: auto; }
.pd-draw svg { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; }
@media (max-width: 640px) { .pd-draw { padding: 10px 6px 8px; } .pd-draw .cad .v { stroke-width: 1.1; } .pd-draw .cad .t, .pd-draw .cad .c { stroke-width: .5; } .pd-draw .cad .h { stroke-width: .35; } .pd-draw .cad text { font-size: 30px; stroke-width: 6px; } .pd-draw .cad text.s { display: none; } }
.pd-draw figcaption { margin-top: 6px; }

/* advisor quick recommendation */
.qgrid { display: grid; gap: 12px; }
.qrow { display: grid; gap: 6px; }
.qrow > b { font-size: 14px; }
.qrow > div { display: flex; flex-wrap: wrap; gap: 6px; }
.qres { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 10px; }
.qcard { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px; border: 1.5px solid var(--ok); border-radius: 12px; background: #fff; font-size: 13.5px; }
.qcard.alt { border-color: var(--wait, #c98a00); }
.qcard img { width: 72px; height: 72px; object-fit: contain; background: var(--soft); border-radius: 8px; }
.qcard ul { margin: 6px 0 10px 16px; padding: 0; color: var(--ink2, #333); }
.qcard li { margin-bottom: 2px; }

.adv-cta { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 14px; }

/* admin preview of dealer prices on product pages */
.adm-view{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;margin:0 0 12px;border:1px dashed var(--line);border-radius:10px;font-size:13px;background:transparent}
.adm-view .seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.adm-view .seg a{padding:4px 10px;text-decoration:none;color:inherit}
.adm-view .seg a.on{background:var(--red,#d0021b);color:#fff}

/* AI guide inside the product advisor */
.ai-chat{display:grid;gap:12px;max-height:52vh;overflow:auto;padding:2px}
.ai-u{justify-self:end;max-width:80%;background:var(--red);color:#fff;padding:8px 12px;border-radius:12px 12px 2px 12px;white-space:pre-wrap}
.ai-a{max-width:100%}
.ai-a>p{margin:0 0 8px}
.ai-in{display:flex;gap:8px;margin-top:12px;align-items:flex-end}
.ai-in textarea{flex:1;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font:inherit;resize:vertical;min-height:44px}
.ai-a .qcard{grid-template-columns:1fr}
