.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ── Filtros por marca ─────────────────────────────────── */
.brand-filters {
  margin-bottom: 20px;
  padding: 0 12px;
}

/* ── Filter bar (wraps toggle + desktop dropdown) ── */
.filter-bar {
  position: relative;
  display: inline-block;
}

/* ── Toggle button ── */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.filter-toggle:hover {
  background: #333;
  color: #fff;
}

.filter-toggle i {
  font-size: 18px;
  line-height: 1;
}

.toggle-arrow {
  transition: transform 0.25s ease;
}

.filter-toggle[aria-expanded="true"] .toggle-arrow {
  transform: rotate(180deg);
}

/* ── Desktop dropdown ── */
.filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  background: #fff;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 12px;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 220px;
  box-shadow: 4px 4px 0 #333;
}

.filter-dropdown.open {
  display: flex;
}

/* ── Shared pill button ── */
.filter-btn {
  padding: 8px 18px;
  border: 2px solid #333;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #333;
  color: white;
}

.filter-btn.active {
  background: #333;
  color: white;
}

/* ── Mobile / tablet popup overlay ── */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  align-items: flex-end;
}

.filter-overlay.open {
  display: flex;
}

.filter-popup {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 1.25rem 1.25rem 2rem;
  animation: slideUp 0.28s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.filter-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.filter-popup-header span {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.filter-popup-close i {
  font-size: 24px;
  color: #333;
}

.filter-popup-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  font-size: 16px;
  padding: 40px 0;
}

/* ───────────────────────────────────────────────────────── */

.loader {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  margin: 40px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.shoe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 12px;
}

@media (max-width: 599px) {
  .card {
    max-width: 320px;
    margin-inline: auto;
  }
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 15px;
}

.brand {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
  text-transform: capitalize;
}

.model {
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.color {
  font-size: 14px;
  color: #444;
  text-transform: capitalize;
}

@media (min-width: 600px) {
  .shoe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .shoe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


@media (min-width: 1300px) {
  .container {
    max-width: 75%;
  }

  .shoe-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .brand {
    font-size: 16px;
  }

  .model {
    font-size: 18px;
  }

  .color {
    font-size: 16px;
  }
}

@media (min-width: 1450px) {
  .brand {
    font-size: 18px;
  }

  .model {
    font-size: 20px;
  }

  .color {
    font-size: 18px;
  }
}
