/* Homepage product selections. Keep catalog and product-detail layouts separate. */
/* Show all five owner-approved variants, including the last card on mobile. */
html[data-font-choice="E"] .tf-home-page .tf-rail-own-products .tf-product-grid > .tf-product { display: flex; }
html[data-font-choice="E"] .tf-home-page .tf-catalog {
  width: 100%;
  max-width: 1344px;
  padding: 0 32px;
  margin-inline: auto;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-catalog-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-top: 44px;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-rail {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #242424;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-rail-new-products {
  margin-inline: -24px;
  padding: 30px 24px 24px;
  background: var(--tf-home-panel);
  border-radius: 4px;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-rail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: 24px;
  text-align: left;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog :is(
  .tf-rail-heading h2,
  .tf-catalog-split > .tf-rail:first-child .tf-rail-heading h2
) {
  margin: 0;
  padding: 0;
  font: 400 clamp(28px, 3vw, 38px)/1.15 "Manrope", Arial, sans-serif;
  letter-spacing: -.055em;
  text-transform: none;
  color: #242424;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-rail-description {
  max-width: 36ch;
  margin: 0 0 5px;
  font: 400 13px/1.6 "Manrope", Arial, sans-serif;
  color: #64615d;
}

.tf-home-page .tf-rail-heading-title { min-width: 0; }
html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-rail-eyebrow {
  margin: 0 0 9px;
  font: 700 10px/1.5 "Manrope", Arial, sans-serif;
  letter-spacing: .065em;
  text-transform: uppercase;
  color: var(--tf-home-ink);
}

html[data-font-choice="E"] .tf-home-page .tf-catalog :is(.tf-product-grid, .tf-product-grid-wide) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* All four products stay available at every breakpoint. */
html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-grid > .tf-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 16px;
  gap: 8px;
  position: relative;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--tf-home-card);
  box-shadow: 0 14px 24px -12px rgb(64 43 33 / 28%), 0 3px 10px rgb(64 43 33 / 4%);
  text-align: left;
  overflow: hidden;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-grid > .tf-product:hover {
  border-color: var(--tf-home-line);
  box-shadow: 0 16px 28px -12px rgb(64 43 33 / 32%), 0 3px 10px rgb(64 43 33 / 5%);
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-image {
  aspect-ratio: 1 / 1.06;
  margin-bottom: 5px;
  background: var(--tf-home-card);
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
  object-position: center;
  transform: none;
  mix-blend-mode: multiply;
}

.tf-home-page .tf-product-badge {
  position: absolute;
  z-index: 1;
  top: 15px;
  right: 14px;
  max-width: calc(100% - 28px);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--tf-home-red);
  color: var(--tf-home-card);
  font: 500 10px/1.35 "Manrope", Arial, sans-serif;
  pointer-events: none;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-vendor {
  margin: 0;
  padding-inline: 16px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .07em;
  color: #6b655e;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product h3 {
  padding-inline: 16px;
  min-height: 2.8em;
  font: 500 15px/1.4 "Manrope", Arial, sans-serif;
  letter-spacing: -.015em;
  text-transform: none;
  color: #242424;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product .tf-price {
  margin: 2px 0 0;
  padding-inline: 16px;
  font: 600 16px/1.5 "Manrope", Arial, sans-serif;
  color: #242424;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-pack {
  margin: 0;
  padding-inline: 16px;
  min-height: 2.8em;
  color: #64615d;
  font: 400 12px/1.4 "Manrope", Arial, sans-serif;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: auto 16px 0;
  padding-top: 8px;
  width: auto;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-buy-button {
  min-height: 44px;
  border: 1px solid var(--tf-home-line);
  border-radius: 999px;
  background: transparent;
  color: var(--tf-home-red);
  font: 600 13px/1.35 "Manrope", Arial, sans-serif;
  letter-spacing: .025em;
  box-shadow: none;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-rail-collection-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 20px;
  border: 1px solid #92867d;
  border-radius: 999px;
  background: transparent;
  font: 500 12px/1.5 "Manrope", Arial, sans-serif;
  letter-spacing: .015em;
  text-align: center;
  text-transform: uppercase;
  color: #34302d;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog a:is(:hover, :focus-visible) {
  color: var(--tf-home-red);
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-rail-collection-link:is(:hover, :focus-visible) {
  border-color: var(--tf-home-red);
  background: var(--tf-home-button);
}

html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-buy-button:is(:hover, :focus-visible) {
  border-color: var(--tf-home-red);
  background: var(--tf-home-red);
  color: #fff;
}

@media (min-width: 750px) and (max-width: 1099px) {
  html[data-font-choice="E"] .tf-home-page .tf-catalog :is(.tf-product-grid, .tf-product-grid-wide) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 749px) {
  html[data-font-choice="E"] .tf-home-page .tf-catalog { padding-inline: 16px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-catalog-split { padding-top: 28px; gap: 32px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-rail-new-products { margin-inline: -12px; padding: 22px 12px 18px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-rail-heading { align-items: flex-start; flex-direction: column; gap: 5px; margin-bottom: 18px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-rail-description { max-width: 40ch; font-size: 12px; margin: 0; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog :is(.tf-product-grid, .tf-product-grid-wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-grid > .tf-product { padding-bottom: 12px; gap: 6px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-image img { padding: 12px; }
  .tf-home-page .tf-product-badge { top: 10px; right: 9px; max-width: calc(100% - 18px); padding: 5px 8px; font-size: 9px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-vendor { padding-inline: 10px; font-size: 9px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product h3 { padding-inline: 10px; font-size: 13px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product .tf-price { padding-inline: 10px; font-size: 14px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-pack { padding-inline: 10px; font-size: 11px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-product-actions { margin-inline: 10px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-buy-button { font-size: 12px; }
  html[data-font-choice="E"] .tf-home-page .tf-catalog .tf-rail-collection-link { margin-top: 18px; }
}
