/* SHOP PAGE */

.shop-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 56px;
}

/* --- Section Labels --- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 28px;
}

.section-header h2,
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--text-dark);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.section-header h2 span,
.section-title span {
  color: var(--pink);
  font-style: italic;
  margin-right: 6px;
}


/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dark);
  background-color: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
  color: #ccc;
}

.search-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(224, 122, 154, 0.12);
}

.filter-dropdowns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 100px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--pink);
  color: var(--pink);
}

/* Bootstrap dropdown override */
.dropdown-menu {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 24px var(--shadow);
  font-family: 'Quicksand', sans-serif;
}

.dropdown-item {
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--text);
  padding: 8px 14px;
  transition: background-color 0.15s, color 0.15s;
}

.dropdown-item:hover,
.dropdown-item.active-filter {
  background-color: #fdf0f4;
  color: var(--pink);
}

/* Active filter tags */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  min-height: 0;
}

.filter-tag {
  background-color: var(--pink-light);
  color: var(--pink);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-tag button {
  background: none;
  border: none;
  color: var(--pink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}

/* --- Albums Grid --- */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Override card max-width for shop grid */
.albums-grid .card,
.new-releases-grid .card {
  max-width: 100%;
  background-color: white;
  border: none;
  box-shadow: 0 4px 20px var(--shadow);
}

.albums-grid .card:hover,
.new-releases-grid .card:hover {
  border: 1.5px solid var(--pink);
  box-shadow: 0 12px 32px rgba(224, 122, 154, 0.2);
}

/* Smaller card text for 5-column grid */
.albums-grid .card h3,
.new-releases-grid .card h3 {
  font-size: 1rem;
}

.albums-grid .card-price,
.new-releases-grid .card-price {
  font-size: 0.88rem;
}

/* No result */
.no-result {
  text-align: center;
  padding: 48px 0;
  color: var(--text);
  font-size: 0.9rem;
}

/* pagination */
.album-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin:50px 0;
  flex-wrap:wrap;
}

.album-page-btn{
  text-decoration:none;
  padding:10px 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid #f0d8e2;
  color:#555;
  font-weight:600;
  transition:.2s;
}

.album-page-btn:hover{
  background:#fdf0f4;
  border-color:#e07a9a;
  color:#e07a9a;
}

.album-page-btn.active{
  background:#e07a9a;
  color:#fff;
  border-color:#e07a9a;
}

/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet */
@media (max-width: 1200px) {
  .shop-container {
    padding: 0 32px;
  }

  .new-releases-grid,
  .albums-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .new-releases-grid,
  .albums-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile landscape / large phone */
@media (max-width: 768px) {
  .shop-container {
    padding: 0 20px;
  }

  .new-releases {
    padding: 40px 0 32px;
  }

  .all-albums {
    padding: 40px 0 56px;
  }

  .new-releases-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .albums-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    width: 100%;
  }

  .filter-dropdowns {
    justify-content: flex-start;
  }

  .artist-avatar {
    width: 68px;
    height: 68px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .new-releases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .albums-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header h2,
  .section-title {
    font-size: 1.3rem;
  }
}