/* ── Collection header ── */
.hg-cl__header {
  margin-bottom: 1.5rem;
}

.hg-cl__header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--clr-primary, #212121);
  margin: 0;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .hg-cl__header h2 {
    font-size: 2rem;
  }
}

/* ── Product grid ── */
.hg-cl__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .hg-cl__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* ── Product card ── */
.hg-cl__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.hg-cl__card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ── Image area ── */
.hg-cl__card-img-link {
  display: block;
  text-decoration: none;
}

.hg-cl__card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #f5f5f5;
}

.hg-cl__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.hg-cl__card-img-link:hover .hg-cl__card-img {
  transform: scale(1.03);
}

.hg-cl__card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}

/* ── Sold out badge (overlays image top-right) ── */
.hg-cl__card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  z-index: 2;
}

.hg-cl__card-badge--soldout {
  background: #fff;
  color: var(--clr-primary, #212121);
}

/* ── Wishlist heart ── */
.hg-cl__card-wishlist {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666;
  z-index: 2;
  transition: color 0.2s ease;
}

.hg-cl__card-badge--soldout ~ .hg-cl__card-wishlist {
  top: 2.5rem;
}

.hg-cl__card-wishlist svg {
  width: 22px;
  height: 22px;
}

.hg-cl__card-wishlist:hover {
  color: var(--clr-primary, #212121);
}

/* ── Card body ── */
.hg-cl__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem 1rem;
  flex: 1;
}

.hg-cl__card-title-link {
  text-decoration: none;
  color: inherit;
}

.hg-cl__card-title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: var(--clr-primary, #212121);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hg-cl__card-soldout-text {
  font-size: 0.8125rem;
  color: var(--clr-neutral, #737373);
}

/* ── Price + rating row ── */
.hg-cl__card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.125rem;
}

.hg-cl__card-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--clr-primary, #212121);
}

.hg-cl__card-rating {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.hg-cl__star {
  width: 14px;
  height: 14px;
}

.hg-cl__star--filled {
  color: var(--clr-primary, #212121);
}

.hg-cl__star--empty {
  color: #ccc;
}

.hg-cl__rating-count {
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.25rem;
  color: var(--clr-neutral, #737373);
}

/* ── Actions: subscription select + quick add ── */
.hg-cl__card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.hg-cl__purchase-select-wrap {
  position: relative;
}

.hg-cl__purchase-select {
  width: 100%;
  padding: 0.625rem 2rem 0.625rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: #fff;
  color: var(--clr-primary, #212121);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.hg-cl__select-chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  color: var(--clr-neutral, #737373);
}

.hg-cl__add-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  background-color: var(--clr-primary, #212121);
  color: #fff;
  transition: opacity 0.2s ease;
}

.hg-cl__add-btn:hover:not(:disabled) {
  opacity: 0.88;
}

.hg-cl__add-btn--disabled {
  background-color: var(--clr-neutral, #737373);
  cursor: not-allowed;
  opacity: 0.6;
}
