/* Collection tabs (template-parts/home/tabbed-collections.php), converted from the guardrail
   sections/tabbed-collections.liquid (and its inline styles) and the HP-C collection tabs block
   of sections.css: heading, tab pills, a paged product rail per tab and a collection button.
   Per-instance values arrive as inline custom properties (--hg-tc-*, --hg-rail-*, --hg-arrow-*). */

.hg-tc {
  padding-block: var(--hg-tc-pad-top, 40px) var(--hg-tc-pad-bottom, 16px);
  background: var(--hg-tc-bg, var(--hg-bg));
  color: var(--hg-tc-fg, var(--hg-text));
}
.hg-tc--rule-top { border-top: 1px solid currentColor; }
.hg-tc--rule-bottom { border-bottom: 1px solid currentColor; }
.hg-tc--rule-dashed.hg-tc--rule-top { border-top-style: dashed; }
.hg-tc--rule-dashed.hg-tc--rule-bottom { border-bottom-style: dashed; }
@media (max-width: 749px) {
  .hg-tc { padding-block: var(--hg-tc-pad-top-m, 16px) var(--hg-tc-pad-bottom-m, 16px); }
  .hg-tc--only-desktop { display: none; }
}
@media (min-width: 750px) {
  .hg-tc--only-mobile { display: none; }
}

/* Head */
.hg-tc .hg-tc__head {
  display: block;
  margin: 0;
}
.hg-tc__intro { min-width: 0; }
.hg-tc .hg-tc__title {
  margin-bottom: 10px;
  color: var(--hg-tc-heading, inherit);
  letter-spacing: -0.025em;
}
.hg-tc .hg-tc__title :is(strong, b) { font-family: var(--hg-tc-highlight, var(--hg-font-heading)); }
/* Heading with an alternative view: two titles as toggle buttons, the other one faded. Every
   property of the store's generic button style is reset here. */
.hg-tc .hg-tc__title--views {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.6em;
}
.hg-tc .hg-tc__view {
  position: static;
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  /* 3.6:1 on the light band and 5.3:1 on black, AA for the large bold heading (0.3 was 2:1). */
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.hg-tc .hg-tc__view::before,
.hg-tc .hg-tc__view::after {
  content: none;
  display: none;
}
.hg-tc .hg-tc__view:is(:hover, :focus, :active) {
  background: none;
  color: inherit;
}
.hg-tc .hg-tc__view:hover { opacity: 0.75; }
.hg-tc .hg-tc__view.is-active {
  opacity: 1;
  cursor: default;
}
.hg-tc .hg-tc__view:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.hg-tc .hg-tc__view[hidden] { display: none; }
.hg-tc__link { color: inherit; }
.hg-tc--tabs-center :is(.hg-tc__head, .hg-tc__tabs) {
  justify-content: center;
  text-align: center;
}
.hg-tc--tabs-right :is(.hg-tc__head, .hg-tc__tabs) {
  justify-content: flex-end;
  text-align: end;
}

/* Tab row: pills, scrolled sideways on phones. */
.hg-tc .hg-tc__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  margin: 0 0 15px;
  padding-block: 10px 0;
  padding-inline: 7px 0;
  overflow-x: auto;
  border: 0;
  scrollbar-width: none;
}
.hg-tc .hg-tc__tabs::-webkit-scrollbar { display: none; }
.hg-tc .hg-tc__head--row {
  align-items: flex-end;
  flex-wrap: wrap;
}
.hg-tc .hg-tc__head--row .hg-tc__tabs {
  margin: 0;
  margin-inline-start: auto;
}
.hg-tc .hg-tc__tabs.hg-tc__tabs--boxed {
  padding: 8px 12px;
  border: 1px solid currentColor;
}

/* Tab buttons. Every property of the store's generic button style is reset here. */
.hg-tc .hg-tc__tab {
  position: static;
  display: inline-block;
  flex: none;
  gap: 0;
  min-height: 0;
  margin: 0;
  padding: 3px 14px;
  overflow: visible;
  border: 1px solid currentColor;
  border-radius: 40px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-family: var(--hg-font-heading);
  font-size: var(--hg-tc-tab-size-m, 12px);
  font-weight: 800;
  letter-spacing: normal;
  line-height: normal;
  text-transform: none;
  /* 5.3:1 on the light band and 8.6:1 on black, AA for the small label (0.5 was 3.3:1). */
  opacity: 0.65;
  cursor: pointer;
  transition: none;
}
.hg-tc .hg-tc__tab::before,
.hg-tc .hg-tc__tab::after {
  content: none;
  display: none;
}
.hg-tc .hg-tc__tab:is(:hover, :active, :focus) {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.hg-tc .hg-tc__tab.is-active { opacity: 1; }
/* Tabs that do not apply to the alternative view. */
.hg-tc .hg-tc__tab:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
.hg-tc .hg-tc__tab:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.hg-tc .hg-tc__tabs--filled .hg-tc__tab.is-active {
  border-color: var(--hg-tc-tab-active-bg, currentColor);
  background: var(--hg-tc-tab-active-bg, currentColor);
  color: var(--hg-tc-tab-active-text, #fff);
}
.hg-tc .hg-tc__tabs--underline .hg-tc__tab {
  padding-inline: 0;
  border-width: 0 0 1px;
  border-color: transparent;
  border-radius: 0;
}
.hg-tc .hg-tc__tabs--underline .hg-tc__tab.is-active { border-color: currentColor; }

/* Panels and the collection button. */
.hg-tc__panel[hidden] { display: none; }
.hg-tc .hg-tc__panel { padding-block: 10px; }
.hg-tc .hg-tc__action {
  margin: 0;
  padding-top: 10px;
  text-align: center;
}
.hg-tc__empty { color: var(--hg-muted); }

@media (min-width: 768px) {
  .hg-tc .hg-tc__tabs {
    flex-wrap: wrap;
    padding-inline-start: 0;
  }
  .hg-tc .hg-tc__tab {
    padding: 6px 20px;
    font-size: var(--hg-tc-tab-size, 14px);
  }
  /* The reference's desktop padding also reaches underline tabs. */
  .hg-tc .hg-tc__tabs--underline .hg-tc__tab { padding-inline: 20px; }
}
@media (min-width: 1441px) {
  .hg-tc .hg-tc__panel { padding-block: 20px; }
}

/* Button sizes: phones (m-*) apply at every width until the desktop size (d-*) takes over. */
.hg-tc .hg-tc__btn { justify-content: center; }
.hg-tc .hg-tc__btn--m-default { min-height: 39px; padding: 8px 15px; font-size: 14px; line-height: 14px; }
.hg-tc .hg-tc__btn--m-small { min-height: 34px; padding: 8px 10px; font-size: 12px; line-height: 12px; }
.hg-tc .hg-tc__btn--m-medium { min-height: 39px; padding: 8px 15px; font-size: 14px; line-height: 14px; }
.hg-tc .hg-tc__btn--m-large { min-height: 48px; padding: 12px 24px; font-size: 15px; line-height: 15px; }
@media (min-width: 768px) {
  .hg-tc .hg-tc__btn--d-default { min-height: 48px; min-width: 160px; padding: 10px 20px; font-size: 14px; line-height: 14px; }
  .hg-tc .hg-tc__btn--d-small { min-height: 44px; min-width: 0; padding: 10px 20px; font-size: 14px; line-height: 14px; }
  .hg-tc .hg-tc__btn--d-medium { min-height: 50px; min-width: 180px; padding: 10px 20px; font-size: 14px; line-height: 14px; }
  .hg-tc .hg-tc__btn--d-large { min-height: 56px; min-width: 200px; padding: 14px 32px; font-size: 16px; line-height: 16px; }
}
.hg-tc .hg-tc__btn--custom {
  border-color: var(--hg-tc-btn-bg);
  background: var(--hg-tc-btn-bg);
  color: var(--hg-tc-btn-text);
}
.hg-tc .hg-tc__btn--custom:hover {
  border-color: color-mix(in srgb, var(--hg-tc-btn-bg) 85%, #000);
  background: color-mix(in srgb, var(--hg-tc-btn-bg) 85%, #000);
  color: var(--hg-tc-btn-text);
}
.hg-tc .hg-tc__btn--outline {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.hg-tc .hg-tc__btn--outline:hover {
  border-color: var(--hg-text);
  background: var(--hg-text);
  color: #fff;
}
.hg-tc .hg-tc__btn--link {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Product cards (sections.css .hpb-cards): framed media with the section's radius, background
   and border; names and prices follow the section text colour. */
.hg-tc ul.products { --em-image-rounded-product-card: var(--hg-tc-card-radius-m, 10px); }
@media (min-width: 750px) {
  .hg-tc ul.products { --em-image-rounded-product-card: var(--hg-tc-card-radius, 10px); }
}
.hg-tc ul.products li.product .product-thumbnail {
  border: var(--hg-tc-card-border, 1px solid #232323);
  background: var(--hg-tc-card-bg, #fff);
}
.hg-tc ul.products li.product :is(.woocommerce-loop-product__title, .price) { color: inherit; }
.hg-tc ul.products li.product .price ins { color: inherit; }
.hg-tc ul.products li.product .price del {
  color: inherit;
  opacity: 0.7;
}
.hg-tc--cards-center ul.products li.product .product-summary { text-align: center; }
.hg-tc--cards-center ul.products li.product :is(.price, .product-variation-items) { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .hg-tc .hg-tc__btn,
  .hg-tc .hg-arrow { transition: none; }
}
