/* =========================================================================
   DUAL · Phase 4 — cart drawer, filter sidebar, product-page premium pieces
   Reuses tokens; no new aesthetic.
   ========================================================================= */

/* ====================================================================
   CART DRAWER (right slide-over on desktop, bottom sheet on mobile)
   ==================================================================== */

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(14,16,32,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cart-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; bottom: 0; right: 0;
  z-index: 91;
  width: min(440px, 100vw);
  max-width: 100vw;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease-out);
  box-shadow: -24px 0 60px -16px rgba(14,16,32,0.32);
  outline: none;
}
.cart-drawer[data-open="true"] { transform: translateX(0); }
.cart-drawer[hidden] { display: none; }

@media (max-width: 640px) {
  .cart-drawer {
    top: auto;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    max-height: 85svh;
    transform: translateY(100%);
    border-radius: var(--r-4) var(--r-4) 0 0;
    box-shadow: 0 -16px 40px -8px rgba(14,16,32,0.32);
  }
  .cart-drawer[data-open="true"] { transform: translateY(0); }
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.cart-drawer__title-wrap { display: flex; flex-direction: column; gap: var(--s-1); }
.cart-drawer__eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.cart-drawer__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.cart-drawer__close {
  width: 36px; height: 36px;
  border-radius: var(--r-2);
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.cart-drawer__close:hover { background: var(--bg-tint); color: var(--ink-900); }
.cart-drawer__close svg { width: 18px; height: 18px; }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-4) var(--s-5);
  background: var(--bg-tint);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--s-3);
  padding: var(--s-3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  animation: cart-line-in 260ms var(--ease-out);
}
@keyframes cart-line-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.cart-line--out { animation: cart-line-out 220ms var(--ease-out) forwards; }
@keyframes cart-line-out {
  to { opacity: 0; transform: translateX(20px); height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border: 0; }
}

.cart-line__media {
  width: 64px; height: 64px;
  background: var(--bg-tint);
  border-radius: var(--r-1);
  overflow: hidden;
}
.cart-line__media img {
  width: 100%; height: 100%; object-fit: contain;
}

.cart-line__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-width: 0;
}
.cart-line__name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: -0.01em;
  color: var(--ink-900);
  line-height: 1.25;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-line__name a { color: inherit; }
.cart-line__name a:hover { color: var(--red-600); }
.cart-line__sku {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.cart-line__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.cart-line__qty {
  display: inline-flex;
  align-items: stretch;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  overflow: hidden;
}
.cart-line__qty button {
  width: 26px;
  border: 0;
  background: transparent;
  color: var(--ink-700);
  font-family: var(--ff-mono);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out);
}
.cart-line__qty button:hover { background: var(--bg-tint); }
.cart-line__qty input {
  width: 34px;
  text-align: center;
  border: 0;
  border-inline: 1px solid var(--line);
  background: transparent;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--ink-900);
  -moz-appearance: textfield;
}
.cart-line__qty input::-webkit-outer-spin-button,
.cart-line__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-line__price {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  color: var(--ink-900);
  font-weight: 500;
}
.cart-line__price--ask {
  color: var(--blue-700);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-line__remove {
  align-self: start;
  width: 28px; height: 28px;
  border-radius: var(--r-1);
  color: var(--ink-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.cart-line__remove:hover { color: var(--red-600); background: rgba(227,6,19,0.06); }
.cart-line__remove svg { width: 14px; height: 14px; }

.cart-empty {
  margin: auto 0;
  text-align: center;
  padding: var(--s-7) var(--s-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.cart-empty__ic {
  width: 56px; height: 56px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  margin-bottom: var(--s-2);
}
.cart-empty__ic svg { width: 24px; height: 24px; }
.cart-empty__h {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink-900);
}
.cart-empty__sub {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  max-width: 32ch;
}

.cart-drawer__foot {
  padding: var(--s-5);
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.cart-drawer__totals {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px dashed var(--line);
}
.cart-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-sm);
  color: var(--ink-600);
}
.cart-totals-row--total {
  font-size: var(--fs-base);
}
.cart-totals-row--total span:last-child {
  font-family: var(--ff-mono);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.cart-totals-row--ask {
  color: var(--blue-700);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.cart-drawer__clear {
  align-self: flex-start;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-1);
  transition: color var(--t-fast) var(--ease-out);
}
.cart-drawer__clear:hover { color: var(--red-600); }


/* ====================================================================
   FILTER SIDEBAR (catalog index + category pages)
   ==================================================================== */

.catalog-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (max-width: 980px) {
  .catalog-shell { grid-template-columns: 1fr; gap: var(--s-4); }
}

.filters {
  position: sticky;
  top: calc(var(--nav-h-compact) + var(--s-4));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-height: calc(100svh - var(--nav-h-compact) - var(--s-7));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

@media (max-width: 980px) {
  /* Mobile: turn the sidebar into a bottom sheet driven by [data-filters-open] */
  .filters {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: auto;
    max-height: 80svh;
    z-index: 70;
    border-radius: var(--r-4) var(--r-4) 0 0;
    transform: translateY(100%);
    transition: transform var(--t-med) var(--ease-out);
    box-shadow: 0 -12px 40px -8px rgba(14,16,32,0.25);
  }
  .filters[data-open="true"] { transform: translateY(0); }
  .filters[hidden] { display: flex; pointer-events: none; }
  .filters[data-open="true"][hidden] { pointer-events: auto; }
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.filters__title {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.filters__reset {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--ink-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--t-fast) var(--ease-out);
}
.filters__reset:hover { color: var(--red-600); }

.facet {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.facet:last-child { border-bottom: 0; padding-bottom: 0; }
.facet__label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: var(--s-1);
}

.facet__search {
  width: 100%;
  height: 40px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  background: var(--bg-tint);
  color: var(--ink-900);
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.facet__search:focus {
  outline: none;
  border-color: var(--blue-700);
  background: #fff;
}

.facet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.facet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: #fff;
  color: var(--ink-700);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.facet-chip:hover { border-color: var(--ink-400); color: var(--ink-900); }
.facet-chip[aria-pressed="true"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.facet-chip__count {
  font-size: 10px;
  opacity: 0.7;
}

/* Dual-thumb range slider */
.facet-range {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.facet-range__inputs {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--ink-900);
}
.facet-range__inputs input {
  width: 70px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  font-family: inherit;
  font-size: inherit;
  text-align: right;
  background: var(--bg-tint);
}
.facet-range__inputs input:focus {
  outline: none;
  border-color: var(--blue-700);
  background: #fff;
}
.facet-range__sep { color: var(--ink-400); }
.facet-range__unit { color: var(--ink-400); margin-left: auto; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.facet-range__note {
  font-size: 10px;
  color: var(--ink-400);
  font-family: var(--ff-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters__footer {
  display: none;
}
@media (max-width: 980px) {
  .filters__footer {
    display: flex;
    gap: var(--s-2);
    padding-top: var(--s-3);
    margin-top: auto;
    border-top: 1px solid var(--line);
    position: sticky;
    bottom: 0;
    background: #fff;
  }
  .filters__footer .btn { flex: 1; }
}

/* Filter toolbar (above the grid) */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.filter-toolbar__active {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  border-radius: var(--r-full);
  background: var(--blue-700);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.active-chip button {
  width: 18px; height: 18px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  color: #fff;
  transition: background var(--t-fast) var(--ease-out);
}
.active-chip button:hover { background: rgba(255,255,255,0.32); }
.active-chip button svg { width: 10px; height: 10px; }

.filter-toolbar__count {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.filter-toolbar__count strong { color: var(--ink-900); font-weight: 500; }

/* Mobile: "Filteri" trigger button */
.filters-trigger {
  display: none;
}
@media (max-width: 980px) {
  .filters-trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-700);
    background: #fff;
    transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
  }
  .filters-trigger:hover { border-color: var(--blue-700); color: var(--blue-700); }
  .filters-trigger__count {
    background: var(--ink-900);
    color: #fff;
    border-radius: var(--r-full);
    padding: 1px 6px;
    font-size: 10px;
  }
}

/* When mobile drawer open, show a backdrop */
.filters-backdrop {
  display: none;
}
@media (max-width: 980px) {
  .filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(14,16,32,0.5);
    z-index: 69;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med) var(--ease-out);
  }
  .filters-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }
}

.cat-empty-filtered {
  text-align: center;
  padding: var(--s-9) var(--s-5);
  border: 1px dashed var(--line);
  border-radius: var(--r-3);
  background: var(--bg-tint);
  color: var(--ink-600);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.cat-empty-filtered__h {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--ink-900);
}


/* ====================================================================
   PRODUCT PAGE — premium / technical enhancements
   ==================================================================== */

/* ---- Datasheet key-spec readout (right under title) ---- */

.datasheet-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--bg-tint);
  overflow: hidden;
  margin-top: var(--s-4);
}
.datasheet-cell {
  padding: var(--s-3) var(--s-4);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.datasheet-cell:last-child { border-right: 0; }
@media (max-width: 640px) {
  .datasheet-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .datasheet-cell:last-child { border-bottom: 0; }
}
.datasheet-cell__lbl {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.datasheet-cell__val {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  letter-spacing: -0.005em;
  color: var(--ink-900);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Frequency-range spectrum visualization ---- */

.spectrum {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.spectrum__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.spectrum__eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.spectrum__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--blue-400);
}
.spectrum__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink-900);
  margin-top: 4px;
}
.spectrum__readout {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.spectrum__svg {
  width: 100%;
  height: auto;
  display: block;
  margin-block: var(--s-3);
}

/* ---- Blueprint frame around the gallery ---- */

.gallery--blueprint {
  position: relative;
  isolation: isolate;
}
.gallery--blueprint .gallery__main {
  background:
    /* subtle grid behind the image area */
    linear-gradient(rgba(127,158,209,0.10) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(127,158,209,0.10) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--bg-tint);
}
.gallery__bp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px var(--s-2) 6px var(--s-3);
  background: var(--ink-900);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--r-2) var(--r-2) 0 0;
}
.gallery__bp-head span:first-child { color: #25C26B; }
.gallery--blueprint .gallery__main {
  border-radius: 0 0 var(--r-3) var(--r-3);
  border-top: 0;
}
/* Corner ticks */
.gallery--blueprint .gallery__main::before,
.gallery--blueprint .gallery__main::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--blue-400);
  pointer-events: none;
}
.gallery--blueprint .gallery__main::before {
  top: 8px; left: 8px;
  border-right: 0; border-bottom: 0;
}
.gallery--blueprint .gallery__main::after {
  bottom: 8px; right: 8px;
  border-left: 0; border-top: 0;
}
.gallery__bp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-2);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* ---- Sticky inquiry bar ---- */

.sticky-inquiry {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 35;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 -8px 24px -12px rgba(14,16,32,0.18);
  transform: translateY(100%);
  transition: transform var(--t-med) var(--ease-out);
}
.sticky-inquiry[data-visible="true"] { transform: translateY(0); }

.sticky-inquiry__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
}
.sticky-inquiry__name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sticky-inquiry__name strong {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink-900);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticky-inquiry__sku {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.sticky-inquiry__price {
  font-family: var(--ff-mono);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink-900);
  white-space: nowrap;
}
.sticky-inquiry__price--ask {
  color: var(--blue-700);
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .sticky-inquiry__name strong { font-size: var(--fs-sm); }
  .sticky-inquiry__price { font-size: var(--fs-sm); }
  .sticky-inquiry__inner { gap: var(--s-2); padding: var(--s-2) var(--gutter); }
  /* Always-visible on mobile */
  .sticky-inquiry { transform: translateY(0); }
}

/* Push back-to-top above the sticky bar on mobile */
@media (max-width: 720px) {
  body:has(.sticky-inquiry) .to-top { bottom: 72px; }
  body:has(.sticky-inquiry) .ai-launcher { bottom: 80px; }
}

/* ---- Combo diagram (Antena → Predpojačivač → Pojačivač → Ispravljač) ---- */

.combo-diagram {
  margin-top: var(--s-6);
  padding: var(--s-5);
  border: 1px dashed var(--blue-400);
  border-radius: var(--r-3);
  background:
    radial-gradient(circle at 100% 0%, rgba(127,158,209,0.15) 0%, transparent 35%),
    linear-gradient(135deg, rgba(62,64,149,0.04), rgba(127,158,209,0.02));
  position: relative;
  overflow: hidden;
}
.combo-diagram__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.combo-diagram__h {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.combo-diagram__h::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--signal);
}
.combo-diagram__sub {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.combo-chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  align-items: stretch;
  position: relative;
}
@media (max-width: 720px) { .combo-chain { grid-template-columns: 1fr; } }

.combo-node {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.combo-node:hover { transform: translateY(-2px); border-color: var(--blue-400); }
.combo-node[data-empty="true"] {
  background: transparent;
  border-style: dashed;
  color: var(--ink-400);
}
.combo-node__step {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.combo-node__kind {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.combo-node[data-empty="true"] .combo-node__kind { color: var(--ink-400); }
.combo-node__name {
  font-size: var(--fs-xs);
  color: var(--ink-600);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.combo-node__cta {
  margin-top: auto;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
}

/* Connector arrows between combo nodes (desktop only) */
@media (min-width: 721px) {
  .combo-chain::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 4%; right: 4%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--blue-400) 0 6px, transparent 6px 12px);
    transform: translateY(-50%);
    z-index: 0;
  }
  .combo-node { z-index: 1; }
}

/* ---- Copy-to-clipboard on spec values ---- */

.spec-table td {
  position: relative;
  cursor: copy;
  transition: background var(--t-fast) var(--ease-out);
}
.spec-table td:hover { background: rgba(62,64,149,0.04); }
.spec-table td::after {
  content: "⧉";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  font-size: 11px;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-out);
}
.spec-table td:hover::after { opacity: 0.8; }
.spec-table td[data-copied="true"]::after {
  content: "✓";
  color: #25C26B;
  opacity: 1;
}

/* Tiny inline copy hint */
.spec-block__hint {
  margin-top: var(--s-2);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-400);
}
