/**
 * Sprint 18.4.457 — Products hero: framed premium (match categories / other pages)
 * Outer margins, rounded dark panel, in-hero breadcrumbs, grid texture
 */

.tf-products-hero-frame {
  padding: 16px 16px 0;
  box-sizing: border-box;
  width: 100%;
}

/* Kill old edge-to-edge topbar look */
.tf-products-marketplace > .tf-products-topbar,
.tf-products-marketplace .tf-products-premium-hero.tf-products-topbar {
  margin: 0 !important;
}

.tf-products-hero-v457,
.tf-products-marketplace .tf-products-premium-hero.tf-products-hero-v457 {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  margin: 0 !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 28px 8px 32px !important;
  color: #fff !important;
  background:
    radial-gradient(ellipse at 90% 12%, rgba(255, 194, 38, 0.18), transparent 34%),
    radial-gradient(ellipse at 8% 88%, rgba(80, 160, 255, 0.12), transparent 42%),
    linear-gradient(135deg, #04122a 0%, #0a2c5c 48%, #0d4a8c 100%) !important;
  box-shadow: 0 20px 50px rgba(4, 16, 40, 0.28) !important;
}

.tf-products-hero-v457:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to right, #000 0%, #000 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 55%, transparent 92%);
}

.tf-products-hero-v457 > .shell {
  position: relative;
  z-index: 1;
}

/* In-hero breadcrumbs */
.tf-products-hero-v457 .tf-hero-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #9eb2c8;
}
.tf-products-hero-v457 .tf-hero-crumb a {
  color: #ffc23e;
  text-decoration: none;
}
.tf-products-hero-v457 .tf-hero-crumb a:hover {
  text-decoration: underline;
}
.tf-products-hero-v457 .tf-hero-crumb span[aria-hidden] {
  opacity: 0.7;
}
.tf-products-hero-v457 .tf-hero-crumb strong {
  color: #fff;
  font-weight: 750;
}

/* Hide legacy breadcrumb class if any leftover */
.tf-products-hero-v457 .tf-products-breadcrumb {
  display: none !important;
}

.tf-products-hero-v457 .tf-products-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr) !important;
  gap: 28px !important;
  align-items: center !important;
  padding-left: 8px;
  padding-right: 8px;
}

.tf-products-hero-v457 .tf-products-eyebrow,
.tf-products-hero-v457 .eyebrow {
  display: inline-flex !important;
  margin-bottom: 12px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffc23e !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.tf-products-hero-v457 h1 {
  margin: 0 0 12px !important;
  max-width: 560px !important;
  font-size: clamp(28px, 3.4vw, 40px) !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  color: #fff !important;
}

.tf-products-hero-v457 .tf-products-hero-copy > p {
  margin: 0 0 18px !important;
  max-width: 520px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #c5d3e6 !important;
}

/* Search bar */
.tf-products-hero-v457 .tf-products-hero-search {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  max-width: 520px !important;
  min-height: 48px !important;
  margin-bottom: 16px !important;
  padding: 4px 4px 4px 14px !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15) !important;
}
.tf-products-hero-v457 .tf-products-hero-search > span {
  color: #8a97a8 !important;
  font-size: 16px !important;
  margin-right: 8px !important;
}
.tf-products-hero-v457 .tf-products-hero-search input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0b2f66 !important;
  outline: none !important;
}
.tf-products-hero-v457 .tf-products-hero-search button {
  min-height: 40px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: linear-gradient(100deg, #f4b72f, #e0a40f) !important;
  color: #1a1200 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.tf-products-hero-v457 .tf-products-hero-metrics {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 16px !important;
  font-size: 12.5px !important;
  color: #b8c7db !important;
}
.tf-products-hero-v457 .tf-products-hero-metrics b {
  color: #ffc23e !important;
  font-weight: 850 !important;
  margin-right: 4px !important;
}

/* Trust card */
.tf-products-hero-v457 .tf-products-trust-card {
  padding: 20px 20px 18px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
  color: #0b2f66 !important;
}
.tf-products-hero-v457 .tf-products-trust-card > span {
  display: block !important;
  margin-bottom: 6px !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em !important;
  color: #c48a00 !important;
}
.tf-products-hero-v457 .tf-products-trust-card h2 {
  margin: 0 0 12px !important;
  font-size: 18px !important;
  font-weight: 850 !important;
  color: #0b2f66 !important;
}
.tf-products-hero-v457 .tf-products-trust-card ul {
  list-style: none !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}
.tf-products-hero-v457 .tf-products-trust-card li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  color: #3d4f66 !important;
}
.tf-products-hero-v457 .tf-products-trust-card li b {
  color: #1f8a45 !important;
  font-size: 13px !important;
}
.tf-products-hero-v457 .tf-products-trust-card > a {
  display: inline-flex !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  color: #1a56db !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .tf-products-hero-v457 .tf-products-hero-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .tf-products-hero-frame {
    padding: 12px 12px 0;
  }
  .tf-products-hero-v457 {
    border-radius: 16px !important;
    padding: 20px 4px 24px !important;
  }
  .tf-products-hero-v457 h1 {
    font-size: 26px !important;
  }
  .tf-products-hero-v457 .tf-products-hero-search {
    flex-wrap: wrap !important;
    padding: 8px !important;
  }
  .tf-products-hero-v457 .tf-products-hero-search button {
    width: 100% !important;
    margin-top: 6px !important;
  }
}
