/* =========================================================================
 * AC Variantes — swatches de color + selector de tallas (pills).
 * ========================================================================= */

/* ---- Etiqueta de la variante (Talla / Color) ---- */
.ac-variant{
  margin: 14px 0;
}
.ac-variant__label{
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

/* =========================================================================
 * Colores — chips circulares con nombre debajo.
 * ========================================================================= */
.ac-swatches{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  margin: 6px 0 14px;
  align-items: flex-start;
}

.ac-swatch{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 4px 2px;
  cursor: pointer;
  outline: none;
  width: auto;
  line-height: 1;
}

/* El chip estático (producto simple) no es interactivo. */
.ac-swatch.is-static{
  cursor: default;
}

.ac-swatch__circle{
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  background-clip: padding-box;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.ac-swatch:not(.is-static):hover .ac-swatch__circle{
  transform: scale(1.06);
}

.ac-swatch:focus-visible .ac-swatch__circle{
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .35);
}

.ac-swatch.is-selected .ac-swatch__circle{
  border-color: #111;
  box-shadow: 0 0 0 2px #111 inset, 0 0 0 1px #fff inset;
  transform: scale(1.08);
}

.ac-swatch__label{
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: #111;
  text-align: center;
  font-weight: 400;
  max-width: 72px;
  word-break: break-word;
}

.ac-swatch.is-selected .ac-swatch__label{
  font-weight: 600;
}

/* Chip de fallback (sin HEX) — círculo neutro punteado. */
.ac-swatch.is-fallback .ac-swatch__circle{
  border: 1px dashed rgba(0,0,0,.3);
}

/* =========================================================================
 * Tallas — pills rectangulares con resaltado al seleccionar.
 * ========================================================================= */
.ac-sizes{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0;
  align-items: center;
}

.ac-size{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: border-color .12s ease, background-color .12s ease, color .12s ease, transform .12s ease, box-shadow .12s ease;
}

.ac-size:hover{
  border-color: #111;
  transform: translateY(-1px);
}

.ac-size:focus-visible{
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .35);
}

.ac-size.is-selected{
  background: #111;
  border-color: #111;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* =========================================================================
 * Ajustes dentro de la tabla de información del producto (simples).
 * Quitamos el aspecto "tabla" y dejamos chips/pills respirar.
 * ========================================================================= */
.woocommerce-product-attributes-item__value .ac-swatches--static,
.woocommerce-product-attributes-item__value .ac-variant--size{
  margin: 2px 0;
}
.woocommerce-product-attributes-item__value > p{
  margin: 0;
}

/* Mobile */
@media (max-width: 480px){
  .ac-swatches{ gap: 12px; }
  .ac-swatch__circle{ width: 32px; height: 32px; }
  .ac-size{ min-width: 42px; height: 38px; }
}
