/* ===========================================================
   PRODUCT INFORMATION TABS — scoped component styles
   Loaded ONLY on the Product Detail Page.
   Every rule is namespaced under .product-info-tabs / .pit-lightbox
   so no other component or page is affected.
   Design tokens (--blue, --ink, --paper, --line-soft, --radius…)
   are reused from the existing assets/styles.css — no new framework.
   =========================================================== */

.product-info-tabs{ --pit-gap:22px; }

/* ---------- tab navigation ---------- */
.product-info-tabs__nav{
  position:relative;
  display:flex;
  gap:4px;
  overflow-x:auto;                       /* mobile: horizontal scroll, labels stay readable */
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  border-bottom:1px solid var(--line-soft,rgba(20,23,28,.07));
  margin-bottom:var(--pit-gap);
}
.product-info-tabs__nav::-webkit-scrollbar{display:none}

.product-info-tabs__tab{
  flex:0 0 auto;
  position:relative;
  appearance:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:15px 20px;
  font-family:'Poppins',sans-serif;
  font-size:14.5px;
  font-weight:500;
  color:var(--soft,#5B6470);
  white-space:nowrap;
  border-radius:10px 10px 0 0;
  transition:color .2s, background .2s;
}
.product-info-tabs__tab::after{           /* active underline, matches site accent */
  content:"";
  position:absolute;left:14px;right:14px;bottom:-1px;
  height:2.5px;border-radius:2px;
  background:var(--blue,#1763F7);
  transform:scaleX(0);transform-origin:center;
  transition:transform .28s ease;
}
.product-info-tabs__tab:hover{color:var(--ink,#14171C);background:rgba(23,99,247,.04)}
.product-info-tabs__tab[aria-selected="true"]{color:var(--blue,#1763F7);font-weight:600}
.product-info-tabs__tab[aria-selected="true"]::after{transform:scaleX(1)}
.product-info-tabs__tab:focus-visible{outline:3px solid rgba(23,99,247,.45);outline-offset:-3px}

/* ---------- panels ---------- */
.product-info-tabs__panel{display:none}
.product-info-tabs__panel.is-active{display:block;animation:pitFade .3s ease}
@keyframes pitFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.product-info-tabs__panel:focus{outline:none}
.product-info-tabs__panel:focus-visible{outline:3px solid rgba(23,99,247,.35);outline-offset:6px;border-radius:8px}

/* ---------- rich text inside panels (scoped) ---------- */
.product-info-tabs__panel h3{
  font-family:'Poppins',sans-serif;font-size:19px;font-weight:700;
  color:var(--ink,#14171C);margin:26px 0 10px;letter-spacing:-.01em;
}
.product-info-tabs__panel h3:first-child{margin-top:0}
.product-info-tabs__panel p{
  color:var(--soft,#5B6470);font-size:15px;line-height:1.8;margin-bottom:14px;max-width:820px;
}
.product-info-tabs__panel strong{color:var(--ink,#14171C);font-weight:600}
.product-info-tabs__panel a{color:var(--blue,#1763F7);font-weight:500}
.product-info-tabs__panel a:hover{text-decoration:underline}
.product-info-tabs__panel ul{list-style:none;margin:0 0 16px;padding:0;max-width:820px}
.product-info-tabs__panel ul li{
  position:relative;padding-left:24px;margin-bottom:9px;
  color:var(--soft,#5B6470);font-size:14.5px;line-height:1.7;
}
.product-info-tabs__panel ul li::before{
  content:"";position:absolute;left:2px;top:9px;
  width:7px;height:7px;border-radius:2px;background:var(--blue,#1763F7);opacity:.75;
}
.product-info-tabs__panel ul li strong{color:var(--ink,#14171C)}

/* two-column feature layout inside a panel */
.product-info-tabs__cols{display:grid;grid-template-columns:1fr 1fr;gap:10px 34px}

/* ---------- spec / data table ---------- */
.product-info-tabs__table{
  width:100%;border-collapse:collapse;
  background:var(--paper,#fff);
  border:1px solid var(--line-soft,rgba(20,23,28,.07));
  border-radius:14px;overflow:hidden;
  font-size:14.5px;
}
.product-info-tabs__table caption{
  caption-side:top;text-align:left;
  font-family:'JetBrains Mono',monospace;font-size:11.5px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--blue,#1763F7);padding:0 0 12px;
}
.product-info-tabs__table th,
.product-info-tabs__table td{
  text-align:left;padding:14px 18px;
  border-bottom:1px solid var(--line-soft,rgba(20,23,28,.07));
  vertical-align:top;
}
.product-info-tabs__table thead th{
  background:var(--ink,#14171C);color:#fff;
  font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;
}
.product-info-tabs__table tbody tr:last-child th,
.product-info-tabs__table tbody tr:last-child td{border-bottom:none}
.product-info-tabs__table tbody tr:nth-child(even){background:#F9FAFB}
.product-info-tabs__table tbody th{
  font-weight:500;color:var(--soft,#5B6470);width:44%;
}
.product-info-tabs__table tbody td{font-weight:600;color:var(--ink,#14171C)}
.product-info-tabs__tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* ---------- ordering code ---------- */
.product-info-tabs__code{
  display:inline-flex;flex-wrap:wrap;align-items:center;gap:10px;
  background:var(--paper,#fff);
  border:1px solid var(--line-soft,rgba(20,23,28,.07));
  border-radius:14px;padding:18px 22px;margin-bottom:20px;
  box-shadow:0 8px 22px rgba(20,30,60,.06);
}
.product-info-tabs__seg{
  font-family:'JetBrains Mono',monospace;font-size:20px;font-weight:500;
  color:var(--blue,#1763F7);background:rgba(23,99,247,.08);
  padding:8px 14px;border-radius:8px;
}
.product-info-tabs__seg--mute{color:var(--faint,#9098A3);background:rgba(20,23,28,.05)}
.product-info-tabs__dash{font-family:'JetBrains Mono',monospace;font-size:20px;color:var(--faint,#9098A3)}
.product-info-tabs__example{
  font-family:'JetBrains Mono',monospace;font-size:14px;color:var(--ink,#14171C);
  background:#F4F6FA;border-left:3px solid var(--blue,#1763F7);
  padding:14px 18px;border-radius:0 10px 10px 0;margin:6px 0 18px;
}

/* ---------- technical drawings ---------- */
.product-info-tabs__drawings{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.product-info-tabs__drawing{
  background:var(--paper,#fff);
  border:1px solid var(--line-soft,rgba(20,23,28,.07));
  border-radius:14px;overflow:hidden;display:flex;flex-direction:column;
  transition:box-shadow .25s,transform .25s;
}
.product-info-tabs__drawing:hover{transform:translateY(-3px);box-shadow:var(--shadow,0 24px 50px rgba(20,30,60,.12))}
.product-info-tabs__drawing figure{margin:0;background:#fff;border-bottom:1px solid var(--line-soft,rgba(20,23,28,.07))}
.product-info-tabs__drawing img{
  width:100%;height:auto;display:block;      /* responsive, aspect ratio preserved */
  cursor:zoom-in;background:#fff;
}
.product-info-tabs__drawing figcaption{padding:16px 18px}
.product-info-tabs__drawing figcaption b{display:block;font-size:15px;color:var(--ink,#14171C);margin-bottom:4px}
.product-info-tabs__drawing figcaption span{font-size:13px;color:var(--soft,#5B6470);line-height:1.6}
.product-info-tabs__drawing-actions{display:flex;gap:10px;padding:0 18px 18px;flex-wrap:wrap}

/* small action link, styled from existing button language */
.product-info-tabs__action{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;font-weight:600;padding:9px 16px;border-radius:40px;
  border:1.5px solid var(--line,rgba(20,23,28,.12));color:var(--ink,#14171C);
  transition:.2s;background:none;cursor:pointer;
}
.product-info-tabs__action:hover{background:var(--blue,#1763F7);border-color:var(--blue,#1763F7);color:#fff;text-decoration:none}
.product-info-tabs__action:focus-visible{outline:3px solid rgba(23,99,247,.45);outline-offset:2px}

/* ---------- downloads ---------- */
.product-info-tabs__docs{display:flex;flex-direction:column;gap:10px}
.product-info-tabs__doc{
  display:flex;align-items:center;gap:16px;
  background:var(--paper,#fff);
  border:1px solid var(--line-soft,rgba(20,23,28,.07));
  border-radius:14px;padding:16px 18px;transition:.22s;
}
.product-info-tabs__doc:hover{border-color:rgba(23,99,247,.4);box-shadow:0 14px 32px rgba(20,30,60,.08)}
.product-info-tabs__doc-ico{
  width:44px;height:44px;border-radius:11px;flex-shrink:0;
  background:rgba(23,99,247,.09);color:var(--blue,#1763F7);
  display:flex;align-items:center;justify-content:center;
}
.product-info-tabs__doc-meta{flex:1;min-width:0}
.product-info-tabs__doc-meta b{display:block;font-size:14.5px;font-weight:600;color:var(--ink,#14171C)}
.product-info-tabs__doc-meta span{
  font-family:'JetBrains Mono',monospace;font-size:11.5px;color:var(--faint,#9098A3);
  letter-spacing:.06em;text-transform:uppercase;
}

/* footnote / annotation under a panel (not counted as panel content) */
.product-info-tabs__note{
  font-size:13px !important;
  color:var(--faint,#9098A3) !important;
  line-height:1.6;
  margin-top:18px;
}

/* ---------- empty state ---------- */
.product-info-tabs__empty{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  padding:48px 20px;text-align:center;
  border:1px dashed var(--line,rgba(20,23,28,.12));border-radius:14px;
  color:var(--faint,#9098A3);font-size:14px;
}
.product-info-tabs__empty svg{opacity:.45}

/* ===========================================================
   DRAWING LIGHTBOX — independent of the product gallery
   =========================================================== */
.pit-lightbox{
  position:fixed;inset:0;z-index:9998;
  display:none;align-items:center;justify-content:center;
  background:rgba(12,15,20,.92);backdrop-filter:blur(5px);
  padding:24px;
}
.pit-lightbox.is-open{display:flex}
.pit-lightbox__img{max-width:96vw;max-height:86vh;object-fit:contain;background:#fff;border-radius:10px;display:block}
.pit-lightbox__close{
  position:absolute;top:18px;right:18px;
  width:46px;height:46px;border-radius:50%;padding:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);color:#fff;
  transition:background .2s;
}
.pit-lightbox__close:hover{background:var(--blue,#1763F7)}
.pit-lightbox__close:focus-visible{outline:3px solid rgba(255,255,255,.6);outline-offset:2px}
body.pit-lightbox-open{overflow:hidden}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media(max-width:1024px){
  .product-info-tabs__drawings{grid-template-columns:1fr}
  .product-info-tabs__cols{grid-template-columns:1fr;gap:0}
}
@media(max-width:760px){
  .product-info-tabs__tab{padding:14px 16px;font-size:14px}
  .product-info-tabs__table th,.product-info-tabs__table td{padding:12px 14px}
  .product-info-tabs__table tbody th{width:50%}
}
@media(max-width:560px){
  .product-info-tabs__nav{gap:0}
  .product-info-tabs__tab{padding:13px 14px;font-size:13.5px}
  .product-info-tabs__doc{flex-wrap:wrap;gap:12px}
  .product-info-tabs__doc-meta{flex:1 0 60%}
  .product-info-tabs__seg{font-size:16px;padding:7px 11px}
  .product-info-tabs__dash{font-size:16px}
}
@media (prefers-reduced-motion:reduce){
  .product-info-tabs__panel.is-active{animation:none}
  .product-info-tabs__tab::after,.product-info-tabs__drawing{transition:none}
}
