/*
  Pestañas de la ficha de producto: compactas, con icono sobre la etiqueta.

  Va en un archivo aparte (y no en theme.css) porque el bundle CCC reutiliza el mismo
  nombre de archivo aunque cambie el contenido: quien ya lo tenga en caché seguiría
  viendo el diseño antiguo durante días. Este archivo se enlaza con ?v= en head.tpl.
  Por eso mismo hay algunas reglas que anulan expresamente el estilo anterior, que
  puede seguir vivo en el bundle cacheado del visitante.
*/

.page-product .fa-product-tabs {
  border-top: 0;
}

/* El envoltorio ya no reparte columnas para las flechas de scroll. */
.page-product .fa-product-tabs-nav-wrap {
  display: block;
}

.page-product .fa-product-tabs-scroll {
  display: none !important;
}

.page-product .fa-product-tabs-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px 12px 0 0;
  background: #fff;
}

.page-product .fa-product-tabs-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 12px 8px;
  border: 0;
  border-left: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: color .15s ease, background-color .15s ease;
}

.page-product .fa-product-tabs-nav button:first-child {
  border-left: 0;
}

.page-product .fa-product-tabs-nav button:hover {
  color: var(--dark);
  background: rgba(0, 82, 165, .04);
}

.page-product .fa-product-tab-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.page-product .fa-product-tabs-nav .is-active {
  color: var(--accent);
  box-shadow: inset 0 3px 0 var(--accent);
}

.page-product .fa-product-tabs-body {
  padding: 28px 32px;
  border: 1px solid var(--rule);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

/* Las descripciones importadas no siempre traen etiquetas HTML. El script las
   agrupa en parrafos y estas reglas les dan el mismo ritmo que al contenido
   editado desde el back office. */
.page-product .fa-product-tab-panel .fa-product-description {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
}

.page-product .fa-product-tab-panel .fa-product-description p {
  max-width: none;
  margin: 0 0 1.15em;
}

.page-product .fa-product-tab-panel .fa-product-description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  /* El estilo antiguo quitaba el borde inferior de la barra con !important. */
  .page-product .fa-product-tabs-nav {
    border-bottom-width: 1px !important;
  }

  .page-product .fa-product-tabs-nav button {
    padding: 10px 4px;
    font-size: 11px;
  }

  .page-product .fa-product-tabs-body {
    padding: 22px 16px;
  }

  .page-product .fa-product-tab-panel .fa-product-description {
    font-size: 15px;
    line-height: 1.7;
  }

  .page-product .fa-product-tab-icon {
    width: 18px;
    height: 18px;
  }
}
