/* ══════════════════════════════════════════════════════════════
   FiberOpticsTools — single-product page CSS
   Ported from docs/drafts/product-concept.html. Loads ONLY on the
   single-product template. Covers the shared two-column product
   layout and its three treatments (part / equipment / editable kit)
   plus the supporting cross-sell rails.

   Tokens, base/reset, header, footer, the docked right-rail, and the
   shared .card / .chip / .add / .tolist styles live in frame.css and
   are NOT repeated here. Light theme only — the concept's dark-mode
   token blocks are dropped.
   ══════════════════════════════════════════════════════════════ */

/* page wrapper vertical rhythm — horizontal centering comes from Kadence's #inner-wrap.wrap */
#fot-product { padding: 8px 0 64px; }
.prel { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ── breadcrumb ── */
#fot-product .crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 18px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
#fot-product .crumb a { color: var(--ink-dim); }
#fot-product .crumb a:hover { color: var(--accent); }
#fot-product .crumb .sep { color: var(--line-strong); }
/* Supplier product names run long; the trailing crumb clamps to one line so the
   trail stays a single row and the full name lives in the H1 below. */
#fot-product .crumb .cur { color: var(--ink); flex: 0 1 auto; min-width: 0; max-width: 52ch;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── section scaffolding for the cross-sell rails (not defined in frame) ── */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.shead h2 { font-size: clamp(21px, 2.6vw, 29px); font-weight: 780; }
.shead .link { font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: 0.02em; white-space: nowrap; }
.shead .link:hover { text-decoration: underline; }
.shead p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── two-column product layout, reused by part + equipment ── */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-top: 26px; }
.pdp.equip { grid-template-columns: 1.1fr 1fr; }

/* media column */
.pmedia { position: sticky; top: 88px; }
.pshot { aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: 14px; position: relative;
  background: #fff; display: grid; place-items: center; overflow: hidden; }
.pshot.wide { aspect-ratio: 4/3; }
.pshot svg { color: var(--accent); opacity: 0.9; }
.pshot img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.pshot .tag { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal);
  border: 1px solid color-mix(in srgb, var(--signal) 45%, transparent); border-radius: 5px; padding: 3px 7px;
  background: color-mix(in srgb, var(--ground) 70%, transparent); }
.pthumbs { display: flex; gap: 10px; margin-top: 12px; }
.pthumb { width: 62px; height: 62px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer;
  background: #fff; overflow: hidden; display: grid; place-items: center; color: var(--accent); }
.pthumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.pthumb.on, .pthumb:hover { border-color: var(--accent); }
.pthumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* buy column */
.pcat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.ptitle { font-size: clamp(22px, 3vw, 30px); font-weight: 780; margin: 8px 0 0; text-wrap: balance; }
/* Long supplier names (spec sheets in a title) step down a size so the buy column
   isn't dominated by six lines of display type. */
.ptitle--long { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.3; }
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.pmeta .sku { color: var(--ink-dim); }
.pmeta .stock { font-size: 11.5px; }

.pricerow { display: flex; align-items: baseline; gap: 12px; margin: 20px 0 0; }
.pricerow .big { font-family: var(--mono); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pricerow .unit { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* reorder hint */
.rehint { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line-strong)); border-radius: var(--radius);
  background: var(--accent-glow); font-size: 13px; color: var(--ink-dim); }
.rehint svg { color: var(--accent); flex-shrink: 0; }
.rehint b { color: var(--ink); font-weight: 650; }
.rehint a { color: var(--accent); font-weight: 650; margin-left: auto; white-space: nowrap; }
.rehint a:hover { text-decoration: underline; }

/* spec table */
.spectbl { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spectbl .cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.spectbl dl { margin: 0; }
.spectbl .row { display: grid; grid-template-columns: 40% 1fr; border-top: 1px solid var(--line); }
.spectbl .row:first-of-type { border-top: 0; }
.spectbl dt { margin: 0; padding: 9px 14px; font-size: 12.5px; color: var(--muted); border-right: 1px solid var(--line); }
.spectbl dd { margin: 0; padding: 9px 14px; font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  font-variant-numeric: tabular-nums; }

/* qty stepper + buy actions */
.buyrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); overflow: hidden; height: 46px; }
.qty button { width: 42px; height: 100%; border: 0; background: transparent; color: var(--ink-dim);
  font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--surface-2); color: var(--accent); }
.qty input { width: 46px; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: transparent; color: var(--ink); text-align: center; font-family: var(--mono); font-size: 15px;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.addbig { flex: 1; min-width: 180px; height: 46px; border: 0; border-radius: 8px; background: var(--accent);
  color: var(--on-accent); font-weight: 700; font-size: 15px; font-family: var(--sans); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.addbig:hover { background: var(--accent-deep); }

/* add-to-list picker */
.listwrap { position: relative; }
.listbtn { height: 46px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface);
  color: var(--ink-dim); font-weight: 600; font-size: 13.5px; font-family: var(--sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.listbtn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.listbtn:hover svg { color: var(--on-accent); }
.listmenu { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); min-width: 240px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,0.55); padding: 6px; display: none; }
.listmenu.open { display: block; }
.listmenu .mh { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px 6px; }
.listmenu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink);
  font-size: 13px; font-family: var(--sans); cursor: pointer; text-align: left; }
.listmenu button:hover { background: var(--surface-2); }
.listmenu button .c { font-family: var(--mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.listmenu .new { color: var(--accent); border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 7px 7px; }

/* description */
.pdesc { margin-top: 24px; color: var(--ink-dim); font-size: 14.5px; }
.pdesc p { margin: 0; }
.pdesc ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.pdesc li { margin: 4px 0; }

/* ── equipment treatment ── */

/* condition selector */
.conds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cond { flex: 1; min-width: 130px; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); padding: 12px 14px; cursor: pointer; color: var(--ink); }
.cond:hover { border-color: var(--accent); }
.cond.on { border-color: var(--accent); background: var(--accent-glow); }
.cond:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cond .k { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cond .k .nm { font-weight: 650; font-size: 13.5px; }
.cond .k .p { font-family: var(--mono); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cond .sub { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.cond.out { opacity: 0.55; cursor: not-allowed; }
.cond.out:hover { border-color: var(--line-strong); }

/* support callout */
.techcta { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.techcta .av { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-glow); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.techcta .tx { flex: 1; min-width: 0; }
.techcta .tx b { font-size: 14px; font-weight: 650; }
.techcta .tx p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.techcta .go { padding: 0 16px; height: 40px; border-radius: 8px; border: 1px solid var(--accent); color: var(--accent);
  font-weight: 650; font-size: 13px; font-family: var(--sans); display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; }
.techcta .go:hover { background: var(--accent-glow); }

/* downloads / datasheet */
.dls { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dls .cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dl { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); }
.dl:first-of-type { border-top: 0; }
.dl svg { color: var(--accent); flex-shrink: 0; }
.dl .nm { flex: 1; font-size: 13px; color: var(--ink); }
.dl .fmt { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.dl:hover .nm { color: var(--accent); }

/* full spec table (wide -> own scroll) */
.specwide { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 22px; }
.specwide table { width: 100%; border-collapse: collapse; min-width: 480px; }
.specwide caption { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.specwide th, .specwide td { text-align: left; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.specwide tbody tr:first-child th, .specwide tbody tr:first-child td { border-top: 0; }
.specwide th { color: var(--muted); font-weight: 500; width: 38%; }
.specwide td { font-family: var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }

/* section label divider (shared by equipment + kit treatments) */
.equipband { background: var(--surface); }
.treatlbl { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }
.treatlbl .ln { width: 34px; height: 1px; background: color-mix(in srgb, var(--signal) 50%, transparent); }

/* ── editable-kit treatment ── */
.kitsec { background: var(--surface); }
.kgrid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; margin-top: 8px; }
.kside .kmedia { aspect-ratio: 16/10; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--surface) 82%, var(--accent)));
  display: grid; place-items: center; color: var(--accent); margin-bottom: 16px; }
.kside .kmedia svg { opacity: 0.9; }
.kintro { color: var(--ink-dim); font-size: 14.5px; margin: 12px 0 0; max-width: 46ch; }
.kbuy { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.ktotal { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; }
.ktotal .l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ktotal .v { font-family: var(--mono); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.ksave { height: 42px; border: 1px solid var(--line-strong); background: transparent; border-radius: 9px;
  font-family: var(--sans); font-weight: 650; font-size: 13.5px; color: var(--ink-dim); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ksave:hover { border-color: var(--accent); color: var(--accent); }
.kpanel { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--ground); overflow: hidden; }
.kphead { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted); }
.kphead a { color: var(--accent); }
.kitem { display: grid; grid-template-columns: auto 34px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.kqty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 7px; }
.kqty button { width: 24px; height: 26px; border: 0; background: none; color: var(--ink-dim); cursor: pointer; font-size: 14px; }
.kqty button:hover { color: var(--accent); }
.kqty span { font-family: var(--mono); font-size: 12px; min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.kthumb { width: 34px; height: 34px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.kd { min-width: 0; }
.kd .nm { font-size: 12.5px; font-weight: 600; }
.kd .nm a { cursor: pointer; }
.kd .nm a:hover { color: var(--accent); }
.kd .sku { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.kd .sku .req { color: var(--ink-dim); }
.kd .sku .opt { color: var(--accent); }
.klp { font-family: var(--mono); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.krm { background: none; border: 0; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 10.5px; }
.krm:hover { color: #e0574f; }
.kfoot { padding: 12px 16px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--surface); }
.kworks { margin-top: 44px; }

/* ── responsive ── */
@media (max-width: 900px) {
  .rail { grid-template-columns: repeat(2, 1fr); }
  .pdp, .pdp.equip { grid-template-columns: 1fr; gap: 26px; }
  .pmedia { position: static; }
}
@media (max-width: 820px) {
  .kgrid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .rail { grid-template-columns: 1fr 1fr; }
  .buyrow { gap: 10px; }
  .addbig { min-width: 0; }
  .listwrap, .listbtn { width: 100%; }
  .listmenu { left: 0; right: auto; }
  .kitem { grid-template-columns: auto 1fr auto; }
  .kitem .kthumb, .kitem .krm { display: none; }
}

/* --signal is aqua and fails contrast for small text on the light surfaces these
   labels sit on, so darken the equipment/kit divider labels and image tags. */
.treatlbl, .pshot .tag { color: #0A6E7F; }
.treatlbl .ln { background: color-mix(in srgb, #0A6E7F 50%, transparent); }
.pshot .tag { border-color: color-mix(in srgb, #0A6E7F 45%, transparent); }

/* "N in your cart" indicator (hidden when the product isn't in the cart) */
.pdp-incart { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-family: var(--mono);
  color: var(--good); background: color-mix(in srgb, var(--good) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--good) 32%, transparent); width: fit-content; }
.pdp-incart[data-qty="0"] { display: none; }
.pdp-incart svg { color: var(--good); }
.pdp-incart a { color: var(--accent); font-weight: 650; text-decoration: none; }
.pdp-incart a:hover { text-decoration: underline; }

/* Frequently bought together */
.fbt { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.fbt .shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.fbt .shead .eyebrow { color: var(--signal); }
.fbt-addall { height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--accent);
  color: var(--on-accent); font-weight: 700; font-size: 13px; font-family: var(--sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.fbt-addall:hover { background: var(--accent-deep); }
.fbt-addall:disabled { opacity: 0.6; cursor: default; }
