/* Shop-only product count and pagination. Existing grid/sidebar/card styles remain unchanged. */
.shop-page-heritage .shop-product-count {
  margin: 0 0 18px;
  color: #666;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.shop-page-heritage .shop-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 44px 0 0;
}

.shop-page-heritage .shop-pagination[hidden] {
  display: none !important;
}

.shop-page-heritage .shop-pagination button,
.shop-page-heritage .shop-pagination-ellipsis {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.shop-page-heritage .shop-pagination button {
  padding: 0 12px;
  border: 1px solid var(--ft-line);
  background: #fff;
  color: var(--ft-ink);
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.shop-page-heritage .shop-pagination button:hover,
.shop-page-heritage .shop-pagination button:focus-visible {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
}

.shop-page-heritage .shop-pagination button.is-active {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

.shop-page-heritage .shop-pagination button:disabled {
  opacity: .45;
  cursor: default;
  box-shadow: none;
}

.shop-page-heritage .shop-pagination-direction {
  min-width: auto !important;
}

.shop-page-heritage .shop-pagination-ellipsis {
  color: #777;
}

@media (max-width: 575px) {
  .shop-page-heritage .shop-product-count {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .shop-page-heritage .shop-pagination {
    gap: 6px;
    margin-top: 34px;
  }

  .shop-page-heritage .shop-pagination button,
  .shop-page-heritage .shop-pagination-ellipsis {
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
    font-size: 12px;
  }
}

/* Shop-only product-card content containment.
   Prevent long catalogue text/actions from escaping the existing card without
   changing the grid, card dimensions, typography, or responsive columns. */
.shop-page-heritage .shop-product-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden !important;
}

.shop-page-heritage .shop-product-card .product-info {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.shop-page-heritage .shop-product-card .product-category,
.shop-page-heritage .shop-product-card .product-info h3,
.shop-page-heritage .shop-product-card .product-info h3 a,
.shop-page-heritage .shop-product-card .product-price,
.shop-page-heritage .shop-product-card .shop-product-description {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.shop-page-heritage .shop-product-card .shop-card-actions {
  min-width: 0;
  max-width: 100%;
}

.shop-page-heritage .shop-product-card .shop-card-actions > * {
  min-width: 0;
  max-width: 100%;
}

.shop-page-heritage .shop-product-card .shop-view-btn.vs-btn,
.shop-page-heritage .shop-product-card .shop-add-btn.vs-btn {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
}
