/* BDCOM products — Daw Alfada identity (daw-alfada.iq): monochrome ground, Satoshi, gradient
   headings, soft raised cards with a white inset lip, black pill buttons, label chips, dotted texture. */
@font-face { font-family: "Satoshi"; font-weight: 400; font-display: swap; src: url("fonts/Satoshi-Regular.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 500; font-display: swap; src: url("fonts/Satoshi-Medium.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-display: swap; src: url("fonts/Satoshi-Bold.woff2") format("woff2"); }

:root {
  --bg: #f5f5f5; --card: #ffffff; --ink: #0a0a0a; --ink-2: #3a3a3a; --muted: #6b6b6b; --line: rgba(0,0,0,.08);
  --chip: #ffffff; --wash: #ececec; --btn: #0a0a0a; --btn-ink: #ffffff; --photo: #ffffff;
  --head-a: #0a0a0a; --head-b: #7a7a7a; --dot: rgba(0,0,0,.13); --focus: #0a0a0a; --ok: #1f9d6b; --warn: #9a5b0f;
  --raise: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.05), 0 12px 32px -14px rgba(0,0,0,.22);
  --raise-sm: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.06), 0 6px 16px -8px rgba(0,0,0,.2);
  --btn-shadow: 0 8px 18px -8px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14);
  --radius: 22px; --radius-sm: 14px; --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg: #000000; --card: #111111; --ink: #f5f5f5; --ink-2: #d0d0d0; --muted: #9a9a9a; --line: rgba(255,255,255,.1);
    --chip: #161616; --wash: #1c1c1c; --btn: #f5f5f5; --btn-ink: #0a0a0a; --photo: #ffffff;
    --head-a: #ffffff; --head-b: #8c8c8c; --dot: rgba(255,255,255,.12); --focus: #f5f5f5; --ok: #3cc28a; --warn: #e3a356;
    --raise: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.6), 0 14px 34px -16px rgba(0,0,0,.9);
    --raise-sm: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 16px -8px rgba(0,0,0,.9);
    --btn-shadow: 0 8px 18px -8px rgba(255,255,255,.18);
    color-scheme: dark;
  }
}
:root.dark {
  --bg: #000000; --card: #111111; --ink: #f5f5f5; --ink-2: #d0d0d0; --muted: #9a9a9a; --line: rgba(255,255,255,.1);
  --chip: #161616; --wash: #1c1c1c; --btn: #f5f5f5; --btn-ink: #0a0a0a; --photo: #ffffff;
  --head-a: #ffffff; --head-b: #8c8c8c; --dot: rgba(255,255,255,.12); --focus: #f5f5f5; --ok: #3cc28a; --warn: #e3a356;
  --raise: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.6), 0 14px 34px -16px rgba(0,0,0,.9);
  --raise-sm: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 16px -8px rgba(0,0,0,.9);
  --btn-shadow: 0 8px 18px -8px rgba(255,255,255,.18);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--card); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */

/* buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--btn); color: var(--btn-ink); box-shadow: var(--btn-shadow); }
.btn-light { background: var(--card); color: var(--ink); box-shadow: var(--raise-sm); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--btn-ink); color: var(--btn); font-size: 12px; display: inline-grid; place-items: center; }
.btn .count[data-n="0"] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--chip); box-shadow: var(--raise-sm); font-size: 13px; font-weight: 500; color: var(--ink); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.chip.label { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--wash); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.tag.req { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

/* headings */
.grad { background: linear-gradient(180deg, var(--head-a) 10%, var(--head-b) 115%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { letter-spacing: -.025em; margin: 0; }
.h-xl { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; font-weight: 500; }
.h-lg { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; font-weight: 500; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 680px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { text-align: center; display: grid; justify-items: center; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin: 0; color: var(--muted); max-width: 640px; }

/* hero */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -80px 0 0; z-index: -1; background-image: radial-gradient(var(--dot) 1.3px, transparent 1.6px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 38%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 70% 62% at 50% 38%, #000 10%, transparent 72%); }
.hero .wrap { display: grid; justify-items: center; gap: 22px; }
.hero .lead { margin: 0 auto; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero .facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* sector cards */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--raise); }
.sector { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.sector .n { font-size: 44px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.sector .n small { font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: 6px; font-weight: 400; }
.sector h3 { font-size: 22px; font-weight: 700; }
.sector p { margin: 0; color: var(--ink-2); flex: 1; }
.sector .row { display: flex; gap: 10px; flex-wrap: wrap; }
.sector .chip { align-self: flex-start; font-size: 11px; letter-spacing: .06em; }

/* finder */
.filters { position: sticky; top: 72px; z-index: 10; padding: 14px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.filters .bar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 10px; padding: 10px; border-radius: 999px; background: var(--card); box-shadow: var(--raise); }
.field { position: relative; display: flex; align-items: center; }
.field svg { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field input, .field select { width: 100%; height: 46px; border: 0; border-radius: 999px; background: var(--wash); padding: 0 18px; outline-offset: 2px; appearance: none; -webkit-appearance: none; }
.field input { padding-left: 44px; }
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 20px 0 18px; flex-wrap: wrap; }
.results-head strong { font-size: 18px; }
.results-head span { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.p-card .photo { position: relative; background: var(--photo); aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 8px); margin: 8px 8px 0; }
.p-card .photo img, .gallery .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.p-card .photo.none, .gallery .photo.none { display: grid; place-items: center; color: #8a8a8a; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.p-card .body { padding: 14px 18px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-card h3 { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
.p-card h3 a { text-decoration: none; }
.p-card h3 a::after { content: ""; position: absolute; inset: 0; }
.p-card { position: relative; }
.p-card .kind { font-size: 13px; color: var(--muted); margin: 0; }
.p-card .spec { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 18px 16px; }
.p-card .foot .more { font-size: 13px; color: var(--muted); }
.add { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; background: var(--wash); font-size: 13px; font-weight: 700; color: var(--ink); }
.add svg { width: 15px; height: 15px; }
.add[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.btn.add { height: auto; min-height: 46px; padding: 0 22px; font-size: 15px; background: var(--btn); color: var(--btn-ink); }
.btn.add[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--raise-sm); }
.add .on { display: none; } .add[aria-pressed="true"] .on { display: inline; } .add[aria-pressed="true"] .off { display: none; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); max-width: 900px; margin: 32px auto 0; text-align: center; }
[hidden] { display: none !important; }

/* catalogues */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cat { padding: 14px 14px 22px; display: flex; flex-direction: column; gap: 14px; }
.cat .cover { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 720 / 1019; background: var(--wash); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cat .cover img { width: 100%; height: 100%; object-fit: cover; }
.cat .meta { padding: 0 8px; display: grid; gap: 6px; }
.cat h3 { font-size: 20px; font-weight: 700; }
.cat .meta p { margin: 0; color: var(--muted); font-size: 14px; }
.cat .row { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 8px; }
.cat-body { display: grid; gap: 14px; }

/* quote band */
.band { padding: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; }
.band p { margin: 8px 0 0; color: var(--ink-2); }

/* product page */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: 22px 0 clamp(48px, 6vw, 80px); align-items: start; }
.gallery { padding: 10px; position: sticky; top: 96px; }
.gallery .photo { position: relative; background: var(--photo); border-radius: calc(var(--radius) - 6px); aspect-ratio: 4 / 3; }
.gallery .photo img { padding: clamp(18px, 4vw, 44px); }
.gallery figcaption { font-size: 13px; color: var(--muted); padding: 12px 10px 4px; }
.info { display: grid; gap: 18px; }
.info h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 500; line-height: 1.05; overflow-wrap: anywhere; }
.info .kind { font-size: 19px; color: var(--ink-2); margin: -6px 0 0; }
.specs { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.specs li { position: relative; padding-left: 22px; color: var(--ink-2); }
.specs li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.qual { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--wash); color: var(--warn); font-size: 14px; margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.facts-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts-t th, .facts-t td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts-t th { width: 38%; color: var(--muted); font-weight: 500; padding-right: 16px; }
.facts-t td a { text-underline-offset: 3px; }
.sect-list { display: flex; flex-wrap: wrap; gap: 8px; }
.panel { padding: 22px 24px; }
.panel h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.related h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; margin-bottom: 22px; }

/* quote page */
.quote { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: clamp(48px, 6vw, 80px); }
.list { padding: 10px; }
.list .empty { padding: 36px 20px; }
.q-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius-sm); }
.q-item + .q-item { border-top: 1px solid var(--line); border-radius: 0; }
.q-item .thumb { width: 64px; height: 48px; border-radius: 10px; background: var(--photo); display: grid; place-items: center; padding: 4px; }
.q-item .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.q-item b { display: block; overflow-wrap: anywhere; }
.q-item a { text-decoration: none; }
.q-item small { color: var(--muted); }
.q-item input { width: 74px; height: 38px; border-radius: 999px; border: 0; background: var(--wash); text-align: center; }
.form { padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px; }
.form h2 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form label span em { color: var(--muted); font-style: normal; font-weight: 400; }
.form input, .form textarea { width: 100%; border: 0; border-radius: 14px; background: var(--wash); padding: 12px 16px; min-height: 48px; }
.form textarea { min-height: 110px; resize: vertical; }
.form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #e5484d; }
.form .hp { position: absolute; left: -9999px; }
.status { font-size: 14px; margin: 0; min-height: 1.4em; }
.status.ok { color: var(--ok); } .status.err { color: #e5484d; }
.alt { font-size: 14px; color: var(--muted); margin: 0; }
.alt a { color: var(--ink); }
.fallback { display: grid; gap: 10px; }
.fallback textarea { font-size: 13px; min-height: 160px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer b { color: var(--ink); display: block; margin-bottom: 8px; }
footer p { margin: 0 0 6px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .legal { grid-column: 1 / -1; font-size: 12px; border-top: 1px solid var(--line); padding-top: 18px; }

/* responsive */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .sectors, .cats { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .bar { grid-template-columns: 1fr 1fr; border-radius: 26px; }
  .filters .search { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product, .quote { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .band { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .filters { position: static; padding: 10px 0; }
  .filters .bar { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .filters .reset { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .cat { flex-direction: row; align-items: center; padding: 12px; }
  .cat .cover { width: 104px; flex: none; }
  .cat .meta, .cat .row { padding: 0; }
  .cat-body { display: grid; gap: 12px; min-width: 0; }
  .form .two { grid-template-columns: 1fr; }
  .q-item { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .q-item .thumb { width: 52px; height: 40px; }
  .q-item .rm { grid-column: 3; grid-row: 1; }
  .q-item .qty { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
  footer .wrap { grid-template-columns: 1fr; }
  .facts-t th { width: 42%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { header.nav.dawnav, .filters, .add, footer, .actions, .band { display: none !important; } .card { box-shadow: none; border: 1px solid #ddd; } body { background: #fff; } }
.info .chip, .hero .chip { justify-self: center; }
.info .chip { justify-self: start; }

/* The Daw Alfada site header (assets/site-nav.css, shared with daw-alfada.iq and the labs): BDCOM bits */
header.nav.dawnav .nav-in{display:flex;align-items:center}
header.nav.dawnav .spacer{flex:1}
.btn-quote .count{min-width:22px;height:22px;line-height:22px;padding:0 6px;font-weight:700;border-radius:999px;background:#f5f5f5;color:#000;font-size:12px;display:inline-grid!important;place-items:center}
[data-theme="dark"] .btn-quote .count{background:#000;color:#f5f5f5}
header.nav.dawnav .btn-quote .count[data-n="0"]{display:none!important}
.btn-quote svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.filters{top:70px}
@media (max-width:640px){.filters{top:64px}}
@media (max-width:560px){header.nav.dawnav .btn-quote .lbl{display:none!important}.filters{position:static}}

/* A touch of BDCOM on the Daw Alfada base: BDCOM blue and the violet of their logo and device-panel
   swirl (measured from bdcom.com.cn and BDCOM's own product photographs). Accents only; buttons,
   header, cards and type stay Daw Alfada. */
:root{--bd-blue:#0a58b0;--bd-violet:#7466b8;--bd-glow:rgba(116,102,184,.17);--bd-tail-from:#4f4f57}
:root.dark,[data-theme="dark"]{--bd-blue:#5b9cf0;--bd-violet:#a99cf0;--bd-glow:rgba(169,156,240,.16);--bd-tail-from:#b4b4bc}
.chip::before{background:linear-gradient(135deg,var(--bd-blue),var(--bd-violet))}
.hero::after{content:"";position:absolute;left:50%;top:30px;width:860px;max-width:100%;height:380px;z-index:-1;transform:translateX(-50%);
  background:radial-gradient(closest-side,var(--bd-glow),transparent);pointer-events:none}
.hero h1 .bd-tail{background:linear-gradient(90deg,var(--bd-tail-from) 0%,var(--bd-tail-from) 30%,var(--bd-violet) 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.bd-line{width:min(1180px,100%);height:3px;border-radius:3px;margin:34px auto 0;background:linear-gradient(90deg,transparent,var(--bd-blue) 18%,var(--bd-violet) 82%,transparent)}
.p-card::before{content:"";position:absolute;left:20px;right:20px;top:0;height:3px;border-radius:0 0 3px 3px;z-index:1;
  background:linear-gradient(90deg,var(--bd-blue),var(--bd-violet));opacity:0;transition:opacity .2s}
.p-card:hover::before,.p-card:focus-within::before{opacity:1}
.specs li::before{background:linear-gradient(135deg,var(--bd-blue),var(--bd-violet))}
.facts-t td a,.note a{text-decoration-color:var(--bd-violet)}
.sector .n{background:linear-gradient(180deg,var(--ink) 30%,var(--bd-violet) 140%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
