/* Tés — estilos do catálogo em flipbook (self-hosted, sem Heyzine) */

.tes-catalogo-wrap {
  max-width: 1800px;
  width: 100%;
  margin: 24px auto 40px;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}

.tes-catalogo-wrap #tes-book {
  width: 100%;
  aspect-ratio: 2 / 1;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.tes-catalogo-wrap .page {
  background-color: #fff;
}

.tes-catalogo-wrap .page img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.tes-catalogo-controles {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tes-catalogo-controles button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d8d3cb;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.tes-catalogo-controles button:hover {
  background: #f2efe9;
}

.tes-catalogo-controles button:active {
  transform: scale(0.95);
}

.tes-catalogo-controles button:disabled {
  opacity: 0.35;
  cursor: default;
}

#tes-pagina-atual {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #555;
  min-width: 70px;
  text-align: center;
}

.tes-catalogo-carregando {
  padding: 60px 0;
  text-align: center;
  color: #888;
  font-size: 14px;
}

@media (max-width: 640px) {
  .tes-catalogo-wrap {
    margin: 12px auto 28px;
    padding: 0 8px;
  }
  .tes-catalogo-wrap #tes-book {
    aspect-ratio: 1 / 1;
  }
  .tes-catalogo-controles button {
    width: 38px;
    height: 38px;
  }
}
