/* BETFLOW product pages — category + detail templates */

.bf-rule{
  width: 56px;
  height: 3px;
  background: var(--navy);
  margin-top: 12px;
}
.bf-rule--center{ margin-left: auto; margin-right: auto; }
.bf-rule--sm{ width: 40px; margin: 12px auto 0; }

/* Page title */
.bf-page-title{
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.bf-page-title h1{
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.bf-page-title-accent{
  color: var(--navy);
}
.bf-page-title-rule{
  width: 56px;
  height: 3px;
  background: var(--navy);
  margin: 14px auto 0;
}

/* Product page hero (category + detail) */
.bf-product-hero{
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(14,42,94,.08), transparent 60%),
    linear-gradient(180deg, var(--navy-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.bf-product-hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.bf-product-hero-copy h1{
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--navy);
  text-wrap: balance;
}
.bf-product-hero-copy p{
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 52ch;
}
.bf-product-hero-copy .btn{
  margin-top: 28px;
}
.bf-product-hero-visual{
  position: relative;
  min-height: clamp(300px, 34vw, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bf-product-hero-visual::before{
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.95) 0%, rgba(238,242,250,.9) 100%);
  border: 1px solid rgba(14,42,94,.1);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255,255,255,.8);
}
.bf-product-hero-visual::after{
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  top: 0;
  right: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,33,45,.12), transparent 70%);
  pointer-events: none;
}
.bf-product-hero-frame{
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  place-items: center;
}
.bf-product-hero-frame img{
  width: 100%;
  max-height: clamp(260px, 30vw, 380px);
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(11,18,32,.14));
}

/* Legacy alias — ProductCategoryHero wraps ProductPageHero */
.bf-category-hero,
.bf-category-hero-grid,
.bf-category-copy,
.bf-category-visual{
  display: contents;
}

/* Type selector — manifold-style cards (shared look with BETLOCK) */
.bf-type-section{
  background: var(--bg-2);
}
.bf-type-grid.manifold-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; align-items:stretch; }
/* Compact variant for the 4-up orifice grid */
.bf-type-grid .manifold-card .mc-photo{ aspect-ratio:4/3; padding:14px; }
.bf-type-grid .manifold-card .mc-header{ padding:18px 16px; }
.bf-type-grid .manifold-card .mc-num{ font-size:40px; top:12px; right:14px; }
.bf-type-grid .manifold-card .mc-badge{ font-size:9px; padding:3px 10px; margin-bottom:10px; }
.bf-type-grid .manifold-card .mc-header h3{ font-size:18px; line-height:1.25; }
.bf-type-grid .manifold-card .mc-header p{ font-size:12px; line-height:1.5; }
.bf-type-grid .manifold-card .mc-body{ padding:18px 16px; }
.bf-type-grid .manifold-card .mc-body li{ font-size:12.5px; }
.bf-type-grid .manifold-card .mc-actions{ gap:12px; margin-top:16px; }
.bf-type-grid .manifold-card .mc-body .mc-cta{ font-size:12px; }
@media (max-width: 1100px){
  .bf-type-grid.manifold-grid{ grid-template-columns:repeat(2,1fr); }
}
.manifold-card{
  position: relative;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden;
  display:flex; flex-direction:column; transition:transform .2s, box-shadow .2s;
  scroll-margin-top: 90px;
}
.manifold-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); }
/* Whole-card link — sits above the card surface, below the action CTAs */
.mc-overlay-link{
  position:absolute; inset:0; z-index:2;
  border-radius:var(--radius-lg);
}
.mc-overlay-link:focus-visible{
  outline:2px solid var(--red); outline-offset:-3px;
}
.manifold-card .mc-actions{ position:relative; z-index:3; }
.manifold-card .mc-photo{
  aspect-ratio:1; background:var(--bg-2); border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; padding:18px;
}
.manifold-card .mc-photo img{
  width:100%; height:100%; object-fit:contain; object-position:center;
}
.manifold-card .mc-photo-fallback{
  font-family:var(--font-display); font-size:clamp(30px, 3vw, 44px); font-weight:800;
  letter-spacing:.08em; color:rgba(14,42,94,.32); text-transform:uppercase;
  background:repeating-linear-gradient(45deg, rgba(14,42,94,.05) 0 2px, transparent 2px 16px);
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  border-radius:8px;
}
.manifold-card .mc-header{
  background:linear-gradient(135deg, #0E2A5E, #1B4A8C);
  padding:24px 22px; position:relative; overflow:hidden;
}
.manifold-card .mc-header::before{
  content:""; position:absolute; inset:0;
  background:repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 20px);
}
.manifold-card .mc-num{
  position:absolute; top:16px; right:20px;
  font-family:var(--font-display); font-size:56px; font-weight:700;
  color:rgba(255,255,255,.08); line-height:1; letter-spacing:-.04em;
}
.manifold-card .mc-badge{
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2);
  border-radius:999px; padding:4px 12px;
  font-family:var(--font-body); font-size:10px; letter-spacing:.12em; color:#fff;
  margin-bottom:12px; position:relative;
}
.manifold-card .mc-header h3{
  color:#fff; font-size:24px; font-weight:700; position:relative;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.manifold-card .mc-header p{ color:rgba(255,255,255,.7); font-size:13px; margin-top:4px; position:relative; }
/* Compact 4-up brand catalog grids — titles stay on a single line */
.brand-grid.manifold-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; align-items:stretch; }
.brand-grid .manifold-card .mc-photo{ height:clamp(190px, 19vw, 250px); aspect-ratio:auto; padding:14px; overflow:hidden; }
.brand-grid .manifold-card .mc-header{ padding:18px 16px; }
.brand-grid .manifold-card .mc-num{ font-size:40px; top:12px; right:14px; }
.brand-grid .manifold-card .mc-badge{ font-size:9px; padding:3px 10px; margin-bottom:10px; }
.brand-grid .manifold-card .mc-header h3{ font-size:17px; line-height:1.3; }
.brand-grid .manifold-card .mc-header p{ font-size:12px; line-height:1.5; }
.brand-grid .manifold-card .mc-body{ padding:18px 16px; }
.brand-grid .manifold-card .mc-body li{ font-size:12.5px; }
.brand-grid .manifold-card .mc-actions{ gap:12px; margin-top:16px; }
.brand-grid .manifold-card .mc-body .mc-cta{ font-size:12px; }
@media (max-width: 1024px){
  .brand-grid.manifold-grid{ grid-template-columns:repeat(2,1fr); }
}
.manifold-card .mc-body{ padding:24px; flex:1; display:flex; flex-direction:column; }
.manifold-card .mc-body ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:7px; flex:1; }
.manifold-card .mc-body li{ font-size:13.5px; color:var(--ink-2); padding-left:16px; position:relative; }
.manifold-card .mc-body li::before{ content:""; position:absolute; left:0; top:8px; width:5px; height:5px; background:var(--red); border-radius:50%; }
.manifold-card .mc-actions{ display:flex; flex-wrap:wrap; gap:16px; margin-top:20px; }
.manifold-card .mc-body .mc-cta{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-display); font-weight:700; font-size:13px;
  color:var(--navy); text-transform:uppercase; letter-spacing:.04em; text-decoration:none;
}
.manifold-card .mc-body .mc-cta:hover{ color:var(--red); }

/* Catalog grid on /betflow/ and type selector pages */
.bf-catalog-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.bf-catalog-card{
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bf-catalog-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.bf-catalog-card .thumb{
  aspect-ratio: 16/10;
  background:
    radial-gradient(circle at 50% 55%, rgba(14,42,94,.06), transparent 65%),
    var(--bg-3);
  padding: 24px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.bf-catalog-card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(11,18,32,.12));
}
.bf-catalog-card .body{
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bf-catalog-card h3{
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.bf-catalog-card p{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.bf-catalog-card .link{
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bf-catalog-card .link .arrow{ transition: transform .2s ease; }
.bf-catalog-card:hover .link{ color: var(--red); }
.bf-catalog-card:hover .link .arrow{ transform: translateX(3px); }

/* Detail panel */
.bf-product-page{
  background: var(--bg-2);
}
.bf-detail-panel{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bf-detail-main{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.bf-slider{
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(14,42,94,.05), transparent 70%),
    var(--bg-3);
  border-right: 1px solid var(--line);
  min-height: 360px;
  display: grid;
  align-items: center;
}
.bf-slider--empty{
  place-items: center;
}
.bf-slider-initials{
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(14,42,94,.2);
  user-select: none;
}
.bf-slider-viewport{
  padding: 32px;
}
.bf-slider-track{
  display: grid;
  grid-template-areas: "slide";
}
.bf-slider-slide{
  margin: 0;
  display: grid;
  place-items: center;
  grid-area: slide;
}
.bf-slider-slide[hidden]{
  display: none;
}
.bf-slider-slide img{
  width: 100%;
  height: 320px;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  /* Fixed height keeps every slide perfectly aligned with no layout shift. */
  filter: drop-shadow(0 12px 28px rgba(11,18,32,.14));
}
.bf-slider-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 1;
  transition: background .2s ease, color .2s ease;
}
.bf-slider-btn:hover{
  background: var(--navy);
  color: #fff;
}
.bf-slider-btn--prev{ left: 16px; }
.bf-slider-btn--next{ right: 16px; }
.bf-detail-info{
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
}
.bf-detail-info-title{
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--ink);
}
.bf-detail-category{
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.bf-detail-downloads-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  justify-content: center;
}
.bf-detail-category a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bf-detail-info h2{
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.bf-detail-desc{
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  flex: 1;
}
.bf-detail-downloads{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  justify-content: flex-end;
}
.bf-download{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.bf-download:hover:not(:disabled){
  background: var(--navy);
  color: #fff;
}
.bf-download--soon{
  opacity: .55;
  cursor: not-allowed;
  border-color: var(--line);
  color: var(--muted);
}
.bf-specs-panel{
  padding: clamp(28px, 3vw, 36px) clamp(28px, 3vw, 40px);
}
.bf-specs-panel h3{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.bf-specs-list{
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.bf-specs-list li{
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.bf-specs-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.bf-specs-list li strong{ color: var(--navy); }
/* Label/value specification rows */
.bf-spec-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14.5px;
}
.bf-spec-table td{
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.6;
  vertical-align: top;
}
.bf-spec-table tr:last-child td{ border-bottom: none; }
.bf-spec-table .bf-spec-key{
  width: 30%;
  background: var(--bg-2);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
}
@media (max-width: 640px){
  .bf-spec-table,
  .bf-spec-table tbody,
  .bf-spec-table tr,
  .bf-spec-table td{ display: block; width: 100%; }
  .bf-spec-table tr{ margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .bf-spec-table td{ border-bottom: 1px solid var(--line); }
  .bf-spec-table tr td:last-child{ border-bottom: none; }
}

@media (max-width: 900px){
  .bf-product-hero-grid{ grid-template-columns: 1fr; }
  .bf-product-hero-visual{
    min-height: clamp(260px, 50vw, 340px);
    order: -1;
  }
  .bf-detail-main{ grid-template-columns: 1fr; }
  .bf-slider{
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 280px;
  }
  .bf-slider-slide img{ height: 240px; max-height: 240px; }
  .bf-detail-downloads{ justify-content: flex-start; }
}
@media (max-width: 640px){
  .bf-catalog-grid{ grid-template-columns: 1fr; }
  .bf-type-grid.manifold-grid{ grid-template-columns: 1fr; }
}

/* Tabular data — shared material/spec tables (MatTable) on product & solution pages */
.mat-table-wrap{
  overflow-x:auto; border-radius:var(--radius-lg); border:1px solid var(--line); box-shadow:var(--shadow-sm);
}
.mat-table{ width:100%; border-collapse:collapse; font-size:14px; background:#fff; }
.mat-table th{
  background:var(--navy); color:#fff; padding:12px 16px; text-align:left;
  font-family:var(--font-display); font-weight:600; font-size:13px;
  white-space:nowrap;
}
.mat-table td{
  padding:11px 16px; border-bottom:1px solid var(--line); color:var(--ink-2);
  vertical-align:top; line-height:1.55;
}
.mat-table tr:last-child td{ border-bottom:none; }
.mat-table tr:nth-child(even) td{ background:var(--bg-2); }
.mat-table .tag-cell{
  display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap;
}
.mat-tag{
  background:var(--navy-50); color:var(--navy); font-size:11px;
  font-family:var(--font-body); letter-spacing:.06em;
  padding:2px 8px; border-radius:4px; white-space:nowrap;
  display:inline-block; margin:2px;
}
