.productos-search {
  margin-bottom: 16px;
}

.productos-search__camera,
.productos-search__scan {
  display: none;
}

.productos-search__scan[hidden] {
  display: none;
}

.productos-search__video {
  display: block;
  width: 100%;
  max-height: 42vh;
  object-fit: cover;
  border-radius: 8px;
  background: #020617;
  aspect-ratio: 4 / 3;
}

.productos-search__scan-hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.productos-scan-status {
  flex-basis: 100%;
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .productos-search__camera {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    font-weight: 700;
  }

  .productos-search .shipments-filter__input,
  .productos-search .orders-btn {
    height: 44px;
  }

  .productos-search__scan {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-basis: 100%;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: 10px;
    background: #0f172a;
  }

  .productos-search__scan[hidden] {
    display: none;
  }

  .productos-search__video {
    max-height: 36vh;
  }
}

.productos-copy {
  appearance: none;
  display: inline;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 2px;
}

.productos-copy:hover,
.productos-copy:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.productos-copy:focus-visible {
  outline: 2px solid var(--theme-accent, #2563eb);
  outline-offset: 2px;
}

.productos-alert {
  margin-bottom: 16px;
}

.productos-card {
  margin-bottom: 16px;
  padding: 20px;
  overflow: hidden;
}

.productos-card__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.productos-card__media {
  flex: 0 0 200px;
  width: 200px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.productos-card__hero-image {
  display: block;
  width: 100%;
  height: 200px;
  max-width: 200px;
  object-fit: contain;
  border: 1px solid var(--theme-border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-sizing: border-box;
}

.productos-card__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.productos-card__thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--theme-border, #e2e8f0);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
}

.productos-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  max-width: 200px;
  border: 1px dashed var(--theme-border, #cbd5e1);
  border-radius: 12px;
  background: var(--theme-ghost-bg, #f8fafc);
  color: var(--theme-muted, #64748b);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
}

.productos-card__placeholder span {
  max-width: 12rem;
}

.productos-card__main {
  flex: 1 1 280px;
  min-width: 0;
}

.productos-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.productos-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
  background: #dbeafe;
}

.productos-badge--muted {
  color: var(--theme-subtle, #475569);
  background: var(--theme-ghost-bg, #f1f5f9);
}

.productos-card__title {
  margin: 0 0 16px;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--theme-heading, #0f172a);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.productos-card__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0 0 20px;
}

.productos-card__spec {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.productos-card__spec dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-muted, #64748b);
}

.productos-card__spec dd {
  margin: 0;
  font-size: 14px;
  color: var(--theme-heading, #0f172a);
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.productos-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--theme-border, #e2e8f0);
}

.productos-card__btn {
  min-width: 180px;
  justify-content: center;
}

.productos-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.productos-toolbar .orders-total {
  margin: 0;
}

.productos-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--theme-border, #e2e8f0);
}

.productos-filters-bar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--theme-muted, #64748b);
}

.productos-filters-bar__field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--theme-subtle, #475569);
}

.productos-filters-bar__field .shipments-filter__input--dropdown {
  min-width: 160px;
}

.productos-table-wrap {
  border-radius: 6px;
}

.productos-table {
  min-width: 920px;
}

.productos-table thead th {
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 8px 12px;
}

.productos-table td {
  font-size: 12px;
  padding: 8px 12px;
}

.productos-row {
  cursor: pointer;
}

.productos-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.productos-sku-link,
.productos-name-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.productos-sku-link:hover,
.productos-name-link:hover {
  color: var(--theme-accent, #2563eb);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.productos-row.is-selected {
  background: #dbeafe;
}

.productos-disp {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.productos-disp--stock {
  color: #1d4ed8;
  background: #dbeafe;
}

.productos-disp--pedido {
  color: #92400e;
  background: #fef3c7;
}

.productos-disp--servicio {
  color: #166534;
  background: #dcfce7;
}

.productos-disp--muted {
  color: var(--theme-subtle, #475569);
  background: var(--theme-ghost-bg, #f1f5f9);
}

.productos-pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.productos-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--theme-input-border, #cbd5e1);
  color: var(--theme-heading, #0f172a);
  background: var(--theme-ghost-bg, #fff);
  text-decoration: none;
  font-size: 14px;
}

.productos-pager__btn:hover {
  background: var(--theme-ghost-hover-bg, #f8fafc);
}

.productos-pager__btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.productos-pager__status {
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-subtle, #475569);
  min-width: 3.5rem;
  text-align: center;
}

.productos-ficha__top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.productos-ficha__media {
  flex: 0 0 120px;
  width: 120px;
}

.productos-ficha__media .productos-card__hero-image,
.productos-ficha__media .productos-card__placeholder {
  height: 120px;
  max-width: 120px;
}

.productos-ficha__identity {
  flex: 1 1 240px;
  min-width: 0;
}

.productos-card__title {
  margin-bottom: 8px;
}

.productos-ficha__identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  font-size: 13px;
  color: var(--theme-subtle, #475569);
}

.productos-ficha__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.productos-ficha__sections {
  display: grid;
  gap: 16px;
}

.productos-ficha__section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-heading, #0f172a);
}

.productos-ficha-table.orders-table {
  min-width: 0;
}

.productos-ficha-table thead th,
.productos-ficha-table td {
  padding: 8px 12px;
  font-size: 12px;
}

.productos-ficha__plain {
  margin: 0;
  font-size: 13px;
  color: var(--theme-heading, #0f172a);
}

@media (max-width: 768px) {
  .productos-card__layout {
    flex-direction: column;
  }

  .productos-card__media,
  .productos-ficha__media {
    flex-basis: auto;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .productos-card__hero-image,
  .productos-card__placeholder {
    max-width: 100%;
    margin: 0 auto;
  }

  .productos-card__specs {
    grid-template-columns: 1fr;
  }

  .productos-card__actions,
  .productos-ficha__actions {
    flex-direction: column;
    margin-left: 0;
    width: 100%;
  }

  .productos-card__btn,
  .productos-ficha__actions .orders-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}
