/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks

*/

.hide-menuitem {
  display: none;
}

.u-section-padding,
.u-container-padding {
  padding-left: 0px;
  padding-right: 0px;
}

#brxe-smxgvc .bricks-mobile-menu .sub-menu > li.bp-mobilemenu-subitem > a {
  color: var(--tertiary) !important;
  font-weight: 600 !important;
  padding-bottom: 0px !important;
}

#brxe-smxgvc .bricks-mobile-menu .sub-menu > li.bp-mobilemenu-subitemlink > a::before {
  content: "-";
  display: inline-block;
  margin-right: 10px;
}

body.bp-hide-product-menu .bp-products-menu {
  display: none !important;
}

.bp-jobs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0px 5px 1px;;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--light);;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  vertical-align: middle;
}

.bricks-button {
  cursor: pointer;
}

.bricks-button[class*="primary"]::after {
  content: "\e65a";
  font-family: "themify";
  transform: rotate(90deg);
  display: inline-block;
  position: relative;
  top: -1px;
}

.anchor-section {
  scroll-margin-top: 200px; /* desktop headerhoogte */
}

.anchor-section-productmenu {
  scroll-margin-top: 280px; /* desktop headerhoogte */
}

/* Wrapper: lijst horizontaal zetten */
.tab-container__productgroup-labels ul {
  display: flex;
  flex-wrap: wrap; /* breekt af op kleine schermen */
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Losse “labels” als blokjes stylen */
.tab-container__productgroup-labels ul li {
  padding: 1rem 1.6rem;
  background: var(--bg-surface);
  border-radius: var(--radius-s);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
  white-space: nowrap;
}

/* Styling product filter category pages */

/* Sidebar container mag niet inkrimpen */
.brxe-container.product-filter{
  width: 100%;
  min-width: 260px;
  flex-shrink: 0;
}

.brxe-filter-checkbox {
  --chk-size: 22px;
  --chk-radius: 5px;
  --chk-border-width: 2px;
  --chk-border-color: var(--tertiary);
  --chk-bg: var(--light);
  --chk-active-bg: var(--primary);
  --chk-active-border: var(--primary);
}

/* label layout */
.brxe-filter-checkbox label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
  cursor: pointer;
  line-height: var(--text-2xl);
}

/* native checkbox verbergen (toegankelijk) */
.brxe-filter-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* oude custom checkbox uitschakelen */
.brxe-filter-checkbox label::before {
  content: none !important;
  display: none !important;
}

/* indicator (het vakje) */
.brxe-filter-checkbox .brx-input-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--chk-size);
  height: var(--chk-size);
  min-width: var(--chk-size);
  min-height: var(--chk-size);
  flex: 0 0 var(--chk-size);
  box-sizing: border-box;
  border: var(--chk-border-width) solid var(--chk-border-color);
  border-radius: var(--chk-radius);
  background-color: var(--chk-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 18px 18px;
  background-position: center calc(50% - 1px);
  position: relative;
  overflow: hidden;
  line-height: 0;
  padding: 0 !important;
  box-shadow: none !important;
  transition: all 0.15s ease;
}

/* pseudo’s volledig uitzetten */
.brxe-filter-checkbox .brx-input-indicator::before,
.brxe-filter-checkbox .brx-input-indicator::after {
  content: none !important;
  display: none !important;
}

/* hover */
.brxe-filter-checkbox label:hover .brx-input-indicator {
  background-color: rgba(10, 35, 84, 0.04);
}

/* actieve checkbox */
.brxe-filter-checkbox input[type="checkbox"]:checked + .brx-input-indicator,
.brxe-filter-checkbox label.brx-option-active .brx-input-indicator {
  background-color: var(--chk-active-bg);
  border-color: var(--chk-active-border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23ffffff' d='M7.6 13.6 4.5 10.5l-1.4 1.4 4.5 4.5L17 7.9 15.6 6.5z'/%3E%3C/svg%3E");
}

/* tekst */
.brxe-filter-checkbox .brx-option-text {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  display: flex;
  width: 100%;
}

.brxe-filter-checkbox .brx-option-count {
  margin-left: auto;
  min-width: 40px;
  text-align: right;
  padding-right: 20px;
}

/* actieve tekst */
.brxe-filter-checkbox .brx-option-text.brx-option-active {
  font-weight: 600;
}

/* disabled */
.brxe-filter-checkbox input[type="checkbox"]:disabled ~ * {
  opacity: 0.45;
  cursor: not-allowed;
}

/* End Styling product filter category pages */

/* Styling category pages */
.bp-categorytext-textleft ul,
.bp-categorytext-textright ul {
  padding-left: 20px !important;
}

/* End Styling category pages */

/* Product card: Dynamx product: verberg Energetx tekst */
body.single-product.product_cat-dynamx-flow-control-valves .energetx-only,
body.single-product .product.product_cat-dynamx-flow-control-valves .energetx-only {
  display: none !important;
}

/* Product card: Niet-Dynamx product: verberg Dynamx teksten
body.single-product:not(.product_cat-dynamx-flow-control-valves) .dynamx-only,
body.single-product .product:not(.product_cat-dynamx-flow-control-valves) .dynamx-only {
  display: none !important;
}
*/

/* End Product card: Dynamx product: verberg Energetx tekst */

/* Zoom op post image */

.global-postimage-container .bp-post-image {
  display: block;
  width: 100%;
  transform-origin: center center;
  animation: bpImageSlowZoomOut 10s ease-out forwards;
}

@keyframes bpImageSlowZoomOut {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

/* End Zoom op post image */

/* Filters Toggle mobile (<= 767px) */
@media (max-width: 767px) {

  .bp-filters-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    margin-bottom: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-s);
    color: var(--primary);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .bp-filters-toggle::after {
    content: "\f3d1";
    font-family: Ionicons;
    font-size: 1em;
    margin-left: auto;
    transform: rotate(90deg);
  }

  .bp-filters-toggle.is-open::after {
    transform: rotate(270deg);
  }

  .product-filter {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .product-filter.is-open {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet en desktop (>= 768px) */
@media (min-width: 768px) {
  .bp-filters-toggle {
    display: none;
  }

  .product-filter {
    max-height: none;
    overflow: visible;
    opacity: 1;
    transform: none;
  }
}

/* End Filters Toggle mobile */

@media (min-width: 768px) {
  a.menu-active {
    font-weight: 600;
    position: relative;
    transition: all 0.25s ease-out;
  }
}

@media (max-width: 1400px) {
  .u-section-padding,
  .u-container-padding {
    padding-left: var(--space-m);
    padding-right: var(--space-m);
  }
}

@media (max-width: 767px) {
  .hide-menuitem {
    display: block;
  }

  .u-section-padding,
  .u-container-padding {
    padding-left: var(--space-m);
    padding-right: var(--space-m);
  }

  .anchor-section {
    scroll-margin-top: 100px; /* mobile headerhoogte */
  }
  
  .brxe-filter-checkbox .brx-option-count {
    padding-right: 5px;
  }
}