.archive .woocommerce-breadcrumb,
.archive
  .woocommerce.woocommerce-shop
  .wc-block-breadcrumbs
  .woocommerce-breadcrumb {
  display: none !important;
}

.archive .archive-container {
  margin: 0 var(--custom--spacing--outer) !important;
}

.archive .wp-block-search {
  margin: 1em 0 !important;
}

.archive .wp-block-search label {
  display: none !important;
}

.archive .wc-block-product-categories-list--depth-0 > li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.archive .wc-block-product-categories-list--depth-0 > li > a {
  padding: 0.5em 0.8em !important;
}

.archive .wc-block-product-categories-list--depth-0 > li > span {
  display: flex;
  margin: auto 0.8em;
}

.archive .wc-block-product-categories-list--depth-0 > li > span::after {
  content: url(../assets/arrowdown-icon.svg);
  width: 20px;
  height: 20px;
  /* position: absolute; */
}

.archive .wc-block-product-categories-list--depth-0 > .show > span::after {
  content: url(../assets/arrowup-icon.svg);
}

.archive .wc-block-product-categories-list--depth-0 > li > span::before {
  content: "";
}

.archive .wc-block-product-categories-list--depth-0 > li > span span {
  display: none;
}

.archive .wc-block-product-categories-list--depth-1 {
  display: none;
  width: 100%;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.archive .wc-block-product-categories-list--depth-1 a {
  display: flex;
  width: 100%;
  padding: 0.5em 2em;
}

.archive .wc-block-product-categories-list--depth-1 li > span:last-of-type {
  display: none;
}

.archive
  .wc-block-product-categories-list-item.show
  .wc-block-product-categories-list--depth-1 {
  display: block !important;
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

.archive
  .wc-block-product-categories-list-item.hide
  .wc-block-product-categories-list--depth-1 {
  animation: fadeOut 0.3s ease forwards;
}

.archive .archive-shop {
  margin: 1em 0 !important;
}

.archive .archive-filters {
  text-align: left;
  display: flex;
  justify-content: space-between;
  flex-flow: row wrap;
  margin-bottom: 1em !important;
}

.woocommerce .wp-block-query .wp-element-button {
  color: #fff;
}

.archive .wp-block-query-pagination {
  font-size: var(--font-sm);
}

.archive .wp-block-query-pagination > a {
  position: relative;
  display: flex;
  margin: auto 0;
  font-size: 0;
  /* overflow: hidden; Prevents any overflow from being visible */
}

.archive .wp-block-query-pagination > a::before {
  width: 20px;
  height: 20px;
  margin: auto 0;
}

.archive
  .wp-block-query-pagination
  > .wp-block-query-pagination-previous::before {
  content: url(../assets/arrowleft-icon.svg);
}

.archive .wp-block-query-pagination > .wp-block-query-pagination-next::before {
  content: url(../assets/arrowright-icon.svg);
}

.archive .page-numbers {
  font-size: var(--font-sm);
  color: #6d6d6d;
  background-color: rgba(0, 0, 0, 0.025);
  display: inline-block;
  margin: auto 0 !important;
  padding: 0.3342343017em 0.875em;
  transition: ease-in 0.3s;
}

.archive .page-numbers.current,
.archive .page-numbers:hover {
  background-color: #e6e6e6;
  color: #636363;
}

@media (min-width: 64em) {
  .archive .archive-container {
    display: flex;
    justify-content: space-between;
  }

  .archive .archive-sidebar {
    width: 30%;
  }

  .archive .archive-shop {
    width: 68%;
  }
}

/* Add keyframe animations for submenu visibility */
@keyframes fadeIn {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px; /* Adjust as needed */
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    max-height: 500px; /* Adjust as needed */
  }
  to {
    opacity: 0;
    max-height: 0;
  }
}
