/* ===== PAGE SINGLE ARTIST ===== */
.artist-page,
.artist-page * {
  box-sizing: border-box;
}

.artist-page {
  overflow-x: clip;
}

.filters-toggle {
  display: none;
}

body.artist-filters-open {
  overflow: hidden;
}

.artist-grid {
  display: grid;
  grid-template-areas:
    "sidebar info"
    "sidebar sugg"
    "sidebar products";
  grid-template-columns: 260px minmax(0, 1fr);
  column-gap: 22px;
  row-gap: 0;
  max-width: 1320px;
  margin: 30px auto;
  padding: 0 18px;
  align-items: start;
  min-width: 0;
}

.artist-grid .sidebar { grid-area: sidebar; }
.artist-grid .info { grid-area: info; }
.artist-grid .suggestions { grid-area: sugg; }
.artist-grid .products { grid-area: products; }

.artist-grid .info,
.artist-grid .suggestions,
.artist-grid .products,
.artist-grid .sidebar {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.artist-grid .sidebar,
.artist-grid .info,
.artist-grid .suggestions,
.artist-grid .products,
.artist-grid #artist-products-container,
.artist-grid .products-grid {
  min-width: 0;
  max-width: 100%;
}

/* ===== SIDEBAR ===== */
.artist-grid .sidebar {
  position: sticky;
  top: 20px;
  padding: 18px;
}

.sidebar h3 {
  font-size: 15px;
  color: #1e3a5f;
  margin: 0 0 10px;
}

.artist-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.artist-filters label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-top: 8px;
}

.artist-filters select,
.artist-filters input[type="number"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #222;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.artist-filters select:focus,
.artist-filters input[type="number"]:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.artist-filters .price-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.artist-filters .price-range input {
  flex: 1;
  min-width: 0;
}

.artist-filters .price-range span {
  font-size: 14px;
  color: #666;
  padding: 0 2px;
}

.artist-filters .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  background: #1e3a5f;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.artist-filters .button:hover {
  background: #2b4a77;
}

.artist-filters .button:active {
  transform: translateY(1px);
}

/* ===== INFO ===== */
.info {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
}

.artist-photo {
  flex: 0 0 130px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e6e6e6;
}

.artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-info-content {
  flex: 1;
  min-width: 0;
}

.artist-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #1e3a5f;
  text-transform: uppercase;
}

.artist-resume {
  margin-top: 8px;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

.artist-resume.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
}

.toggle-resume {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a5f;
  cursor: pointer;
  transition: color 0.2s ease;
}

.toggle-resume:hover {
  color: #274d7d;
}

/* ===== SUGESTÕES ===== */
.artist-grid .suggestions {
  margin-top: 10px;
  padding: 18px 20px;
}

.artist-grid .suggestions h3 {
  font-size: 14px;
  color: #1e3a5f;
  margin: 0 0 10px;
}

.suggestions-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.suggestions-grid::-webkit-scrollbar {
  height: 6px;
}

.suggestions-grid::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 999px;
}

.sugg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: center;
  min-width: 84px;
  transition: transform .15s ease;
}

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

.sugg-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e6e6e6;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sugg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sugg-name {
  margin-top: 6px;
  font-size: 11.5px;
  max-width: 85px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.noimg {
  font-size: 11px;
  color: #888;
}

/* ===== PRODUTOS ===== */
.products {
  padding: 18px 20px;
}

.products h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #1e3a5f;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.products-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* ===== PAGINAÇÃO ===== */
.artists-pagination {
  display: flex;
  justify-content: center;
  margin: 24px 0 0;
}

.artists-pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.artists-pagination .page-numbers a,
.artists-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #1e3a5f;
  text-decoration: none;
  background: #fff;
}

.artists-pagination .current {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

.artists-pagination .page-numbers a:hover {
  background: #f5f5f5;
}

.artists-pagination .dots {
  border: none;
  background: transparent;
  color: #666;
  min-width: auto;
  padding: 0 2px;
}

.muted {
  color: #777;
  font-style: italic;
}

.filters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.filters-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .artist-page {
    overflow-x: hidden;
  }

  .artist-grid {
    grid-template-areas:
      "info"
      "sugg"
      "products"
      "sidebar";
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 14px;
  }

  .filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 14px 0;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background: #1e3a5f;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
  }

  .artist-grid .sidebar {
    position: fixed;
    top: 12px;
    left: -100%;
    width: min(65vw, 220px);
    max-width: 220px;
    height: auto;
    max-height: calc(100vh - 24px);
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left 0.3s ease;
    padding: 16px 14px;
    border-radius: 12px 12px 12px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }

  .artist-grid .sidebar.active {
    left: 0;
  }

  .artist-grid .info,
  .artist-grid .suggestions,
  .artist-grid .products {
    padding: 16px 14px;
  }

  .artist-filters,
  .artist-filters * {
    min-width: 0;
    max-width: 100%;
  }

  .artist-filters .price-range {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .artist-filters .price-range span {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .artist-photo {
    width: 120px;
    height: 120px;
  }

  .artist-info-content {
    width: 100%;
  }

  .artist-resume {
    max-width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .artist-grid {
    padding: 0 12px;
  }

  .filters-toggle {
    margin: 14px 12px 0;
  }

  .artist-title {
    font-size: 20px;
  }

  .artist-grid .info,
  .artist-grid .suggestions,
  .artist-grid .products {
    padding: 14px 12px;
  }
}

@media (max-width: 390px) and (min-width: 321px) {
  .artist-grid .sidebar {
    width: min(65vw, 220px);
    max-width: 220px;
    padding: 16px 14px;
  }

  .artist-filters label {
    font-size: 13px;
    margin-top: 6px;
  }

  .artist-filters select,
  .artist-filters input[type="number"] {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .artist-filters .button {
    min-height: 40px;
    font-size: 13px;
  }

  .products-grid {
    gap: 12px;
  }
}

@media (max-width: 320px) {
  .artist-grid {
    padding: 0 10px;
  }

  .artist-grid .sidebar {
    width: min(65vw, 200px);
    max-width: 200px;
    padding: 14px 12px;
  }

  .artist-filters label {
    font-size: 12px;
    margin-top: 6px;
  }

  .artist-filters select,
  .artist-filters input[type="number"] {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .artist-filters .button {
    min-height: 38px;
    font-size: 12px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}