/*Menu, header*/
:root {
  --cinza-neve: #f1f1f1;
  --branco-rosado: #fff6f6;
  --azul-profundo: #041e42;
  --vermelho-coral: #f75454;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Tipografia da Livraria === */

/* Títulos e destaques */
h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.navbar-brand {
  font-family: "Merriweather", serif;
  font-weight: 700;
}

/* Texto corrido e elementos de interface */
body,
p,
a,
li,
input,
select,
button,
.nav-link,
.breadcrumb-item,
.badge {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Pesos extras */
strong,
b,
.btn,
.price,
.label {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

header {
  width: 100%;
}
.top-nav {
  background-color: var(--cinza-neve);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-nav .logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--azul-profundo);
  text-decoration: none;
}
.top-nav .main-menu {
  list-style: none;
  display: flex;
  gap: 25px;
}
.top-nav .main-menu li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}
.top-nav .main-menu li a:hover {
  color: var(--vermelho-coral);
}
.top-nav .main-menu li a i {
  margin-left: 8px;
  color: var(--azul-profundo);
}
.top-nav .contact-info {
  display: flex;
  align-items: center;
  gap: 25px;
}
.top-nav .contact-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  transition: color 0.3s;
}
.top-nav .contact-item:hover {
  color: var(--vermelho-coral);
}
.top-nav .contact-item i {
  margin-right: 5px;
  color: var(--azul-profundo);
}
.bottom-nav {
  background-color: var(--azul-profundo);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.bottom-nav .categories-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s;
}
.bottom-nav .categories-menu:hover span {
  color: var(--vermelho-coral);
}
.bottom-nav .categories-menu i {
  font-size: 18px;
  color: #fff;
}
.bottom-nav .search-bar {
  display: flex;
  flex: 1;
  max-width: 600px;
  margin: 0 20px;
  overflow: hidden;
  border-radius: 4px;
  background-color: #fff;
}
.bottom-nav .search-bar input[type="text"],
.bottom-nav .search-bar select {
  padding: 8px;
  border: none;
  font-size: 14px;
}
.bottom-nav .search-bar input[type="text"] {
  flex: 2;
  border-radius: 4px 0 0 4px;
}
.bottom-nav .search-bar select {
  flex: 1;
  max-width: 200px;
  border-left: 1px solid #ddd;
}
.bottom-nav .search-bar button {
  padding: 8px 12px;
  background-color: var(--cinza-neve);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav .search-bar button:hover {
  background-color: var(--branco-rosado);
}
.bottom-nav .search-bar button i {
  color: var(--azul-profundo);
}
.bottom-nav .icons {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
}
.bottom-nav .icons .icon {
  position: relative;
  cursor: pointer;
}
.bottom-nav .icons .icon i {
  color: #fff;
  font-size: 18px;
}
.bottom-nav .icons .icon .badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: var(--vermelho-coral);
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
}

/*Section dos cards contendo categorias de livros*/
.featured-categories-list .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.featured-categories-list .see-all {
  text-decoration: none;
  color: var(--azul-profundo);
  font-weight: 500;
}
.featured-categories-list .see-all i {
  margin-left: 0.25rem;
}
.featured-categories-list .list-container {
  background-color: var(--branco-rosado);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}
.featured-categories-list ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.featured-categories-list li {
  flex: 1;
  text-align: center;
  position: relative;
}
.featured-categories-list li.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--branco-rosado);
}
.featured-categories-list li i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}
.featured-categories-list li span {
  display: block;
  font-size: 0.95rem;
  color: #000;
}
/* cores exatas para cada ícone */
.text-purple {
  color: #8e44ad;
} /* Artes e Fotografia */
.text-orange {
  color: #f39c12;
} /* Comida e Bebida */
.text-red {
  color: #c0392b;
} /* Romance */
.text-teal {
  color: #16a085;
} /* Saúde */
.text-pink {
  color: #e84393;
} /* Biografia */
.text-coral {
  color: var(--vermelho-coral);
} /* Esportes e Crianças */

/*Livros página home*/

/* CSS unificado para cards */
.card-book {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card-book img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  object-fit: cover;
}

.card-book .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #f75454;
  margin-bottom: 0.25rem;
}

.card-book .title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: #000; /* força cor preta */
}
.card-book .author {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: auto;
}

.card-book .price {
  font-size: 0.9rem;
  font-weight: bold;
  color: #041e42;
}

.card-book .old-price {
  font-size: 0.75rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

/* Hover: borda azul-profundo e sombra */
.card-book:hover {
  border-color: #041e42;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Botão “Detalhes” inicialmente oculto */
.card-book .btn-details {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  background-color: #041e42;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Exibe o botão ao passar o mouse */
.card-book:hover .btn-details {
  display: block;
}

/* Container com scroll horizontal quando não couber */
.featured-categories-list .list-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.featured-categories-list .list-container ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  padding: 0 1rem;
  margin: 0;
  list-style: none;
}

/* Cada item fixa largura mínima, mas encolhe se precisar */
.featured-categories-list .list-container li {
  flex: 0 0 auto;
  text-align: center;
}

/* Em tablets, permite duas colunas */
@media (max-width: 768px) {
  .featured-categories-list .list-container ul {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
  .featured-categories-list .list-container li {
    flex: 1 1 45%;
    margin-bottom: 1rem;
  }
}

/* Em smartphones, uma coluna */
@media (max-width: 576px) {
  .featured-categories-list .list-container li {
    flex: 1 1 100%;
  }
}

/* -------- Footer (adicione ao estilo.css) -------- */

/* cores */
.bg-lightpink {
  background-color: var(--cinza-neve);
}

/* Newsletter */
.newsletter-input {
  border: 1px solid #000;
  border-radius: 8px;
  height: 50px;
}
.btn-newsletter {
  background-color: #000;
  color: #fff;
  border-radius: 8px;
  height: 50px;
  border: none;
}

/* Footer principal */
.footer {
  color: #000;
}
.footer-address {
  font-style: normal;
  color: #333;
}
.social-icons a {
  color: #000;
  margin-right: 0.75rem;
  font-size: 1.25rem;
  transition: color 0.2s;
}
.social-icons a:hover {
  color: var(--vermelho-coral);
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--azul-profundo);
}

/* Footer bottom */
.payment-icons img {
  height: 24px;
  margin: 0 0.5rem;
  vertical-align: middle;
}
.footer-bottom small {
  color: #666;
}

/* Responsividade */
@media (max-width: 767.98px) {
  .newsletter-input,
  .btn-newsletter {
    width: 100%;
  }
  .payment-icons {
    order: 3;
  }
}
@media (max-width: 575.98px) {
  .footer-links {
    columns: 2;
    column-gap: 2rem;
  }
}
