/* Product listings: /products/, category pages and search results */

.page-banner--category .breadcrumb { margin-bottom: 16px; }
.page-banner--category .container { gap: 20px; }

.shop { padding: 50px 0; }
.shop__inner { display: flex; align-items: flex-start; gap: 20px; }
.shop--sidebar .shop__sidebar { flex: 0 0 calc((100% - 20px) * .25); padding: 10px; }
.shop--sidebar .shop__main { flex: 0 0 calc((100% - 20px) * .75); padding: 10px; }
.shop:not(.shop--sidebar) .shop__inner { padding: 10px; }
.shop:not(.shop--sidebar) .shop__main { width: 90%; margin: 0 auto; }

/* Category filter (sidebar) */
.shop-filter { padding: 12.8px 0; }
.shop-filter__label {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 12.8px;
  padding: 0 0 12.8px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  background: none;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  text-align: left;
  color: #000;
  cursor: pointer;
}
.shop-filter__label::before, .shop-filter__label::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 12px;
  width: 13px;
  height: 1.5px;
  background: #000;
  transition: transform .2s;
}
.shop-filter__label::after { transform: rotate(90deg); }
.shop-filter__label[aria-expanded="true"]::after { transform: rotate(0); }
.shop-filter__group ul { list-style: none; margin: 0; padding: 0; }
.shop-filter__group li { display: block; margin: 0 16px 12.8px 0; line-height: 22px; }
.shop-filter__group input {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0 4px 0 0;
  vertical-align: middle;
  border: 1px solid #b4b9be;
  border-radius: 0;
  background: #fff;
  appearance: none;
  cursor: pointer;
}
.shop-filter__group input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--c-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.shop-filter__group label { padding-left: 10px; font-family: var(--f-head); font-size: 16px; font-weight: 500; line-height: normal; color: #000; cursor: pointer; }

/* Result count + ordering */
.shop__toolbar { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.shop__count { margin: 0 0 16px; font-size: 16px; line-height: 1.7; }
.shop__ordering { margin: 0 0 16px; }
.shop__orderby {
  height: 46px;
  padding: 10px 30px 10px 10px;
  border: 1px solid #bfbfbf;
  border-radius: 2px;
  background: #e9e9e9 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2328303d'><polygon points='0,0 10,0 5,5'/></svg>") no-repeat calc(100% - 10px) 60%;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: #28303d;
  appearance: none;
  cursor: pointer;
}

/* Product grid */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 20px; list-style: none; margin: 0; padding: 0; }
.shop-card {
  position: relative;
  padding: 30px 30px 80px;
  border-radius: 3px;
  background-color: var(--c-grey);
  text-align: center;
}
.shop-card__link { display: block; }
.shop-card img {
  display: block;
  width: 142px;
  height: 142px;
  margin: 0 auto;
  object-fit: cover;
  border: 1px solid #bebebe;
  border-radius: 50%;
}
.shop-card__title {
  margin: 0;
  padding: 13px 0;
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 30px;
  color: var(--c-primary);
}
.shop-card__btn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  width: fit-content;
  margin: auto;
  padding: .618em 1em;
  border: 1px solid var(--c-primary);
  border-radius: 0;
  background-color: var(--c-primary);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6em;
  text-transform: uppercase;
  color: var(--c-white);
  transition: all .2s;
}
.shop-card__btn:hover { color: var(--c-primary); background-color: var(--c-white); border-color: var(--c-primary); }

/* Pagination */
.shop-pagination { margin-top: 40px; text-align: center; }
.shop-pagination ul { display: inline-block; margin: 1px; padding: 0; list-style: none; white-space: nowrap; border: 1px solid #d3ced2; border-right: 0; }
.shop-pagination li { float: left; overflow: hidden; border-right: 1px solid #d3ced2; }
.shop-pagination .page-numbers { display: block; min-width: 1em; margin: 0; padding: 8px; font-size: 16px; line-height: 1; text-decoration: none; color: var(--c-gold); }
.shop-pagination a.page-numbers:hover, .shop-pagination a.page-numbers:focus, .shop-pagination .current { background: #ebe9eb; color: #8a7e88; }

.shop-empty { margin: 0; padding: 1em 2em; background: #f7f6f7; border-top: 3px solid var(--c-primary); }

@media (max-width: 1024px) {
  .shop__inner { gap: 0; }
  .shop--sidebar .shop__sidebar { flex-basis: 25%; }
  .shop--sidebar .shop__main { flex-basis: 75%; }
  .shop-card__btn { font-size: 16px; }
}
@media (max-width: 1023px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .shop { padding: 30px 0; }
  .shop__inner { flex-direction: column; align-items: stretch; }
  .shop--sidebar .shop__sidebar, .shop--sidebar .shop__main { flex-basis: auto; width: 100%; }
  .shop-card__btn { font-size: 14px; }
}
@media (max-width: 480px) {
  .shop__toolbar { display: block; text-align: center; }
  .shop__count { width: 100%; }
}
@media (max-width: 479px) {
  .shop-grid { grid-template-columns: 1fr; }
}
