/* RD Pestañas por modelo — negro/blanco del tema, verde del logo para lo activo */
.rdmt, .rdmt-help, .rdmt-empty { --g: #2e8b3d; font-family: inherit; box-sizing: border-box; }
.rdmt * , .rdmt-help * { box-sizing: border-box; }
.rdmt { margin: 6px 0 16px; }

.rdmt-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rdmt-tab {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border: 1px solid #ddd; background: #fff; color: #111;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.rdmt-tab span { font-size: 12px; font-weight: 700; color: #777; background: #f1f1f1; padding: 1px 7px; border-radius: 10px; }
.rdmt-tab:hover { border-color: #111; }
.rdmt-tab.is-active { background: #111; border-color: #111; color: #fff; }
.rdmt-tab.is-active span { background: var(--g); color: #fff; }

.rdmt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.rdmt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rdmt-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border: 1px solid #d6d6d6; border-radius: 16px; background: #fff; color: #333;
  font: inherit; font-size: 13px; cursor: pointer;
}
.rdmt-chip span { color: #888; font-size: 12px; }
.rdmt-chip:hover { border-color: #111; }
.rdmt-chip.is-on { background: #eef7ef; border-color: var(--g); color: #1b5e27; font-weight: 600; }
.rdmt-chip.is-on span { color: var(--g); }
.rdmt-clear { border-style: dashed; color: #666; }
.rdmt-count { font-size: 13px; color: #666; margin-left: auto; }

.rdmt-empty { padding: 28px 10px; text-align: center; color: #666; border: 1px dashed #ccc; margin: 10px 0; }

.rdmt-help { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 26px 0 10px; border: 1px solid #e3e3e3; background: #fff; }
.rdmt-help__col { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.rdmt-help__col + .rdmt-help__col { border-left: 1px solid #e3e3e3; }
.rdmt-help__col svg { width: 30px; height: 30px; flex: none; color: #111; }
.rdmt-help__col div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rdmt-help__col b { font-size: 15px; }
.rdmt-help__col span { font-size: 13px; color: #666; }
.rdmt-btn {
  flex: none; padding: 10px 16px; border: 1px solid #111; color: #111 !important; background: #fff;
  font-weight: 700; font-size: 14px; text-decoration: none !important; white-space: nowrap;
}
.rdmt-btn:hover { background: #111; color: #fff !important; }
.rdmt-btn--dark { background: #111; color: #fff !important; }
.rdmt-btn--dark:hover { background: var(--g); border-color: var(--g); }

/* Página de modelo: sin columna izquierda (árbol de la marca), listado a todo el ancho */
#left-column { display: none !important; }
/* fotos de producto siempre opacas (el tema las deja al 30 % hasta que su lazy-load las marca) */
#js-product-list .lazy-product-image.product-thumbnail-first { opacity: 1 !important; }
#content-wrapper.left-column { flex: 0 0 100% !important; max-width: 100% !important; }
@media (min-width: 1200px) {
  #js-product-list .products > .js-product-miniature-wrapper { flex: 0 0 16.6667%; max-width: 16.6667%; }
}

@media (max-width: 767px) {
  .rdmt-help { grid-template-columns: 1fr; }
  .rdmt-help__col + .rdmt-help__col { border-left: 0; border-top: 1px solid #e3e3e3; }
  .rdmt-help__col { flex-wrap: wrap; }
  .rdmt-btn { width: 100%; text-align: center; }
  /* móvil: todas las pestañas visibles en rejilla de 3, sin desplazamiento lateral */
  .rdmt-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; padding-bottom: 0; }
  .rdmt-tab { justify-content: space-between; gap: 4px; padding: 8px; font-size: 12.5px; line-height: 1.2; white-space: normal; text-align: left; min-height: 44px; }
  .rdmt-tab span { flex: none; font-size: 11px; padding: 1px 6px; }
}
