/* WooCommerce catalog and product-category pages. */
.tgh-catalog-page {
  background: var(--tgh-color-surface-subtle) !important;
}

.tgh-catalog-main {
  padding-bottom: 92px;
  background:
    radial-gradient(circle at 88% 6%, rgba(200, 169, 107, .12), transparent 24rem),
    linear-gradient(180deg, #f2ede4 0, var(--tgh-color-surface-subtle) 32rem);
}

.tgh-catalog-hero {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  min-height: 238px;
  margin: 6px 0 25px;
  padding: clamp(30px, 5vw, 56px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 5%, rgba(200, 169, 107, .24), transparent 17rem),
    linear-gradient(125deg, #211f1b, #493a25 72%, #6a542d);
  box-shadow: 0 24px 54px rgba(43, 34, 21, .16);
  color: var(--tgh-color-surface);
}

.tgh-catalog-hero::after {
  position: absolute;
  right: -76px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  content: "";
}

.tgh-catalog-hero > div {
  position: relative;
  z-index: 1;
}

.tgh-catalog-hero .tgh-product-eyebrow {
  margin-bottom: 13px;
  color: #e1c781;
}

.tgh-catalog-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--tgh-color-surface);
  font-family: var(--tgh-display);
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -.045em;
  line-height: .98;
}

.tgh-catalog-hero__description {
  max-width: 680px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.65;
}

.tgh-catalog-hero__count {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 118px;
  min-height: 118px;
  flex: 0 0 auto;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  background: rgba(255, 255, 255, .1);
  text-align: center;
}

.tgh-catalog-hero__count strong {
  color: #e1c781;
  font-family: var(--tgh-display);
  font-size: 40px;
  line-height: 1;
}

.tgh-catalog-hero__count span {
  margin-top: 7px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 700;
}

.tgh-catalog-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tgh-catalog-nav__label {
  flex: 0 0 auto;
  margin-right: 3px;
  color: var(--tgh-color-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tgh-catalog-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid var(--tgh-color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--tgh-color-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.tgh-catalog-nav a:hover,
.tgh-catalog-nav a.is-current {
  border-color: var(--tgh-color-brand);
  background: var(--tgh-color-brand);
  color: var(--tgh-color-surface);
}

.tgh-catalog-filters {
  margin: 0 0 26px;
  padding: 20px;
  border: 1px solid rgba(46, 42, 35, .1);
  border-radius: 18px;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 12px 28px rgba(43, 34, 21, .05);
}

.tgh-catalog-filters__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.tgh-catalog-filters__heading p {
  margin: 0 0 3px;
  color: var(--tgh-color-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tgh-catalog-filters__heading h2 {
  margin: 0;
  color: var(--tgh-color-text);
  font-family: var(--tgh-display);
  font-size: 24px;
  letter-spacing: -.025em;
}

.tgh-catalog-filters__heading a {
  color: var(--tgh-color-brand);
  font-size: 13px;
  font-weight: 800;
}

.tgh-catalog-filters__fields {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) repeat(2, minmax(160px, .85fr)) auto auto;
  align-items: end;
  gap: 12px;
}

.tgh-catalog-filters__fields label > span {
  display: block;
  margin-bottom: 7px;
  color: #5f574d;
  font-size: 13px;
  font-weight: 800;
}

.tgh-catalog-filters input[type="search"],
.tgh-catalog-filters select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--tgh-color-border);
  border-radius: 10px;
  background: var(--tgh-color-surface);
  color: var(--tgh-color-text);
  font: 700 13px/1.2 var(--tgh-body);
}

.tgh-catalog-filters__check {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--tgh-color-border);
  border-radius: 10px;
  background: var(--tgh-color-surface);
  cursor: pointer;
}

.tgh-catalog-filters__check input {
  width: 18px;
  height: 18px;
  accent-color: var(--tgh-color-brand);
}

.tgh-catalog-filters__check span {
  margin: 0 !important;
  white-space: nowrap;
}

.tgh-catalog-filters button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--tgh-color-brand);
  color: var(--tgh-color-surface);
  font: 800 13px/1 var(--tgh-body);
  cursor: pointer;
}

.tgh-catalog-results {
  min-width: 0;
}

.tgh-catalog-results .woocommerce-notices-wrapper {
  margin-bottom: 16px;
}

.tgh-catalog-results .woocommerce-result-count {
  margin: 0 0 22px;
  color: var(--tgh-color-muted);
  font-size: 14px;
  font-weight: 700;
}

.tgh-catalog-results .woocommerce-ordering {
  float: none;
  margin: 0 0 22px;
}

.tgh-catalog-results .woocommerce-ordering select {
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--tgh-color-border);
  border-radius: 11px;
  background: var(--tgh-color-surface);
  color: var(--tgh-color-text);
  font: 700 13px/1.2 var(--tgh-body);
}

.tgh-catalog-results .woocommerce-ordering::after {
  display: none;
}

.tgh-catalog-results ul.products {
  display: grid;
  clear: both;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.tgh-catalog-results ul.products::before,
.tgh-catalog-results ul.products::after {
  display: none;
}

.tgh-catalog-results ul.products li.product {
  display: flex;
  width: auto !important;
  min-width: 0;
  flex-direction: column;
  margin: 0 !important;
  padding: 12px 12px 15px;
  border: 1px solid rgba(46, 42, 35, .1);
  border-radius: 18px;
  background: var(--tgh-color-surface);
  box-shadow: 0 12px 30px rgba(43, 34, 21, .06);
  transition: box-shadow .2s ease, transform .2s ease;
}

.tgh-catalog-results ul.products li.product:hover {
  box-shadow: 0 19px 38px rgba(43, 34, 21, .12);
  transform: translateY(-3px);
}

.tgh-catalog-results ul.products li.product > a.woocommerce-LoopProduct-link {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.tgh-catalog-results ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 14px !important;
  border: 1px solid rgba(46, 42, 35, .07);
  border-radius: 13px;
  background: var(--tgh-color-surface-subtle);
  object-fit: contain;
}

.tgh-catalog-results ul.products li.product .woocommerce-loop-product__title {
  min-height: 44px;
  margin: 0 2px 8px;
  color: var(--tgh-color-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.tgh-catalog-results ul.products li.product .price {
  min-height: 23px;
  margin: auto 2px 14px;
  color: var(--tgh-color-primary);
  font-size: 16px;
  font-weight: 900;
}

.tgh-catalog-results ul.products li.product .button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 !important;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--tgh-color-primary) !important;
  box-shadow: 0 7px 18px rgba(98, 73, 31, .14);
  color: var(--tgh-color-surface);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.tgh-catalog-results ul.products li.product .button:hover {
  background: var(--tgh-color-primary-hover) !important;
  color: var(--tgh-color-surface);
}

.tgh-catalog-results ul.products li.product a.added_to_cart {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 10px !important;
  border: 1px solid var(--tgh-color-border);
  border-radius: 10px;
  box-sizing: border-box;
  color: var(--tgh-color-brand);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.tgh-catalog-results ul.products li.product a.added_to_cart:hover {
  border-color: var(--tgh-color-brand);
  background: rgba(95, 74, 40, .06);
}

.tgh-catalog-results .woocommerce-pagination {
  clear: both;
  margin-top: 34px;
  text-align: center;
}

.tgh-catalog-results .woocommerce-pagination ul {
  display: inline-flex;
  gap: 7px;
  border: 0;
}

.tgh-catalog-results .woocommerce-pagination ul li {
  border: 0;
}

.tgh-catalog-results .woocommerce-pagination a,
.tgh-catalog-results .woocommerce-pagination span {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--tgh-color-border) !important;
  border-radius: 10px;
  background: var(--tgh-color-surface);
  color: var(--tgh-color-text) !important;
  font-size: 13px;
  font-weight: 800;
}

.tgh-catalog-results .woocommerce-pagination .current,
.tgh-catalog-results .woocommerce-pagination a:hover {
  border-color: var(--tgh-color-brand) !important;
  background: var(--tgh-color-brand);
  color: var(--tgh-color-surface) !important;
}

.tgh-category-content {
  margin: 64px 0 18px;
}

.tgh-category-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  align-items: start;
  gap: 22px;
}

.tgh-category-content__panel {
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(46, 42, 35, .1);
  border-radius: 24px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 18px 42px rgba(43, 34, 21, .07);
}

.tgh-category-content__panel--faq {
  position: sticky;
  top: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(200, 169, 107, .18), transparent 15rem),
    var(--tgh-color-surface);
}

.tgh-category-content__eyebrow {
  margin: 0 0 8px;
  color: var(--tgh-color-primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tgh-category-content h2 {
  margin: 0 0 24px;
  color: var(--tgh-color-text);
  font-family: var(--tgh-display);
  font-size: clamp(30px, 3.5vw, 43px);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.tgh-category-table-wrap {
  overflow: hidden;
  border: 1px solid var(--tgh-color-border);
  border-radius: 16px;
  background: var(--tgh-color-surface);
}

.tgh-category-table-wrap table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.tgh-category-table-wrap--with-dimensions table {
  table-layout: auto;
}

.tgh-category-table-wrap--with-dimensions th:first-child,
.tgh-category-table-wrap--with-dimensions td:first-child {
  width: 18%;
}

.tgh-category-table-wrap--with-dimensions th:nth-child(2),
.tgh-category-table-wrap--with-dimensions td:nth-child(2) {
  width: 31%;
}

.tgh-category-table-wrap th,
.tgh-category-table-wrap td {
  padding: 14px 15px;
  border: 0;
  border-bottom: 1px solid var(--tgh-color-border);
  color: var(--tgh-color-text);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.tgh-category-table-wrap th {
  background: #eee6d8;
  color: #554835;
  font-size: 13px;
  font-weight: 900;
}

.tgh-category-table-wrap td:first-child {
  font-weight: 800;
}

.tgh-category-table-wrap--with-price th:last-child,
.tgh-category-table-wrap--with-price td:last-child {
  width: 88px;
  color: var(--tgh-color-primary);
  font-weight: 900;
  white-space: nowrap;
}

.tgh-category-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.tgh-category-guide {
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--tgh-color-border);
  border-radius: 16px;
  background: linear-gradient(145deg, #fffdf9, #f5efe4);
}

.tgh-category-guide p {
  margin: 0;
  color: var(--tgh-color-muted);
  font-size: 15px;
  line-height: 1.75;
}

.tgh-category-dimensions {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--tgh-color-border);
}

.tgh-category-dimensions__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.tgh-category-dimensions__heading .tgh-category-content__eyebrow {
  margin: 0;
}

.tgh-category-dimensions h3 {
  max-width: 420px;
  margin: 0;
  color: var(--tgh-color-text);
  font-family: var(--tgh-display);
  font-size: clamp(24px, 2.3vw, 31px);
  letter-spacing: -.025em;
  line-height: 1.12;
  text-align: right;
}

.tgh-category-dimensions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tgh-category-dimensions__item {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--tgh-color-border);
  border-radius: 14px;
  background: linear-gradient(145deg, #fffdf9, #f5efe4);
}

.tgh-category-dimensions__item strong,
.tgh-category-dimensions__item span {
  display: block;
}

.tgh-category-dimensions__item strong {
  margin-bottom: 6px;
  color: var(--tgh-color-text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.tgh-category-dimensions__item span {
  color: var(--tgh-color-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tgh-category-dimensions__note {
  margin: 14px 2px 0;
  color: var(--tgh-color-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tgh-category-content__faq-list {
  border-top: 1px solid var(--tgh-color-border);
}

.tgh-category-content__faq-list details {
  border-bottom: 1px solid var(--tgh-color-border);
}

.tgh-category-content__faq-list summary {
  min-height: 64px;
  padding: 18px 4px;
  color: var(--tgh-color-text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
  cursor: pointer;
}

.tgh-category-content__faq-list details[open] summary {
  color: var(--tgh-color-primary);
}

.tgh-category-content__faq-list p {
  margin: -5px 4px 20px;
  color: var(--tgh-color-muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (min-width: 761px) {
  .tgh-catalog-results .woocommerce-result-count,
  .tgh-catalog-results .woocommerce-ordering {
    display: inline-block;
    vertical-align: middle;
  }

  .tgh-catalog-results .woocommerce-ordering {
    float: right;
  }
}

@media (max-width: 1020px) {
	.tgh-catalog-filters__fields {
	  grid-template-columns: repeat(2, minmax(0, 1fr));
	}

  .tgh-catalog-results ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tgh-category-content__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tgh-category-content__panel--faq {
    position: static;
  }
}

@media (max-width: 700px) {
  .tgh-catalog-nav,
  .tgh-catalog-page .tgh-recent-products__grid {
    contain: layout paint;
    overscroll-behavior-inline: contain;
  }

  .tgh-catalog-page .tgh-brand span {
    display: none;
  }

  .tgh-catalog-hero {
    align-items: start;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
    margin-top: 0;
    padding: 27px 22px 23px;
    border-radius: 21px;
  }

  .tgh-catalog-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .tgh-catalog-hero__description {
    margin-top: 13px;
    font-size: 14px;
  }

  .tgh-catalog-hero__count {
    min-width: 0;
    min-height: 0;
    grid-template-columns: auto auto;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 11px;
  }

  .tgh-catalog-hero__count strong {
    font-size: 26px;
  }

  .tgh-catalog-hero__count span {
    align-self: center;
    margin-top: 0;
  }

  .tgh-catalog-nav {
    margin-bottom: 21px;
    padding-bottom: 3px;
  }

  .tgh-catalog-filters {
    margin-bottom: 20px;
    padding: 18px 16px 16px;
    border-radius: 15px;
  }

  .tgh-catalog-filters__heading {
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
  }

  .tgh-catalog-filters__heading p {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .tgh-catalog-filters__heading h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  .tgh-catalog-filters__heading a {
    font-size: 14px;
    white-space: nowrap;
  }

  .tgh-catalog-filters__fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tgh-catalog-filters--selects-2 .tgh-catalog-filters__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tgh-catalog-filters__fields > label:first-of-type,
  .tgh-catalog-filters__fields > .tgh-catalog-filters__check,
  .tgh-catalog-filters__fields > button {
    grid-column: 1 / -1;
  }

  .tgh-catalog-filters__fields label > span {
    margin-bottom: 7px;
    font-size: 14px;
  }

  .tgh-catalog-filters input[type="search"],
  .tgh-catalog-filters select {
    min-height: 48px;
    padding-inline: 14px;
    font-size: 15px;
  }

  .tgh-catalog-filters__check {
    min-height: 50px;
    gap: 10px;
    padding-inline: 13px;
  }

  .tgh-catalog-filters__check input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .tgh-catalog-filters__check span {
    white-space: normal;
    font-size: 14px;
    line-height: 1.35;
  }

  .tgh-catalog-filters button {
    min-height: 48px;
    font-size: 15px;
  }

  .tgh-catalog-nav__label {
    font-size: 13px;
  }

  .tgh-catalog-results .woocommerce-result-count {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .tgh-catalog-results .woocommerce-ordering {
    float: none;
    margin-bottom: 18px;
  }

  .tgh-catalog-results .woocommerce-ordering select {
    width: 100%;
  }

  .tgh-catalog-results ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tgh-catalog-results ul.products li.product {
    padding: 8px 8px 11px;
    border-radius: 14px;
  }

  .tgh-catalog-results ul.products li.product a img {
    margin-bottom: 10px !important;
    border-radius: 10px;
  }

  .tgh-catalog-results ul.products li.product .woocommerce-loop-product__title {
    min-height: 0;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.35;
  }

  .tgh-catalog-results ul.products li.product .price {
    min-height: 0;
    margin-bottom: 10px;
    font-size: 15px;
  }

  .tgh-catalog-results ul.products li.product .button {
    min-height: 42px;
    border-radius: 9px;
    font-size: 13px;
  }

  .tgh-catalog-results ul.products li.product a.added_to_cart {
    min-height: 42px;
    font-size: 13px;
  }

  .tgh-category-content {
    margin-top: 46px;
  }

  .tgh-category-content__grid {
    gap: 15px;
  }

  .tgh-category-content__panel {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .tgh-category-content h2 {
    margin-bottom: 20px;
    font-size: clamp(30px, 9vw, 38px);
  }

  .tgh-category-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .tgh-category-table-wrap table,
  .tgh-category-table-wrap tbody {
    display: block;
    width: 100%;
  }

  .tgh-category-table-wrap thead {
    display: none;
  }

  .tgh-category-table-wrap tbody {
    display: grid;
    gap: 11px;
  }

  .tgh-category-table-wrap tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--tgh-color-border);
    border-radius: 14px;
    background: var(--tgh-color-surface);
  }

  .tgh-category-table-wrap tbody td {
    display: grid;
    width: 100%;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 13px;
    border-bottom: 1px solid var(--tgh-color-border);
    font-size: 13px;
  }

  .tgh-category-table-wrap tbody td::before {
    color: var(--tgh-color-muted);
    content: attr(data-label);
    font-size: 13px;
    font-weight: 850;
  }

  .tgh-category-table-wrap--with-price th:last-child,
  .tgh-category-table-wrap--with-price td:last-child {
    width: 100%;
    white-space: normal;
  }

  .tgh-category-table-wrap--with-dimensions th:first-child,
  .tgh-category-table-wrap--with-dimensions td:first-child,
  .tgh-category-table-wrap--with-dimensions th:nth-child(2),
  .tgh-category-table-wrap--with-dimensions td:nth-child(2) {
    width: 100%;
  }

  .tgh-category-dimensions {
    margin-top: 24px;
    padding-top: 22px;
  }

  .tgh-category-dimensions__heading {
    display: block;
    margin-bottom: 15px;
  }

  .tgh-category-dimensions__heading .tgh-category-content__eyebrow {
    margin-bottom: 6px;
  }

  .tgh-category-dimensions h3 {
    font-size: 26px;
    text-align: left;
  }

  .tgh-category-dimensions__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tgh-category-dimensions__item {
    padding: 14px;
  }

  .tgh-category-dimensions__item strong {
    font-size: 15px;
  }

  .tgh-category-dimensions__item span,
  .tgh-category-dimensions__note {
    font-size: 14px;
  }
}
