/* ===== 产品列表页样式 ===== */
/* 后续产品列表相关样式请在此文件修改 */

.product-listing-page {
  padding-bottom: 2rem;
}

.listing-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d1f21;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.product-listing-page .breadcrumb {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.75rem 0 0;
  margin-bottom: 0.5rem;
}

.product-listing-page .breadcrumb-item,
.product-listing-page .breadcrumb-item a {
  font-size: 0.8125rem;
  color: #666666;
}

.product-listing-page .breadcrumb-item a:hover {
  color: var(--brand-accent);
}

.product-listing-page .breadcrumb-item + .breadcrumb-item::before {
  color: #cccccc;
}

.listing-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.listing-toolbar {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ebebeb;
}

.listing-toolbar .vw-toolbar-select .input-group-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #666666;
  background: #f8f8f8;
  border-color: #e0e0e0;
}

.listing-toolbar .form-select {
  font-size: 0.8125rem;
  border-color: #e0e0e0;
  min-width: 120px;
}

/* 产品列表：响应式网格 */
.product-listing-page .vw-listing-grid {
  margin-bottom: 0;
}

.product-listing-page .vw-listing-grid > [class*="col"] {
  display: flex;
}

@media (max-width: 767.98px) {
  .listing-toolbar-row {
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }

  .listing-toolbar-compare {
    flex: 0 0 auto;
  }

  .listing-toolbar-compare .btn {
    padding: 0.375rem 0.625rem;
  }

  .listing-toolbar-sort {
    flex: 1 1 0;
    min-width: 0;
    margin-left: auto !important;
  }

  .listing-toolbar-limit {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 38%;
  }

  .listing-toolbar-sort .input-group-text,
  .listing-toolbar-limit .input-group-text {
    display: none;
  }

  .listing-toolbar-sort .input-group,
  .listing-toolbar-limit .input-group {
    min-width: 0;
  }

  .listing-toolbar .form-select {
    font-size: 0.8125rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 1.75rem;
    min-width: 0;
  }
}

.search-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  box-shadow: var(--box-shadow-sm);
}

.listing-empty {
  background: #f8f8f8;
  border-radius: var(--border-radius-md);
  border: 1px dashed #e0e0e0;
}

/* 翻页组件 */
.listing-pagination {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8ecf0;
}

.listing-pagination .pagination-wrap {
  display: flex;
  justify-content: center;
}

.pagination-minimal-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1rem;
  min-height: 3rem;
  max-width: 100%;
  white-space: nowrap;
}

.pagination-minimal-arrow {
  flex: 0 0 auto;
}

.pagination-minimal-arrow a,
.pagination-minimal-arrow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: #333333 !important;
  text-decoration: none !important;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 400;
  user-select: none;
  transition: color 0.2s ease;
}

.pagination-minimal-arrow.is-disabled span {
  color: #c8c8c8 !important;
}

.pagination-minimal-arrow a:hover {
  color: #111111 !important;
}

.pagination-minimal-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pagination-minimal-pages::-webkit-scrollbar {
  display: none;
}

.pagination-minimal-pages li {
  flex: 0 0 auto;
}

.pagination-minimal-pages li a,
.pagination-minimal-pages li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.35rem;
  color: #333333 !important;
  text-decoration: none !important;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  box-sizing: border-box;
  transition: color 0.2s ease;
}

.pagination-minimal-pages li.is-active span {
  border: 1px solid #333333;
  color: #111111 !important;
}

.pagination-minimal-pages li a:hover {
  color: #111111 !important;
}

.pagination-minimal-ellipsis span {
  min-width: auto;
  color: #777777 !important;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

@media (max-width: 575.98px) {
  .pagination-minimal-inner {
    gap: 0.5rem;
  }

  .pagination-minimal-pages {
    gap: 0.75rem;
  }
}

/* 子分类 */
.subcategory-section {
  background: #f8fafc;
  border-radius: var(--border-radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
}

.subcategory-link {
  display: block;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-sm);
  color: #4a5568;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  text-align: center;
}

.subcategory-link:hover {
  color: var(--brand-primary);
  border-color: rgba(var(--brand-primary-rgb), 0.35);
  background: rgba(var(--brand-primary-rgb), 0.04);
}

.subcategory-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subcategory-list li a {
  display: block;
  padding: 0.35rem 0;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.subcategory-list li a:hover {
  color: var(--brand-primary);
}

/* 分类页头部 */
.category-header-banner {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.category-image img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-sm);
}

.category-description {
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-md);
  margin-top: 15px;
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
}

/* 产品卡片 — Velocity Weave */
.product-thumb,
.vw-product-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: var(--transition-smooth);
}

.product-thumb:hover,
.vw-product-card:hover {
  transform: none;
  box-shadow: none;
}

.product-thumb .image,
.vw-product-card .image {
  text-align: center;
  padding: 0;
  background: #f8f8f8;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius-md);
  margin-bottom: 0.75rem;
}

.product-thumb .image img,
.vw-product-card .image img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-thumb:hover .image img,
.vw-product-card:hover .image img {
  transform: scale(1.03);
}

.vw-product-title,
.product-thumb .description h4 {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.vw-product-title a,
.product-thumb .description h4 a {
  color: #1d1f21;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vw-product-title a:hover,
.product-thumb .description h4 a:hover {
  color: var(--brand-accent);
}

.vw-product-price .price-new,
.product-thumb .price-new {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d1f21;
}

.vw-product-price .price-old,
.product-thumb .price-old {
  font-size: 0.8rem;
  color: #999999;
}

.vw-product-actions {
  position: absolute;
  right: 0.5rem;
  bottom: calc(100% - 2.5rem);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.vw-product-card:hover .vw-product-actions {
  opacity: 1;
}

.vw-quick-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #1d1f21;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
}

.vw-quick-add:hover {
  background: var(--brand-accent);
}

.product-thumb .wishlist-btn,
.product-thumb .compare-btn,
.product-thumb .btn-add-cart,
.product-thumb .button {
  display: none;
}

.product-thumb .content {
  padding: 0;
}

.rating .fa-star {
  color: var(--brand-secondary);
  font-size: 0.8rem;
  margin-right: 2px;
}

.price {
  margin-bottom: 8px;
}

.price-new {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d1f21;
}

.price-old {
  font-size: 0.85rem;
  color: #a0aec0;
  text-decoration: line-through;
  margin-left: 6px;
}

.price-tax {
  color: #718096;
  font-size: 0.75rem;
  display: block;
  margin-top: 2px;
}

.related-products-section {
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 767.98px) {
  .listing-page-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}
