/* Сторінка каталогу — shop-right-sidebar layout */
.gf-shop-catalog-page .cs_filter_widgets .form-control {
  min-height: 44px;
  border-radius: 8px;
}

.gf-shop-catalog-page .cs_filter_widget_list label.cs_custom_checkbox {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.gf-shop-catalog-page .gf-catalog-grid .gf-stock-badge {
  top: 12px;
  right: 12px;
}

.gf-shop-catalog-page .cs_products_with_sidebar {
  gap: 28px;
  align-items: flex-start;
}

.gf-shop-catalog-page .cs_products_wrap {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
}

/* Картки мають вміщуватись у доступну ширину поруч із сайдбаром */
.gf-shop-catalog-page .gf-catalog-grid.cs_grid_style_2 {
  width: 100%;
  max-width: 100%;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
}

@media (max-width: 575px) {
  .gf-shop-catalog-page .gf-catalog-grid.cs_grid_style_2 {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.gf-shop-catalog-page .gf-catalog-grid .cs_grid_col,
.gf-shop-catalog-page .gf-catalog-grid .gf-catalog-card {
  min-width: 0;
  max-width: 100%;
}

.gf-shop-catalog-page .gf-catalog-grid .gf-catalog-card .cs_product_thumb {
  height: 200px;
  flex-basis: 200px;
}

.gf-shop-catalog-page .gf-catalog-grid .cs_product_thumb img {
  max-height: 180px;
}

.gf-shop-catalog-page .gf-catalog-grid .gf-catalog-card .cs_product_info {
  padding: 12px;
}

.gf-shop-catalog-page .gf-catalog-grid .gf-catalog-card .cs_product_category {
  font-size: 11px;
}

.gf-shop-catalog-page .gf-catalog-grid .gf-catalog-card .cs_product_title {
  font-size: 15px;
  min-height: 2.6em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gf-shop-catalog-page .gf-catalog-grid .gf-catalog-card .cs_btn.cs_style_1 {
  min-width: 0 !important;
  max-width: 100%;
  font-size: 12px;
  letter-spacing: 0 !important;
  padding: 0 10px;
}

.gf-shop-catalog-page .gf-catalog-empty {
  grid-column: 1 / -1;
}

.gf-shop-catalog-page .cs_filter_heading_left h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-right: 12px;
}

.gf-shop-catalog-page #gf-shop-showing {
  white-space: nowrap;
}

.gf-shop-catalog-page .cs_pagination_box {
  margin-bottom: 0;
}

.gf-shop-catalog-page .cs_pagination_item.is-active,
.gf-shop-catalog-page .cs_pagination_item.active {
  pointer-events: none;
}

.gf-shop-catalog-page .cs_pagination_item[disabled],
.gf-shop-catalog-page .cs_pagination_arrow[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.gf-shop-catalog-page .cs_breadcamp_wrap.cs_radius_8 {
  padding: 48px 56px;
  min-height: auto;
}

.gf-shop-catalog-page .cs_breadcamp_wrap .breadcrumb-item a {
  color: inherit;
  text-decoration: none;
}

.gf-shop-catalog-page .cs_breadcamp_wrap .breadcrumb-item a:hover {
  color: var(--accent, #e61f7f);
}

.gf-shop-catalog-page .cs_breadcamp_wrap .breadcrumb-item.active {
  color: rgba(48, 48, 48, 0.65);
}

/* Груповані категорії в сайдбарі */
.gf-shop-catalog-page .gf-cat-all {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gf-shop-catalog-page .gf-cat-group {
  list-style: none;
  margin: 0 0 0.35rem;
}

.gf-shop-catalog-page .gf-cat-group__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: #303030;
  cursor: pointer;
  text-align: left;
}

.gf-shop-catalog-page .gf-cat-group__toggle::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  color: #888;
  flex-shrink: 0;
}

.gf-shop-catalog-page .gf-cat-group.is-open .gf-cat-group__toggle::after {
  content: "−";
}

.gf-shop-catalog-page .gf-cat-group__count {
  font-size: 0.8rem;
  font-weight: 500;
  color: #888;
  margin-right: auto;
  padding-left: 0.35rem;
}

.gf-shop-catalog-page .gf-cat-group__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 0.65rem;
  display: none;
  border-left: 2px solid rgba(230, 31, 127, 0.25);
}

.gf-shop-catalog-page .gf-cat-group.is-open .gf-cat-group__list {
  display: block;
}

.gf-shop-catalog-page .gf-cat-group__list li {
  margin: 0.2rem 0;
}

.gf-shop-catalog-page .gf-cat-group__list label span em,
.gf-shop-catalog-page .gf-cat-all label span em {
  font-style: normal;
  color: #999;
  font-size: 0.85em;
}

.gf-shop-catalog-page .gf-cat-sublist {
  list-style: none;
  margin: 0.15rem 0 0.35rem;
  padding: 0 0 0 0.85rem;
  border-left: 1px solid rgba(230, 31, 127, 0.15);
}

.gf-shop-catalog-page .gf-cat-depth-2 label span,
.gf-shop-catalog-page .gf-cat-depth-3 label span {
  font-size: 0.92em;
}

.gf-shop-catalog-page .gf-cat-depth-3 label span {
  font-size: 0.88em;
}

.gf-catalog-seo {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.gf-catalog-seo__h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.gf-catalog-seo__text,
.gf-catalog-seo p {
  color: #555;
  line-height: 1.6;
}

.gf-shop-brands-list {
  max-height: 220px;
  overflow: auto;
}

.gf-shop-price-filter__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gf-shop-price-filter__sep {
  color: #999;
}
