/* Modify if shop sidebar is active */

.shop-sidebar-active [data-sidebar] {
  --sidebar-gap: 18px;
}

.shop-sidebar-active .site-main > .hero-section {
  padding-top: var(--theme-content-vertical-spacing, 20px) !important;

  width: var(--theme-container-width);
  max-width: var(--theme-normal-container-max-width);
}

.shop-sidebar-active .site-main > .hero-section + .ct-container {
  padding-top: 0 !important;
}

.shop-sidebar-active .woo-sidebar-header {
}

.shop-sidebar-active .woo-sidebar-header .woo-sidebar-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  padding-top: 2px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--theme-border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-sidebar-active .woo-listing-top:not(:empty),
.shop-sidebar-active .woo-sidebar-header,
.shop-sidebar-active .ct-active-filters:not([data-display-type]):not(:empty) {
  margin-bottom: 16px !important;
}

@media screen and (min-width: 1024px) {
  .shop-sidebar-active .woo-listing-top [class*="ct-toggle"] {
    display: none;
  }
}

/** Modify end here */

.archive .entry-header.ct-container,
.post-type-archive .entry-header.ct-container {
  padding-top: 16px !important;
}

.archive .woo-listing-top,
.post-type-archive .woo-listing-top {
  padding-bottom: 16px;
  /* padding: 16px 0; */
  /* border-top: 1px solid var(--theme-border-color); */
  border-bottom: 1px solid var(--theme-border-color);
}

.products .product {
  height: calc(100% - 1px);
  /* Border is now controlled by the dynamic border system in product-card.php */
  /* Default fallback border for when dynamic system is disabled */
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 24px;
}

.products.columns-4 {
  column-gap: 24px;
}

.products .product .noteware-backorder-chip {
  width: calc(100% - 48px) !important;
  margin-left: 24px;
  margin-right: 24px;
  padding: 8px;
  border-radius: 4px;
}

@media screen and (max-width: 768px) {
  [data-products] .product figure {
    --product-element-spacing: 12px;
  }
  .products.columns-4 {
    grid-column-gap: 12px;
    grid-row-gap: 12px;
  }

  .products .product .noteware-backorder-chip {
    width: calc(100% - 24px) !important;
    margin-left: 12px;
    margin-right: 12px;
  }
}
#woo-filters-panel .ct-block-wrapper {
  margin: 0 !important;
}

#woo-filters-panel .ct-block-wrapper .wp-block-heading {
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: var(--theme-palette-color-1);
}

#woo-filters-panel .ct-block-wrapper .ct-filter-widget {
  row-gap: 6px;
}

#woo-filters-panel .ct-block-wrapper .ct-filter-label {
  color: var(--theme-palette-color-2);
  font-weight: 300;
  font-size: 18px;
}

/* .products .product .ct-woo-card-extra .ct-button {
  background-color: transparent;
}

.products .product .ct-woo-card-extra .ct-button svg {
  fill: white !important;
} */

.ct-product-category-count {
  width: 100%;
  text-align: center;
  font-size: 18px;
  line-height: 48px;
  color: var(--theme-palette-color-1);
  margin-bottom: 24px;
}

.ct-load-more-helper .ct-load-more {
  border: 1px solid var(--theme-button-text-initial-color);
  background-color: transparent;
  font-weight: 500;
}

.ct-product-category-description-wrapper {
  margin-top: 40px;
}
.ct-product-category-description-wrapper .ct-module-title {
  font-weight: 500;
  font-size: 30px;
  line-height: 48px;
  color: var(--theme-palette-color-1);
}

.ct-product-category-description-wrapper .ct-product-category-description {
  margin-top: 24px;
}
