/* Product catalog list (Products desk) */

.pc-catalog-page .pc-catalog-panel {
  padding: 0;
  overflow: visible;
}

.pc-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--pos-border, #eadde4);
  background: #fff;
}

.pc-catalog-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pc-selection-label {
  font-size: 0.85rem;
  color: var(--pos-muted, #6b5b63);
  font-weight: 600;
}

.pc-btn-danger {
  color: #c0392b !important;
  border-color: #f5c6cb !important;
}

.pc-btn-danger:disabled {
  opacity: 0.45;
}

.pc-search-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pos-maroon, #6b1535);
}

.pc-search-field .bq-form-control {
  min-width: 220px;
}

.pc-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 4px 4px 0;
}

.pc-catalog-table {
  width: 100%;
  min-width: 1080px;
  table-layout: auto;
  border-collapse: collapse;
}

@media (max-width: 1024px) {
  .pc-catalog-table.bq-table-responsive {
    min-width: 0;
  }

  .pc-table-scroll:has(.bq-table-responsive) {
    overflow: visible;
  }
}

.pc-catalog-table thead th,
.pc-catalog-table tbody td {
  padding: 14px 12px;
  vertical-align: middle;
  box-sizing: border-box;
}

.pc-catalog-table thead th {
  background: var(--pos-pink-soft, #e8f0fc);
  color: var(--pos-maroon, #1e40af);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.35;
}

.pc-col-check {
  width: 44px;
  text-align: center;
}

.pc-col-image,
.pc-thumb {
  display: none !important;
}

.pc-col-product {
  min-width: 220px;
  text-align: left;
}

.pc-col-type {
  width: 96px;
}

.pc-col-price {
  width: 110px;
  white-space: nowrap;
}

.pc-col-stock {
  width: 72px;
  text-align: right;
}

.pc-catalog-table thead .pc-col-stock {
  text-align: right;
}

.pc-col-toggle {
  width: 104px;
  text-align: center;
}

.pc-col-toggle .pc-switch {
  justify-content: center;
}

.pc-col-status {
  width: 118px;
  white-space: nowrap;
}

.pc-col-status .pc-switch {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.pc-col-created {
  width: 108px;
  white-space: nowrap;
}

.pc-col-actions {
  width: 132px;
  text-align: right;
}

.pc-catalog-table thead .pc-col-actions {
  text-align: right;
}

.pc-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pos-pink-soft, #fce4ef);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pos-maroon, #6b1535);
}

.pc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-product-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.pc-product-cell strong {
  font-size: 0.9rem;
  color: #2a1520;
}

.pc-product-cell small {
  color: var(--pos-muted, #6b5b63);
  font-size: 0.75rem;
}

.pc-variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.pc-variant-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pos-pink-soft, #fce4ef);
  color: var(--pos-maroon, #6b1535);
  font-size: 0.7rem;
  font-weight: 600;
}

.pc-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.pc-type-badge--simple {
  background: #eef6ff;
  color: #1e5a8a;
}

.pc-type-badge--variable {
  background: var(--pos-pink-soft, #fce4ef);
  color: var(--pos-maroon, #6b1535);
}

.pc-price-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pc-price-cell s {
  color: var(--pos-muted, #6b5b63);
  font-size: 0.78rem;
}

.pc-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

.pc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pc-switch span {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #d8cfd4;
  position: relative;
  transition: background 0.15s;
  flex-shrink: 0;
}

.pc-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}

.pc-switch input:checked + span {
  background: var(--pos-maroon, #6b1535);
}

.pc-switch.is-on input:checked + span {
  background: #2e7d32;
}

.pc-switch input:checked + span::after {
  transform: translateX(18px);
}

.pc-switch em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2e7d32;
}

.pc-catalog-table tr.is-inactive {
  opacity: 0.55;
}

.pf-page {
  max-width: 1400px;
}

.pf-actions-desktop {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .pf-actions-desktop {
    display: flex;
  }
}

@media (max-width: 720px) {
  .pc-search-field {
    width: 100%;
  }

  .pc-search-field .bq-form-control {
    flex: 1;
    min-width: 0;
  }
}

.pc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(42, 18, 32, 0.45);
}

.pc-modal {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--pos-border, #eadde4);
  box-shadow: 0 18px 40px rgba(42, 18, 32, 0.18);
}

.pc-modal h3 {
  margin: 0;
  color: var(--pos-maroon, #6b1535);
  font-size: 1.05rem;
}

.pc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.bq-action-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}

.bq-action-dropdown__menu.is-fixed {
  position: fixed;
  right: auto;
  z-index: 400;
}

.bq-dropdown-danger {
  color: #c0392b !important;
}
