.gbf {
  --ink: #112544;
  --muted: #4e6481;
  --line: #d8e4f2;
  --wash: #f3f7fc;
  --blue: #0054d4;
  --deep: #0b2347;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  max-width: 1240px;
  margin: 0 auto 52px;
}
.gbf [hidden] { display: none !important; }
.gbf :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid #317de8;
  outline-offset: 3px;
}
.gbf-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, .48fr);
  align-items: center;
  min-height: 250px;
  margin: 16px 0 0;
  padding: 32px clamp(18px, 4.3vw, 58px) 52px;
  border-radius: 24px;
  color: white;
  background: radial-gradient(ellipse at 95% 10%, #164879 0%, transparent 66%), var(--deep);
}
.gbf-back {
  display: inline-block;
  margin-bottom: 17px;
  color: #cce3ff;
  font-size: .875rem;
  font-weight: 650;
}
.gbf-back:hover { color: white; text-decoration: underline; }
.gbf h1 {
  color: white;
  font-size: clamp(2rem, 4.3vw, 3.6rem);
  letter-spacing: -.044em;
  line-height: 1.04;
  margin: 0 0 14px;
  font-weight: 780;
}
.gbf-intro p {
  max-width: 520px;
  margin: 0;
  color: #dfedfc;
  font-size: 1rem;
  line-height: 1.55;
}
.gbf-measure { display: grid; place-items: center; }
.gbf-drawing {
  position: relative;
  width: 204px;
  height: 155px;
  margin: 8px 0 0 10px;
  color: #cadefc;
  font-size: 12px;
  font-weight: 650;
}
.gbf-profile {
  position: absolute;
  left: 49px;
  top: 22px;
  width: 68px;
  height: 95px;
  display: block;
  border: 1px solid #8eb9e3;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #2d5277 0 1px, #203d5e 1px 4px);
}
.gbf-profile::before, .gbf-profile::after {
  content: '';
  position: absolute;
  display: block;
  border: 1px solid #8eb9e3;
}
.gbf-profile::before {
  top: -19px;
  left: 9px;
  width: 68px;
  height: 19px;
  transform: skewX(-46deg);
  background: #365d84;
}
.gbf-profile::after {
  left: 66px;
  top: -10px;
  width: 19px;
  height: 95px;
  transform: skewY(-44deg);
  background: #142f53;
}
.gbf-plane, .gbf-side { position: absolute; }
.gbf-plane { left: 52px; top: 129px; }
.gbf-plane::before {
  content: '';
  position: absolute;
  top: -9px;
  left: -3px;
  width: 68px;
  height: 5px;
  border: solid #8eb9e3;
  border-width: 0 1px 1px;
}
.gbf-side { left: 129px; top: 111px; }
.gbf-side::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -9px;
  width: 21px;
  height: 5px;
  border: solid #8eb9e3;
  border-width: 0 1px 1px;
  transform: rotate(-44deg);
}
.gbf-form {
  margin: -25px clamp(0px, 1.85vw, 28px) 36px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 13px 36px #13285112;
}
.gbf-top-fields { padding: 23px clamp(14px, 2.6vw, 31px) 16px; }
.gbf label { display: block; min-width: 0; margin: 0; text-align: left; color: var(--ink); font-size: .875rem; font-weight: 700; }
.gbf label > span { color: var(--muted); font-size: .75rem; margin-left: 2px; font-weight: 500; }
.gbf :is(input:not([type=checkbox], [type=range]), select) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 6px 0 0;
  min-height: 45px;
  border: 1px solid #c7d7ec;
  border-radius: 9px;
  padding: 8px 11px;
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 500;
}
.gbf input::placeholder { color: #596d86; opacity: 1; }
.gbf [aria-invalid] { border-color: #be2542 !important; }
.gbf-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 17px; }
.gbf-range {
  --thumb: 24px;
  position: relative;
  margin-top: 4px;
}
.gbf-range::before {
  content: '';
  position: absolute;
  top: 15px;
  right: calc(var(--thumb) / 2);
  left: calc(var(--thumb) / 2);
  height: 6px;
  border-radius: 4px;
  background: var(--line);
  pointer-events: none;
}
.gbf-range[data-unset]::before { background: var(--blue); }
.gbf-slider {
  position: relative;
  display: block;
  appearance: none;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gbf-slider::-webkit-slider-thumb {
  appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  cursor: grab;
}
.gbf-slider::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--thumb);
  height: var(--thumb);
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  cursor: grab;
}
.gbf-range[data-unset] .gbf-slider::-webkit-slider-thumb { opacity: 0; }
.gbf-range[data-unset] .gbf-slider::-moz-range-thumb { opacity: 0; }
.gbf-slider:disabled { cursor: default; opacity: .65; }
.gbf-range-scale {
  position: relative;
  height: 22px;
  margin: -3px calc(var(--thumb) / 2) 3px;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  pointer-events: none;
}
.gbf-scale-mark {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
}
.gbf-scale-mark::before {
  content: '';
  display: block;
  width: 1px;
  height: 4px;
  margin: 0 auto 3px;
  background: #859ebd;
}
.gbf-scale-mark:not(:empty)::before {
  height: 6px;
  background: var(--muted);
}
.gbf-range-value { display: block; text-align: center; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.gbf-hint { color: var(--muted); font-size: .82rem; line-height: 1.5; margin: 11px 0 0; }
.gbf-advanced { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--wash); }
.gbf-advanced summary {
  display: list-item;
  padding: 13px clamp(14px, 2.6vw, 31px);
  color: var(--ink);
  font-weight: 760;
  cursor: pointer;
  font-size: .94rem;
}
.gbf-advanced-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  padding: 0 clamp(14px, 2.6vw, 31px) 16px;
}
.gbf-actions {
  padding: 14px clamp(14px, 2.6vw, 31px);
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 20px;
}
.gbf-quick-filters, .gbf-action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 14px;
}
.gbf .gbf-brand { width: clamp(145px, 16vw, 205px); }
.gbf .gbf-check { display: flex; min-height: 45px; align-items: center; gap: 8px; cursor: pointer; }
.gbf-check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.gbf-action-buttons { justify-content: flex-end; margin-left: auto; }
.gbf-actions .gbf-invalid { flex-basis: 100%; }
.gbf :is(.gbf-primary, .gbf-reset, .gbf-more) {
  border: 0;
  border-radius: 9px;
  min-height: 43px;
  padding: 7px 17px;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 760;
}
.gbf .gbf-primary { color: white; background: var(--blue); }
.gbf .gbf-primary:hover { background: #0046b2; }
.gbf :is(.gbf-reset, .gbf-more) { color: #0751b4; background: #eaf2fe; }
.gbf :is(.gbf-reset, .gbf-more):hover { background: #dceafe; }
.gbf .gbf-invalid { color: #a71e35; margin: 0; font-size: .88rem; }
.gbf-results-top { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.gbf-results h2 { margin: 0 0 3px; font-size: clamp(1.45rem, 3vw, 2.05rem); letter-spacing: -.036em; font-weight: 770; color: var(--ink); }
.gbf-results h2:focus { outline: none; }
.gbf-results-top p { margin: 0; color: var(--muted); font-size: .9rem; }
.gbf .gbf-sort { width: min(100%, 235px); }
.gbf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.gbf-chip {
  padding: 4px 10px;
  border: 1px solid #c6d9f2;
  border-radius: 99px;
  color: #0751ac;
  background: #edf5ff;
  font-size: .83rem;
  cursor: pointer;
}
.gbf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gbf-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  overflow: hidden;
}
.gbf-card:hover { border-color: #aabfda; }
.gbf-card-photo { display: grid; place-items: center; height: 178px; margin: 0; border-bottom: 1px solid #e9eff7; background: #fff; }
.gbf-photo-button { display: grid; place-items: center; width: 100%; height: 100%; border: 0; padding: 4px 8px; background: transparent; cursor: zoom-in; }
.gbf-photo-button:focus-visible { outline-offset: -4px !important; }
.gbf-photo-button img { display: block; width: 100%; height: 163px; object-fit: contain; }
.gbf-photo-none { color: var(--muted); font-size: .86rem; }
.gbf-card-body { display: flex; flex: 1; flex-direction: column; padding: 13px 13px 12px; }
.gbf-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; align-items: baseline; margin-bottom: 8px; }
.gbf-sku { color: var(--muted); font-size: .77rem; font-weight: 750; overflow-wrap: anywhere; }
.gbf-in-stock, .gbf-stock-off { font-size: .72rem; font-weight: 650; }
.gbf-in-stock { color: #147147; }
.gbf-stock-off { color: var(--muted); }
.gbf h3.gbf-card-title { color: var(--ink); font-weight: 710; font-size: .96rem; line-height: 1.32; margin: 0 0 9px; }
.gbf-card-title a { color: inherit; }
.gbf-card-title a:hover { color: var(--blue); text-decoration: underline; }
.gbf-card-size { color: var(--ink); font-weight: 780; font-size: 1.16rem; letter-spacing: -.025em; margin: 0 0 9px; }
.gbf-size-source { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; margin-top: 4px; letter-spacing: 0; }
.gbf-conflict { display: block; color: #945307; font-size: .72rem; font-weight: 600; margin-top: 4px; letter-spacing: 0; }
.gbf-card-facts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 11px; }
.gbf-card-facts span { padding: 3px 6px; border-radius: 5px; background: #edf3fa; color: #365476; font-size: .71rem; font-weight: 640; }
.gbf-card-bottom { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; justify-content: space-between; padding-top: 8px; border-top: 1px solid #e9eff7; }
.gbf-card-bottom .gbf-link:last-child { margin-left: auto; }
.gbf-link { color: #004dbf; font-size: .83rem; font-weight: 750; }
.gbf-link:hover { color: #003d98; text-decoration: underline; }
.gbf-deviation { color: var(--muted); font-size: .73rem; }
.gbf-more { display: block; margin: 22px auto 0; }
.gbf-empty { padding: 28px; border: 1px solid var(--line); border-radius: 15px; background: var(--wash); }
.gbf-empty h3 { color: var(--ink); font-size: 1.2rem; text-transform: none; margin: 0 0 6px; }
.gbf-empty p { color: var(--muted); margin: 0 0 12px; }
.gbf-empty .gbf-link { display: inline-block; margin: 5px 0 5px 10px; }
.gbf-dialog { width: min(720px, 94vw); padding: 15px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); }
.gbf-dialog::backdrop { background: #142745b8; }
.gbf-dialog > div { display: flex; justify-content: space-between; align-items: center; }
.gbf-dialog h2 { color: var(--ink); font-size: 1.15rem; margin: 0; }
.gbf-dialog button { background: var(--wash); border: 0; color: var(--ink); width: 44px; height: 44px; font-size: 1.45rem; cursor: pointer; border-radius: 8px; }
.gbf-dialog img { display: block; width: 100%; max-height: 71vh; height: auto; object-fit: contain; }
@media (max-width: 850px) {
  .gbf-title-break { display: none; }
  .gbf-intro { grid-template-columns: minmax(0, 1fr) 185px; min-height: 245px; }
  .gbf-drawing { transform: scale(.82); transform-origin: center; }
  .gbf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .gbf-intro { display: block; padding: 22px 16px 43px; min-height: 0; border-radius: 16px; }
  .gbf-measure { display: none; }
  .gbf h1 { font-size: clamp(1.75rem, 8vw, 2.42rem); margin-bottom: 10px; }
  .gbf-intro p { font-size: .91rem; }
  .gbf-form { margin-bottom: 26px; }
  .gbf-quick-filters {
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    width: 100%;
    align-items: center;
    column-gap: 12px;
  }
  .gbf .gbf-brand { grid-column: 1 / -1; width: 100%; }
  .gbf .gbf-check { min-height: 36px; font-size: .82rem; }
  .gbf-dimensions, .gbf-advanced-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gbf-results-top { flex-wrap: wrap; align-items: start; }
  .gbf .gbf-sort { width: 100%; }
  .gbf-grid { gap: 8px; }
  .gbf-card-photo { height: 128px; }
  .gbf-photo-button img { height: 114px; }
  .gbf-card-body { padding: 9px 8px; }
  .gbf-card-size { font-size: .96rem; }
}
@media (max-width: 355px) {
  .gbf-advanced-fields { grid-template-columns: 1fr; }
  .gbf-grid { grid-template-columns: 1fr; }
}

.gbf-card-sale { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.gbf-origin { display: inline-block; border-radius: 5px; padding: 3px 7px; background: #edf3fa; color: #365476; font-size: .75rem; font-weight: 720; }
.gbf-origin-original { background: #e8f4ed; color: #176641; }
.gbf-card-price { margin-left: auto; color: var(--ink); font-size: clamp(1.02rem, 3.2vw, 1.45rem); font-weight: 780; line-height: 1.1; white-space: nowrap; }
.gbf-related { margin: 0 0 9px; }
.gbf-related-label { margin: 0 0 4px; color: var(--muted); font-size: .74rem; font-weight: 720; }
.gbf-related summary { display: list-item; cursor: pointer; }
.gbf-related-list { display: flex; flex-wrap: wrap; gap: 4px 9px; }
.gbf-related-link { color: #004dbf; font-size: .79rem; font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .gbf-card-sale { flex-direction: column; align-items: flex-start; gap: 5px; }
  .gbf-card-price { margin-left: 0; font-size: 1.08rem; }
}
