
/* =========================================================
   WIRTZ HUB · SHOPIFY · PRODUCTOS
   ESTILO EJECUTIVO · DM SANS
   CSS COMPLETO · PARTE 1 DE 2
   ========================================================= */

/* =========================================================
   VARIABLES · MODO CLARO
   ========================================================= */

.shopify-products-host {
  --shopify-products-bg: #f4f5f7;
  --shopify-products-bg-soft: #f7f8fa;
  --shopify-products-bg-muted: #eceff2;
  --shopify-products-bg-hover: #f1f3f5;

  --shopify-products-surface: #ffffff;
  --shopify-products-surface-2: #f8f9fa;
  --shopify-products-surface-3: #f1f3f5;

  --shopify-products-text: #25292f;
  --shopify-products-text-strong: #090b0e;
  --shopify-products-text-soft: #424953;

  --shopify-products-muted: #626a75;
  --shopify-products-muted-light: #858d98;

  --shopify-products-border: #d9dde3;
  --shopify-products-border-strong: #c4c9d1;
  --shopify-products-border-extra: #aeb5bf;

  --shopify-products-primary: #111318;
  --shopify-products-primary-hover: #262a30;
  --shopify-products-primary-text: #ffffff;

  --shopify-products-success: #087443;
  --shopify-products-success-soft: #eff9f4;
  --shopify-products-success-border: #afdcc6;

  --shopify-products-warning: #9b5b08;
  --shopify-products-warning-soft: #fff8e9;
  --shopify-products-warning-border: #e8cb93;

  --shopify-products-danger: #bd2727;
  --shopify-products-danger-soft: #fff3f3;
  --shopify-products-danger-border: #edb4b4;

  --shopify-products-info: #175aaf;
  --shopify-products-info-soft: #f1f6fc;
  --shopify-products-info-border: #b7cee9;

  --shopify-products-radius-xs: 4px;
  --shopify-products-radius-sm: 6px;
  --shopify-products-radius-md: 8px;
  --shopify-products-radius-lg: 10px;
  --shopify-products-radius-xl: 12px;

  --shopify-products-transition-fast:
    110ms cubic-bezier(0.2, 0, 0, 1);

  --shopify-products-transition:
    150ms cubic-bezier(0.2, 0, 0, 1);

  width: 100%;
  min-width: 0;
  min-height: 100%;

  overflow-x: clip;

  background: var(--shopify-products-bg);
  color: var(--shopify-products-text);

  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 13px;
  font-weight: 650;

  line-height: 1.45;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   VARIABLES · MODO OSCURO
   ========================================================= */

html.dark .shopify-products-host,
body.dark .shopify-products-host,
html[data-theme="dark"] .shopify-products-host,
body[data-theme="dark"] .shopify-products-host,
.dark-mode .shopify-products-host {
  --shopify-products-bg: #08090a;
  --shopify-products-bg-soft: #0b0c0e;
  --shopify-products-bg-muted: #17191c;
  --shopify-products-bg-hover: #1b1d20;

  --shopify-products-surface: #0f1012;
  --shopify-products-surface-2: #141619;
  --shopify-products-surface-3: #1b1d21;

  --shopify-products-text: #e9eaec;
  --shopify-products-text-strong: #ffffff;
  --shopify-products-text-soft: #d2d5da;

  --shopify-products-muted: #a6a9ae;
  --shopify-products-muted-light: #858a92;

  --shopify-products-border: #32353a;
  --shopify-products-border-strong: #4a4e55;
  --shopify-products-border-extra: #626872;

  --shopify-products-primary: #ffffff;
  --shopify-products-primary-hover: #e5e7eb;
  --shopify-products-primary-text: #090b0e;

  --shopify-products-success: #68d59c;
  --shopify-products-success-soft: #11251a;
  --shopify-products-success-border: #326a48;

  --shopify-products-warning: #f3bc62;
  --shopify-products-warning-soft: #291e10;
  --shopify-products-warning-border: #73572c;

  --shopify-products-danger: #ff8585;
  --shopify-products-danger-soft: #291516;
  --shopify-products-danger-border: #784043;

  --shopify-products-info: #8bb9ff;
  --shopify-products-info-soft: #122033;
  --shopify-products-info-border: #3d5c80;
}

/* =========================================================
   RESET LOCAL
   ========================================================= */

.shopify-products-host *,
.shopify-products-host *::before,
.shopify-products-host *::after {
  box-sizing: border-box;
}

.shopify-products-host button,
.shopify-products-host input,
.shopify-products-host select,
.shopify-products-host textarea {
  font-family: inherit;
}

.shopify-products-host button {
  -webkit-tap-highlight-color: transparent;
}

.shopify-products-host input,
.shopify-products-host select,
.shopify-products-host textarea {
  min-width: 0;
}

.shopify-products-host [hidden] {
  display: none !important;
}

.shopify-products-host svg {
  flex: 0 0 auto;
  stroke-width: 2.1;
}

.shopify-products-host button,
.shopify-products-host input,
.shopify-products-host select,
.shopify-products-host textarea {
  box-shadow: none;
}

.shopify-products-host button:focus-visible,
.shopify-products-host input:focus-visible,
.shopify-products-host select:focus-visible,
.shopify-products-host textarea:focus-visible {
  outline: 2px solid var(--shopify-products-text-strong);
  outline-offset: 2px;
}

/* =========================================================
   PÁGINA
   ========================================================= */

.shopify-products-page {
  width: 100%;
  min-width: 0;
  min-height: 100%;

  padding: 18px;

  display: flex;
  flex-direction: column;

  gap: 14px;

  background: var(--shopify-products-bg);
  color: var(--shopify-products-text);

  animation:
    shopifyProductsPageIn
    170ms cubic-bezier(0.2, 0, 0, 1)
    both;
}

/* =========================================================
   CABECERA
   ========================================================= */

.shopify-products-head {
  width: 100%;
  min-width: 0;

  border: 0;
  border-radius: 0;

  background: transparent;
  overflow: visible;
}

.shopify-products-head__content {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;
  padding: 0;

  background: transparent;
}

.shopify-products-head__identity {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 12px;
}

.shopify-products-head__icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: grid;
  place-items: center;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: 8px;

  background: var(--shopify-products-surface);
  color: var(--shopify-products-text-strong);
}

.shopify-products-head__icon svg {
  width: 19px;
  height: 19px;
}

.shopify-products-head__identity > div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.shopify-products-eyebrow {
  display: block;

  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.1;
  font-weight: 850;

  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.shopify-products-head h1 {
  min-width: 0;
  margin: 0;

  color: var(--shopify-products-text-strong);

  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.06;

  font-weight: 850;
  letter-spacing: -0.04em;
}

.shopify-products-head p {
  max-width: 760px;

  margin: 0;

  color: var(--shopify-products-muted);

  font-size: 11px;
  line-height: 1.5;
  font-weight: 650;
}

.shopify-products-head__actions {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 6px;
}

/* =========================================================
   BOTONES
   ========================================================= */

.shopify-products-button,
.shopify-products-pagination__button,
.shopify-products-icon-button,
.shopify-products-search__clear {
  appearance: none;
  -webkit-appearance: none;

  font-family: inherit;
  cursor: pointer;

  box-shadow: none;

  transition:
    background-color var(--shopify-products-transition-fast),
    border-color var(--shopify-products-transition-fast),
    color var(--shopify-products-transition-fast),
    transform var(--shopify-products-transition-fast),
    opacity var(--shopify-products-transition-fast);
}

.shopify-products-button {
  min-height: 36px;

  padding: 7px 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: var(--shopify-products-radius-sm);

  background: var(--shopify-products-surface);
  color: var(--shopify-products-text-strong);

  font-size: 11px;
  line-height: 1.15;

  font-weight: 800;

  white-space: nowrap;
}

.shopify-products-button svg {
  width: 15px;
  height: 15px;
}

.shopify-products-button:hover:not(:disabled) {
  border-color: var(--shopify-products-border-extra);
  background: var(--shopify-products-surface-2);

  transform: translateY(-1px);
}

.shopify-products-button:active:not(:disabled) {
  transform: none;
}

.shopify-products-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.shopify-products-button--primary {
  border-color: var(--shopify-products-primary);
  background: var(--shopify-products-primary);
  color: var(--shopify-products-primary-text);
}

.shopify-products-button--primary:hover:not(:disabled) {
  border-color: var(--shopify-products-primary-hover);
  background: var(--shopify-products-primary-hover);
  color: var(--shopify-products-primary-text);
}

.shopify-products-button--secondary {
  border-color: var(--shopify-products-border-strong);
  background: var(--shopify-products-surface);
  color: var(--shopify-products-text-strong);
}

.shopify-products-button--secondary:hover:not(:disabled) {
  border-color: var(--shopify-products-border-extra);
  background: var(--shopify-products-surface-2);
  color: var(--shopify-products-text-strong);
}

.shopify-products-button.is-loading svg,
.shopify-products-icon-button.is-loading svg {
  animation:
    shopifyProductsSpin
    800ms linear infinite;
}

/* =========================================================
   ESTADO DE SINCRONIZACIÓN
   ========================================================= */

.shopify-products-sync-status {
  width: 100%;
  min-width: 0;
  min-height: 37px;

  margin-top: 12px;
  padding: 8px 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 8px 16px;

  border: 1px solid var(--shopify-products-border);
  border-radius: var(--shopify-products-radius-sm);

  background: var(--shopify-products-surface);
}

.shopify-products-sync-status__item {
  min-width: 0;

  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 7px;

  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.3;
  font-weight: 750;
}

.shopify-products-sync-status__item svg {
  width: 14px;
  height: 14px;

  color: var(--shopify-products-text-strong);
}

.shopify-products-sync-status__item strong {
  color: var(--shopify-products-text-strong);
  font-size: 9px;
  font-weight: 850;
}

.shopify-products-sync-status__result {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 7px 12px;

  color: var(--shopify-products-muted);

  font-size: 9px;
  font-weight: 750;
}

.shopify-products-sync-status__result > span,
.shopify-products-sync-status__result > strong {
  display: inline-flex;
  align-items: center;

  gap: 5px;
}

.shopify-products-sync-status__result > strong {
  color: var(--shopify-products-text-strong);
  font-weight: 850;
}

.shopify-products-sync-status__result .is-error {
  color: var(--shopify-products-danger);
}

.shopify-products-sync-status__result svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   MÉTRICAS
   ========================================================= */

.shopify-products-metrics {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 7px;
}

.shopify-products-metric {
  min-width: 0;
  min-height: 92px;

  padding: 12px;

  display: flex;
  align-items: center;

  gap: 10px;

  border: 1px solid var(--shopify-products-border);
  border-radius: var(--shopify-products-radius-md);

  background: var(--shopify-products-surface);
  box-shadow: none;

  overflow: hidden;

  transition:
    background-color var(--shopify-products-transition),
    border-color var(--shopify-products-transition),
    transform var(--shopify-products-transition);
}

.shopify-products-metric:hover {
  border-color: var(--shopify-products-border-strong);
  background: var(--shopify-products-surface-2);

  transform: translateY(-1px);
}

.shopify-products-metric__icon {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: grid;
  place-items: center;

  border: 1px solid var(--shopify-products-border);
  border-radius: 7px;

  background: var(--shopify-products-surface-2);
  color: var(--shopify-products-text-strong);
}

.shopify-products-metric__icon svg {
  width: 16px;
  height: 16px;
}

.shopify-products-metric > div {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.shopify-products-metric > div > span {
  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.2;

  font-weight: 750;
}

.shopify-products-metric > div > strong {
  min-width: 0;

  overflow: hidden;

  color: var(--shopify-products-text-strong);

  font-size: 17px;
  line-height: 1.15;

  font-weight: 850;
  letter-spacing: -0.035em;

  font-variant-numeric: tabular-nums;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   PANEL
   ========================================================= */

.shopify-products-panel {
  position: relative;

  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: var(--shopify-products-radius-md);

  background: var(--shopify-products-surface);
  box-shadow: none;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.shopify-products-toolbar {
  width: 100%;
  min-width: 0;
  min-height: 58px;

  padding: 9px 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;

  border-bottom: 1px solid var(--shopify-products-border-strong);

  background: var(--shopify-products-surface-2);
}

.shopify-products-toolbar > .shopify-products-button {
  flex: 0 0 auto;
}

.shopify-products-toolbar
.shopify-products-button.is-active,
.shopify-products-toolbar
.shopify-products-button.has-active-filters {
  border-color: var(--shopify-products-text-strong);

  background: var(--shopify-products-surface);
  color: var(--shopify-products-text-strong);
}

/* =========================================================
   BUSCADOR
   ========================================================= */

.shopify-products-search {
  position: relative;

  width: 100%;
  min-width: 0;
  max-width: 760px;
  height: 37px;

  display: flex;
  align-items: center;

  gap: 8px;
  padding: 0 7px 0 11px;

  border: 1px solid var(--shopify-products-border);
  border-radius: var(--shopify-products-radius-sm);

  background: var(--shopify-products-surface);
  color: var(--shopify-products-muted);

  transition:
    background-color var(--shopify-products-transition-fast),
    border-color var(--shopify-products-transition-fast);
}

.shopify-products-search:hover {
  border-color: var(--shopify-products-border-strong);
}

.shopify-products-search:focus-within {
  border-color: var(--shopify-products-text-strong);
}

.shopify-products-search > svg {
  width: 14px;
  height: 14px;

  flex: 0 0 14px;

  color: var(--shopify-products-muted);
}

.shopify-products-search input {
  width: 100%;
  min-width: 0;
  height: 100%;

  flex: 1;

  padding: 0;

  border: 0;
  outline: 0;

  background: transparent;
  color: var(--shopify-products-text-strong);

  font-size: 10px;
  font-weight: 750;
}

.shopify-products-search input::placeholder {
  color: var(--shopify-products-muted-light);
  opacity: 1;
}

.shopify-products-search input:focus-visible {
  outline: none;
}

/* =========================================================
   LIMPIAR BÚSQUEDA
   ========================================================= */

.shopify-products-search__clear {
  width: 25px;
  height: 25px;

  flex: 0 0 25px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid transparent;
  border-radius: 4px;

  background: transparent;
  color: var(--shopify-products-muted);

  cursor: pointer;
}

.shopify-products-search__clear:hover:not(:disabled) {
  border-color: var(--shopify-products-border);
  background: var(--shopify-products-surface-3);
  color: var(--shopify-products-text-strong);
}

.shopify-products-search__clear svg {
  width: 13px;
  height: 13px;
}

/* =========================================================
   CONTADOR DE FILTROS
   ========================================================= */

.shopify-products-filter-count {
  min-width: 19px;
  height: 19px;

  padding: 0 5px;

  display: inline-grid;
  place-items: center;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: 5px;

  background: var(--shopify-products-surface-2);
  color: var(--shopify-products-text-strong);

  font-size: 9px;
  line-height: 1;

  font-weight: 850;
}

/* =========================================================
   FILTROS
   ========================================================= */

.shopify-products-filters {
  width: 100%;
  min-width: 0;

  padding: 10px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 8px;

  border-bottom: 1px solid var(--shopify-products-border-strong);

  background: var(--shopify-products-surface);

  animation:
    shopifyProductsFiltersOpen
    130ms ease-out both;
}

.shopify-products-field {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.shopify-products-field > span {
  padding-left: 1px;

  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.2;

  font-weight: 800;
}

.shopify-products-field input,
.shopify-products-field select,
.shopify-products-field textarea {
  width: 100%;
  min-width: 0;

  border: 1px solid var(--shopify-products-border);
  border-radius: var(--shopify-products-radius-sm);

  outline: 0;

  background: var(--shopify-products-surface);
  color: var(--shopify-products-text-strong);

  font-size: 10px;
  font-weight: 750;

  transition:
    background-color var(--shopify-products-transition-fast),
    border-color var(--shopify-products-transition-fast);
}

.shopify-products-field input,
.shopify-products-field select {
  min-height: 36px;
  padding: 7px 9px;
}

.shopify-products-field textarea {
  min-height: 90px;

  padding: 9px;

  line-height: 1.5;
  resize: vertical;
}

.shopify-products-field input:hover,
.shopify-products-field select:hover,
.shopify-products-field textarea:hover {
  border-color: var(--shopify-products-border-strong);
}

.shopify-products-field input:focus,
.shopify-products-field select:focus,
.shopify-products-field textarea:focus {
  border-color: var(--shopify-products-text-strong);
}

.shopify-products-field input::placeholder,
.shopify-products-field textarea::placeholder {
  color: var(--shopify-products-muted-light);
  opacity: 1;
}

.shopify-products-field select option {
  background: var(--shopify-products-surface);
  color: var(--shopify-products-text-strong);
}

.shopify-products-field.is-full {
  grid-column: 1 / -1;
}

.shopify-products-filters__actions {
  grid-column: 1 / -1;

  min-height: 42px;

  padding-top: 7px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 6px;

  border-top: 1px solid var(--shopify-products-border);
}

/* =========================================================
   TABLA · CONTENEDOR
   ========================================================= */

.shopify-products-table-wrap {
  position: relative;

  width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  background: var(--shopify-products-surface);

  scrollbar-width: thin;
  scrollbar-color:
    var(--shopify-products-border-strong)
    transparent;

  transition:
    opacity var(--shopify-products-transition-fast);
}

.shopify-products-table-wrap.is-loading {
  opacity: 0.48;
  pointer-events: none;
}

.shopify-products-table-wrap::-webkit-scrollbar {
  height: 7px;
}

.shopify-products-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.shopify-products-table-wrap::-webkit-scrollbar-thumb {
  background: var(--shopify-products-border-strong);
  border-radius: 999px;
}

/* =========================================================
   TABLA · ESTRUCTURA
   ========================================================= */

.shopify-products-table {
  width: 100%;
  min-width: 1120px;

  border-collapse: separate;
  border-spacing: 0;

  table-layout: fixed;

  background: var(--shopify-products-surface);
}

.shopify-products-table th,
.shopify-products-table td {
  padding: 10px;

  border-right: 1px solid var(--shopify-products-border);
  border-bottom: 1px solid var(--shopify-products-border);

  text-align: left;
  vertical-align: middle;
}

.shopify-products-table th:last-child,
.shopify-products-table td:last-child {
  border-right: 0;
}

.shopify-products-table tbody tr:last-child td {
  border-bottom: 0;
}

.shopify-products-table thead th {
  height: 38px;

  background: var(--shopify-products-surface-2);
  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.2;

  font-weight: 850;
  letter-spacing: 0.035em;

  text-transform: uppercase;
  white-space: nowrap;

  border-bottom-color: var(--shopify-products-border-strong);
}

.shopify-products-table tbody tr {
  transition:
    background-color var(--shopify-products-transition-fast);
}

.shopify-products-table tbody td {
  background: var(--shopify-products-surface);
  color: var(--shopify-products-text);

  font-size: 10px;
  line-height: 1.35;

  font-weight: 700;

  transition:
    background-color var(--shopify-products-transition-fast);
}

.shopify-products-table tbody tr:hover td {
  background: var(--shopify-products-surface-2);
}

.shopify-products-table .is-actions {
  text-align: center;
}

/* =========================================================
   TABLA · ANCHOS
   ========================================================= */

.shopify-products-table th:nth-child(1) {
  width: 280px;
}

.shopify-products-table th:nth-child(2) {
  width: 95px;
}

.shopify-products-table th:nth-child(3) {
  width: 165px;
}

.shopify-products-table th:nth-child(4) {
  width: 155px;
}

.shopify-products-table th:nth-child(5) {
  width: 120px;
}

.shopify-products-table th:nth-child(6) {
  width: 110px;
}

.shopify-products-table th:nth-child(7) {
  width: 120px;
}

.shopify-products-table th:nth-child(8) {
  width: 115px;
}

/* =========================================================
   PRODUCTO · IDENTIDAD
   ========================================================= */

.shopify-products-product {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 9px;
}

.shopify-products-product__image {
  width: 45px;
  height: 45px;

  flex: 0 0 45px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: 6px;

  background: var(--shopify-products-surface-2);
  color: var(--shopify-products-muted);
}

.shopify-products-product__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.shopify-products-product__image svg {
  width: 17px;
  height: 17px;
}

.shopify-products-product__content {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.shopify-products-product__content strong {
  min-width: 0;

  overflow: hidden;

  color: var(--shopify-products-text-strong);

  font-size: 10px;
  line-height: 1.3;

  font-weight: 850;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-products-product__content span {
  min-width: 0;

  overflow: hidden;

  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.3;

  font-weight: 750;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-products-product__content small {
  min-width: 0;

  overflow: hidden;

  color: var(--shopify-products-muted-light);

  font-size: 9px;
  line-height: 1.3;

  font-weight: 650;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   VARIANTES EN TABLA
   ========================================================= */

.shopify-products-variants-cell {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.shopify-products-variants-cell > strong {
  color: var(--shopify-products-text-strong);

  font-size: 12px;
  line-height: 1.2;

  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.shopify-products-variants-summary {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 6px;
}

.shopify-products-variant-summary {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 2px;
}

.shopify-products-variant-summary strong {
  min-width: 0;

  overflow: hidden;

  color: var(--shopify-products-text-strong);

  font-size: 9px;
  line-height: 1.3;

  font-weight: 800;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-products-variant-summary span {
  min-width: 0;

  overflow: hidden;

  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.3;

  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-products-variants-summary__more {
  color: var(--shopify-products-info);

  font-size: 9px;
  font-weight: 850;
}

.shopify-products-empty-value {
  color: var(--shopify-products-muted);

  font-size: 9px;
  font-weight: 700;
}

/* =========================================================
   PRECIOS
   ========================================================= */

.shopify-products-price {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.shopify-products-price strong {
  color: var(--shopify-products-text-strong);

  font-size: 10px;
  line-height: 1.35;

  font-weight: 850;
  font-variant-numeric: tabular-nums;

  overflow-wrap: anywhere;
}

.shopify-products-price span {
  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.35;

  font-weight: 700;

  overflow-wrap: anywhere;
}

/* =========================================================
   STOCK
   ========================================================= */

.shopify-products-stock {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.shopify-products-stock strong {
  color: var(--shopify-products-text-strong);

  font-size: 15px;
  line-height: 1.1;

  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.shopify-products-stock span {
  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.3;

  font-weight: 700;
}

.shopify-products-stock strong.is-success {
  color: var(--shopify-products-success);
}

.shopify-products-stock strong.is-warning {
  color: var(--shopify-products-warning);
}

.shopify-products-stock strong.is-danger {
  color: var(--shopify-products-danger);
}

/* =========================================================
   ESTADOS
   ========================================================= */

.shopify-products-status {
  width: fit-content;
  max-width: 100%;
  min-height: 22px;

  padding: 4px 7px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 4px;

  border: 1px solid var(--shopify-products-border);
  border-radius: 5px;

  background: var(--shopify-products-surface-2);
  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.1;

  font-weight: 850;

  text-align: center;
  white-space: nowrap;
}

.shopify-products-status.is-success {
  border-color: var(--shopify-products-success-border);

  background: var(--shopify-products-success-soft);
  color: var(--shopify-products-success);
}

.shopify-products-status.is-warning {
  border-color: var(--shopify-products-warning-border);

  background: var(--shopify-products-warning-soft);
  color: var(--shopify-products-warning);
}

.shopify-products-status.is-danger {
  border-color: var(--shopify-products-danger-border);

  background: var(--shopify-products-danger-soft);
  color: var(--shopify-products-danger);
}

.shopify-products-status.is-info {
  border-color: var(--shopify-products-info-border);

  background: var(--shopify-products-info-soft);
  color: var(--shopify-products-info);
}

.shopify-products-status.is-neutral {
  border-color: var(--shopify-products-border);

  background: var(--shopify-products-surface-2);
  color: var(--shopify-products-muted);
}

/* =========================================================
   FECHA
   ========================================================= */

.shopify-products-date {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.shopify-products-date strong {
  color: var(--shopify-products-text-strong);

  font-size: 10px;
  line-height: 1.3;

  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.shopify-products-date span {
  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.3;

  font-weight: 700;
}

/* =========================================================
   ACCIONES
   ========================================================= */

.shopify-products-actions {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;
}

.shopify-products-icon-button {
  width: 30px;
  height: 30px;

  flex: 0 0 30px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid var(--shopify-products-border);
  border-radius: var(--shopify-products-radius-sm);

  background: var(--shopify-products-surface);
  color: var(--shopify-products-muted);

  cursor: pointer;
}

.shopify-products-icon-button svg {
  width: 14px;
  height: 14px;
}

.shopify-products-icon-button:hover:not(:disabled) {
  border-color: var(--shopify-products-border-strong);

  background: var(--shopify-products-surface-2);
  color: var(--shopify-products-text-strong);

  transform: translateY(-1px);
}

.shopify-products-icon-button:active:not(:disabled) {
  transform: none;
}

.shopify-products-icon-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================================================
   SIN RESULTADOS
   ========================================================= */

.shopify-products-empty {
  min-height: 240px;

  padding: 28px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 9px;

  color: var(--shopify-products-muted);
  text-align: center;
}

.shopify-products-empty > svg {
  width: 32px;
  height: 32px;

  color: var(--shopify-products-muted-light);
}

.shopify-products-empty h3 {
  margin: 0;

  color: var(--shopify-products-text-strong);

  font-size: 13px;
  font-weight: 850;
}

.shopify-products-empty p {
  max-width: 440px;
  margin: 0;

  color: var(--shopify-products-muted);

  font-size: 10px;
  line-height: 1.5;

  font-weight: 700;
}

/* =========================================================
   CARGANDO PRODUCTOS
   ========================================================= */

.shopify-products-loading {
  position: absolute;

  inset: 58px 0 50px;

  z-index: 5;

  min-height: 180px;

  padding: 28px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 10px;

  background: var(--shopify-products-surface);
  color: var(--shopify-products-muted);

  text-align: center;
}

.shopify-products-loading span {
  color: var(--shopify-products-muted);

  font-size: 10px;
  line-height: 1.4;

  font-weight: 750;
}

.shopify-products-spinner {
  width: 25px;
  height: 25px;

  border: 2px solid var(--shopify-products-border);
  border-top-color: var(--shopify-products-text-strong);

  border-radius: 50%;

  animation:
    shopifyProductsSpin
    800ms linear infinite;
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.shopify-products-pagination {
  min-height: 50px;

  padding: 8px 11px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border-top: 1px solid var(--shopify-products-border-strong);

  background: var(--shopify-products-surface);
}

.shopify-products-pagination__summary {
  color: var(--shopify-products-muted);

  font-size: 9px;
  font-weight: 750;
}

.shopify-products-pagination__actions {
  display: flex;
  align-items: center;

  gap: 6px;
}

.shopify-products-pagination__button {
  min-height: 32px;

  padding: 5px 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  border: 1px solid var(--shopify-products-border);
  border-radius: var(--shopify-products-radius-sm);

  background: var(--shopify-products-surface);
  color: var(--shopify-products-text-strong);

  font-size: 9px;
  font-weight: 800;

  cursor: pointer;
}

.shopify-products-pagination__button svg {
  width: 14px;
  height: 14px;
}

.shopify-products-pagination__button:hover:not(:disabled) {
  border-color: var(--shopify-products-border-strong);
  background: var(--shopify-products-surface-2);
}

.shopify-products-pagination__button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.shopify-products-pagination__current {
  min-width: 95px;

  color: var(--shopify-products-text-strong);

  font-size: 9px;
  font-weight: 850;

  text-align: center;
}

/* =========================================================
   SCROLLBARS
   ========================================================= */

.shopify-products-page *,
.shopify-products-page *::before,
.shopify-products-page *::after {
  scrollbar-width: thin;

  scrollbar-color:
    var(--shopify-products-border-strong)
    transparent;
}

.shopify-products-page *::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.shopify-products-page *::-webkit-scrollbar-track {
  background: transparent;
}

.shopify-products-page *::-webkit-scrollbar-thumb {
  background: var(--shopify-products-border-strong);
  border-radius: 999px;
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes shopifyProductsPageIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shopifyProductsFiltersOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shopifyProductsSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   FIN PARTE 1 DE 2
   CONTINUAR CON PARTE 2 EN EL MISMO ARCHIVO
   ========================================================= */

/* =========================================================
   WIRTZ HUB · SHOPIFY · PRODUCTOS
   DISEÑO EJECUTIVO · DM SANS
   CSS COMPLETO · PARTE 2 DE 2
   ========================================================= */

/* =========================================================
   VARIABLES DE LAS VENTANAS
   ========================================================= */

.shopify-products-modal {
  --shopify-products-bg: #f4f5f7;
  --shopify-products-bg-soft: #f7f8fa;
  --shopify-products-bg-muted: #eceff2;
  --shopify-products-bg-hover: #f1f3f5;

  --shopify-products-surface: #ffffff;
  --shopify-products-surface-2: #f8f9fa;
  --shopify-products-surface-3: #f1f3f5;

  --shopify-products-text: #25292f;
  --shopify-products-text-strong: #090b0e;
  --shopify-products-text-soft: #424953;

  --shopify-products-muted: #626a75;
  --shopify-products-muted-light: #858d98;

  --shopify-products-border: #d9dde3;
  --shopify-products-border-strong: #c4c9d1;
  --shopify-products-border-extra: #aeb5bf;

  --shopify-products-primary: #111318;
  --shopify-products-primary-hover: #262a30;
  --shopify-products-primary-text: #ffffff;

  --shopify-products-success: #087443;
  --shopify-products-success-soft: #eff9f4;
  --shopify-products-success-border: #afdcc6;

  --shopify-products-warning: #9b5b08;
  --shopify-products-warning-soft: #fff8e9;
  --shopify-products-warning-border: #e8cb93;

  --shopify-products-danger: #bd2727;
  --shopify-products-danger-soft: #fff3f3;
  --shopify-products-danger-border: #edb4b4;

  --shopify-products-info: #175aaf;
  --shopify-products-info-soft: #f1f6fc;
  --shopify-products-info-border: #b7cee9;

  --shopify-products-radius-xs: 4px;
  --shopify-products-radius-sm: 6px;
  --shopify-products-radius-md: 8px;
  --shopify-products-radius-lg: 10px;
  --shopify-products-radius-xl: 12px;

  --shopify-products-transition-fast:
    110ms cubic-bezier(0.2, 0, 0, 1);

  --shopify-products-transition:
    150ms cubic-bezier(0.2, 0, 0, 1);

  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;

  color: var(--shopify-products-text);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   VARIABLES · MODO OSCURO
   ========================================================= */

html.dark .shopify-products-modal,
body.dark .shopify-products-modal,
html[data-theme="dark"] .shopify-products-modal,
body[data-theme="dark"] .shopify-products-modal,
.dark-mode .shopify-products-modal {
  --shopify-products-bg: #08090a;
  --shopify-products-bg-soft: #0b0c0e;
  --shopify-products-bg-muted: #17191c;
  --shopify-products-bg-hover: #1b1d20;

  --shopify-products-surface: #0f1012;
  --shopify-products-surface-2: #141619;
  --shopify-products-surface-3: #1b1d21;

  --shopify-products-text: #e9eaec;
  --shopify-products-text-strong: #ffffff;
  --shopify-products-text-soft: #d2d5da;

  --shopify-products-muted: #a6a9ae;
  --shopify-products-muted-light: #858a92;

  --shopify-products-border: #32353a;
  --shopify-products-border-strong: #4a4e55;
  --shopify-products-border-extra: #626872;

  --shopify-products-primary: #ffffff;
  --shopify-products-primary-hover: #e5e7eb;
  --shopify-products-primary-text: #090b0e;

  --shopify-products-success: #68d59c;
  --shopify-products-success-soft: #11251a;
  --shopify-products-success-border: #326a48;

  --shopify-products-warning: #f3bc62;
  --shopify-products-warning-soft: #291e10;
  --shopify-products-warning-border: #73572c;

  --shopify-products-danger: #ff8585;
  --shopify-products-danger-soft: #291516;
  --shopify-products-danger-border: #784043;

  --shopify-products-info: #8bb9ff;
  --shopify-products-info-soft: #122033;
  --shopify-products-info-border: #3d5c80;
}

/* =========================================================
   RESET LOCAL
   ========================================================= */

.shopify-products-modal *,
.shopify-products-modal *::before,
.shopify-products-modal *::after {
  box-sizing: border-box;
}

.shopify-products-modal button,
.shopify-products-modal input,
.shopify-products-modal select,
.shopify-products-modal textarea {
  font-family: inherit;
}

.shopify-products-modal button {
  -webkit-tap-highlight-color: transparent;
}

.shopify-products-modal svg {
  flex: 0 0 auto;
  stroke-width: 2.1;
}

.shopify-products-modal [hidden] {
  display: none !important;
}

.shopify-products-modal button:focus-visible,
.shopify-products-modal input:focus-visible,
.shopify-products-modal select:focus-visible,
.shopify-products-modal textarea:focus-visible {
  outline: 2px solid var(--shopify-products-text-strong);
  outline-offset: 2px;
}

.shopify-products-modal *,
.shopify-products-modal *::before,
.shopify-products-modal *::after {
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* =========================================================
   BLOQUEO DE DESPLAZAMIENTO
   ========================================================= */

body.shopify-products-modal-open {
  overflow: hidden;
}

/* =========================================================
   MODAL PRINCIPAL
   ========================================================= */

.shopify-products-modal {
  position: fixed;

  inset: 0;

  z-index: 12000;

  display: grid;
  place-items: center;

  padding: 18px;

  overflow: hidden;

  isolation: isolate;
}

.shopify-products-modal[hidden] {
  display: none !important;
}

/* =========================================================
   FONDO DEL MODAL
   ========================================================= */

.shopify-products-modal__backdrop {
  position: absolute;

  inset: 0;

  z-index: 0;

  background: rgba(0, 0, 0, 0.74);

  opacity: 1;

  animation:
    shopifyProductsBackdropIn
    140ms ease-out both;
}

/* =========================================================
   VENTANA
   ========================================================= */

.shopify-products-modal__dialog {
  position: relative;

  z-index: 1;

  width: min(1240px, 100%);
  height: min(920px, calc(100dvh - 36px));

  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: var(--shopify-products-radius-lg);

  background: var(--shopify-products-surface);
  color: var(--shopify-products-text);

  opacity: 1;

  animation:
    shopifyProductsModalIn
    170ms cubic-bezier(0.2, 0, 0, 1)
    both;
}

/* =========================================================
   VENTANA MEDIANA
   ========================================================= */

.shopify-products-modal__dialog--medium {
  width: min(840px, 100%);
  height: min(820px, calc(100dvh - 36px));
}

/* =========================================================
   VENTANA PEQUEÑA
   ========================================================= */

.shopify-products-modal__dialog--small {
  width: min(570px, 100%);
  height: min(760px, calc(100dvh - 36px));
}

/* =========================================================
   ENCABEZADO DEL MODAL
   ========================================================= */

.shopify-products-modal__head {
  width: 100%;
  min-width: 0;
  min-height: 70px;

  flex: 0 0 auto;

  padding: 12px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  border-bottom: 1px solid var(--shopify-products-border-strong);

  background: var(--shopify-products-surface);
}

.shopify-products-modal__head > div:first-child {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.shopify-products-modal__head h2 {
  min-width: 0;
  margin: 0;

  overflow: hidden;

  color: var(--shopify-products-text-strong);

  font-size: 19px;
  line-height: 1.15;

  font-weight: 850;
  letter-spacing: -0.035em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   CERRAR MODAL
   ========================================================= */

.shopify-products-modal__close {
  appearance: none;

  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: var(--shopify-products-radius-sm);

  background: var(--shopify-products-surface);
  color: var(--shopify-products-text-strong);

  cursor: pointer;

  transition:
    background-color var(--shopify-products-transition-fast),
    border-color var(--shopify-products-transition-fast),
    transform var(--shopify-products-transition-fast);
}

.shopify-products-modal__close svg {
  width: 16px;
  height: 16px;
}

.shopify-products-modal__close:hover:not(:disabled) {
  border-color: var(--shopify-products-border-extra);
  background: var(--shopify-products-surface-2);

  transform: translateY(-1px);
}

.shopify-products-modal__close:active:not(:disabled) {
  transform: none;
}

/* =========================================================
   CUERPO DEL MODAL
   ========================================================= */

.shopify-products-modal__body {
  width: 100%;
  min-width: 0;
  min-height: 0;

  flex: 1;

  padding: 12px;

  overflow-y: auto;
  overflow-x: hidden;

  background: var(--shopify-products-bg);

  scrollbar-width: thin;

  scrollbar-color:
    var(--shopify-products-border-strong)
    transparent;
}

.shopify-products-modal__body::-webkit-scrollbar {
  width: 7px;
}

.shopify-products-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.shopify-products-modal__body::-webkit-scrollbar-thumb {
  background: var(--shopify-products-border-strong);
  border-radius: 999px;
}

/* =========================================================
   DETALLE PRINCIPAL
   ========================================================= */

.shopify-products-detail {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 9px;

  background: var(--shopify-products-bg);
}

/* =========================================================
   CABECERA DEL PRODUCTO
   ========================================================= */

.shopify-products-detail-hero {
  width: 100%;
  min-width: 0;
  min-height: 95px;

  padding: 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: var(--shopify-products-radius-md);

  background: var(--shopify-products-surface);
}

/* =========================================================
   IDENTIDAD DEL PRODUCTO
   ========================================================= */

.shopify-products-detail-hero__identity {
  min-width: 0;

  flex: 1;

  display: flex;
  align-items: center;

  gap: 12px;
}

.shopify-products-detail-hero__image {
  width: 70px;
  height: 70px;

  flex: 0 0 70px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: 7px;

  background: var(--shopify-products-surface-2);
  color: var(--shopify-products-muted);
}

.shopify-products-detail-hero__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.shopify-products-detail-hero__image svg {
  width: 24px;
  height: 24px;
}

.shopify-products-detail-hero__identity > div:last-child {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.shopify-products-detail-hero__identity span {
  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.2;

  font-weight: 850;

  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shopify-products-detail-hero__identity strong {
  min-width: 0;

  color: var(--shopify-products-text-strong);

  font-size: 17px;
  line-height: 1.25;

  font-weight: 850;
  letter-spacing: -0.025em;

  overflow-wrap: anywhere;
}

.shopify-products-detail-hero__identity small {
  color: var(--shopify-products-muted);

  font-size: 10px;
  line-height: 1.3;

  font-weight: 700;

  overflow-wrap: anywhere;
}

/* =========================================================
   ACCIONES DEL DETALLE
   ========================================================= */

.shopify-products-detail-hero__actions {
  min-width: 0;
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 6px;
}

/* =========================================================
   DISTRIBUCIÓN DEL DETALLE
   ========================================================= */

.shopify-products-detail-grid {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 9px;

  align-items: stretch;
}

/* =========================================================
   TARJETAS DEL DETALLE
   ========================================================= */

.shopify-products-detail-card {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: var(--shopify-products-radius-md);

  background: var(--shopify-products-surface);

  transition:
    border-color var(--shopify-products-transition-fast);
}

.shopify-products-detail-card:hover {
  border-color: var(--shopify-products-border-extra);
}

.shopify-products-detail-card.is-full {
  grid-column: 1 / -1;
}

.shopify-products-detail-card > header {
  width: 100%;
  min-height: 51px;

  flex: 0 0 auto;

  padding: 10px 12px;

  display: flex;
  align-items: center;

  gap: 8px;

  border-bottom: 1px solid var(--shopify-products-border-strong);

  background: var(--shopify-products-surface);
}

.shopify-products-detail-card > header > svg {
  width: 16px;
  height: 16px;

  color: var(--shopify-products-text-strong);
}

.shopify-products-detail-card > header h3 {
  min-width: 0;

  margin: 0;

  color: var(--shopify-products-text-strong);

  font-size: 12px;
  line-height: 1.25;

  font-weight: 850;

  overflow-wrap: anywhere;
}

/* =========================================================
   CAMPOS DEL DETALLE
   ========================================================= */

.shopify-products-detail-fields {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shopify-products-detail-field {
  min-width: 0;
  min-height: 61px;

  padding: 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 5px;

  border-right: 1px solid var(--shopify-products-border);
  border-bottom: 1px solid var(--shopify-products-border);

  background: var(--shopify-products-surface);
}

.shopify-products-detail-fields
.shopify-products-detail-field:nth-child(2n) {
  border-right: 0;
}

.shopify-products-detail-fields
.shopify-products-detail-field:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.shopify-products-detail-field span {
  min-width: 0;

  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.25;

  font-weight: 800;
}

.shopify-products-detail-field strong {
  min-width: 0;

  color: var(--shopify-products-text-strong);

  font-size: 10px;
  line-height: 1.4;

  font-weight: 850;

  overflow-wrap: anywhere;
}

/* =========================================================
   DESCRIPCIÓN DEL PRODUCTO
   ========================================================= */

.shopify-products-detail-description {
  min-width: 0;

  padding: 13px;

  color: var(--shopify-products-text);
  background: var(--shopify-products-surface);

  font-size: 11px;
  line-height: 1.65;

  font-weight: 700;

  overflow-wrap: anywhere;
}

.shopify-products-detail-description p {
  margin: 0 0 10px;
}

.shopify-products-detail-description p:last-child {
  margin-bottom: 0;
}

.shopify-products-detail-description strong,
.shopify-products-detail-description b {
  color: var(--shopify-products-text-strong);
  font-weight: 850;
}

.shopify-products-detail-description h1,
.shopify-products-detail-description h2,
.shopify-products-detail-description h3,
.shopify-products-detail-description h4 {
  margin: 12px 0 7px;

  color: var(--shopify-products-text-strong);

  font-weight: 850;
  line-height: 1.3;
}

.shopify-products-detail-description ul,
.shopify-products-detail-description ol {
  padding-left: 20px;
}

.shopify-products-detail-description li {
  margin-bottom: 5px;
}

.shopify-products-detail-description a {
  color: var(--shopify-products-info);

  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shopify-products-detail-description img {
  display: block;

  max-width: 100%;
  height: auto;

  border-radius: var(--shopify-products-radius-sm);
}

/* =========================================================
   VARIANTES DEL PRODUCTO
   ========================================================= */

.shopify-products-detail-variants {
  width: 100%;
  min-width: 0;

  padding: 10px;

  display: flex;
  flex-direction: column;

  gap: 9px;

  background: var(--shopify-products-bg);
}

/* =========================================================
   TARJETA DE VARIANTE
   ========================================================= */

.shopify-products-detail-variant {
  min-width: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: var(--shopify-products-radius-md);

  background: var(--shopify-products-surface);

  transition:
    border-color var(--shopify-products-transition-fast),
    transform var(--shopify-products-transition-fast);
}

.shopify-products-detail-variant:hover {
  border-color: var(--shopify-products-border-extra);
}

/* =========================================================
   ENCABEZADO DE VARIANTE
   ========================================================= */

.shopify-products-detail-variant__head {
  width: 100%;
  min-width: 0;
  min-height: 55px;

  padding: 10px 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border-bottom: 1px solid var(--shopify-products-border-strong);

  background: var(--shopify-products-surface-2);
}

.shopify-products-detail-variant__head > div:first-child {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.shopify-products-detail-variant__head strong {
  min-width: 0;

  color: var(--shopify-products-text-strong);

  font-size: 11px;
  line-height: 1.3;

  font-weight: 850;

  overflow-wrap: anywhere;
}

.shopify-products-detail-variant__head span {
  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.3;

  font-weight: 750;

  overflow-wrap: anywhere;
}

/* =========================================================
   ACCIONES DE VARIANTE
   ========================================================= */

.shopify-products-detail-variant__actions {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 5px;
}

/* =========================================================
   INVENTARIO POR UBICACIÓN
   ========================================================= */

.shopify-products-inventory-list {
  min-width: 0;

  padding: 10px;

  display: flex;
  flex-direction: column;

  gap: 7px;

  border-top: 1px solid var(--shopify-products-border);

  background: var(--shopify-products-surface);
}

/* =========================================================
   REGISTRO DE INVENTARIO
   ========================================================= */

.shopify-products-inventory-item {
  min-width: 0;
  min-height: 60px;

  padding: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border: 1px solid var(--shopify-products-border);
  border-radius: var(--shopify-products-radius-sm);

  background: var(--shopify-products-surface-2);

  transition:
    border-color var(--shopify-products-transition-fast),
    background-color var(--shopify-products-transition-fast);
}

.shopify-products-inventory-item:hover {
  border-color: var(--shopify-products-border-strong);
}

.shopify-products-inventory-item > div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.shopify-products-inventory-item strong {
  min-width: 0;

  color: var(--shopify-products-text-strong);

  font-size: 10px;
  line-height: 1.35;

  font-weight: 850;

  overflow-wrap: anywhere;
}

.shopify-products-inventory-item span {
  color: var(--shopify-products-text-soft);

  font-size: 9px;
  line-height: 1.35;

  font-weight: 750;
}

.shopify-products-inventory-item small {
  color: var(--shopify-products-muted);

  font-size: 9px;
  line-height: 1.35;

  font-weight: 700;

  overflow-wrap: anywhere;
}

.shopify-products-inventory-item > .shopify-products-button {
  flex: 0 0 auto;
}

/* =========================================================
   SIN INVENTARIO
   ========================================================= */

.shopify-products-detail-empty {
  min-height: 82px;

  padding: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border: 0;
  border-radius: 0;

  background: var(--shopify-products-surface);
  color: var(--shopify-products-muted);

  font-size: 10px;
  line-height: 1.5;

  font-weight: 750;

  text-align: center;
}

/* =========================================================
   CARGA DEL DETALLE
   ========================================================= */

.shopify-products-detail-loading {
  min-height: 360px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 12px;

  padding: 24px;

  color: var(--shopify-products-muted);
  text-align: center;
}

.shopify-products-detail-loading span {
  color: var(--shopify-products-muted);

  font-size: 10px;
  line-height: 1.5;

  font-weight: 750;
}

/* =========================================================
   FORMULARIOS DE EDICIÓN
   ========================================================= */

.shopify-products-form {
  width: 100%;
  min-width: 0;
  min-height: 0;

  flex: 1;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: var(--shopify-products-surface);
}

/* =========================================================
   CUERPO DEL FORMULARIO
   ========================================================= */

.shopify-products-form__body {
  width: 100%;
  min-width: 0;
  min-height: 0;

  flex: 1;

  padding: 13px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  align-content: start;
  align-items: start;

  gap: 10px;

  overflow-y: auto;
  overflow-x: hidden;

  background: var(--shopify-products-bg);

  scrollbar-width: thin;

  scrollbar-color:
    var(--shopify-products-border-strong)
    transparent;
}

.shopify-products-form__body::-webkit-scrollbar {
  width: 7px;
}

.shopify-products-form__body::-webkit-scrollbar-thumb {
  background: var(--shopify-products-border-strong);
  border-radius: 999px;
}

/* =========================================================
   CAMPOS DEL FORMULARIO
   ========================================================= */

.shopify-products-form__body .shopify-products-field {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 6px;
}

.shopify-products-form__body .shopify-products-field > span {
  color: var(--shopify-products-text-soft);

  font-size: 10px;
  line-height: 1.3;

  font-weight: 850;
}

.shopify-products-form__body .shopify-products-field input,
.shopify-products-form__body .shopify-products-field select,
.shopify-products-form__body .shopify-products-field textarea {
  width: 100%;
  min-width: 0;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: var(--shopify-products-radius-sm);

  outline: 0;

  background: var(--shopify-products-surface);
  color: var(--shopify-products-text-strong);

  font-size: 11px;
  line-height: 1.4;

  font-weight: 750;

  box-shadow: none;

  transition:
    border-color var(--shopify-products-transition-fast),
    background-color var(--shopify-products-transition-fast);
}

.shopify-products-form__body .shopify-products-field input,
.shopify-products-form__body .shopify-products-field select {
  min-height: 38px;

  padding: 8px 10px;
}

.shopify-products-form__body .shopify-products-field textarea {
  min-height: 115px;

  padding: 11px;

  resize: vertical;
}

.shopify-products-form__body .shopify-products-field input:hover,
.shopify-products-form__body .shopify-products-field select:hover,
.shopify-products-form__body .shopify-products-field textarea:hover {
  border-color: var(--shopify-products-border-extra);
}

.shopify-products-form__body .shopify-products-field input:focus,
.shopify-products-form__body .shopify-products-field select:focus,
.shopify-products-form__body .shopify-products-field textarea:focus {
  border-color: var(--shopify-products-text-strong);
}

.shopify-products-form__body .shopify-products-field input::placeholder,
.shopify-products-form__body .shopify-products-field textarea::placeholder {
  color: var(--shopify-products-muted-light);
  opacity: 1;
}

.shopify-products-form__body .shopify-products-field select option {
  background: var(--shopify-products-surface);
  color: var(--shopify-products-text-strong);
}

.shopify-products-form__body .shopify-products-field.is-full {
  grid-column: 1 / -1;
}

/* =========================================================
   RESUMEN DEL FORMULARIO
   ========================================================= */

.shopify-products-form__summary {
  min-width: 0;

  padding: 12px;

  display: flex;
  flex-direction: column;

  gap: 5px;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: var(--shopify-products-radius-sm);

  background: var(--shopify-products-surface);
}

.shopify-products-form__summary.is-full {
  grid-column: 1 / -1;
}

.shopify-products-form__summary strong {
  color: var(--shopify-products-text-strong);

  font-size: 12px;
  line-height: 1.3;

  font-weight: 850;

  overflow-wrap: anywhere;
}

.shopify-products-form__summary span {
  color: var(--shopify-products-muted);

  font-size: 10px;
  line-height: 1.4;

  font-weight: 750;

  overflow-wrap: anywhere;
}

/* =========================================================
   CHECKBOX DE IMPUESTOS
   ========================================================= */

.shopify-products-check {
  min-width: 0;
  min-height: 43px;

  padding: 10px;

  display: flex;
  align-items: center;

  gap: 10px;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: var(--shopify-products-radius-sm);

  background: var(--shopify-products-surface);

  cursor: pointer;
}

.shopify-products-check.is-full {
  grid-column: 1 / -1;
}

.shopify-products-check input[type="checkbox"] {
  appearance: auto;

  width: 16px;
  height: 16px;

  flex: 0 0 16px;

  margin: 0;

  accent-color: var(--shopify-products-primary);

  cursor: pointer;
}

.shopify-products-check span {
  color: var(--shopify-products-text-strong);

  font-size: 10px;
  line-height: 1.4;

  font-weight: 800;
}

/* =========================================================
   PIE DEL FORMULARIO
   ========================================================= */

.shopify-products-form__footer {
  width: 100%;
  min-height: 62px;

  flex: 0 0 auto;

  padding: 10px 13px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 7px;

  border-top: 1px solid var(--shopify-products-border-strong);

  background: var(--shopify-products-surface);
}

.shopify-products-form__footer .shopify-products-button {
  min-height: 37px;
}

/* =========================================================
   VENTANA DE STOCK
   ========================================================= */

.shopify-products-stock-current {
  min-width: 0;
  min-height: 68px;

  padding: 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  border: 1px solid var(--shopify-products-border-strong);
  border-radius: var(--shopify-products-radius-sm);

  background: var(--shopify-products-surface);
}

.shopify-products-stock-current.is-full {
  grid-column: 1 / -1;
}

.shopify-products-stock-current span {
  color: var(--shopify-products-muted);

  font-size: 10px;
  line-height: 1.4;

  font-weight: 800;
}

.shopify-products-stock-current strong {
  color: var(--shopify-products-text-strong);

  font-size: 24px;
  line-height: 1;

  font-weight: 900;
  letter-spacing: -0.04em;

  font-variant-numeric: tabular-nums;
}

/* =========================================================
   CAMPOS NUMÉRICOS DE STOCK
   ========================================================= */

.shopify-products-form__body
input[name="cantidad"] {
  min-height: 45px;

  font-size: 16px;
  font-weight: 900;

  font-variant-numeric: tabular-nums;
}

/* =========================================================
   CAPAS Y SUPERPOSICIÓN
   ========================================================= */

.shopify-products-modal {
  z-index: 12000;
}

.shopify-products-modal[data-product-modal] {
  z-index: 12000;
}

.shopify-products-modal[data-product-edit-modal] {
  z-index: 12010;
}

.shopify-products-modal[data-variant-edit-modal] {
  z-index: 12020;
}

.shopify-products-modal[data-stock-modal] {
  z-index: 12030;
}

.shopify-products-modal__dialog {
  z-index: 2;
}

.shopify-products-modal__backdrop {
  z-index: 1;
}

/* =========================================================
   OPACIDAD Y FONDOS
   ========================================================= */

.shopify-products-modal__dialog,
.shopify-products-modal__head,
.shopify-products-modal__body,
.shopify-products-form,
.shopify-products-form__body,
.shopify-products-form__footer,
.shopify-products-detail-hero,
.shopify-products-detail-card,
.shopify-products-detail-variant,
.shopify-products-inventory-item {
  opacity: 1;

  background-image: none;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.shopify-products-modal__dialog {
  background-color: var(--shopify-products-surface);
}

.shopify-products-modal__head,
.shopify-products-form,
.shopify-products-form__footer,
.shopify-products-detail-hero,
.shopify-products-detail-card {
  background-color: var(--shopify-products-surface);
}

.shopify-products-modal__body,
.shopify-products-form__body {
  background-color: var(--shopify-products-bg);
}

/* =========================================================
   ANIMACIONES DE VENTANAS
   ========================================================= */

@keyframes shopifyProductsBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes shopifyProductsModalIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE · ESCRITORIO COMPACTO
   ========================================================= */

@media (max-width: 1360px) {
  .shopify-products-metric {
    padding: 10px;
  }

  .shopify-products-metric > div > strong {
    font-size: 15px;
  }

  .shopify-products-modal__dialog {
    width: min(1160px, 100%);
  }

  .shopify-products-modal__dialog--medium {
    width: min(840px, 100%);
  }

  .shopify-products-modal__dialog--small {
    width: min(570px, 100%);
  }
}

/* =========================================================
   RESPONSIVE · NOTEBOOK
   ========================================================= */

@media (max-width: 1180px) {
  .shopify-products-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .shopify-products-filters {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .shopify-products-detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .shopify-products-detail-hero__identity {
    width: 100%;
  }

  .shopify-products-detail-hero__actions {
    width: 100%;

    justify-content: flex-start;
  }
}

/* =========================================================
   RESPONSIVE · TABLET
   ========================================================= */

@media (max-width: 900px) {
  .shopify-products-page {
    padding: 14px;
    gap: 11px;
  }

  .shopify-products-head__content {
    align-items: flex-start;
    flex-direction: column;

    gap: 12px;
  }

  .shopify-products-head__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .shopify-products-toolbar {
    flex-wrap: wrap;
  }

  .shopify-products-search {
    max-width: none;
  }

  .shopify-products-filters {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .shopify-products-detail-grid {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-products-detail-card.is-full {
    grid-column: 1;
  }

  .shopify-products-detail-hero__actions {
    flex-wrap: wrap;
  }

  .shopify-products-pagination {
    flex-wrap: wrap;
  }

  .shopify-products-inventory-item {
    align-items: flex-start;
  }

  .shopify-products-inventory-item > div {
    flex: 1;
  }
}

/* =========================================================
   RESPONSIVE · MÓVIL
   ========================================================= */

@media (max-width: 640px) {
  .shopify-products-page {
    padding: 10px;
    gap: 10px;
  }

  .shopify-products-head__identity {
    align-items: flex-start;
    gap: 9px;
  }

  .shopify-products-head__icon {
    width: 36px;
    height: 36px;

    flex-basis: 36px;
  }

  .shopify-products-head__icon svg {
    width: 17px;
    height: 17px;
  }

  .shopify-products-head h1 {
    font-size: 23px;
  }

  .shopify-products-head p {
    font-size: 10px;
  }

  .shopify-products-head__actions {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 6px;
  }

  .shopify-products-head__actions
  .shopify-products-button {
    min-width: 0;
    width: 100%;

    white-space: normal;
    text-align: center;
  }

  .shopify-products-sync-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .shopify-products-sync-status__result {
    justify-content: flex-start;
  }

  .shopify-products-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 6px;
  }

  .shopify-products-metric {
    min-height: 82px;

    padding: 9px;
    gap: 7px;
  }

  .shopify-products-metric__icon {
    width: 29px;
    height: 29px;

    flex-basis: 29px;
  }

  .shopify-products-metric__icon svg {
    width: 14px;
    height: 14px;
  }

  .shopify-products-metric > div > span {
    font-size: 8px;
  }

  .shopify-products-metric > div > strong {
    font-size: 14px;
  }

  .shopify-products-toolbar {
    align-items: stretch;
    flex-direction: column;

    gap: 7px;
  }

  .shopify-products-toolbar
  > .shopify-products-button {
    width: 100%;
  }

  .shopify-products-filters {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-products-filters__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .shopify-products-filters__actions
  .shopify-products-button {
    width: 100%;
  }

  .shopify-products-pagination {
    align-items: stretch;
    flex-direction: column;

    gap: 10px;
  }

  .shopify-products-pagination__summary {
    text-align: center;
  }

  .shopify-products-pagination__actions {
    justify-content: space-between;
  }

  /* =======================================================
     VENTANAS EN MÓVIL
     ======================================================= */

  .shopify-products-modal {
    padding: 0;
  }

  .shopify-products-modal__dialog,
  .shopify-products-modal__dialog--medium,
  .shopify-products-modal__dialog--small {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;

    border: 0;
    border-radius: 0;
  }

  .shopify-products-modal__head {
    min-height: 60px;
    padding: 10px;
  }

  .shopify-products-modal__head h2 {
    font-size: 17px;
  }

  .shopify-products-modal__body {
    padding: 8px;
  }

  .shopify-products-detail {
    gap: 7px;
  }

  /* =======================================================
     PRODUCTO EN MÓVIL
     ======================================================= */

  .shopify-products-detail-hero {
    gap: 10px;
    padding: 10px;
  }

  .shopify-products-detail-hero__identity {
    align-items: flex-start;
  }

  .shopify-products-detail-hero__image {
    width: 56px;
    height: 56px;

    flex-basis: 56px;
  }

  .shopify-products-detail-hero__identity strong {
    font-size: 14px;
  }

  .shopify-products-detail-hero__actions {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    align-items: stretch;
  }

  .shopify-products-detail-hero__actions
  .shopify-products-status {
    grid-column: 1 / -1;
  }

  .shopify-products-detail-hero__actions
  .shopify-products-button {
    min-width: 0;
    width: 100%;

    white-space: normal;
    text-align: center;
  }

  /* =======================================================
     TARJETAS EN MÓVIL
     ======================================================= */

  .shopify-products-detail-grid {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-products-detail-fields {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-products-detail-fields
  .shopify-products-detail-field {
    border-right: 0;
    border-bottom: 1px solid var(--shopify-products-border);
  }

  .shopify-products-detail-fields
  .shopify-products-detail-field:last-child {
    border-bottom: 0;
  }

  .shopify-products-detail-variants {
    padding: 8px;
    gap: 7px;
  }

  .shopify-products-detail-variant__head {
    align-items: flex-start;
  }

  .shopify-products-detail-variant__actions {
    align-self: flex-start;
  }

  /* =======================================================
     INVENTARIO EN MÓVIL
     ======================================================= */

  .shopify-products-inventory-item {
    align-items: stretch;
    flex-direction: column;

    gap: 9px;
  }

  .shopify-products-inventory-item
  > .shopify-products-button {
    width: 100%;
  }

  /* =======================================================
     FORMULARIOS EN MÓVIL
     ======================================================= */

  .shopify-products-form__body {
    grid-template-columns:
      minmax(0, 1fr);

    padding: 10px;
  }

  .shopify-products-form__footer {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    padding: 9px 10px;
  }

  .shopify-products-form__footer
  .shopify-products-button {
    width: 100%;
    white-space: normal;
  }

  .shopify-products-stock-current {
    min-height: 62px;
  }

  .shopify-products-stock-current strong {
    font-size: 22px;
  }
}

/* =========================================================
   RESPONSIVE · MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 390px) {
  .shopify-products-page {
    padding: 8px;
  }

  .shopify-products-head__actions {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-products-metrics {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-products-metric {
    min-height: 72px;
  }

  .shopify-products-pagination__actions {
    display: grid;

    grid-template-columns:
      1fr auto 1fr;

    gap: 4px;
  }

  .shopify-products-pagination__button {
    min-width: 0;
    padding: 5px;
  }

  .shopify-products-pagination__current {
    min-width: 70px;
    font-size: 8px;
  }

  .shopify-products-detail-hero__actions {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-products-detail-hero__actions
  .shopify-products-status {
    grid-column: 1;
  }

  .shopify-products-detail-variant__head {
    align-items: stretch;
    flex-direction: column;
  }

  .shopify-products-detail-variant__actions {
    justify-content: flex-end;
    align-self: stretch;
  }

  .shopify-products-form__footer {
    grid-template-columns:
      minmax(0, 1fr);
  }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .shopify-products-host *,
  .shopify-products-host *::before,
  .shopify-products-host *::after,
  .shopify-products-modal,
  .shopify-products-modal *,
  .shopify-products-modal *::before,
  .shopify-products-modal *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   FIN PARTE 2 DE 2
   WIRTZ HUB · SHOPIFY · PRODUCTOS
   ========================================================= */

/* =========================================================
   WIRTZ HUB · SHOPIFY · PRODUCTOS
   AJUSTE FINAL · BORDES, TIPOGRAFÍA Y MODALES
   ========================================================= */

/* =========================================================
   BORDES MÁS MARCADOS · MODO CLARO
   ========================================================= */

.shopify-products-host,
.shopify-products-modal {
  --shopify-products-border: #b8bec7;
  --shopify-products-border-strong: #858e9b;
  --shopify-products-border-extra: #596371;

  --shopify-products-text: #111318;
  --shopify-products-text-strong: #050608;
  --shopify-products-text-soft: #242932;

  --shopify-products-muted: #434b56;
  --shopify-products-muted-light: #5d6672;
}

/* =========================================================
   BORDES MÁS MARCADOS · MODO OSCURO
   ========================================================= */

html.dark .shopify-products-host,
html.dark .shopify-products-modal,
body.dark .shopify-products-host,
body.dark .shopify-products-modal,
html[data-theme="dark"] .shopify-products-host,
html[data-theme="dark"] .shopify-products-modal,
body[data-theme="dark"] .shopify-products-host,
body[data-theme="dark"] .shopify-products-modal,
.dark-mode .shopify-products-host,
.dark-mode .shopify-products-modal {
  --shopify-products-border: #484c54;
  --shopify-products-border-strong: #626873;
  --shopify-products-border-extra: #858c98;

  --shopify-products-text: #f1f2f4;
  --shopify-products-text-strong: #ffffff;
  --shopify-products-text-soft: #e0e3e8;

  --shopify-products-muted: #bcc1c9;
  --shopify-products-muted-light: #a0a6b0;
}

/* =========================================================
   TIPOGRAFÍA FIRME
   ========================================================= */

.shopify-products-page,
.shopify-products-modal {
  font-weight: 750;
}

.shopify-products-page strong,
.shopify-products-modal strong {
  font-weight: 900;
  letter-spacing: -0.015em;
}

.shopify-products-page h1,
.shopify-products-page h2,
.shopify-products-page h3,
.shopify-products-modal h2,
.shopify-products-modal h3,
.shopify-products-modal h4 {
  color: var(--shopify-products-text-strong);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.shopify-products-page button,
.shopify-products-modal button {
  font-weight: 850;
}

.shopify-products-page input,
.shopify-products-page select,
.shopify-products-modal input,
.shopify-products-modal select,
.shopify-products-modal textarea {
  font-weight: 750;
}

.shopify-products-field > span,
.shopify-products-detail-field > span,
.shopify-products-stock-current > span {
  font-weight: 850;
}

.shopify-products-table thead th {
  color: var(--shopify-products-text-strong);
  font-weight: 900;
}

/* =========================================================
   BORDES DE PANELES Y MÉTRICAS
   ========================================================= */

.shopify-products-panel,
.shopify-products-metric,
.shopify-products-sync-status,
.shopify-products-detail-hero,
.shopify-products-detail-card,
.shopify-products-detail-variant,
.shopify-products-inventory-item,
.shopify-products-form__summary,
.shopify-products-stock-current {
  border: 1.5px solid var(--shopify-products-border-strong);
}

.shopify-products-metric:hover,
.shopify-products-detail-card:hover,
.shopify-products-detail-variant:hover,
.shopify-products-inventory-item:hover {
  border-color: var(--shopify-products-border-extra);
}

/* =========================================================
   BORDES DE TABLA
   ========================================================= */

.shopify-products-table th,
.shopify-products-table td {
  border-right: 1px solid var(--shopify-products-border);
  border-bottom: 1px solid var(--shopify-products-border);
}

.shopify-products-table thead th {
  border-bottom: 2px solid var(--shopify-products-border-strong);
}

.shopify-products-toolbar,
.shopify-products-filters,
.shopify-products-pagination,
.shopify-products-detail-card > header,
.shopify-products-detail-variant__head,
.shopify-products-form__footer {
  border-bottom-color: var(--shopify-products-border-strong);
}

/* =========================================================
   BORDES DE BOTONES Y FORMULARIOS
   ========================================================= */

.shopify-products-button,
.shopify-products-icon-button,
.shopify-products-pagination__button,
.shopify-products-modal__close,
.shopify-products-field input,
.shopify-products-field select,
.shopify-products-field textarea {
  border: 1.5px solid var(--shopify-products-border-strong);
}

.shopify-products-button--primary {
  border-color: var(--shopify-products-primary);
}

.shopify-products-search {
  border: 1.5px solid var(--shopify-products-border-strong);
}

.shopify-products-search:focus-within,
.shopify-products-field input:focus,
.shopify-products-field select:focus,
.shopify-products-field textarea:focus {
  border-color: var(--shopify-products-text-strong);
}

/* =========================================================
   MODALES SOBRE EL TOPBAR Y SIDEBAR
   ========================================================= */

body:has(.shopify-products-modal:not([hidden]))
  .app-shell,
body:has(.shopify-products-modal:not([hidden]))
  .app-main,
body:has(.shopify-products-modal:not([hidden]))
  .app-content,
body:has(.shopify-products-modal:not([hidden]))
  .shopify-products-host {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  backdrop-filter: none !important;
}

body:has(.shopify-products-modal:not([hidden]))
  .app-shell,
body:has(.shopify-products-modal:not([hidden]))
  .app-main,
body:has(.shopify-products-modal:not([hidden]))
  .app-content,
body:has(.shopify-products-modal:not([hidden]))
  .shopify-products-host {
  overflow: visible;
}

body:has(.shopify-products-modal:not([hidden]))
  .sidebar,
body:has(.shopify-products-modal:not([hidden]))
  .topbar,
body:has(.shopify-products-modal:not([hidden]))
  .rightbar,
body:has(.shopify-products-modal:not([hidden]))
  .footer {
  z-index: 1 !important;
}

.shopify-products-modal {
  position: fixed !important;

  inset: 0 !important;

  z-index: 2147483000 !important;

  width: 100vw;
  height: 100dvh;

  margin: 0;

  isolation: isolate;

  overflow: hidden;
}

.shopify-products-modal[data-product-modal] {
  z-index: 2147483000 !important;
}

.shopify-products-modal[data-product-edit-modal] {
  z-index: 2147483010 !important;
}

.shopify-products-modal[data-variant-edit-modal] {
  z-index: 2147483020 !important;
}

.shopify-products-modal[data-stock-modal] {
  z-index: 2147483030 !important;
}

.shopify-products-modal__backdrop {
  position: absolute;

  inset: 0;

  z-index: 0;

  background: rgba(0, 0, 0, 0.82);
}

.shopify-products-modal__dialog {
  position: relative;

  z-index: 2;

  border: 2px solid var(--shopify-products-border-strong);

  background: var(--shopify-products-surface);
}

.shopify-products-modal__head {
  border-bottom: 2px solid var(--shopify-products-border-strong);
}

.shopify-products-modal__body,
.shopify-products-form__body {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* =========================================================
   EVITAR CONTENIDO DETRÁS DEL FOOTER
   ========================================================= */

.shopify-products-modal__dialog {
  max-height: calc(100dvh - 24px);
}

.shopify-products-form {
  min-height: 0;
  flex: 1;
}

.shopify-products-form__footer {
  position: relative;

  z-index: 3;

  flex-shrink: 0;

  border-top: 2px solid var(--shopify-products-border-strong);

  background: var(--shopify-products-surface);
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 640px) {
  .shopify-products-modal {
    padding: 0 !important;
  }

  .shopify-products-modal__dialog,
  .shopify-products-modal__dialog--medium,
  .shopify-products-modal__dialog--small {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;

    border: 0;
    border-radius: 0;
  }

  .shopify-products-modal__head {
    min-height: 60px;
  }

  .shopify-products-modal__body,
  .shopify-products-form__body {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================
   FIN · AJUSTES VISUALES
   ========================================================= */
