/* =========================
   FONTES
========================= */
@font-face {
  font-family: 'GalanoGrotesqueRegular';
  src: url('/assets/fonts/GalanoGrotesqueRegular.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'GalanoGrotesqueBold';
  src: url('/assets/fonts/GalanoGrotesqueBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'GalanoGrotesqueItalic';
  src: url('/assets/fonts/GalanoGrotesqueItalic.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

/* =========================
   BASE
========================= */
body {
  margin: 0;
  font-family: 'GalanoGrotesqueRegular';
  background: #f9f9f9;
  color: #333;
}

/* =========================
   BREADCRUMB
========================= */
.breadcrumb-container {
  max-width: 1300px;
  margin: 20px auto 10px;
  padding: 0 25px;
}

.breadcrumb {
  font-family: 'GalanoGrotesqueRegular'; 
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #4a6fa5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #c72041;
  text-decoration: underline;
}

.breadcrumb .sep {
  margin: 0 6px;
  color: #aaa;
}

.breadcrumb span {
  color: #333;
  font-weight: 600;
}


/* =========================
   CONTAINER
========================= */
.vitrine-bloco {
  max-width: 1300px;
  margin: 10px auto;
  padding: 0 25px;
}

.catalogo-container {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 3rem;
}

/* =========================
   TÍTULOS
========================= */
.vitrine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: 'GalanoGrotesqueRegular'; 
}

.vitrine-title-close {
  font-size: 22px;
  text-transform: uppercase;
  color: #333;
  font-family: 'GalanoGrotesqueRegular';
  margin: 0;
}

.btn-ver-todos {
  --btn-color: #c62828;
  background: transparent;
  color: var(--btn-color);
  padding: 0.4rem 1rem;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'GalanoGrotesqueRegular';
  transition: all 0.3s ease;
  border: 1px solid var(--btn-color);
}
.btn-ver-todos:hover {
  background: var(--btn-color);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================
   GRID DE LIVROS
========================= */
.book-shelf {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 1.5rem 0 3rem;
}

@media (max-width: 1200px) {
  .book-shelf { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .book-shelf { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .book-shelf { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .book-shelf { grid-template-columns: 1fr; }
}

/* =========================
   CARD (container neutro, sem fundo/sombra)
========================= */
.book-card{
  background: transparent;   /* nada atrás da capa */
  border: none;
  box-shadow: none;
  display: block;
}

/* =========================
   CAPA (com sombra própria)
========================= */
.book-cover{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;                     /* cantos arredondados só na capa */
  background: transparent;                /* sem faixa */
  box-shadow: 0 6px 12px rgba(0,0,0,.10); /* sombra só na capa */
  max-height: 265px;
}


.book-cover img{
  width: 100%;
  height: auto;            /* mantém proporção original da imagem */
  object-fit: cover;       /* igual à vitrine da home */
  display: block;
  transition: transform .3s ease-out;
  max-height: 265px;
}

.book-card:hover .book-cover img{
  transform: scale(1.03);
}

/* =========================
   INFO (cartão independente embaixo)
========================= */
.book-info{
  font-family: 'GalanoGrotesqueRegular'; 
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0,0,0,.08);      /* sombra só no bloco de info */
  padding: 10px 10px;
  height: 80px;                                 /* altura fixa p/ alinhar textos */
}

/* Tipografia dentro do info (igual ao seu) */
.book-genre{
  font-size: 12px; 
  color:#777; 
  margin-bottom:2px; 
  font-style: italic;
  display:-webkit-box; 
  -webkit-line-clamp:1; 
  -webkit-box-orient:vertical; 
  overflow:hidden;
}
.book-title{
  font-family: 'GalanoGrotesqueRegular';  
  font-weight:700; 
  color:#000; 
  font-size:16px;
  margin:0 0 .1rem; 
  display:-webkit-box; 
  -webkit-line-clamp:2; 
  -webkit-box-orient:vertical; 
  overflow:hidden;
}
.book-author{
  font-family: 'GalanoGrotesqueRegular'; 
  color:#8c7470; 
  font-size:12px;
  margin-top:-5px; 
  margin-bottom:5px;
}

/* BADGES continuam funcionais, presas na capa */
.featured-badge, .new-badge{
  position:absolute; 
  top:10px; 
  color:#fff; 
  padding:5px 10px; 
  border-radius:4px;
  font-size:.75rem; 
  font-weight:600; 
  z-index:2;
}

.featured-badge{ 
  right:10px; 
  background:#f8b195; 
}

.new-badge{ 
  left:10px; 
  background:#c72041; 
}


/* =========================
   FILTROS
========================= */
.filters-container {
  background: white;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-family: 'GalanoGrotesqueRegular';
  font-weight: 500;
  color: #495580;
  font-size: 0.9rem;
  white-space: nowrap;
}

.filter-select, 
.filter-input {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'GalanoGrotesqueRegular';
  font-size: 0.9rem;
  background: white;
  transition: all 0.3s ease;
}

.filter-select:focus, 
.filter-input:focus {
  outline: none;
  border-color: #495580;
  box-shadow: 0 0 0 2px rgba(73, 85, 128, 0.2);
}

.filter-button {
  background: #c72041;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-family: 'GalanoGrotesqueRegular';
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-button:hover {
  background: #5d5d5d;
  transform: translateY(-2px);
}

.reset-button {
  background: transparent;
  color: #495580;
  border: 1px solid #495580;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-family: 'GalanoGrotesqueRegular';
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
}
.reset-button:hover {
  background: #f5f5f5;
  color: #c72041;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .filter-select, .filter-input,
  .filter-button, .reset-button {
    width: 100%;
  }
}
