.woocommerce-page-shell .tcr-catalogue-shell {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 34px);
  align-items: start;
}

.woocommerce-page-shell .tcr-catalogue-shell--without-navigation {
  grid-template-columns: minmax(0, 1fr);
}

.woocommerce-page-shell .tcr-catalogue-sidebar,
.woocommerce-page-shell .tcr-catalogue-results {
  min-width: 0;
}

.woocommerce-page-shell .tcr-catalogue-sidebar {
  position: sticky;
  top: 158px;
  overflow: hidden;
  border: 1px solid var(--tcr-line, #ead8bd);
  border-radius: 18px;
  background: var(--tcr-paper, #fffaf2);
  box-shadow: 0 16px 38px rgba(41, 20, 12, 0.1);
}

.woocommerce-page-shell .tcr-catalogue-sidebar__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 13px;
  background: var(--tcr-gold, #e8ba3f);
  color: var(--tcr-darkest, #25130d);
}

.woocommerce-page-shell .tcr-catalogue-sidebar__header p {
  margin: 0 0 3px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.woocommerce-page-shell .tcr-catalogue-sidebar__header h2 {
  margin: 0;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 1.5vw, 1.4rem);
  line-height: 1;
}

.woocommerce-page-shell .tcr-catalogue-sidebar__header a {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.woocommerce-page-shell .tcr-catalogue-category-navigation {
  min-width: 0;
  padding: 0 8px 8px;
  overflow-wrap: anywhere;
}

.woocommerce-page-shell .tcr-catalogue-all-products,
.woocommerce-page-shell .tcr-catalogue-category-link,
.woocommerce-page-shell .tcr-catalogue-shop-all {
  display: flex;
  min-height: 44px;
  align-items: center;
  border-radius: 9px;
  color: var(--tcr-ink, #43271d);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.woocommerce-page-shell .tcr-catalogue-all-products {
  justify-content: space-between;
  margin: 6px 0 3px;
  padding: 6px 8px;
}

.woocommerce-page-shell .tcr-catalogue-truffle-box-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 7px 6px;
  padding: 9px 12px;
  border: 1px solid #c49320;
  border-radius: 10px;
  color: var(--tcr-darkest, #25130d);
  background: var(--tcr-gold, #e8ba3f);
  box-shadow: 0 7px 16px rgba(73, 43, 10, 0.14);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.woocommerce-page-shell .tcr-catalogue-truffle-box-button > span:last-child {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.woocommerce-page-shell .tcr-catalogue-truffle-box-button:hover {
  color: var(--tcr-darkest, #25130d);
  background: #efc858;
}

.woocommerce-page-shell .tcr-catalogue-truffle-box-button:hover > span:last-child {
  transform: translateX(2px);
}

.woocommerce-page-shell .tcr-catalogue-category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-page-shell .tcr-catalogue-category-node {
  margin: 0;
  padding: 0;
}

.woocommerce-page-shell .tcr-catalogue-category-node--depth-0 {
  border-top: 1px solid var(--tcr-line, #ead8bd);
}

.woocommerce-page-shell .tcr-catalogue-category-group > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 8px;
  color: var(--tcr-darkest, #25130d);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  list-style: none;
}

.woocommerce-page-shell .tcr-catalogue-category-direct-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 5px 8px;
  color: var(--tcr-darkest, #25130d);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.woocommerce-page-shell .tcr-catalogue-category-direct-link--builder {
  justify-content: flex-start;
}

.woocommerce-page-shell .tcr-catalogue-category-group > summary::-webkit-details-marker {
  display: none;
}

.woocommerce-page-shell .tcr-catalogue-category-chevron {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transform: rotate(180deg);
  transition: transform 160ms ease;
}

.woocommerce-page-shell .tcr-catalogue-category-group[open] > summary .tcr-catalogue-category-chevron {
  transform: none;
}

.woocommerce-page-shell .tcr-catalogue-shop-all {
  margin: 0 5px 2px;
  padding: 5px 8px;
  color: #795810;
  background: rgba(232, 186, 63, 0.16);
}

.woocommerce-page-shell .tcr-catalogue-category-link {
  margin: 0 5px;
  padding: 5px 8px;
}

.woocommerce-page-shell .tcr-catalogue-category-list--depth-2 .tcr-catalogue-category-link,
.woocommerce-page-shell .tcr-catalogue-category-list--depth-3 .tcr-catalogue-category-link {
  padding-left: 18px;
  font-size: 0.78rem;
}

.woocommerce-page-shell .tcr-catalogue-all-products:hover,
.woocommerce-page-shell .tcr-catalogue-category-direct-link:hover,
.woocommerce-page-shell .tcr-catalogue-category-link:hover,
.woocommerce-page-shell .tcr-catalogue-shop-all:hover {
  color: var(--tcr-darkest, #25130d);
  background: rgba(232, 186, 63, 0.2);
}

.woocommerce-page-shell .tcr-catalogue-all-products.is-current,
.woocommerce-page-shell .tcr-catalogue-category-direct-link.is-current,
.woocommerce-page-shell .tcr-catalogue-category-link.is-current,
.woocommerce-page-shell .tcr-catalogue-shop-all[aria-current="page"] {
  color: var(--tcr-darkest, #25130d);
  background: rgba(232, 186, 63, 0.3);
  box-shadow: inset 3px 0 0 var(--tcr-gold, #e8ba3f);
}

.woocommerce-page-shell .tcr-catalogue-category-node.is-ancestor > details > summary,
.woocommerce-page-shell .tcr-catalogue-category-node.is-ancestor > .tcr-catalogue-category-link {
  color: #795810;
}

.woocommerce-page-shell .tcr-catalogue-category-node.is-ancestor > .tcr-catalogue-category-link {
  background: rgba(232, 186, 63, 0.12);
}

.woocommerce-page-shell .tcr-catalogue-category-link.is-disabled {
  opacity: 0.58;
}

.woocommerce-page-shell .tcr-catalogue-category-navigation a:focus-visible,
.woocommerce-page-shell .tcr-catalogue-category-navigation:focus-visible,
.woocommerce-page-shell .tcr-catalogue-category-direct-link:focus-visible,
.woocommerce-page-shell .tcr-catalogue-truffle-box-button:focus-visible,
.woocommerce-page-shell .tcr-catalogue-category-group > summary:focus-visible,
.woocommerce-page-shell .tcr-catalogue-sidebar__header a:focus-visible {
  outline: 3px solid var(--tcr-darkest, #25130d);
  outline-offset: 2px;
}

.woocommerce-page-shell .tcr-catalogue-results > :first-child {
  margin-top: 0;
}

.woocommerce-page-shell .tcr-catalogue-results .catalogue-sort-toolbar {
  width: 100%;
}

.woocommerce-page-shell .tcr-catalogue-results .catalogue-sort-toolbar .filter-controls {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 10px);
  overflow: visible;
}

.woocommerce-page-shell .tcr-catalogue-results .catalogue-sort-toolbar .filter-button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-inline: 8px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.woocommerce-page-shell .tcr-catalogue-results ul.products {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .woocommerce-page-shell .tcr-catalogue-results ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 981px) {
  .woocommerce-page-shell .tcr-catalogue-sidebar {
    display: flex;
    max-height: calc(100vh - 182px);
    max-height: calc(100dvh - 182px);
    flex-direction: column;
  }

  .woocommerce-page-shell .tcr-catalogue-sidebar__header {
    flex: 0 0 auto;
  }

  .woocommerce-page-shell .tcr-catalogue-category-navigation {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 980px) {
  .woocommerce-page-shell .tcr-catalogue-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .woocommerce-page-shell .tcr-catalogue-sidebar {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
  }

  .woocommerce-page-shell .tcr-catalogue-category-navigation {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
  }

  .woocommerce-page-shell .tcr-catalogue-category-list--depth-0 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }

  .woocommerce-page-shell .tcr-catalogue-results ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .woocommerce-page-shell .tcr-catalogue-category-list--depth-0 {
    grid-template-columns: minmax(0, 1fr);
  }

  .woocommerce-page-shell .tcr-catalogue-results ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce-page-shell .tcr-catalogue-all-products,
  .woocommerce-page-shell .tcr-catalogue-category-link,
  .woocommerce-page-shell .tcr-catalogue-shop-all {
    min-height: 44px;
  }
}

@media (max-width: 600px) {
  .woocommerce-page-shell .tcr-catalogue-sidebar {
    display: none;
  }
}

@media (max-width: 460px) {
  .woocommerce-page-shell .tcr-catalogue-results .catalogue-sort-toolbar .filter-controls {
    gap: 5px;
  }

  .woocommerce-page-shell .tcr-catalogue-results .catalogue-sort-toolbar .filter-button {
    padding-inline: 4px;
    font-size: 0.68rem;
  }

  .woocommerce-page-shell .tcr-catalogue-results ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
