/* =================== hc-cat-table.css =================== */
/* v7.61.17 — Excel-style catalog table (wholesale view) styles. */

.hc-cat-tbl {
background: var(--hc-paper, #ffffff);
  border: 1px solid rgba(180, 151, 115, 0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(26,23,20,0.04), 0 12px 32px -16px rgba(26,23,20,0.10);
}

/* ─── Sticky toolbar ─────────────────────────────────────────── */

.hc-cat-tbl__toolbar {
position: sticky; top: 64px; z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  background: #fcf9f3;
  border-bottom: 1px solid rgba(180, 151, 115, 0.22);
  transition: background .2s, border-color .2s;
}
.hc-cat-tbl__toolbar.is-active {
background: linear-gradient(135deg, #fdfbf6, #f5efe3);
  border-bottom-color: rgba(180, 151, 115, 0.42);
}

.hc-cat-tbl__select-all {
display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(26, 23, 20, 0.72);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.hc-cat-tbl__select-all input {
accent-color: var(--hc-ink, #1a1714); cursor: pointer;
}

.hc-cat-tbl__counter, .hc-cat-tbl__sum {
display: grid; gap: 2px; line-height: 1.1;
}
.hc-cat-tbl__counter-r, .hc-cat-tbl__sum-r {
font-size: 10px; letter-spacing: 0.10em;
  text-transform: uppercase; color: rgba(26, 23, 20, 0.55);
  font-family: "JetBrains Mono", monospace;
}
.hc-cat-tbl__counter-v {
font-size: 13px; font-weight: 500; color: var(--hc-ink, #1a1714);
  font-family: "JetBrains Mono", monospace;
}
.hc-cat-tbl__sum-v {
font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-size: 22px; font-weight: 500; color: var(--hc-ink, #1a1714);
  letter-spacing: -0.005em;
}

.hc-cat-tbl__actions {
display: flex; gap: 8px;
}







/* ─── Table ──────────────────────────────────────────────────── */

.hc-cat-tbl__wrap {
overflow-x: auto;
}
.hc-cat-tbl__table {
width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hc-cat-tbl__table thead {
background: #fdfbf6;
}
.hc-cat-tbl__table th {
padding: 12px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(26, 23, 20, 0.55);
  font-family: "JetBrains Mono", monospace;
  border-bottom: 1px solid rgba(180, 151, 115, 0.22);
  white-space: nowrap;
}
.hc-cat-tbl__th-check {
width: 40px;
}
.hc-cat-tbl__th-photo {
width: 72px;
}
.hc-cat-tbl__th-sku {
width: 130px;
}
.hc-cat-tbl__th-stock {
width: 100px;
}
.hc-cat-tbl__th-price {
width: 110px; text-align: right;
}
.hc-cat-tbl__th-qty {
width: 130px;
}
.hc-cat-tbl__th-total {
width: 110px; text-align: right;
}

.hc-cat-tbl__row {
transition: background .12s, border-color .12s;
  border-bottom: 1px solid rgba(180, 151, 115, 0.10);
}
.hc-cat-tbl__row:last-child {
border-bottom: 0;
}
.hc-cat-tbl__row:hover {
background: rgba(212, 184, 150, 0.04);
}
.hc-cat-tbl__row.is-selected {
background: rgba(212, 184, 150, 0.10);
  box-shadow: inset 3px 0 0 0 var(--hc-accent, #8b7355);
}
.hc-cat-tbl__row.is-out-of-stock {
opacity: 0.65;
}


.hc-cat-tbl__row td {
padding: 12px 14px;
  vertical-align: middle;
}

/* ── Cells ──────────────────────────────────────────── */

.hc-cat-tbl__check {
display: inline-flex; cursor: pointer;
}
.hc-cat-tbl__check input {
accent-color: var(--hc-ink, #1a1714); cursor: pointer;
}


.hc-cat-tbl__thumb img {
width: 100%; height: 100%; object-fit: cover;
}
.hc-cat-tbl__thumb-ph {
display: grid; place-items: center;
  width: 100%; height: 100%;
  color: rgba(180, 151, 115, 0.55);
}

.hc-cat-tbl__sku code {
font-family: "JetBrains Mono", monospace;
  font-size: 12px; font-weight: 500;
  color: var(--hc-ink, #1a1714);
  display: block;
}
.hc-cat-tbl__sku small {
font-size: 10px; color: rgba(26, 23, 20, 0.50);
  letter-spacing: 0.06em; text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

.hc-cat-tbl__name a {
color: var(--hc-ink, #1a1714);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px; line-height: 1.35;
  display: block;
}
.hc-cat-tbl__name a:hover {
color: var(--hc-accent, #8b7355);
}
.hc-cat-tbl__name small {
display: block; font-size: 11px;
  color: rgba(26, 23, 20, 0.55);
  margin-top: 2px;
}

.hc-cat-tbl__props {
display: flex; flex-wrap: wrap; gap: 4px;
}
.hc-cat-tbl__chip {
display: inline-block;
  padding: 2px 7px;
  background: rgba(180, 151, 115, 0.10);
  color: rgba(26, 23, 20, 0.72);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.04em;
  font-family: "JetBrains Mono", monospace;
}

.hc-stock-pill {
display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.04em;
  font-family: "JetBrains Mono", monospace; font-weight: 500;
}
.hc-stock-pill--lots {
background: rgba(76, 162, 100, 0.13); color: #4ca264;
}
.hc-stock-pill--ok {
background: rgba(76, 162, 100, 0.13); color: #4ca264;
}
.hc-stock-pill--low {
background: rgba(218, 145, 34, 0.13); color: #c87410;
}
.hc-stock-pill--out {
background: rgba(26, 23, 20, 0.06);   color: rgba(26, 23, 20, 0.55);
}
.hc-stock-pill--lots::before, .hc-stock-pill--ok::before {
content: ""; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor;
}
.hc-stock-pill--low::before {
content: ""; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor;
  animation: hcStockPulse 1.6s ease-in-out infinite;
}
@keyframes hcStockPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.30; }
}

.hc-cat-tbl__price {
text-align: right;
  font-family: "JetBrains Mono", monospace;
}
.hc-cat-tbl__price strong {
font-size: 14px; font-weight: 500;
  color: var(--hc-ink, #1a1714);
}
.hc-cat-tbl__old {
display: block;
  font-size: 11px;
  color: rgba(26, 23, 20, 0.42);
  text-decoration: line-through;
}

.hc-cat-tbl__qty-ctrl {
display: inline-flex;
  align-items: center;
  border: 1px solid rgba(26, 23, 20, 0.14);
  border-radius: 7px;
  overflow: hidden;
  background: var(--hc-paper, #ffffff);
}
.hc-cat-tbl__qty-ctrl button {
width: 26px; height: 26px;
  background: var(--hc-paper, #ffffff); border: 0; cursor: pointer;
  color: rgba(26, 23, 20, 0.65);
  font-size: 14px; font-family: inherit;
  transition: background .12s;
}
.hc-cat-tbl__qty-ctrl button:hover:not(:disabled) {
background: #fcf9f3; color: var(--hc-ink, #1a1714);
}
.hc-cat-tbl__qty-ctrl button:disabled {
opacity: 0.40; cursor: not-allowed;
}
.hc-cat-tbl__qty-ctrl input {
width: 44px; height: 26px;
  border: 0; text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; font-weight: 500;
  color: var(--hc-ink, #1a1714);
  background: var(--hc-paper, #ffffff);
  -moz-appearance: textfield;
}
.hc-cat-tbl__qty-ctrl input::-webkit-outer-spin-button, .hc-cat-tbl__qty-ctrl input::-webkit-inner-spin-button {
-webkit-appearance: none; margin: 0;
}
.hc-cat-tbl__qty-ctrl input:focus {
outline: none;
}

.hc-cat-tbl__total {
text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; font-weight: 500;
  color: var(--hc-ink, #1a1714);
}

@media (max-width: 1024px) {
  .hc-cat-tbl__th-photo, .hc-cat-tbl__photo { display: none; }
  .hc-cat-tbl__th-props, .hc-cat-tbl__props { display: none; }
}
@media (max-width: 768px) {
  .hc-cat-tbl__toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hc-cat-tbl__actions { grid-column: span 2; }
}
