.page-collections {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #000000;
}

.coll {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px 96px;
}

/* ===================== HEADER ===================== */

.coll-header {
  padding: 56px 0 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.coll-header__badge {
  display: inline-block;
  background: #f2f2f2;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.coll-header__title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.coll-header__subtitle {
  color: rgba(0, 0, 0, 0.62);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.coll-pill-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.coll-pill {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  /* Category tabs are links now (server-side filtering), but they keep the
     exact pill shape and type they had as static labels. */
  text-decoration: none;
  color: #000;
  background: #f2f2f2;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.coll-pill:hover {
  border-color: rgba(0, 0, 0, 0.25);
}

.coll-pill.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.coll-empty {
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
  font-size: 15px;
  font-weight: 600;
  padding: 64px 24px 80px;
  margin: 0;
}

.coll-pill-count {
  color: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 500;
}

/* ===================== PRODUCT GRID ===================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 250ms ease, border-color 250ms ease;
}

.product-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f2f2f2;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 250ms ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-card__wishlist:hover {
  background: #000;
  color: #fff;
}

.product-card__wishlist.is-active {
  background: #000;
  color: #fff;
}

.product-card__wishlist.is-active svg {
  fill: currentColor;
}

.product-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.product-card__rating-value {
  font-size: 12.5px;
  font-weight: 800;
}

.product-card__rating-count {
  font-size: 11.5px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 600;
}

.product-card__rating-empty {
  font-size: 11.5px;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 600;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.product-card__price {
  font-size: 16px;
  font-weight: 800;
}

.product-card__price-compare {
  font-size: 12.5px;
  color: rgba(0, 0, 0, 0.4);
  text-decoration: line-through;
}

.product-card__discount-badge {
  font-size: 11px;
  font-weight: 800;
  color: #1a9850;
  background: #eafaf0;
  padding: 2px 8px;
  border-radius: 999px;
}

.product-card__savings {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #1a9850;
  background: #eafaf0;
  padding: 3px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.product-card__meta {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.product-card__color {
  font-size: 12.5px;
  color: rgba(0, 0, 0, 0.5);
}

.product-card__cta {
  margin-top: auto;
  text-align: center;
  padding: 11px 20px;
  font-size: 13px;
  background: #000;
  color: #fff;
}

.product-card__cta:hover {
  opacity: 0.85;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .coll { padding: 0 24px 72px; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .coll-header { padding: 36px 0 28px; }
  .product-card__body { padding: 14px 14px 16px; }
  .product-card__name { font-size: 13.5px; }
  .product-card__cta { font-size: 12px; padding: 9px 16px; }
}
