/* Main product catalogue, aligned with the approved product-hub cards. */
body.post-type-archive-product .woocommerce-breadcrumb,
body.post-type-archive-product .vm-cat-breadcrumb,
body.post-type-archive-product .vm-seo-breadcrumbs {
  display: none !important;
}

/* The shop archive lives in Flatsome's constrained category row. Let the
 * archive own the viewport width; individual shop sections keep their own
 * inner max-width through vm-hub-shell/vm-shop-products. */
body.post-type-archive-product .category-page-row {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.post-type-archive-product .category-page-row > .col {
  max-width: none !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.post-type-archive-product .vm-shop-hero {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.post-type-archive-product .vm-shop-products-heading {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin: 26px auto 18px;
}

.vm-shop-filter-panel {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin: 0 auto 14px;
  border: 1px solid #C7DFE7;
  background: #fff;
}

.vm-shop-filter-panel > summary {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 12px 54px 12px 18px;
  color: #101A22;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.vm-shop-filter-panel > summary::-webkit-details-marker {
  display: none;
}

.vm-shop-filter-panel > summary:hover,
.vm-shop-filter-panel > summary:focus-visible {
  background: #F8FBFC;
  outline: 0;
}

.vm-shop-filter-summary-title {
  font-size: 14px;
  font-weight: 800;
}

.vm-shop-filter-summary-meta {
  color: #31505E;
  font-size: 12px;
  font-weight: 500;
}

.vm-shop-filter-summary-meta.has-active-filters {
  color: #D8431F;
  font-weight: 800;
}

.vm-shop-filter-chevron {
  position: absolute;
  top: 50%;
  right: 21px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #101A22;
  border-bottom: 2px solid #101A22;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s ease;
}

.vm-shop-filter-panel[open] .vm-shop-filter-chevron {
  transform: translateY(-20%) rotate(225deg);
}

.vm-shop-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border-top: 1px solid #C7DFE7;
  background: #F8FBFC;
}

.vm-shop-filters.is-loading {
  opacity: .68;
  pointer-events: none;
}

.vm-shop-filter-field label {
  display: block;
  margin: 0 0 6px;
  color: #31505E;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.vm-shop-filter-field select {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 38px 0 13px;
  border: 1px solid #B9CDD4;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: none;
  color: #101A22;
  font-size: 14px;
  font-weight: 600;
}

.vm-shop-filter-field select:focus {
  border-color: #101A22;
  box-shadow: 0 0 0 2px rgba(16, 26, 34, .10);
  outline: 0;
}

.vm-shop-filter-reset {
  min-height: 46px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #101A22;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: #101A22;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.vm-shop-filter-reset:hover,
.vm-shop-filter-reset:focus-visible {
  background: #101A22;
  color: #fff;
}

.vm-shop-filter-count {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: -2px 0 0;
  color: #31505E;
  font-size: 12px;
}

.vm-shop-product-card[hidden] {
  display: none !important;
}

body.post-type-archive-product .shop-container > .products,
body.post-type-archive-product .shop-container > .woocommerce-pagination {
  display: none !important;
}

.vm-shop-products {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 0 16px;
}

.vm-shop-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vm-shop-product-grid .vm-hub-price {
  font-size: 14px;
}

.vm-shop-product-grid .vm-hub-product-button {
  min-height: 44px;
  padding-right: 8px;
  padding-left: 8px;
  font-size: 10.5px;
}

.vm-shop-load-more-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 30px auto 54px;
  text-align: center;
}

.vm-shop-load-more {
  display: inline-flex;
  min-width: 230px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid #101A22;
  border-radius: 7px;
  background: #fff;
  color: #101A22;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.vm-shop-load-more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.vm-shop-load-more:hover,
.vm-shop-load-more:focus-visible {
  background: #101A22;
  color: #fff;
}

.vm-shop-load-more.is-loading {
  cursor: wait;
  opacity: .65;
  pointer-events: none;
}

.vm-shop-load-status {
  min-height: 20px;
  margin: 9px 0 0;
  color: #31505E;
  font-size: 12px;
}

@media (max-width: 1023px) {
  .vm-shop-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  body.post-type-archive-product .vm-cat-intro .section-content {
    padding-top: 27px;
    padding-bottom: 31px;
  }

  .vm-shop-products {
    width: calc(100% - 28px);
    padding-top: 10px;
  }

  .vm-shop-filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
  }

  .vm-shop-filter-panel {
    width: calc(100% - 28px);
  }

  .vm-shop-filter-panel > summary {
    min-height: 56px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-left: 14px;
  }

  .vm-shop-filter-field--sort,
  .vm-shop-filter-reset,
  .vm-shop-filter-count {
    grid-column: 1 / -1;
  }

  .vm-shop-filter-field select,
  .vm-shop-filter-reset {
    height: 44px;
    min-height: 44px;
  }

  .vm-shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .vm-shop-load-more-wrap {
    width: calc(100% - 28px);
    margin-top: 24px;
  }

  .vm-shop-load-more {
    width: 100%;
  }
}
