/* Featured collection (template-parts/home/featured-collection.php), converted from the guardrail
   sections/featured-collection.liquid and the HP-C featured collection block of sections.css:
   a rounded image panel beside a framed product carousel with corner arrows; phones stack the
   panel above an overlapping product frame. Per-instance values arrive as inline custom
   properties (--hg-fc-*, --hg-rail-*, --hg-arrow-*). */

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

/* Head: heading and subheading, aligned per setting (ui.css .ui-align-*). */
.hg-fc__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}
.hg-fc__copy-head { min-width: 0; }
.hg-fc--align-left :is(.hg-fc__copy-head, .hg-fc__all) { text-align: start; }
.hg-fc--align-center :is(.hg-fc__copy-head, .hg-fc__all) { text-align: center; }
.hg-fc--align-right :is(.hg-fc__copy-head, .hg-fc__all) { text-align: end; }
@media (max-width: 749px) {
  .hg-fc--align-m-left :is(.hg-fc__copy-head, .hg-fc__all) { text-align: start; }
  .hg-fc--align-m-center :is(.hg-fc__copy-head, .hg-fc__all) { text-align: center; }
  .hg-fc--align-m-right :is(.hg-fc__copy-head, .hg-fc__all) { text-align: end; }
}
.hg-fc .hg-fc__heading {
  color: var(--hg-fc-heading, inherit);
  letter-spacing: -0.025em;
}
.hg-fc .hg-fc__heading :is(strong, b) { font-family: var(--hg-fc-highlight, var(--hg-font-heading)); }
.hg-fc .hg-fc__sub {
  max-width: 40rem;
  margin: 8px 0 0;
  color: var(--hg-fc-sub-color, inherit);
  font-size: var(--hg-fc-sub-size, inherit);
}
.hg-fc .hg-fc__sub--eyebrow {
  margin: 0 0 5px;
  font-weight: 600;
  line-height: 1.6;
}

/* Panel + products layout (phones: stacked, the product frame overlaps the panel by 100px). */
.hg-fc__layout {
  display: flex;
  flex-direction: column;
}
.hg-fc__media-col,
.hg-fc__products-col { min-width: 0; }
.hg-fc__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: var(--hg-fc-panel-h-m, 280px);
  overflow: hidden;
  border-radius: var(--hg-fc-panel-radius-m, 0px);
  background: #161616;
  color: #fff;
}
.hg-fc__panel-media {
  position: absolute;
  inset: 0;
}
.hg-fc__panel-media img,
.hg-fc__panel-media .hg-fc__placeholder {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.hg-fc__placeholder { background: #d9d9d9; }
.hg-fc__copy {
  position: absolute;
  inset: 0 0 100px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 15px;
  text-align: center;
}
.hg-fc__title {
  margin: 0 0 5px;
  color: var(--hg-fc-title, #fff);
  font-family: var(--hg-font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hg-fc__desc {
  color: var(--hg-fc-desc, #fff);
  font-size: var(--hg-fc-text-size, inherit);
  overflow-wrap: anywhere;
}
.hg-fc__desc p { margin: 0; }
.hg-fc__desc a { color: inherit; }
@media (max-width: 749px) {
  .hg-fc__desc { font-size: var(--hg-fc-text-size-m, var(--hg-fc-text-size, inherit)); }
}
.hg-fc__products-col {
  position: relative;
  z-index: 1;
  margin-top: -100px;
  padding-inline: 20px;
}
.hg-fc__frame,
.hg-fc__box { background: var(--hg-fc-box-bg, #fff); }
.hg-fc__frame {
  padding: 10px 3px;
  border-radius: 10px;
}
.hg-fc__box {
  position: relative;
  margin-inline: 5px;
  padding-top: 13px;
  border-radius: 10px;
}
.hg-fc__box .hg-rail {
  position: static;
  margin-inline: 0;
  padding-bottom: 0;
}
.hg-fc__box ul.products.hg-grid {
  margin-inline: 10px;
  padding-bottom: 10px;
}
.hg-fc .hg-fc__arrow { display: none; }
.hg-fc__all { margin: var(--hg-fc-all-gap, 16px) 0 0; }
.hg-fc__empty { color: var(--hg-muted); }

/* Products over the image. */
.hg-fc--over .hg-fc__panel {
  justify-content: space-between;
  height: auto;
  min-height: 440px;
}
.hg-fc--over .hg-fc__copy {
  position: relative;
  inset: auto;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.5), rgb(0 0 0 / 0));
}
.hg-fc--over .hg-fc__over {
  position: relative;
  z-index: 1;
  padding: 0 16px 16px;
}

@media (max-width: 767px) {
  /* Photos rather than the reference's placeholder sit under the centred copy, so it gets a scrim. */
  .hg-fc__copy {
    background: rgb(0 0 0 / 0.32);
    text-shadow: 0 1px 10px rgb(0 0 0 / 0.35);
  }
  .hg-fc--panel .hg-wrap { padding-inline: 0; }
  .hg-fc--panel .hg-fc__head,
  .hg-fc--panel .hg-fc__all { padding-inline: 20px; }
}
@media (min-width: 768px) {
  .hg-fc__layout {
    flex-direction: row;
    align-items: center;
  }
  .hg-fc__media-col { flex: 0 0 50%; }
  .hg-fc__products-col {
    flex: 1 1 0;
    margin-top: 0;
    padding-inline: 0;
  }
  .hg-fc__panel {
    height: calc(var(--hg-fc-panel-h, 500px) * 0.9);
    border-radius: var(--hg-fc-panel-radius, 20px);
  }
  .hg-fc__copy {
    inset: auto 0 0;
    align-items: flex-start;
    padding-block: 30px;
    padding-inline: 30px 15%;
    background: linear-gradient(0deg, rgb(0 0 0 / 0.82) 0, rgb(0 0 0 / 0) 100%);
    text-align: start;
  }
  .hg-fc__title { font-size: 37.7px; }
  .hg-fc__frame {
    padding: 0;
    border-radius: 0;
  }
  .hg-fc__box {
    margin-inline: 3.2% 0;
    padding-block: 13px 15px;
    padding-inline: 7px 0;
  }
  /* Corner arrows sit above the products, beside the heading. */
  .hg-fc .hg-fc__arrow {
    position: absolute;
    top: -40px;
    z-index: 2;
    display: inline-flex;
  }
  .hg-fc__arrow--prev { inset-inline-end: 50px; }
  .hg-fc__arrow--next { inset-inline-end: 7px; }
}
@media (min-width: 992px) {
  .hg-fc__media-col { flex-basis: calc(var(--hg-fc-panel-fr, 5) / 12 * 100%); }
  .hg-fc__panel { height: var(--hg-fc-panel-h, 500px); }
}
@media (min-width: 1200px) {
  .hg-fc__title { font-size: 40.6px; }
}
@media (min-width: 1441px) {
  .hg-fc__panel { height: var(--hg-fc-panel-h-xl, 680px); }
  .hg-fc__box {
    padding-block: 13px 23px;
    padding-inline: 16px 0;
  }
}

/* Heading inside the product frame: eyebrow + theme h2 scale (23.4 / 34.5 / 39.1). */
.hg-fc__frame > .hg-fc__head {
  margin: 0;
  padding-inline: 0;
}
.hg-fc__frame .hg-fc__head .hg-fc__heading {
  margin-bottom: 10px;
  font-size: var(--hg-title-size-m, 23.4px);
}
@media (min-width: 768px) {
  .hg-fc__frame > .hg-fc__head {
    width: 90%;
    padding-inline: 35px;
  }
  .hg-fc__frame .hg-fc__head .hg-fc__heading { font-size: var(--hg-title-size, 34.5px); }
  .hg-fc .hg-fc__sub--eyebrow { margin-bottom: 10px; }
}
@media (min-width: 1200px) {
  .hg-fc__frame .hg-fc__head .hg-fc__heading { font-size: var(--hg-title-size, 39.1px); }
}

/* Medium collection title (h4 scale 19.8 / 29.9 / 32.2) with a tighter 20px copy inset. */
.hg-fc--title-md .hg-fc__title { font-size: 19.8px; }
@media (min-width: 768px) {
  .hg-fc--title-md .hg-fc__copy {
    padding-block: 20px;
    padding-inline: 20px 15%;
  }
  .hg-fc--title-md .hg-fc__title { font-size: 29.9px; }
}
@media (min-width: 1200px) {
  .hg-fc--title-md .hg-fc__title { font-size: 32.2px; }
}

/* 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-fc ul.products { --em-image-rounded-product-card: var(--hg-fc-card-radius-m, 10px); }
@media (min-width: 750px) {
  .hg-fc ul.products { --em-image-rounded-product-card: var(--hg-fc-card-radius, 10px); }
}
.hg-fc ul.products li.product .product-thumbnail {
  border: var(--hg-fc-card-border, 1px solid #232323);
  background: var(--hg-fc-card-bg, #fff);
}
.hg-fc ul.products li.product :is(.woocommerce-loop-product__title, .price) { color: inherit; }
.hg-fc ul.products li.product .price ins { color: inherit; }
.hg-fc ul.products li.product .price del {
  color: inherit;
  opacity: 0.7;
}
/* Tablets: the cards share half the width (photos 90-130px wide), so a slimmer quick view pill
   keeps clear of the eye button in the photo's top corner (hg_card_zoom_button()). */
@media (min-width: 768px) and (max-width: 991px) {
  .hg-fc ul.products li.product .product-featured-icons--primary {
    inset-inline: 6px;
    bottom: 6px;
  }
  .hg-fc ul.products li.product .product-thumbnail .product-featured-icons--primary .ecomus-quickview-button {
    min-height: 30px;
    padding-inline: 8px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}
.hg-fc--cards-center ul.products li.product .product-summary { text-align: center; }
.hg-fc--cards-center ul.products li.product :is(.price, .product-variation-items) { justify-content: center; }
.hg-fc--no-swatches ul.products li.product .product-variation-items { display: none; }

/* View-all button sizes, styles and colours (ui.css button hooks). */
.hg-fc .hg-fc__btn--sm { min-height: 40px; padding: 8px 16px; font-size: 12px; line-height: 12px; }
.hg-fc .hg-fc__btn--md { min-height: 48px; padding: 10px 20px; font-size: 14px; line-height: 14px; }
.hg-fc .hg-fc__btn--lg { min-height: 56px; padding: 14px 32px; font-size: 16px; line-height: 16px; }
.hg-fc .hg-fc__btn--full { width: 100%; }
.hg-fc .hg-fc__btn--custom {
  border-color: var(--hg-fc-btn-bg);
  background: var(--hg-fc-btn-bg);
  color: var(--hg-fc-btn-text);
}
.hg-fc .hg-fc__btn--custom:hover {
  border-color: color-mix(in srgb, var(--hg-fc-btn-bg) 85%, #000);
  background: color-mix(in srgb, var(--hg-fc-btn-bg) 85%, #000);
  color: var(--hg-fc-btn-text);
}
.hg-fc .hg-fc__btn--outline {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.hg-fc .hg-fc__btn--outline:hover {
  border-color: var(--hg-text);
  background: var(--hg-text);
  color: #fff;
}
.hg-fc .hg-fc__btn--link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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