html {
  font-family: "Plus Jakarta Sans", serif;
  scroll-behavior: smooth;
  margin-top: 0 !important;
  background-color: #0D0E12;
}
body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
}
body.unscrollable {
  overflow-y: hidden;
}
.container {
  width: 1630px;
  max-width: 100%;
}
button {
  font-family: "Plus Jakarta Sans", serif;
}

a.primary-button {
  background-color: #47B0F2;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  color: #0D0E12;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid #47B0F2;
  border-radius: 26px;
  transition: 0.15s linear all;
}
a.primary-button:hover {
  color: #ECEFF2;
  background-color: transparent;
}
button.primary-button {
  background-color: #47B0F2;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  color: #0D0E12;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid #47B0F2;
  border-radius: 26px;
  outline: none;
  cursor: pointer;
  transition: 0.15s linear all;
}
button.primary-button:hover {
  color: #0D0E12;
  background-color: transparent;
}
a.secondary-button {
  background-color: #ECEFF2;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  color: #0D0E12;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid #ECEFF2;
  border-radius: 26px;
  transition: 0.15s linear all;
}
a.secondary-button:hover {
  color: #ECEFF2;
  background-color: transparent;
}
button.secondary-button {
  background-color: #ECEFF2;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  color: #0D0E12;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid #ECEFF2;
  border-radius: 26px;
  outline: none;
  cursor: pointer;
  transition: 0.15s linear all;
}
button.secondary-button:hover {
  color: #ECEFF2;
  background-color: transparent;
}

.frm_forms {
  margin: 200px 0 80px 0;
}

div.breadcrumbs nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin: 10px 0;
  color: #94969D;
  font-size: 14px;
}
div.breadcrumbs nav a {
  color: #0D0E12;
  font-size: 14px;
  font-weight: 400;
  color: #0D0E12;
  text-decoration: none;
}
div.breadcrumbs nav a:hover {
  text-decoration: underline;
}


#page-content {
  background-color: #FFFFFF;
  padding: 145px 0 80px 0;
}
#page-content h1, h2 {
      color: #0D0E12;
    }
#page-content h1 {
      font-size: 28px;
      margin-bottom: 20px;
    }
#page-content h2 {
      font-size: 20px;
      margin-top: 30px;
    }
#page-content p, ul {
      font-size: 16px;
    }
#page-content ul {
      margin-left: 20px;
    }
#page-content a {
      color: #007acc;
      text-decoration: none;
    }
#page-content a:hover {
      text-decoration: underline;
    }
#page-content strong {
      font-weight: 600;
    }

#page-404 {
  text-align: center;
  background-color: #FFFFFF;
  padding: 260px 0 120px 0;
}
#page-404 h1 {
  font-size: 72px;
  font-weight: 300;
  color: #0D0E12;
  margin: 0 0 60px 0;
}
#page-404 p {
  font-size: 20px;
  font-weight: 400;
  color: #0D0E12;
  margin: 0;
}
#page-404 p a {
  color: #47B0F2;
  font-weight: 500;
}

#modal-wrapper {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  pointer-events: none;
}
#modal-wrapper.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-holder {
  background: #fff;
  padding: 30px;
  max-width: 800px;
  width: 100%;
  border-radius: 8px;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 11;
}
#modal-wrapper.active .modal-holder {
  transform: translateY(0);
  opacity: 1;
}
#modal-mask {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  background-color: rgba(8, 9, 10, 0.96);
}
#modal-mask.active {
  opacity: 1;
  visibility: visible;
}
#modal-wrapper h1.title {
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  line-height: 100%;
  color: #ECEFF2;
  margin: 0 0 40px 0;
}
#modal-wrapper p.subtitle {
  text-align: center;
  max-width: 820px;
  width: 100%;
  margin: 0 auto 40px;
}
#modal-wrapper .modal-holder {
  max-width: 820px;
  width: 100%;
  padding: 60px 80px 40px 80px;
  margin: 0 auto;
  border-radius: 20px;
  background-color: #0D0E12;
  position: relative;
  z-index: 5;
  color: #3A3A3A;
}
#modal-wrapper #close-modal {
  position: absolute;
  top: 30px;
  right: 30px;
  cursor: pointer;
}
#modal-wrapper #close-modal svg {
  transition: 0.1s linear all;
}
#modal-wrapper #close-modal:hover svg {
  fill: #343434;
}
#modal-wrapper .form-wrapper {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}
#modal-wrapper p {
  margin: 0;
}
#modal-wrapper p span {
  max-width: 45%;
}
#modal-wrapper .wpcf7 {
  max-width: 840px;
}
#modal-wrapper .half-fields > p {
  display: flex;
  justify-content: space-between;
}
#modal-wrapper input {
  width: 100%;
  background-color: #0D0E12;
  font-size: 16px;
  font-family: "Plus Jakarta Sans", serif;
  color: #94969D;
  border: 1px solid #35363C;
  border-radius: 14px;
  padding: 15px;
  margin: 0 0 20px 0;
  transition: 0.2s linear all;
}
#modal-wrapper input:focus,
#modal-wrapper input:active,
#modal-wrapper input:focus {
  background-color: #17181C;
  color: #ECEFF2;
}
#modal-wrapper textarea {
  width: 100%;
  background-color: #0D0E12;
  font-size: 18px;
  font-family: "Plus Jakarta Sans", serif;
  color: #94969D;
  border: 1px solid #35363C;
  border-radius: 14px;
  padding: 15px;
  margin: 0 0 20px 0;
}
#modal-wrapper textarea:focus,
#modal-wrapper textarea:active,
#modal-wrapper textarea:focus {
  background-color: #17181C;
  color: #ECEFF2;
}
#modal-wrapper input:focus-visible,
#modal-wrapper textarea:focus-visible {
  outline: none;
  background-color: #17181C;
  color: #ECEFF2;
}
#modal-wrapper .wpcf7-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #47B0F2;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  color: #0D0E12;
  text-decoration: none;
  cursor: pointer;
  padding: 14px 26px;
  border: 1px solid #47B0F2;
  border-radius: 26px;
  transition: 0.15s linear all;
}
#modal-wrapper .wpcf7-submit:hover {
  color: #ECEFF2;
  background-color: transparent;
}
#modal-wrapper .wpcf7-submit svg {
  display: block;
  transition: 0.2s linear all;
}
#modal-wrapper .wpcf7-submit:hover svg {
  fill: #ECEFF2;
}

/* ---- slide in animation ---- */
.hidden-fade {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(30px);
  transition: opacity 0.4s ease-in, transform ease-in .8s;
  transition-delay: .2s;
}
.show-fade {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
  transition: opacity 0.4s ease-out, transform ease-out .8s;
  transition-delay: .2s;
}


/* ---- AJAX SEARCH ---- */
.woocommerce-product-search {
    position: relative;
}
#ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 999;
    display: none;
}
#ajax-search-results.has-results {
    display: block;
}
.ajax-search-products {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ajax-search-products li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.ajax-search-products li a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.ajax-search-products img {
    width: 50px;
    height: auto;
    margin-right: 10px;
}
.product-title {
    flex-grow: 1;
}
.view-all {
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
}
.search-loading, .no-results, .search-error {
    padding: 10px;
    text-align: center;
}


/* ---- archive pages filter ---- */
/* Hide filter completely on desktop */
@media (min-width: 769px) {
    .mobile-product-filter {
        display: none !important;
    }
}
/* Mobile styles */
@media (max-width: 768px) {
    .mobile-product-filter {
        position: relative;
    }
    .header-filter {
        background: #f5f5f5;
        padding: 12px 15px;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid #ddd;
    }
    .filter-toggle-text {
        font-weight: 600;
    }
    .filter-toggle-icon {
        font-size: 20px;
        transition: transform 0.3s ease;
    }
    .header-filter.active .filter-toggle-icon {
        transform: rotate(45deg);
    }
    .header-filter-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border: 1px solid #ddd;
        border-top: none;
        border-radius: 0 0 4px 4px;
        z-index: 100;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    }
    .header-filter-mask {
      height: 0;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 4;
      background-color: rgba(8, 9, 10, 0.96);
    }
    .header-filter-mask.active {
      height: auto;
      opacity: 1;
      visibility: visible;
    }
    .header-filter-content .product-categories {
      padding: 0;
    }
    .header-filter-content .parent-category {
        position: relative; /* Add this */
        list-style: none;
        margin-bottom: 5px;
        border-bottom: 1px solid #eee;
    }
    .header-filter-content .parent-link {
        display: block;
        padding: 15px; /* More padding for click area */
        color: #333;
        font-weight: 600;
        text-decoration: none;
    }
    .header-filter-content .toggle-children {
        position: absolute;
        right: 0;
        top: 0;
        width: 65px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2; /* Ensure it's clickable above the link */
    }
    .header-filter-content .toggle-children:after {
        content: "+";
        font-size: 18px;
        font-weight: bold;
    }
    .header-filter-content .toggle-children.active:after {
        content: "-";
    }
    .header-filter-content .children {
      list-style: none;
      display: none; /* Start hidden */
      padding: 0;
      margin: 0;
      background: #f9f9f9;
      border-radius: 4px;
    }
    .header-filter-content .child-category {
        border-bottom: 1px solid #e0e0e0;
    }
    .header-filter-content .child-link {
        display: block;
        padding: 10px 15px;
        color: #666;
        text-decoration: none;
        font-size: 0.9em;
    }
}


@media only screen and (max-width: 768px) {
  div.breadcrumbs nav {
    justify-content: center;
    margin: 0 0 10px 0;
    padding: 0 0 10px 0;
  }

  #modal-wrapper .half-fields > p {
  display: block;
  }
  #modal-wrapper h1.title {
    font-size: 36px;
  }
  #modal-wrapper input {
    margin: 0 0 40px 0;
  }
  #modal-wrapper p span {
    max-width: unset;
  }
  #modal-wrapper .modal-holder {
    width: 90%;
    padding: 80px 40px 40px 40px;
  }
}
