/* Shop / archive — filter bar + product cards (from storefront-son, WORLDPO RU) */

.ap-listing-bg {
  background: #f3f5f8;
  padding: 0 0 40px;
}

.wpo-shop-head {
  padding: 36px 0 20px;
  text-align: center;
}

.wpo-shop-head__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: var(--wpo-ink, #0a1628);
  line-height: 1.25;
}

.wpo-shop-head__desc {
  margin: 12px auto 0;
  max-width: 52rem;
  color: #4a5568;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Tag / brand / search: stronger page-head band (no filter bar below) */
.wpo-shop-head--band {
  background: #fff;
  border-bottom: 1px solid #e4e9ef;
  padding: 40px 0 34px;
  margin-bottom: 28px;
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.03);
}

.wpo-shop-head__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8796;
}

.wpo-shop-head--band .wpo-shop-head__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--wpo-accent, #c82019);
}

/* Filter bar */
.wpo-filter-bar {
  max-width: var(--wpo-container, 1140px);
  margin: 0 auto 28px;
  border-top: 3px solid var(--wpo-accent, #c82019);
  border-bottom: 1px solid #e8e8e8;
  padding: 18px 20px;
  background: #fff;
  box-sizing: border-box;
}

.wpo-filter-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wpo-filter-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.wpo-filter-group__label {
  flex-shrink: 0;
  width: 140px;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.wpo-filter-group.wpo-has-selection .wpo-filter-group__label {
  color: var(--wpo-accent, #c82019);
}

.wpo-filter-group__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.wpo-filter-group__options a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  color: #555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.wpo-filter-group__options a:hover {
  color: var(--wpo-accent, #c82019);
  border-color: var(--wpo-accent, #c82019);
  background: #fff5f4;
}

.wpo-filter-group__options a.wpo-is-active {
  color: #fff;
  font-weight: 600;
  background: var(--wpo-accent, #c82019);
  border-color: var(--wpo-accent, #c82019);
}

.wpo-filter-bar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 4px;
}

.wpo-filter-bar__actions::before {
  content: "";
  flex-shrink: 0;
  width: 140px;
}

.wpo-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: #c62828;
  background: #fff5f5;
  border: 2px solid #c62828;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.wpo-filter-reset::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.wpo-filter-reset:hover {
  color: #fff;
  background: #c62828;
}

.wpo-filter-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--wpo-ink, #0a1628);
  border: 2px solid var(--wpo-ink, #0a1628);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.wpo-filter-quote:hover {
  background: var(--wpo-accent, #c82019);
  border-color: var(--wpo-accent, #c82019);
  color: #fff;
}

.wpo-filter-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  background: #fff5f4;
  border: 1px solid #f0c4c0;
  border-left: 4px solid var(--wpo-accent, #c82019);
  border-radius: 4px;
}

.wpo-filter-tip__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wpo-accent, #c82019);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wpo-filter-tip__body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #444;
}

.wpo-filter-tip__body p + p {
  margin-top: 6px;
}

/* Product grid — same as original list-4 */
.page-product__list1 .list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-product__list1 .list li {
  width: 23.5%;
  margin: 0 2% 20px 0;
  background: #fff;
  padding: 20px 12px 16px;
  box-sizing: border-box;
  border: 1px solid #eee;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.page-product__list1 .list li:nth-child(4n) {
  margin-right: 0;
}

.page-product__list1 .list li:hover {
  box-shadow: 0 12px 28px rgba(10, 22, 40, 0.1);
  transform: translateY(-2px);
}

.ap-item-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ap-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.ap-item-figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 160px;
  padding: 10px;
  box-sizing: border-box;
  background: #fafafa;
}

.ap-item-figure img {
  max-height: 130px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ap-item-article {
  text-align: center;
  padding: 12px 8px 4px;
  width: 100%;
}

.ap-item-article .item-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #222;
}

.ap-item-article .item-attr {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  min-height: 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

.ap-item-article .item-attr p {
  margin: 0;
}

.ap-item-price {
  margin-top: 6px;
  font-size: 13px;
  color: var(--wpo-accent, #c82019);
  font-weight: 600;
}

.ap-item-price del {
  color: #bbb;
  font-size: 11px;
  font-weight: 400;
  margin-right: 4px;
}

.ap-item-price ins {
  text-decoration: none;
}

.ap-no-results {
  text-align: center;
  padding: 48px 20px;
  color: #666;
  background: #fff;
  border: 1px dashed #ddd;
}

/* Pagination — European minimal style */
.ap-pages-wrap {
  padding: 28px 0 64px;
}

.ap-pages-clean ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ap-pages-clean li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ap-pages-clean .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: #5a6573;
  text-decoration: none;
  font-family: var(--wpo-font, "Manrope", "IBM Plex Sans", sans-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0;
  position: relative;
  transition: color 0.2s ease;
}

.ap-pages-clean .page-numbers:not(.dots):not(.current)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--wpo-accent, #c82019);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.ap-pages-clean a.page-numbers:hover {
  color: var(--wpo-ink, #0a1628);
  background: transparent;
}

.ap-pages-clean a.page-numbers:hover::after {
  width: 14px;
}

.ap-pages-clean .page-numbers.current {
  color: var(--wpo-ink, #0a1628);
  font-weight: 700;
  background: transparent;
}

.ap-pages-clean .page-numbers.current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 18px;
  height: 2px;
  background: var(--wpo-accent, #c82019);
  transform: translateX(-50%);
}

.ap-pages-clean .page-numbers.dots {
  color: #a0a8b4;
  letter-spacing: 0.12em;
  min-width: 28px;
  pointer-events: none;
}

.ap-pages-clean .page-numbers.prev,
.ap-pages-clean .page-numbers.next {
  font-size: 16px;
  color: #8a93a0;
}

.ap-pages-clean .page-numbers.prev:hover,
.ap-pages-clean .page-numbers.next:hover {
  color: var(--wpo-accent, #c82019);
}

.ap-pages-clean .page-numbers.prev::after,
.ap-pages-clean .page-numbers.next::after {
  display: none;
}

@media (max-width: 980px) {
  .wpo-filter-group {
    flex-direction: column;
    gap: 8px;
  }

  .wpo-filter-group__label,
  .wpo-filter-bar__actions::before {
    width: auto;
  }

  .wpo-filter-bar__actions {
    flex-wrap: wrap;
  }

  .page-product__list1 .list li {
    width: 49%;
    margin: 0 0 12px;
  }

  .page-product__list1 .list {
    justify-content: space-between;
  }

  .page-product__list1 .list li:nth-child(4n) {
    margin-right: 0;
  }
}

@media (max-width: 560px) {
  .page-product__list1 .list li {
    width: 100%;
  }
}
