:root {
  --gold: #c9a24d;
  --gold-dark: #a88432;
  --stone: #f3f0ea;
  --stone-dark: #e6e2da;
  --ink: #1a1a1a;
  --muted: #6f6f6f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cinzel', sans-serif;
  background: var(--stone);
  color: var(--ink);
  line-height: 1.6;
}

/* HEADER */
header {
  background: var(--stone-dark);
  border-bottom: 1px solid #ddd;
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 5px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 220px;
}

nav a {
  margin-left: 32px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--ink);
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* ================= TÍTULO ================= */

.catalog-title {
  font-family: 'Cinzel';
  font-size: 2.2rem;
  text-align: center;
  margin: 50px 0 40px 0;
  color: var(--gold);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
}

/* ================= LAYOUT ================= */

.catalog-container {
  width: 100%;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 0 40px 100px 20px;
  align-items: start;
}

/* ================= SIDEBAR ================= */

.filters h2 {
  font-family: 'Cinzel', serif ;
  font-weight: 700;
}

.filters-sidebar {
  background: #e3dfd6;
  border-radius: 8px;
  padding: 25px;
  border: 1px solid #d6d1c7;
}

.filters-sidebar h3 {
  font-family: 'Cinzel' serif;
  margin-bottom: 20px;
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Checkbox redondo */

.filter-group label {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-group input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold-dark);
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  cursor: pointer;
}

.filter-group input[type="checkbox"]:checked {
  background: var(--gold-dark);
}

.filter-group input[type="checkbox"]:checked::after {
  content: "";
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ================= SLIDER ================= */

.range-container {
  position: relative;
  height: 35px;
}

/* Barra base */
.range-container input[type="range"] {
  position: absolute;
  width: 100%;
  height: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  appearance: none;
  pointer-events: none;
  z-index: 2;
}

/* Barra cinza de fundo */
.range-container::before {
  content: "";
  position: absolute;
  height: 4px;
  width: 100%;
  background: #c9c5bb;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px;
  z-index: 1;
}

/* Barra dourada entre os pontos */
.slider-track {
  position: absolute;
  height: 4px;
  background: var(--gold-dark);
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px;
  z-index: 1;
}
.price-input input {
  width: 55px;
  border: none;
  background: transparent;
  font-weight: bold;
  color: var(--gold-dark);
  text-align: center;
  outline: none;
  font-size: 0.9rem;
}

.price-input input::-webkit-inner-spin-button {
  display: none;
}


/* Bolinhas */
.range-container input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  pointer-events: all;
  width: 16px;
  height: 16px;
  background: var(--gold-dark);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 3;
}
.price-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 12px;
}



/* ================= GRID ================= */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}

/* ================= CARD ================= */

.game-card {
  background: #e3dfd6;
  border-radius: 8px;
  padding: 18px;
  border: 1px solid #d6d1c7;
  transition: 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.title-row h3 {
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.price {
  font-weight: bold;
  color: var(--gold-dark);
  font-size: 0.9rem;
}

.add-btn {
  padding: 10px;
  border: 1px solid var(--gold);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

.add-btn:hover {
  background: var(--gold);
  color: white;
}

/* ================= FOOTER ================= */

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  background: #eae6dd;
  color: var(--muted);
}
.add-btn {
  display: block;
  padding: 10px;
  border: 1px solid var(--gold);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  text-align: center;

  text-decoration: none;   /* remove sublinhado */
  color: var(--ink);       /* remove azul */
}
/* ================= PAGINAÇÃO ================= */

.pagination {
  margin: 50px 0;
  text-align: center;
}

.pagination button {
  min-width: 38px;
  height: 38px;
  margin: 0 8px;
  border: 1px solid var(--gold);
  background: white;
  color: var(--gold-dark);
  cursor: pointer;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pagination button:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-2px);
}

.pagination button.active-page {
  background: var(--gold-dark);
  color: white;
  border: 1px solid var(--gold-dark);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.filtro-pesquisa {
    margin-bottom: 20px;
}

#searchGame {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.sort-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

#sortSelect {
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid #c6a84f; /* Gold */
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: 0.3s ease;
}
#sortSelect:focus {
  border-color: #e5c76b;
  box-shadow: 0 0 8px rgba(198, 168, 79, 0.6);
}
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.clear-filters-btn {
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: 0.2s;
}

.clear-filters-btn:hover {
  background: var(--gold);
  color: white;
}
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-header h3 {
  margin: 0; /* remove margem padrão do h3 */
}
.site-footer {
  background: var(--stone-dark);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 60px;
}

.footer-content {
  font-family: 'Cinzel', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.site-footer a {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.site-footer a:hover {
  color: var(--gold);
}



/* ================= RESPONSIVO ================= */

@media (max-width: 900px) {

  .catalog-container {
    grid-template-columns: 1fr;
    padding: 0 20px 80px;
  }

  .filters-sidebar {
    margin-bottom: 30px;
  }

  .catalog-title {
    font-size: 1.8rem;
    margin: 40px 0;
  }

  .nav {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 8px 12px;
    font-size: 0.85rem;
  }

  .logo img {
    height: 90px;
  }


}