.gab-pcb {
  background: #f7f9fb;
  color: #1f2937;
  min-height: 720px;
  padding: 24px 0;
}

.gab-pcb__layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 260px minmax(0, 1fr) 340px;
  margin: 0 auto;
  max-width: 1480px;
  padding: 0 18px;
}

.gab-pcb__panel,
.gab-pcb__main,
.gab-pcb__summary {
  background: #ffffff;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.gab-pcb__panel,
.gab-pcb__summary {
  align-self: start;
  position: sticky;
  top: 84px;
}

.gab-pcb__head,
.gab-pcb__summary-head {
  border-bottom: 1px solid #e5eaf0;
  padding: 16px;
}

.gab-pcb__head h2,
.gab-pcb__summary-head h3,
.gab-pcb__main-title h3 {
  font-size: 20px;
  margin: 0;
}

.gab-pcb__head p,
.gab-pcb__main-title p,
.gab-pcb__summary-head p {
  color: #64748b;
  margin: 4px 0 0;
}

.gab-pcb__steps {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.gab-pcb-step {
  align-items: center;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 10px;
  text-align: left;
}

.gab-pcb-step:hover,
.gab-pcb-step.is-active {
  border-color: #f5a623;
}

.gab-pcb-step.is-done .gab-pcb-step__number {
  background: #127dae;
}

.gab-pcb-step__number {
  align-items: center;
  background: #94a3b8;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.gab-pcb-step__body {
  display: grid;
  min-width: 0;
}

.gab-pcb-step__body small {
  color: #64748b;
}

.gab-pcb__main {
  min-width: 0;
  padding: 16px;
}

.gab-pcb__main-bar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gab-pcb__search {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  padding: 0 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  width: 220px;
}

.gab-pcb__search:focus-within {
  border-color: #127dae;
  box-shadow: 0 0 0 3px rgba(18, 125, 174, 0.12);
}

.gab-pcb__search-icon {
  color: #94a3b8;
  font-size: 13px;
  flex-shrink: 0;
}

.gab-pcb__search-input {
  background: none;
  border: none;
  color: #1f2937;
  font-size: 14px;
  height: 36px;
  min-width: 0;
  outline: none;
  width: 100%;
}

.gab-pcb__search-input::placeholder {
  color: #94a3b8;
}

.gab-pcb__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}

.gab-pcb-product {
  aspect-ratio: 1 / 1.14;
  background: #f3f8fb;
  border: 1px solid rgba(18, 125, 174, 0.2);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 2px rgba(33, 37, 41, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gab-pcb-product:hover,
.gab-pcb-product:focus-within {
  border-color: rgba(18, 125, 174, 0.35);
  box-shadow: 0 14px 34px rgba(33, 37, 41, 0.12);
  transform: translateY(-2px);
}

.gab-pcb-product.is-selected {
  border-color: #127dae;
  box-shadow: 0 0 0 2px rgba(18, 125, 174, 0.16), 0 14px 34px rgba(18, 125, 174, 0.14);
}

.gab-pcb-product.is-disabled {
  opacity: 0.46;
  transform: none;
}

.gab-pcb-product.is-disabled,
.gab-pcb-product.is-disabled a,
.gab-pcb-product.is-disabled button {
  cursor: not-allowed;
}

.gab-pcb-product__image {
  background: #f3f8fb;
  display: flex;
  align-items: flex-start;
  height: 100%;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.gab-pcb-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.gab-pcb-product:hover .gab-pcb-product__image img,
.gab-pcb-product:focus-within .gab-pcb-product__image img {
  transform: scale(1.06);
}

.gab-pcb-product__body {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  bottom: 10px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px) saturate(1.18);
  -webkit-backdrop-filter: blur(10px) saturate(1.18);
  display: grid;
  gap: 10px;
  left: 10px;
  min-height: 96px;
  padding: 12px;
  position: absolute;
  right: 10px;
  z-index: 3;
}

.gab-pcb-product__title {
  display: -webkit-box;
  color: #111827;
  font-size: 15px;
  font-weight: 750;
  line-height: 19px;
  min-height: 19px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.gab-pcb-product__meta,
.gab-pcb-product__footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.gab-pcb-product__meta {
  display: none;
}

.gab-pcb-product__code,
.gab-pcb-product__brand {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  min-width: 0;
  overflow: hidden;
  padding: 5px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gab-pcb-product__code {
  background: #eef6fb;
  color: #127dae;
}

.gab-pcb-product__brand {
  background: #f8fafc;
  color: #64748b;
}

.gab-pcb-product__footer button,
.gab-pcb__summary-actions button {
  border-radius: 6px;
  font-weight: 700;
}

.gab-pcb-product__footer button {
  align-items: center;
  background: #ffb52e;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  color: #111827;
  display: inline-flex;
  font-size: 16px;
  height: 34px;
  justify-content: center;
  min-width: 44px;
  padding: 0;
  width: 44px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.gab-pcb-product__footer button span {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.gab-pcb-product__footer button:hover,
.gab-pcb-product__footer button:focus-visible {
  background: #f59e0b;
  border-color: #db8d08;
  color: #fff;
}

.gab-pcb-product__footer button:disabled {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #64748b;
}

.gab-pcb-product__footer button.is-remove {
  background: #ef4444;
  border-color: #dc2626;
  color: #fff;
}

.gab-pcb-product__footer button.is-remove:hover,
.gab-pcb-product__footer button.is-remove:focus-visible {
  background: #dc2626;
  border-color: #b91c1c;
  color: #fff;
}

.gab-pcb-product__price {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.gab-pcb-product__price strong {
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.gab-pcb-product__price small {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: line-through;
}

.gab-pcb-product__stock {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  color: #1f2937;
  display: inline-flex;
  gap: 4px;
  min-height: 32px;
  justify-content: center;
  position: absolute;
  padding: 6px 9px;
  right: 10px;
  top: 10px;
  z-index: 4;
}

.gab-pcb-product__stock strong {
  color: #127dae;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.gab-pcb-product__stock span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.gab-pcb-product__stock.is-empty {
  background: rgba(255, 241, 244, 0.92);
  border-color: rgba(244, 63, 94, 0.26);
}

.gab-pcb-product__stock.is-empty strong,
.gab-pcb-product__stock.is-empty span {
  color: #e11d48;
}

.gab-pcb__summary {
  padding-bottom: 14px;
}

.gab-pcb__summary-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.gab-pcb-summary-row {
  border-bottom: 1px solid #edf2f7;
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
}

.gab-pcb-summary-row > span {
  color: #64748b;
  font-size: 13px;
}

.gab-pcb-summary-row em {
  color: #94a3b8;
  font-style: normal;
}

.gab-pcb-summary-row__items {
  display: grid;
  gap: 6px;
}

.gab-pcb-summary-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 64px;
  overflow: hidden;
}

.gab-pcb-summary-item__img {
  display: flex;
  overflow: hidden;
}

.gab-pcb-summary-item__img img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.gab-pcb-summary-item__info {
  display: grid;
  gap: 4px;
  grid-template-rows: 1fr auto;
  min-width: 0;
  padding: 8px 10px;
}

.gab-pcb-summary-item__name {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gab-pcb-summary-item__footer {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.gab-pcb-summary-item__price {
  color: #127dae;
  font-size: 13px;
  font-weight: 700;
}

.gab-pcb-summary-item__remove {
  align-items: center;
  background: none;
  border: none;
  border-radius: 4px;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
  width: 24px;
}

.gab-pcb-summary-item__remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.gab-pcb__total {
  align-items: center;
  border-top: 1px solid #e5eaf0;
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.gab-pcb__total strong {
  color: #127dae;
  font-size: 22px;
}

.gab-pcb__summary-actions {
  display: grid;
  gap: 8px;
  padding: 0 14px;
}

.gab-pcb__summary-actions button {
  border: 1px solid #d7dee8;
  padding: 10px;
}

.gab-pcb__summary-actions button[data-pc-cart] {
  background: #127dae;
  border-color: #127dae;
  color: #fff;
}

.gab-pcb__summary-actions button[data-pc-order] {
  background: #f5a623;
  border-color: #dc8f0f;
}

@media (max-width: 1199px) {
  .gab-pcb__layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .gab-pcb__summary {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 767px) {
  .gab-pcb__layout {
    grid-template-columns: 1fr;
  }

  .gab-pcb__panel {
    position: static;
  }

  .gab-pcb__grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  }

  .gab-pcb-product__image {
    padding: 10px;
  }

  .gab-pcb-product__footer {
    align-items: stretch;
    display: grid;
    gap: 10px;
  }

  .gab-pcb-product__footer button {
    width: 100%;
  }
}
