/* =========================================================
   L'ATELIER PRODUCT MANAGER
   Interfaz profesional — actualización visual 3.0.0
   Solo estilos: no modifica ninguna función del plugin.
   ========================================================= */

.apm-shell,
.apm-shell * {
  box-sizing: border-box;
}

.apm-shell {
  --apm-ink: #261719;
  --apm-ink-2: #4f3b3f;
  --apm-muted: #75666a;
  --apm-wine: #7b2635;
  --apm-wine-dark: #5f1c29;
  --apm-gold: #b8905f;
  --apm-gold-soft: #eadbc9;
  --apm-canvas: #f5f1ed;
  --apm-surface: #ffffff;
  --apm-surface-2: #fbf8f5;
  --apm-border: #e1d7cf;
  --apm-border-strong: #cdbbad;
  --apm-success: #3f7148;
  --apm-danger: #a23a49;
  --apm-warning: #9a681c;
  --apm-info: #3f6179;
  --apm-radius-xl: 28px;
  --apm-radius-lg: 22px;
  --apm-radius-md: 16px;
  --apm-radius-sm: 12px;
  --apm-shadow-sm: 0 8px 24px rgba(38, 23, 25, .055);
  --apm-shadow-md: 0 18px 48px rgba(38, 23, 25, .085);
  --apm-shadow-lg: 0 28px 80px rgba(38, 23, 25, .13);

  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 34px 24px 56px;
  color: var(--apm-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.apm-admin-wrap .apm-shell {
  max-width: none;
  padding: 22px 8px 56px 0;
}

.apm-shell h1,
.apm-shell h2,
.apm-shell h3,
.apm-login-card h1,
.atelier-brand-page-block h1,
.atelier-brand-page-block h2,
.atelier-brand-page-block h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  text-wrap: balance;
}

.apm-shell a,
.apm-shell button,
.apm-shell input,
.apm-shell select,
.apm-shell textarea {
  font-family: inherit;
}

/* =========================================================
   CABECERAS PRINCIPALES
   ========================================================= */

.apm-hero,
.apm-editor-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 24px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-xl);
  background:
    radial-gradient(circle at 95% 5%, rgba(184, 144, 95, .19), transparent 30%),
    linear-gradient(135deg, #fff 0%, #fbf6f1 100%);
  box-shadow: var(--apm-shadow-md);
}

.apm-hero::before,
.apm-editor-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--apm-wine), var(--apm-gold));
}

.apm-hero > div:first-child,
.apm-editor-hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.apm-hero h1,
.apm-editor-hero h1,
.apm-login-card h1 {
  margin: 0 0 10px;
  color: var(--apm-ink);
  font-size: clamp(42px, 4.4vw, 64px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.025em;
}

.apm-hero p,
.apm-editor-hero p,
.apm-login-card p,
.apm-section-head p {
  max-width: 880px;
  margin: 0;
  color: var(--apm-muted);
  font-size: 16px;
  line-height: 1.65;
}

.apm-kicker {
  margin: 0 0 10px !important;
  color: var(--apm-wine) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .22em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.apm-hero-actions,
.apm-editor-actions-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

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

.apm-shell .apm-btn,
.apm-shell .apm-mini-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  height: auto;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none !important;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.apm-shell .apm-btn {
  min-height: 46px;
  padding: 11px 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.apm-shell .apm-mini-btn {
  min-height: 38px;
  padding: 9px 15px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.apm-shell .apm-btn-primary,
.apm-shell .apm-mini-btn:not(.apm-mini-btn-light) {
  border-color: var(--apm-ink);
  background: var(--apm-ink);
  color: #fff !important;
}

.apm-shell .apm-btn-ghost,
.apm-shell .apm-mini-btn-light {
  border-color: var(--apm-border-strong);
  background: #fff;
  color: var(--apm-ink) !important;
}

.apm-shell .apm-btn:hover,
.apm-shell .apm-mini-btn:hover {
  border-color: var(--apm-gold);
  background: var(--apm-gold);
  color: var(--apm-ink) !important;
  box-shadow: 0 9px 22px rgba(184, 144, 95, .24);
  transform: translateY(-1px);
}

.apm-shell .apm-btn:focus-visible,
.apm-shell .apm-mini-btn:focus-visible,
.apm-shell button:focus-visible,
.apm-shell a:focus-visible {
  outline: 3px solid rgba(123, 38, 53, .18);
  outline-offset: 3px;
}

/* =========================================================
   AVISOS Y ACCESO
   ========================================================= */

.apm-alert {
  position: relative;
  margin: 0 0 20px;
  padding: 15px 18px 15px 46px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-md);
  background: #fff;
  color: var(--apm-ink-2);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: var(--apm-shadow-sm);
}

.apm-alert::before {
  content: "i";
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--apm-info);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.apm-alert-success {
  border-color: rgba(63, 113, 72, .32);
  background: #f5faf6;
}

.apm-alert-success::before {
  content: "✓";
  background: var(--apm-success);
}

.apm-alert-error {
  border-color: rgba(162, 58, 73, .34);
  background: #fff7f8;
  color: var(--apm-danger);
}

.apm-alert-error::before {
  content: "!";
  background: var(--apm-danger);
}

.apm-alert-info {
  border-style: solid;
  background: #f7fafc;
}

.apm-login-card {
  max-width: 680px;
  margin: 70px auto;
  padding: 50px 42px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-xl);
  background: #fff;
  text-align: center;
  box-shadow: var(--apm-shadow-lg);
}

.apm-login-card .apm-btn {
  margin-top: 24px;
}

/* =========================================================
   CAMPOS Y CONTROLES
   ========================================================= */

.apm-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  margin: 0 0 18px;
}

.apm-field label,
.apm-toggle {
  color: var(--apm-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.apm-field input,
.apm-field select,
.apm-field textarea,
.apm-bulk select,
.apm-picker-search {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--apm-border-strong);
  border-radius: var(--apm-radius-sm);
  outline: 0;
  background-color: #fff;
  color: var(--apm-ink);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(38, 23, 25, .025);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.apm-field textarea {
  min-height: 126px;
  resize: vertical;
}

.apm-field input:hover,
.apm-field select:hover,
.apm-field textarea:hover,
.apm-bulk select:hover,
.apm-picker-search:hover {
  border-color: #bda695;
}

.apm-field input:focus,
.apm-field select:focus,
.apm-field textarea:focus,
.apm-bulk select:focus,
.apm-picker-search:focus {
  border-color: var(--apm-wine);
  box-shadow: 0 0 0 4px rgba(123, 38, 53, .11);
}

.apm-field input::placeholder,
.apm-field textarea::placeholder,
.apm-picker-search::placeholder {
  color: #a99c98;
}

.apm-field small {
  color: var(--apm-muted);
  font-size: 12px;
  line-height: 1.45;
}

.apm-shell select,
.apm-shell .apm-field select,
.apm-shell .apm-bulk select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%237b2635' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px 9px;
}

.apm-shell input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  accent-color: var(--apm-wine);
}

.apm-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-md);
  background: var(--apm-surface-2);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.apm-toggle:hover {
  border-color: var(--apm-border-strong);
  background: #fff;
}

.apm-toggle input {
  flex: 0 0 auto;
}

.apm-danger,
.apm-danger span,
.apm-danger label {
  color: var(--apm-danger) !important;
}

.apm-form-grid {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.apm-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apm-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apm-form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.apm-card-soft {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-lg);
  background: var(--apm-surface-2);
}

.apm-card-soft > .apm-field:last-child,
.apm-card-soft > .apm-toggle:last-child {
  margin-bottom: 0;
}

/* Editor clásico de WordPress */
.apm-editor-field .wp-editor-wrap {
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid var(--apm-border-strong);
  border-radius: var(--apm-radius-md);
  background: #fff;
}

.apm-editor-field .wp-editor-container {
  border: 0 !important;
}

.apm-editor-field .wp-editor-tabs {
  margin-right: 8px;
}

.apm-editor-field .wp-switch-editor {
  height: 30px;
  padding: 5px 12px;
  border-radius: 9px 9px 0 0;
}

/* =========================================================
   FILTROS DEL LISTADO
   ========================================================= */

.apm-filter-card {
  display: grid;
  grid-template-columns: minmax(240px, 1.55fr) repeat(4, minmax(145px, .82fr)) auto auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-lg);
  background: #fff;
  box-shadow: var(--apm-shadow-sm);
}

.apm-filter-card .apm-field {
  margin: 0;
}

.apm-filter-card .apm-btn {
  min-height: 48px;
}

.apm-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 15px 18px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-md);
  background: #fff;
  box-shadow: var(--apm-shadow-sm);
}

.apm-toolbar-left,
.apm-bulk {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.apm-toolbar-left span {
  color: var(--apm-muted);
  font-size: 13px;
}

.apm-toolbar-left strong {
  color: var(--apm-ink);
  font-size: 15px;
}

.apm-select-all-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--apm-ink-2);
  font-size: 13px;
  font-weight: 700;
}

.apm-bulk select {
  width: 225px;
  min-height: 44px;
}

.apm-bulk .apm-btn {
  min-height: 44px;
}

/* =========================================================
   TARJETAS DE PRODUCTOS
   ========================================================= */

.apm-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.apm-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-lg);
  background: #fff;
  box-shadow: var(--apm-shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.apm-product-card:hover {
  border-color: var(--apm-border-strong);
  box-shadow: var(--apm-shadow-md);
  transform: translateY(-3px);
}

.apm-card-check {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--apm-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 16px rgba(38, 23, 25, .12);
  backdrop-filter: blur(8px);
}

.apm-product-media {
  display: block;
  width: 100%;
}

.apm-product-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  padding: 22px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--apm-border);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 30%, #fff, transparent 52%),
    var(--apm-surface-2);
}

.apm-product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .22s ease;
}

.apm-product-card:hover .apm-product-thumb img {
  transform: scale(1.025);
}

.apm-product-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;
  min-width: 0;
  padding: 20px;
}

.apm-product-body h3 {
  display: -webkit-box;
  min-height: 2.25em;
  margin: 0;
  overflow: hidden;
  color: var(--apm-ink);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.apm-product-topline,
.apm-product-meta,
.apm-product-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  width: 100%;
}

.apm-product-topline span,
.apm-product-meta span,
.apm-product-tags span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;
  overflow-wrap: anywhere;
  border: 1px solid var(--apm-border);
  border-radius: 999px;
  background: var(--apm-surface-2);
  color: var(--apm-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.apm-product-topline span:first-child {
  border-color: rgba(123, 38, 53, .2);
  background: #fff7f8;
  color: var(--apm-wine);
}

.apm-status-instock {
  border-color: rgba(63, 113, 72, .26) !important;
  background: #f4faf5 !important;
  color: var(--apm-success) !important;
}

.apm-status-outofstock {
  border-color: rgba(162, 58, 73, .25) !important;
  background: #fff5f6 !important;
  color: var(--apm-danger) !important;
}

.apm-status-onbackorder {
  border-color: rgba(154, 104, 28, .28) !important;
  background: #fff9ed !important;
  color: var(--apm-warning) !important;
}

.apm-product-price {
  margin: 1px 0;
  color: var(--apm-wine);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
}

.apm-product-price del {
  color: #9a8e8b;
  font-size: .83em;
  font-weight: 500;
}

.apm-product-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 7px;
}

.apm-empty {
  grid-column: 1 / -1;
  padding: 48px 28px;
  border: 1px dashed var(--apm-border-strong);
  border-radius: var(--apm-radius-lg);
  background: #fff;
  color: var(--apm-muted);
  text-align: center;
  font-size: 16px;
}

.apm-pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 28px 0 0;
  flex-wrap: wrap;
}

.apm-pagination a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--apm-border);
  border-radius: 50%;
  background: #fff;
  color: var(--apm-ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: .18s ease;
}

.apm-pagination a.active,
.apm-pagination a:hover {
  border-color: var(--apm-ink);
  background: var(--apm-ink);
  color: #fff;
}

/* =========================================================
   EDITOR DE PRODUCTO
   ========================================================= */

.apm-editor-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.apm-tabs {
  position: sticky;
  top: 28px;
  z-index: 8;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-lg);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--apm-shadow-md);
  backdrop-filter: blur(14px);
}

.apm-tabs button {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 12px 42px 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--apm-radius-sm);
  background: transparent;
  color: var(--apm-muted);
  text-align: left;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  cursor: pointer;
  transition: .18s ease;
}

.apm-tabs button::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 16px;
  color: currentColor;
  font-size: 21px;
  line-height: 1;
  transform: translateY(-50%);
}

.apm-tabs button:hover {
  background: var(--apm-surface-2);
  color: var(--apm-ink);
}

.apm-tabs button.active {
  border-color: var(--apm-ink);
  background: var(--apm-ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(38, 23, 25, .15);
}

.apm-editor-panels {
  min-width: 0;
}

.apm-panel {
  display: none;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-xl);
  background: #fff;
  box-shadow: var(--apm-shadow-md);
}

.apm-panel.active {
  display: block;
  animation: apmPanelIn .2s ease both;
}

@keyframes apmPanelIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.apm-section-head {
  margin: 0 0 26px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--apm-border);
}

.apm-section-head h2 {
  margin: 0 0 7px;
  color: var(--apm-ink);
  font-size: clamp(34px, 3.3vw, 44px);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -.02em;
}

.apm-variable-note {
  display: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(123, 38, 53, .2);
  border-radius: var(--apm-radius-sm);
  background: #fff7f8;
  color: var(--apm-wine);
  font-size: 13px;
  line-height: 1.5;
}

.apm-product-type-variable .apm-simple-price-fields {
  opacity: .48;
  pointer-events: none;
  filter: grayscale(.25);
}

.apm-product-type-variable .apm-variable-note {
  display: block;
}

.apm-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 270px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--apm-border-strong);
  border-radius: var(--apm-radius-md);
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: var(--apm-border-strong) transparent;
}

.apm-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 10px;
  color: var(--apm-ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease;
}

.apm-checklist label:hover {
  background: var(--apm-surface-2);
}

.apm-empty-mini {
  padding: 14px;
  border: 1px dashed var(--apm-border-strong);
  border-radius: var(--apm-radius-sm);
  background: #fff;
  color: var(--apm-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================================
   IMÁGENES
   ========================================================= */

.apm-current-image,
.apm-brand-image-preview,
.apm-brand-logo-preview,
.apm-variation-image-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 190px;
  margin: 0 0 14px;
  padding: 14px;
  overflow: hidden;
  border: 1px dashed var(--apm-border-strong);
  border-radius: var(--apm-radius-md);
  background:
    linear-gradient(45deg, rgba(225, 215, 207, .19) 25%, transparent 25%, transparent 75%, rgba(225, 215, 207, .19) 75%),
    linear-gradient(45deg, rgba(225, 215, 207, .19) 25%, #fff 25%, #fff 75%, rgba(225, 215, 207, .19) 75%);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  color: var(--apm-muted);
  text-align: center;
  font-size: 13px;
}

.apm-current-image {
  min-height: 280px;
}

.apm-current-image img {
  display: block;
  width: 100%;
  height: 250px;
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
}

.apm-brand-image-preview {
  min-height: 175px;
}

.apm-brand-image-preview img {
  display: block;
  width: 100%;
  height: 175px;
  border-radius: 10px;
  object-fit: cover;
}

.apm-brand-logo-preview {
  min-height: 175px;
}

.apm-brand-logo-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 105px;
  object-fit: contain;
}

.apm-variation-image-preview {
  min-height: 130px;
}

.apm-variation-image-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 125px;
  max-height: 125px;
  object-fit: contain;
}

.apm-media-row {
  display: grid;
  grid-template-columns: minmax(90px, 130px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.apm-media-row .apm-btn {
  width: 100%;
  min-width: 0;
  min-height: 48px;
}

.apm-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
  min-height: 100px;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--apm-border-strong);
  border-radius: var(--apm-radius-md);
  background: #fff;
}

.apm-gallery-preview:empty::before {
  content: "Aún no hay imágenes en la galería";
  grid-column: 1 / -1;
  align-self: center;
  color: var(--apm-muted);
  text-align: center;
  font-size: 13px;
}

.apm-gallery-preview img {
  display: block;
  width: 100%;
  height: 78px;
  padding: 5px;
  border: 1px solid var(--apm-border);
  border-radius: 10px;
  background: var(--apm-surface-2);
  object-fit: contain;
}

.apm-selected-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 13px;
  padding: 6px 10px;
  border: 1px solid var(--apm-border);
  border-radius: 999px;
  background: #fff;
  color: var(--apm-muted);
  font-size: 11px;
  font-weight: 700;
}

.apm-selected-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #beb1ac;
}

.apm-selected-status.is-selected {
  border-color: rgba(63, 113, 72, .3);
  background: #f4faf5;
  color: var(--apm-success);
}

.apm-selected-status.is-selected::before {
  background: var(--apm-success);
}

/* =========================================================
   PRODUCTOS RELACIONADOS
   ========================================================= */

.apm-related-products-grid {
  align-items: start;
}

.apm-product-picker {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-lg);
  background: var(--apm-surface-2);
}

.apm-picker-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-bottom: 10px;
}

.apm-picker-search {
  min-height: 44px;
}

.apm-picker-clear {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--apm-border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--apm-wine);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.apm-picker-clear:hover {
  border-color: var(--apm-gold);
  background: var(--apm-gold);
  color: var(--apm-ink);
}

.apm-picker-summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 10px;
  padding: 5px 9px;
  border: 1px solid var(--apm-border);
  border-radius: 999px;
  background: #fff;
  color: var(--apm-muted);
  font-size: 11px;
  font-weight: 700;
}

.apm-picker-summary [data-apm-selected-count] {
  color: var(--apm-wine);
}

.apm-picker-list {
  display: grid;
  gap: 7px;
  max-height: 410px;
  overflow: auto;
  padding: 2px 3px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--apm-border-strong) transparent;
}

.apm-picker-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-md);
  background: #fff;
  cursor: pointer;
  transition: .16s ease;
}

.apm-picker-item:hover {
  border-color: var(--apm-border-strong);
  box-shadow: var(--apm-shadow-sm);
  transform: translateY(-1px);
}

.apm-picker-item.is-selected {
  border-color: rgba(123, 38, 53, .48);
  background: #fff8f9;
  box-shadow: 0 8px 24px rgba(123, 38, 53, .07);
}

.apm-picker-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--apm-border);
  border-radius: 12px;
  background: var(--apm-surface-2);
}

.apm-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.apm-picker-info {
  display: block;
  min-width: 0;
}

.apm-picker-info strong,
.apm-picker-info small,
.apm-picker-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apm-picker-info strong {
  color: var(--apm-ink);
  font-size: 13px;
  line-height: 1.2;
}

.apm-picker-info small {
  margin-top: 3px;
  color: var(--apm-muted);
  font-size: 10px;
}

.apm-picker-info em {
  margin-top: 3px;
  color: var(--apm-wine);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.apm-picker-check {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--apm-border);
  border-radius: 50%;
  background: var(--apm-surface-2);
  color: transparent;
  font-size: 12px;
}

.apm-picker-item.is-selected .apm-picker-check {
  border-color: var(--apm-wine);
  background: var(--apm-wine);
  color: #fff;
}

.apm-picker-no-results {
  display: none;
  padding: 18px;
  border: 1px dashed var(--apm-border-strong);
  border-radius: var(--apm-radius-md);
  background: #fff;
  color: var(--apm-muted);
  text-align: center;
  font-size: 13px;
}

/* =========================================================
   VARIACIONES
   ========================================================= */

.apm-variations-list {
  display: grid;
  gap: 16px;
}

.apm-variation-card {
  margin: 0;
  padding: 21px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-lg);
  background: var(--apm-surface-2);
}

.apm-variation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--apm-border);
}

.apm-variation-head strong {
  color: var(--apm-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.apm-variation-head span,
.apm-variation-head label {
  color: var(--apm-muted);
  font-size: 12px;
  font-weight: 650;
}

.apm-variation-helper strong {
  display: block;
  margin-bottom: 4px;
  color: var(--apm-ink);
}

.apm-new-variations-panel {
  margin: 8px 0 0;
  padding: 22px;
  border: 1px dashed var(--apm-border-strong);
  border-radius: var(--apm-radius-lg);
  background: #fff;
}

.apm-new-variation-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.apm-new-variations-list {
  display: grid;
  gap: 16px;
}

.apm-new-variations-list .apm-new-variation {
  background: var(--apm-surface-2);
}

.apm-remove-variation {
  border-color: rgba(162, 58, 73, .25) !important;
  background: #fff !important;
  color: var(--apm-danger) !important;
}

.apm-remove-variation:hover {
  border-color: var(--apm-gold) !important;
  background: var(--apm-gold) !important;
  color: var(--apm-ink) !important;
}

.apm-product-type-simple [data-apm-variations-builder] {
  opacity: .64;
}

.apm-product-type-simple [data-apm-variations-builder] .apm-new-variations-panel {
  background: #fffdfb;
}

/* =========================================================
   GESTOR DE MARCAS
   ========================================================= */

.apm-brand-guide {
  display: grid;
  gap: 5px;
  margin: 0 0 20px;
  padding: 17px 20px;
  border: 1px solid var(--apm-border);
  border-left: 5px solid var(--apm-gold);
  border-radius: var(--apm-radius-md);
  background: #fff;
  color: var(--apm-muted);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: var(--apm-shadow-sm);
}

.apm-brand-guide strong {
  color: var(--apm-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.1;
}

.apm-brand-new-panel {
  display: block;
  margin: 0 0 20px;
  padding: 24px;
  border-radius: var(--apm-radius-lg);
}

.apm-brand-create-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(190px, .78fr) auto;
  align-items: end;
}

.apm-brand-create-grid .apm-field,
.apm-brand-create-grid .apm-toggle {
  margin-bottom: 0;
}

.apm-brand-create-grid .apm-btn {
  min-height: 54px;
  align-self: end;
}

.apm-brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.apm-brand-card {
  overflow: hidden;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-lg);
  background: #fff;
  box-shadow: var(--apm-shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.apm-brand-card.is-open {
  border-color: var(--apm-border-strong);
  box-shadow: var(--apm-shadow-md);
}

.apm-brand-card.is-inactive {
  opacity: 1;
}

.apm-brand-accordion-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 92px;
  margin: 0;
  padding: 19px 22px;
  border: 0;
  background: #fff;
  color: var(--apm-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .16s ease;
}

.apm-brand-accordion-toggle:hover {
  background: var(--apm-surface-2);
}

.apm-brand-card.is-open .apm-brand-accordion-toggle {
  background: linear-gradient(90deg, #fff 0%, #fbf6f2 100%);
}

.apm-brand-accordion-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.apm-brand-accordion-main strong {
  overflow: hidden;
  color: var(--apm-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apm-brand-accordion-main small {
  overflow: hidden;
  color: var(--apm-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apm-brand-accordion-main code,
.apm-brand-card-head code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--apm-surface-2);
  color: var(--apm-ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .95em;
}

.apm-brand-state {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid rgba(162, 58, 73, .25);
  border-radius: 999px;
  background: #fff6f7;
  color: var(--apm-danger);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.apm-brand-card.is-active .apm-brand-state {
  border-color: rgba(63, 113, 72, .25);
  background: #f4faf5;
  color: var(--apm-success);
}

.apm-brand-accordion-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.apm-mini-state {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--apm-border);
  border-radius: 999px;
  background: var(--apm-surface-2);
  color: var(--apm-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.apm-chevron {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--apm-border);
  border-radius: 50%;
  background: #fff;
}

.apm-chevron::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid var(--apm-wine);
  border-bottom: 2px solid var(--apm-wine);
  transform: rotate(45deg);
  transition: transform .18s ease, margin .18s ease;
}

.apm-brand-card.is-open .apm-chevron::before {
  margin-top: 4px;
  transform: rotate(225deg);
}

.apm-brand-card-body {
  display: none;
  padding: 0 22px 24px;
  border-top: 1px solid var(--apm-border);
}

.apm-brand-card.is-open .apm-brand-card-body {
  display: block;
  animation: apmPanelIn .18s ease both;
}

.apm-brand-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--apm-border);
}

.apm-brand-card-head h3 {
  margin: 0 0 4px;
  color: var(--apm-ink);
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
}

.apm-brand-card-head small {
  color: var(--apm-muted);
  font-size: 12px;
}

.apm-brand-card-head .apm-toggle {
  flex: 0 0 auto;
  min-height: 46px;
  margin: 0;
  background: #fff;
}

.apm-brand-main-fields,
.apm-brand-media-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apm-media-card {
  overflow: hidden;
}

.apm-brand-text-field textarea {
  min-height: 200px;
}

.apm-delete-toggle {
  min-height: 76px;
}

/* =========================================================
   BARRA DE GUARDADO
   ========================================================= */

.apm-sticky-save {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 22px 0 0;
  padding: 14px 16px 14px 20px;
  border: 1px solid rgba(205, 187, 173, .9);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--apm-shadow-lg);
  backdrop-filter: blur(16px);
}

.apm-sticky-save strong {
  display: block;
  overflow: hidden;
  color: var(--apm-ink);
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apm-sticky-save span {
  display: block;
  margin-top: 2px;
  color: var(--apm-muted);
  font-size: 11px;
  line-height: 1.4;
}

.apm-sticky-save .apm-btn {
  flex: 0 0 auto;
}

/* Oculta avisos estándar del escritorio dentro del panel del plugin */
.apm-admin-wrap .notice,
.apm-admin-wrap .updated {
  display: none;
}

/* =========================================================
   BLOQUE PÚBLICO DE MARCA EN LA TIENDA
   ========================================================= */

.atelier-brand-page-block,
.atelier-brand-page-block * {
  box-sizing: border-box !important;
}

.atelier-brand-page-block {
  width: 100% !important;
  margin: 0 0 58px !important;
  padding: 0 !important;
  color: #261719 !important;
}

.atelier-brand-page-banner {
  position: relative !important;
  width: 100vw !important;
  height: var(--atelier-brand-banner-desktop, 520px) !important;
  max-width: 100vw !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  overflow: hidden !important;
  background: #f5f1ed !important;
  isolation: isolate !important;
}

.atelier-brand-page-banner img,
.atelier-brand-page-banner-image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: var(--atelier-brand-banner-fit, cover) !important;
  object-position: center center !important;
  image-rendering: auto !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.atelier-brand-page-description {
  width: min(100%, 1180px) !important;
  margin: 0 auto !important;
  padding: 36px 34px 40px !important;
  border: 0 !important;
  background: #fff !important;
  text-align: center !important;
}

.atelier-brand-page-logo {
  width: 100% !important;
  margin: 0 auto 8px !important;
  text-align: center !important;
}

.atelier-brand-page-logo img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 220px !important;
  max-height: 86px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.atelier-brand-page-title,
.atelier-brand-page-logo-text {
  margin: 10px 0 8px !important;
  padding: 0 !important;
  color: #181214 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(38px, 4.3vw, 58px) !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  line-height: .98 !important;
  text-transform: uppercase !important;
}

.atelier-brand-page-country {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: #4f3b3f !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.atelier-brand-page-year {
  position: relative !important;
  display: inline-block !important;
  margin: 0 auto 24px !important;
  padding: 0 20px 11px !important;
  color: #7b2635 !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: .1em !important;
}

.atelier-brand-page-year::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 58px !important;
  height: 1px !important;
  background: #b8905f !important;
  transform: translateX(-50%) !important;
}

.atelier-brand-page-text {
  max-width: 940px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: #3d3033 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 450 !important;
  line-height: 1.45 !important;
}

.atelier-brand-page-text p {
  max-width: 940px !important;
  margin: 0 auto 13px !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
}

.atelier-brand-page-text p:last-child {
  margin-bottom: 0 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1280px) {
  .apm-filter-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .apm-field-search {
    grid-column: span 2;
  }

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

  .apm-form-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apm-brand-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apm-brand-create-grid .apm-btn {
    width: 100%;
  }
}

@media (max-width: 1050px) {
  .apm-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .apm-editor-layout {
    grid-template-columns: 1fr;
  }

  .apm-tabs {
    position: sticky;
    top: 10px;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .apm-tabs button {
    min-width: 150px;
  }

  .apm-brand-main-fields,
  .apm-brand-media-fields {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 781px) and (max-width: 1280px) {
  .atelier-brand-page-banner {
    height: var(--atelier-brand-banner-tablet, 380px) !important;
  }
}

@media (max-width: 780px) {
  .atelier-brand-page-banner {
    height: var(--atelier-brand-banner-mobile, 260px) !important;
  }


  .atelier-brand-page-banner img,
  .atelier-brand-page-banner-image {
    object-position: center center !important;
  }

  .atelier-brand-page-logo img,
  .atelier-brand-page-logo-image {
    max-width: min(180px, 72vw) !important;
    max-height: 72px !important;
  }
  .apm-shell {
    padding: 20px 13px 44px;
  }

  .apm-admin-wrap .apm-shell {
    padding-right: 0;
  }

  .apm-hero,
  .apm-editor-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .apm-hero h1,
  .apm-editor-hero h1 {
    font-size: 42px;
  }

  .apm-hero-actions,
  .apm-editor-actions-top {
    justify-content: stretch;
  }

  .apm-hero-actions .apm-btn,
  .apm-editor-actions-top .apm-btn {
    flex: 1 1 100%;
  }

  .apm-filter-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .apm-field-search {
    grid-column: auto;
  }

  .apm-filter-card .apm-btn {
    width: 100%;
  }

  .apm-list-toolbar,
  .apm-sticky-save {
    align-items: stretch;
    flex-direction: column;
  }

  .apm-toolbar-left,
  .apm-bulk {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .apm-bulk select,
  .apm-bulk .apm-btn {
    width: 100%;
  }

  .apm-products-grid,
  .apm-form-grid.two,
  .apm-form-grid.three,
  .apm-form-grid.four,
  .apm-brand-create-grid {
    grid-template-columns: 1fr;
  }

  .apm-product-thumb {
    height: 245px;
  }

  .apm-tabs {
    grid-template-columns: repeat(7, minmax(145px, 1fr));
    margin: 0 -2px;
    padding: 8px;
  }

  .apm-panel {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .apm-checklist {
    grid-template-columns: 1fr;
  }

  .apm-media-row,
  .apm-picker-top {
    grid-template-columns: 1fr;
  }

  .apm-media-row .apm-btn,
  .apm-picker-clear {
    width: 100%;
  }

  .apm-picker-item {
    grid-template-columns: auto 48px minmax(0, 1fr);
  }

  .apm-picker-thumb {
    width: 48px;
    height: 48px;
  }

  .apm-picker-check {
    display: none;
  }

  .apm-brand-accordion-toggle {
    align-items: flex-start;
    flex-direction: column;
  }

  .apm-brand-accordion-side {
    justify-content: flex-start;
    width: 100%;
  }

  .apm-brand-card-body {
    padding: 0 16px 20px;
  }

  .apm-brand-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .apm-brand-card-head .apm-toggle {
    width: 100%;
  }

  .apm-new-variation-actions {
    flex-direction: column;
  }

  .apm-new-variation-actions .apm-btn {
    width: 100%;
  }

  .apm-sticky-save .apm-btn {
    width: 100%;
  }

  .atelier-brand-page-block {
    margin-bottom: 42px !important;
  }

  .atelier-brand-page-banner {
    height: var(--atelier-brand-banner-tablet, 360px) !important;
  }

  .atelier-brand-page-description {
    padding: 28px 18px 34px !important;
  }

  .atelier-brand-page-logo img {
    max-width: 175px !important;
    max-height: 68px !important;
  }

  .atelier-brand-page-title,
  .atelier-brand-page-logo-text {
    margin-top: 8px !important;
    font-size: 38px !important;
    line-height: 1 !important;
  }

  .atelier-brand-page-text {
    font-size: 19px !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 440px) {
  .apm-product-body {
    padding: 17px;
  }

  .apm-product-body h3 {
    font-size: 24px;
  }

  .apm-product-actions .apm-mini-btn {
    flex: 1 1 auto;
  }

  .apm-brand-accordion-main strong {
    font-size: 26px;
  }
}


/* =========================================================
   AJUSTE GLOBAL DEL TAMAÑO DE BANNERS — 3.0.0
   ========================================================= */

.apm-brand-size-panel {
  margin-bottom: 24px;
  border: 1px solid var(--apm-gold-soft);
  background: linear-gradient(145deg, #fff, #fbf7f2);
}

.apm-brand-size-grid {
  align-items: end;
}

.apm-size-input-wrap {
  position: relative;
}

.apm-size-input-wrap input {
  padding-right: 48px !important;
}

.apm-size-input-wrap span {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--apm-muted);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

.apm-brand-fit-field {
  max-width: 520px;
  margin-top: 18px;
}

.apm-global-image-preview {
  display: grid;
  place-items: center;
  width: 100%;
  height: min(var(--apm-preview-height, 260px), 360px);
  min-height: 160px;
  margin-top: 22px;
  border: 1px dashed var(--apm-border-strong);
  background:
    linear-gradient(rgba(38,23,25,.2), rgba(38,23,25,.2)),
    linear-gradient(135deg, #d9c8b5, #f3e8dc 48%, #c9aa86);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .apm-global-image-preview {
    min-height: 140px;
    max-height: 240px;
  }
}

/* Eliminación de fichas de marca · v3.1 */
.apm-delete-brand-field {
  align-self: end;
}

.apm-btn-danger {
  background: var(--apm-danger) !important;
  border-color: var(--apm-danger) !important;
  color: #fff !important;
}

.apm-btn-danger:hover {
  filter: brightness(.92);
  color: #fff !important;
}

/* =========================================================
   SELECTORES VISUALES DE TAXONOMÍAS — V3.5
   ========================================================= */
.apm-taxonomy-section {
  margin-top: 22px;
  padding: 22px;
}

.apm-section-head-compact {
  margin-bottom: 18px;
}

.apm-section-head-compact h3 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.05;
}

.apm-note-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.apm-organization-bottom {
  margin-top: 22px;
}

.apm-term-picker {
  min-width: 0;
}

.apm-note-picker-grid .apm-term-picker {
  padding: 18px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-lg);
  background: #fff;
  box-shadow: var(--apm-shadow-sm);
}

.apm-term-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.apm-term-picker-title {
  display: block;
  margin: 0;
  color: var(--apm-ink);
  font-size: 15px;
  font-weight: 800;
}

.apm-term-picker-head p {
  margin: 3px 0 0;
  color: var(--apm-muted);
  font-size: 12px;
}

.apm-term-picker-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--apm-border);
  border-radius: 999px;
  background: var(--apm-surface-2);
  color: var(--apm-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.apm-term-picker-count strong {
  color: var(--apm-wine);
}

.apm-selected-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px dashed var(--apm-border-strong);
  border-radius: var(--apm-radius-md);
  background: var(--apm-surface-2);
}

.apm-selected-terms-empty {
  align-self: center;
  color: var(--apm-muted);
  font-size: 12px;
}

.apm-selected-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 7px 6px 11px;
  border: 1px solid rgba(123, 38, 53, .28);
  border-radius: 999px;
  background: #fff7f8;
  color: var(--apm-wine-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}

.apm-selected-chip:hover {
  border-color: var(--apm-wine);
  background: var(--apm-wine);
  color: #fff;
}

.apm-selected-chip-remove {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(123, 38, 53, .12);
  font-size: 16px;
  line-height: 1;
}

.apm-selected-chip:hover .apm-selected-chip-remove {
  background: rgba(255,255,255,.18);
}

.apm-term-search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.apm-term-search {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--apm-border-strong);
  border-radius: var(--apm-radius-sm);
  background: #fff;
  color: var(--apm-ink);
}

.apm-term-clear-search {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--apm-border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--apm-wine);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.apm-term-clear-search:hover {
  border-color: var(--apm-gold);
  background: var(--apm-gold);
  color: var(--apm-ink);
}

.apm-term-options {
  position: relative;
  display: grid;
  gap: 7px;
  max-height: 310px;
  overflow: auto;
  padding: 2px 4px 2px 1px;
  scrollbar-width: thin;
  scrollbar-color: var(--apm-border-strong) transparent;
}

.apm-term-option {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--apm-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.apm-term-option:hover {
  border-color: var(--apm-border-strong);
  box-shadow: 0 5px 15px rgba(38, 23, 25, .05);
}

.apm-term-option.is-selected {
  border-color: rgba(123, 38, 53, .48);
  background: #fff8f9;
}

.apm-term-option input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.apm-term-checkbox {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--apm-border-strong);
  border-radius: 7px;
  background: #fff;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
}

.apm-term-option.is-selected .apm-term-checkbox {
  border-color: var(--apm-wine);
  background: var(--apm-wine);
  color: #fff;
}

.apm-term-option-name {
  overflow: hidden;
  color: var(--apm-ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apm-term-create {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--apm-border);
}

.apm-term-create label {
  display: block;
  margin-bottom: 6px;
  color: var(--apm-ink);
  font-size: 13px;
  font-weight: 750;
}

.apm-term-create input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--apm-border-strong);
  border-radius: var(--apm-radius-sm);
  background: #fff;
}

.apm-term-create small {
  display: block;
  margin-top: 6px;
  color: var(--apm-muted);
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .apm-note-picker-grid {
    grid-template-columns: 1fr;
  }

  .apm-note-picker-grid .apm-term-picker {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .apm-taxonomy-section {
    padding: 15px;
  }

  .apm-term-picker-head {
    display: block;
  }

  .apm-term-picker-count {
    display: inline-flex;
    margin-top: 8px;
  }

  .apm-term-search-wrap {
    grid-template-columns: 1fr;
  }

  .apm-term-clear-search {
    width: 100%;
  }
}

/* =========================================================
   SCENT TEST MANAGER — 3.6.0
   ========================================================= */

.apm-scent-form {
  display: block;
}

.apm-scent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.apm-scent-group-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--apm-border);
  border-radius: var(--apm-radius-lg);
  background: var(--apm-surface);
  box-shadow: var(--apm-shadow-sm);
}

.apm-scent-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.apm-scent-group-head > div:first-child {
  min-width: 0;
  flex: 1;
}

.apm-scent-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(123, 38, 53, .09);
  color: var(--apm-wine);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.apm-scent-group-head h2 {
  margin: 0 0 8px;
  color: var(--apm-ink);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1;
}

.apm-scent-group-head p {
  margin: 0;
  color: var(--apm-muted);
  font-size: 14px;
  line-height: 1.55;
}

.apm-scent-status {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 12px 14px;
  border: 1px solid var(--apm-border);
  border-radius: 14px;
  background: var(--apm-surface-2);
  text-align: center;
}

.apm-scent-status strong,
.apm-scent-status span,
.apm-scent-status em {
  display: block;
}

.apm-scent-status strong {
  color: var(--apm-ink);
  font-size: 20px;
  line-height: 1;
}

.apm-scent-status span {
  margin-top: 5px;
  color: var(--apm-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.apm-scent-status em {
  margin-top: 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.apm-scent-status.is-ready {
  border-color: rgba(63, 113, 72, .25);
  background: #f5faf6;
}

.apm-scent-status.is-ready em {
  color: var(--apm-success);
}

.apm-scent-status.is-warning {
  border-color: rgba(162, 58, 73, .28);
  background: #fff7f8;
}

.apm-scent-status.is-warning em {
  color: var(--apm-danger);
}

.apm-scent-warning {
  margin: 0 0 18px;
}

.apm-scent-group-card .apm-product-picker {
  margin-top: 0;
}

.apm-scent-group-card .apm-picker-list {
  max-height: 390px;
}

.apm-scent-help {
  margin-bottom: 24px;
}

.apm-scent-save {
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .apm-scent-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .apm-scent-group-card {
    padding: 20px;
  }

  .apm-scent-group-head {
    flex-direction: column;
  }

  .apm-scent-status {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  .apm-scent-status span,
  .apm-scent-status em {
    margin-top: 0;
  }
}

/* ======================================================
   L'ATELIER PRODUCT MANAGER 3.7
   Selector profesional de productos para Scent Test
   ====================================================== */
.apm-scent-product-selector {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #e8ddd4;
  border-radius: 18px;
  background: #fffdfa;
}

.apm-scent-selector-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.apm-scent-selector-title-row > div:first-child {
  min-width: 0;
}

.apm-scent-selector-title-row strong {
  display: block;
  margin-bottom: 4px;
  color: #2A1719;
  font-size: 16px;
  line-height: 1.25;
}

.apm-scent-selector-title-row span {
  display: block;
  color: #71615a;
  font-size: 13px;
  line-height: 1.45;
}

.apm-scent-selector-counter {
  flex: 0 0 auto;
  min-width: 62px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #2A1719;
  color: #FAF6F1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.apm-scent-selected-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.apm-scent-selected-empty {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed #d8cbc1;
  border-radius: 12px;
  color: #7a6b64;
  background: #fff;
  text-align: center;
  font-size: 13px;
}

.apm-scent-selected-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e6ddd7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(42, 23, 25, .05);
}

.apm-scent-selected-card.is-out-of-stock {
  background: #fff9f8;
  border-color: #eccfca;
}

.apm-scent-selected-image {
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 10px;
  background: #f8f5f1;
  border: 1px solid #eee6df;
}

.apm-scent-selected-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.apm-scent-selected-info {
  min-width: 0;
}

.apm-scent-selected-info > strong {
  display: block;
  color: #2A1719;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apm-scent-selected-info > span {
  display: block;
  margin-top: 3px;
  color: #9A6B5C;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apm-scent-selected-info > small {
  display: block;
  margin-top: 4px;
  color: #8b7b72;
  font-size: 10px;
  line-height: 1.25;
}

.apm-scent-selected-meta,
.apm-scent-search-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.apm-scent-selected-meta em,
.apm-scent-search-result-meta em {
  color: #2A1719;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.apm-scent-stock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.apm-scent-stock-badge.is-in-stock {
  color: #226640;
  background: #e8f6ee;
}

.apm-scent-stock-badge.is-out-of-stock {
  color: #9b2f28;
  background: #fbe9e7;
}

.apm-scent-remove-product {
  width: 30px;
  height: 30px;
  padding: 0 !important;
  border: 1px solid #e4d8cf !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #7A0F1C !important;
  font-size: 19px !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: none !important;
}

.apm-scent-remove-product:hover,
.apm-scent-remove-product:focus {
  border-color: #7A0F1C !important;
  background: #7A0F1C !important;
  color: #fff !important;
}

.apm-scent-search-box {
  padding-top: 18px;
  border-top: 1px solid #eee5de;
}

.apm-scent-search-box > label {
  display: block;
  margin-bottom: 7px;
  color: #2A1719;
  font-size: 13px;
  font-weight: 800;
}

.apm-scent-search-control {
  position: relative;
}

.apm-scent-product-search {
  width: 100%;
  min-height: 44px;
  padding: 10px 46px 10px 14px !important;
  border: 1px solid #d8ccc4 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #2A1719 !important;
  box-shadow: none !important;
}

.apm-scent-product-search:focus {
  border-color: #9A6B5C !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(154, 107, 92, .10) !important;
}

.apm-scent-search-spinner {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(42,23,25,.15);
  border-top-color: #7A0F1C;
  border-radius: 50%;
  opacity: 0;
}

.apm-scent-search-spinner.is-loading {
  opacity: 1;
  animation: apmScentSpin .7s linear infinite;
}

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

.apm-scent-search-box > p {
  margin: 7px 0 0;
  color: #8a7a72;
  font-size: 11px;
  line-height: 1.4;
}

.apm-scent-search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 390px;
  overflow: auto;
}

.apm-scent-search-hint {
  padding: 14px;
  border-radius: 10px;
  background: #f7f2ee;
  color: #74645c;
  text-align: center;
  font-size: 12px;
}

.apm-scent-search-result {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e7ddd6;
  border-radius: 12px;
  background: #fff;
}

.apm-scent-search-result.is-out-of-stock {
  background: #fffafa;
}

.apm-scent-search-result-image {
  width: 58px;
  height: 58px;
  border-radius: 9px;
  overflow: hidden;
  background: #f8f5f1;
}

.apm-scent-search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.apm-scent-search-result-info {
  min-width: 0;
}

.apm-scent-search-result-info > strong {
  display: block;
  color: #2A1719;
  font-size: 13px;
  line-height: 1.2;
}

.apm-scent-search-result-info > span {
  display: block;
  margin-top: 2px;
  color: #9A6B5C;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.apm-scent-search-result-info > small {
  display: block;
  margin-top: 3px;
  color: #8c7d75;
  font-size: 10px;
}

.apm-scent-add-product {
  min-width: 82px;
  white-space: nowrap;
}

.apm-scent-add-product:disabled {
  opacity: .55;
  cursor: default;
}

@media (max-width: 900px) {
  .apm-scent-selected-products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .apm-scent-product-selector {
    padding: 16px;
  }

  .apm-scent-selector-title-row {
    flex-direction: column;
  }

  .apm-scent-search-result {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .apm-scent-search-result > .apm-scent-add-product {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ======================================================
   L'ATELIER PRODUCT MANAGER 3.8
   Scent Test: un perfil por fila + tarjetas sin recortes
   ====================================================== */

/* Cada grupo ocupa una fila completa: G1, G2, G3 y G4 en vertical */
.apm-scent-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 28px !important;
}

.apm-scent-group-card {
  width: 100% !important;
  min-width: 0 !important;
}

/* Aprovecha el ancho completo del grupo sin apretar la información */
.apm-scent-selected-products {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

/* Los nombres y marcas pueden ocupar varias líneas: nada queda cortado */
.apm-scent-selected-info > strong,
.apm-scent-selected-info > span,
.apm-scent-search-result-info > strong,
.apm-scent-search-result-info > span,
.apm-scent-search-result-info > small {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}

.apm-scent-selected-card {
  min-height: 104px;
}

/* Buscador más cómodo al tener cada grupo a ancho completo */
.apm-scent-search-results {
  max-height: 460px;
}

.apm-scent-search-result {
  grid-template-columns: 68px minmax(0, 1fr) auto !important;
  padding: 12px !important;
}

.apm-scent-search-result-image {
  width: 68px !important;
  height: 68px !important;
}

@media (max-width: 1180px) {
  .apm-scent-selected-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .apm-scent-selected-products {
    grid-template-columns: 1fr !important;
  }

  .apm-scent-search-result {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  .apm-scent-search-result > .apm-scent-add-product {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}


/* =========================================================
   SELECCIONES MANUALES DE TIENDA — 3.9.0
   ========================================================= */
.apm-shop-selection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apm-shop-selection-grid .apm-shop-selection-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.apm-shop-selection-selector {
  margin-top: 18px;
}

.apm-shop-selection-card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.apm-shop-selection-move {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.apm-shop-selection-card-actions .apm-scent-remove-product {
  position: static;
  flex: 0 0 auto;
}

.apm-shop-selection-selected-card {
  cursor: default;
}

@media (max-width: 1100px) {
  .apm-shop-selection-grid {
    grid-template-columns: 1fr;
  }

  .apm-shop-selection-grid .apm-shop-selection-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .apm-shop-selection-card-actions {
    width: 100%;
    margin: 10px 0 0;
    justify-content: flex-end;
  }
}

/* ==========================================================
   SELECCIONES DE TIENDA · BUSCADOR POR NOMBRE + MARCA
   ========================================================== */
.apm-shop-selection-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(190px, .75fr);
  gap: 10px;
  align-items: stretch;
}

.apm-shop-selection-product-search,
.apm-shop-selection-brand-search {
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  border: 1px solid #d8ccc4 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #2A1719 !important;
  box-shadow: none !important;
  font: inherit !important;
}

.apm-shop-selection-product-search {
  padding: 10px 46px 10px 14px !important;
}

.apm-shop-selection-brand-search {
  padding: 9px 36px 9px 13px !important;
  cursor: pointer;
}

.apm-shop-selection-product-search:focus,
.apm-shop-selection-brand-search:focus {
  border-color: #9A6B5C !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(154, 107, 92, .10) !important;
}

@media (max-width: 700px) {
  .apm-shop-selection-search-grid {
    grid-template-columns: 1fr;
  }
}
