/* Order form page. The sheet is the printable document; the hero is site chrome. */

.ab-of-content { flex: 1 1 100%; min-width: 0; background: var(--bg); padding-bottom: 72px; }
.separate-containers .inside-article { background: var(--bg); padding-top: 0; padding-bottom: 0; }

.ab-of-wrap { width: min(210mm, calc(100% - 36px)); margin: 0 auto; }

.ab-of-hero { padding: 40px 0 6px; }
.ab-of-hero .eyebrow { font-family: var(--mono, "DM Mono", ui-monospace, monospace); font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent, #B9322A); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ab-of-hero .eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent, #B9322A); border-radius: 2px; }
.ab-of-hero h1 { font-family: var(--sans, "DM Sans", system-ui, sans-serif); font-weight: 500; font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; line-height: 1.02; margin: 0; color: var(--ink); }
.ab-of-hero .hero-lead { margin: 14px 0 0; max-width: 58ch; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.ab-of-actions { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; margin-top: 20px; }
button.ab-of-download { cursor: pointer; }
.ab-of-alt { font-size: 14.5px; color: var(--ink-2); }
.ab-of-alt a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ab-of-again { width: min(210mm, calc(100% - 36px)); margin: 18px auto 0; display: flex; justify-content: flex-end; }

.ab-pricelist {
  --bg: #F8F6F1; --paper: #FDFCFA;
  --ink: #14181D; --ink-2: #4D535D; --ink-3: #8A909A;
  --line: #E3DFD4; --line-2: #CFC9BB;
  --accent: #B9322A; --accent-deep: #7A1E18; --accent-soft: #F1DDD9;
  --green: #3F7A44;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 12px;
  width: 210mm; min-height: 297mm; margin: 22px auto 0; background: var(--paper); color: var(--ink);
  padding: 13mm 15mm 11mm; box-shadow: 0 8px 40px rgba(20, 24, 29, .14);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
}
.ab-pricelist a { color: inherit; text-decoration: none; }
.ab-pricelist img { max-width: 100%; display: block; }

.ab-pricelist .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.ab-pricelist .head .brand img { height: 46px; width: auto; }
.ab-pricelist .head .brand .panel-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 7px; }
.ab-pricelist .head .org { text-align: right; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.ab-pricelist .head .org .abn { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }
.ab-pricelist .head .org strong { color: var(--ink); font-weight: 600; }

.ab-pricelist .title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 10px 0 4px; }
.ab-pricelist .title-row .doc-title { font-family: var(--sans); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; margin: 0; }
.ab-pricelist .title-row .eff { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.ab-pricelist .how { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--radius); padding: 8px 16px; margin: 6px 0 10px; }
.ab-pricelist .how .label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); white-space: nowrap; }
.ab-pricelist .how .email { font-weight: 600; font-size: 15px; color: var(--accent-deep); }
.ab-pricelist .how .email::before { content: "✉  "; }
.ab-pricelist .how ol { margin: 0; padding: 0; list-style: none; display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); width: 100%; }
.ab-pricelist .how ol li { display: flex; gap: 6px; }
.ab-pricelist .how ol li b { font-family: var(--mono); color: var(--accent); }

.ab-pricelist .sec-h { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin: 0 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 9px; }
.ab-pricelist .sec-h::before { content: ""; width: 14px; height: 2px; background: var(--accent); border-radius: 2px; }

.ab-pricelist .fill { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.ab-pricelist .f { border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 4px 10px 5px; min-height: 30px; }
.ab-pricelist .f label { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1px; }
.ab-pricelist input[type="text"],
.ab-pricelist input[type="tel"],
.ab-pricelist input[type="email"] { width: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-family: var(--sans); font-size: 13px; line-height: 1.3; color: var(--ink); padding: 1px 0; margin: 0; min-height: 0; height: auto; }
.ab-pricelist input:focus { outline: none; }
.ab-pricelist .c6 { grid-column: span 6; } .ab-pricelist .c4 { grid-column: span 4; } .ab-pricelist .c3 { grid-column: span 3; } .ab-pricelist .c2 { grid-column: span 2; }
.ab-pricelist .fill > .f.row1 { border-top: 0; }

.ab-pricelist table.products { width: 100%; border-collapse: collapse; margin: 0 0 4px; font-size: 13px; background: transparent; }
.ab-pricelist table.products thead th { background: var(--ink); color: #fff; font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; padding: 7px 10px; vertical-align: middle; border: 0; }
.ab-pricelist table.products thead th.num { text-align: right; }
.ab-pricelist table.products thead th.ctr { text-align: center; }
.ab-pricelist table.products tbody td { border: 1px solid var(--line-2); padding: 6px 10px; vertical-align: top; background: transparent; }
.ab-pricelist .desc .code { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--accent-deep); }
.ab-pricelist .desc .name { font-weight: 600; font-size: 13px; letter-spacing: -0.01em; color: var(--ink); }
.ab-pricelist .desc-row { display: flex; align-items: flex-start; gap: 10px; }
.ab-pricelist .desc-copy { min-width: 0; }
.ab-pricelist .prod-frame { width: 72px; height: 72px; flex: 0 0 72px; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.ab-pricelist .prod-frame .prod-img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; transform: scale(1.45); border: 0; border-radius: 0; background: transparent; }
.ab-pricelist .desc p { margin: 2px 0 0; font-size: 11px; color: var(--ink-2); line-height: 1.4; }
.ab-pricelist td.qty, .ab-pricelist td.price, .ab-pricelist td.total { text-align: right; white-space: nowrap; }
.ab-pricelist td.qty { width: 50px; text-align: center; }
.ab-pricelist td.price { width: 96px; }
.ab-pricelist td.total { width: 96px; }
.ab-pricelist td.price .val { font-weight: 600; }
.ab-pricelist td.qty input, .ab-pricelist td.total input { font-family: var(--mono); text-align: right; }
.ab-pricelist td.qty input { text-align: center; }

.ab-pricelist .totals { display: flex; justify-content: flex-end; margin-top: -1px; }
.ab-pricelist .totals table { border-collapse: collapse; font-size: 12px; min-width: 340px; background: transparent; }
.ab-pricelist .totals td { padding: 3px 10px; border: 1px solid var(--line-2); background: transparent; }
.ab-pricelist .totals td.k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); text-align: right; }
.ab-pricelist .totals td.v { width: 110px; text-align: right; font-family: var(--mono); white-space: nowrap; }
.ab-pricelist .totals .freight td.v { color: var(--green); font-weight: 600; letter-spacing: 0.04em; }
.ab-pricelist .totals .grand td { background: var(--ink); color: #fff; border-color: var(--ink); }
.ab-pricelist .totals .grand td.k { color: #fff; }
.ab-pricelist .totals tr td.v input { width: 7.2em; display: inline-block; font-family: var(--mono); font-size: 13px; text-align: right; color: inherit; vertical-align: baseline; }
.ab-pricelist .totals .grand td.v input { color: #fff; }
.ab-pricelist .freight-note { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }

.ab-pricelist .terms { margin: 8px 0 10px; font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.ab-pricelist .terms strong { color: var(--ink); font-weight: 600; }
.ab-pricelist .terms.center { text-align: center; }

.ab-pricelist .pay { display: flex; gap: 22px; align-items: flex-start; padding-top: 2px; }
.ab-pricelist .pay .check { display: flex; align-items: center; gap: 9px; }
.ab-pricelist .pay .box { width: 15px; height: 15px; border: 1.5px solid var(--ink); border-radius: 3px; display: inline-block; }
.ab-pricelist .pay .method .v { font-weight: 600; }
.ab-pricelist .pay .bank { font-size: 12.5px; line-height: 1.9; }
.ab-pricelist .pay .bank .row { display: flex; gap: 10px; }
.ab-pricelist .pay .bank .bk { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); width: 140px; }
.ab-pricelist .pay .bank .bv { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.ab-pricelist .pay .remit { font-size: 11px; color: var(--ink-2); max-width: 34ch; line-height: 1.6; margin: 0; }

#abOrderPrint:empty { display: none; }

@media screen and (max-width: 760px) {
  .ab-of-hero { padding: 28px 0 4px; }
  .ab-pricelist { width: auto; min-height: 0; margin: 16px 10px 0; padding: 22px 18px; }
  .ab-pricelist .fill { grid-template-columns: repeat(2, 1fr); }
  .ab-pricelist .c6, .ab-pricelist .c4, .ab-pricelist .c3, .ab-pricelist .c2 { grid-column: span 2; }
  .ab-pricelist .head { flex-direction: column; }
  .ab-pricelist .head .org { text-align: left; }
  .ab-pricelist .pay { flex-direction: column; gap: 14px; }
  .ab-of-again { justify-content: stretch; }
  .ab-of-again .ab-btn { width: 100%; }
}

@media print {
  @page { size: A4; margin: 0; }
  body > *:not(#abOrderPrint) { display: none !important; }
  #abOrderPrint { display: block !important; }
  .ab-pricelist { width: auto; min-height: auto; height: auto; margin: 0; box-shadow: none; padding: 9mm 11mm 7mm; zoom: 0.80; }
  .ab-pricelist table.products thead th,
  .ab-pricelist .totals .grand td,
  .ab-pricelist .how,
  .ab-pricelist .pay .box,
  .ab-pricelist .prod-img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ab-pricelist table.products tr { break-inside: avoid; }
}
