.ceplink-product-cards {
  --pc-orange: #FD5C05;
  --pc-orange-ink: #9c3d0a;
  --pc-orange-soft: #fff3ec;
  --pc-ink: #17202e;
  --pc-muted: #536074;
  --pc-line: #e1e7ef;
  --pc-panel: #f6f8fb;
  display: grid;
  gap: 15px;
  width: 100%;
  min-width: 0;
  color: var(--pc-ink);
}

.ceplink-product-cards .pc-heading,
.ceplink-product-cards .pc-toolbar,
.ceplink-product-cards .pc-summary,
.ceplink-product-cards .pc-row-actions,
.ceplink-product-cards .pc-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ceplink-product-cards .pc-heading {
  flex-wrap: wrap;
  justify-content: space-between;
}

.ceplink-product-cards .pc-heading h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

.ceplink-product-cards button {
  cursor: pointer;
  font: inherit;
}

.ceplink-product-cards button:focus-visible {
  outline: 2px solid #c24905;
  outline-offset: 2px;
}

.ceplink-product-cards .pc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--pc-line);
  border-radius: 9px;
  background: #fff;
  color: var(--pc-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  white-space: nowrap;
}

.ceplink-product-cards .pc-button:hover {
  border-color: #f7a06e;
}

.ceplink-product-cards .pc-primary {
  min-height: 42px;
  padding-inline: 13px;
  border-color: var(--pc-orange);
  background: var(--pc-orange);
  font-size: 13px;
}

.ceplink-product-cards .pc-list {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(23 32 46 / 5%);
}

.ceplink-product-cards .pc-toolbar {
  justify-content: space-between;
  padding: 12px 14px;
}

.ceplink-product-cards .pc-search {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 9px;
  min-width: 0;
  min-height: 42px;
  padding-inline: 11px;
  border: 1px solid var(--pc-line);
  border-radius: 10px;
  background: var(--pc-panel);
  color: var(--pc-muted);
}

.ceplink-product-cards .pc-search:focus-within {
  border-color: #c24905;
  box-shadow: 0 0 0 2px rgb(253 92 5 / 14%);
}

.ceplink-product-cards .pc-search input:focus {
  outline: none;
}

.ceplink-product-cards .pc-icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pc-muted);
}

.ceplink-product-cards .pc-icon-button:hover {
  background: #eaf0f7;
}

.ceplink-product-cards .pc-summary {
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--pc-muted);
  font-size: 12px;
}

.ceplink-product-cards .pc-summary strong {
  color: var(--pc-ink);
  font-variant-numeric: tabular-nums;
}

.ceplink-product-cards .pc-summary span + span {
  padding-left: 10px;
  border-left: 1px solid var(--pc-line);
}

.ceplink-product-cards .pc-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.ceplink-product-cards .pc-table :is(th, td) {
  padding: 11px 13px;
  border-top: 1px solid var(--pc-line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.ceplink-product-cards .pc-table thead th {
  background: var(--pc-panel);
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 700;
}

.ceplink-product-cards .pc-table thead th:nth-child(1) { width: 37%; }
.ceplink-product-cards .pc-table thead th:nth-child(2) { width: 23%; }
.ceplink-product-cards .pc-table thead th:nth-child(3) { width: 14%; }
.ceplink-product-cards .pc-table thead th:nth-child(4) { width: 26%; text-align: right; }

.ceplink-product-cards .pc-table tbody tr:hover,
.ceplink-product-cards .pc-table tbody tr:focus-within {
  background: #fffbf8;
}

.ceplink-product-cards .pc-product {
  text-align: left;
}

.ceplink-product-cards .pc-product-icon,
.ceplink-product-cards .pc-empty-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pc-orange-soft);
  color: var(--pc-orange-ink);
}

.ceplink-product-cards .pc-product-content {
  min-width: 0;
}

.ceplink-product-cards .pc-product-name {
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--pc-ink);
  text-align: left;
  font-size: 14px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.ceplink-product-cards .pc-product-name:hover {
  color: var(--pc-orange-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ceplink-product-cards .pc-variant,
.ceplink-product-cards .pc-codes > span {
  display: block;
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.ceplink-product-cards .pc-variant {
  margin-top: 2px;
}

.ceplink-product-cards .pc-code-label {
  margin-right: 3px;
  color: var(--pc-muted);
  font-size: 11px;
  font-weight: 650;
}

.ceplink-product-cards .pc-codes,
.ceplink-product-cards .pc-quantity {
  font-variant-numeric: tabular-nums;
}

.ceplink-product-cards .pc-quantity {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--pc-line);
  border-radius: 7px;
  background: var(--pc-panel);
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ceplink-product-cards .pc-quantity[data-positive="true"] {
  border-color: #cce5d6;
  background: #eaf7ef;
  color: #257244;
}

.ceplink-product-cards .pc-row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.ceplink-product-cards .pc-stock-action {
  border-color: #ffd6be;
  background: var(--pc-orange-soft);
  color: var(--pc-orange-ink);
}

.ceplink-product-cards .pc-mobile-label {
  display: none;
}

.ceplink-product-cards .pc-empty {
  display: grid;
  min-height: 175px;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 20px 14px;
  border-top: 1px solid var(--pc-line);
  text-align: center;
}

.ceplink-product-cards .pc-empty-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
}

.ceplink-product-cards .pc-empty h2 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
}

.ceplink-product-cards .pc-empty p {
  margin: 0;
  color: var(--pc-muted);
  font-size: 13px;
  line-height: 18px;
}

@media (max-width: 860px) {
  .ceplink-product-cards .pc-toolbar {
    flex-wrap: wrap;
  }

  .ceplink-product-cards .pc-search {
    flex-basis: 100%;
  }

  .ceplink-product-cards .pc-summary {
    justify-content: flex-start;
  }

  .ceplink-product-cards .pc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .ceplink-product-cards .pc-table,
  .ceplink-product-cards .pc-table tbody {
    display: block;
  }

  .ceplink-product-cards .pc-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--pc-line);
  }

  .ceplink-product-cards .pc-table tbody :is(th, td) {
    padding: 0;
    border: 0;
  }

  .ceplink-product-cards .pc-product,
  .ceplink-product-cards .pc-actions-cell {
    grid-column: 1 / -1;
  }

  .ceplink-product-cards .pc-row-actions {
    justify-content: flex-start;
  }

  .ceplink-product-cards .pc-mobile-label {
    display: block;
    margin-bottom: 2px;
    color: var(--pc-muted);
    font-size: 11px;
    text-align: right;
  }
}
