/* ai-kw-generator 深色主题 — PostList 产品列表 */

[data-postlist-product-list] .postlist-product__filters {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

[data-postlist-product-list] .postlist-product__filters::-webkit-scrollbar {
  display: none;
}

[data-postlist-product-list] .postlist-product__filter-pill {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

[data-postlist-product-list] .postlist-product__filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

[data-postlist-product-list] .postlist-product__filter-pill[aria-current='page'],
[data-postlist-product-list] .postlist-product__filter-pill.border-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

[data-postlist-product-list] .postlist-product__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  [data-postlist-product-list] .postlist-product__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  [data-postlist-product-list] .postlist-product__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  [data-postlist-product-list] .postlist-product__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

[data-postlist-product-list] .postlist-product__media {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

[data-postlist-product-list] .postlist-product__actions {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

[data-postlist-product-list] .postlist-product__card:hover .postlist-product__actions,
[data-postlist-product-list] .postlist-product__card:focus-within .postlist-product__actions {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  [data-postlist-product-list] .postlist-product__actions {
    opacity: 1;
    transform: none;
  }
}

[data-postlist-product-list] .postlist-product__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

[data-postlist-product-list] .postlist-product__action:hover {
  transform: scale(1.05);
}

[data-postlist-product-list] .postlist-product__action--wishlist.postlist-product__wishlist--active {
  color: #e11d48;
}

[data-postlist-product-list] .postlist-product__action--wishlist.postlist-product__wishlist--active .postlist-product__wishlist-icon {
  fill: currentColor;
}

[data-postlist-product-list] .postlist-product__page-btn[aria-current='page'],
[data-postlist-product-list] .postlist-product__page-btn.border-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

[data-postlist-product-list] .postlist-product__card.postlist-card--enhanced:hover {
  transform: translateY(-2px);
}

[data-postlist-product-list] .postlist-product__card.postlist-card--enhanced {
  transition: transform 0.25s ease;
}
