/* Themed cover placeholders — corporate catalog / product / news */

.cover-ph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  padding: 1.25rem 1rem;
  isolation: isolate;
}

.cover-ph__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(145deg, #061d3d 0%, #0a2d5c 45%, #123f6e 100%);
}

.cover-ph__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 100%);
}

.cover-ph__icon {
  position: relative;
  z-index: 2;
  width: min(38%, 120px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.cover-ph__svg { width: 100%; height: 100%; display: block; }

.cover-ph__meta {
  position: relative;
  z-index: 2;
  margin-top: 0.85rem;
  max-width: 92%;
}

.cover-ph__badge {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.cover-ph__title {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.cover-ph--compact { padding: 0.75rem; }
.cover-ph--compact .cover-ph__icon { width: min(46%, 88px); }
.cover-ph--compact .cover-ph__meta { display: none; }

.cover-ph--photo {
  padding: 0;
  align-items: stretch;
  justify-content: flex-end;
  background: #1a2430;
}
.cover-ph__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cover-ph__meta--over {
  position: relative;
  z-index: 2;
  margin-top: 0;
  max-width: none;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: left;
  background: linear-gradient(transparent, rgba(6, 20, 40, 0.78));
}
.cover-ph--compact.cover-ph--photo .cover-ph__meta--over { display: none; }

/* Theme gradients */
.cover-ph--marine .cover-ph__bg { background: linear-gradient(145deg, #041628 0%, #0a3d6e 55%, #0a2d5c 100%); }
.cover-ph--fire .cover-ph__bg { background: linear-gradient(145deg, #3d1208 0%, #8b2e12 50%, #5c1a0a 100%); }
.cover-ph--atomic .cover-ph__bg { background: linear-gradient(145deg, #0c1f33 0%, #1a4a6e 50%, #0a2d5c 100%); }
.cover-ph--fitting .cover-ph__bg,
.cover-ph--pipeline .cover-ph__bg,
.cover-ph--joint .cover-ph__bg { background: linear-gradient(145deg, #0a2438 0%, #155a7a 55%, #0a2d5c 100%); }
.cover-ph--protector .cover-ph__bg { background: linear-gradient(145deg, #142820 0%, #1f5a48 55%, #0a2d5c 100%); }
.cover-ph--flange .cover-ph__bg { background: linear-gradient(145deg, #1a2430 0%, #3d4f63 55%, #0a2d5c 100%); }
.cover-ph--pressure .cover-ph__bg,
.cover-ph--industrial .cover-ph__bg { background: linear-gradient(145deg, #1a1f26 0%, #4a5568 50%, #0a2d5c 100%); }
.cover-ph--news .cover-ph__bg { background: linear-gradient(145deg, #061d3d 0%, #1e4976 100%); }
.cover-ph--product .cover-ph__bg,
.cover-ph--catalog .cover-ph__bg,
.cover-ph--valve .cover-ph__bg,
.cover-ph--valve-gate .cover-ph__bg,
.cover-ph--valve-check .cover-ph__bg,
.cover-ph--valve-safety .cover-ph__bg,
.cover-ph--valve-control .cover-ph__bg,
.cover-ph--valve-gauge .cover-ph__bg,
.cover-ph--valve-manifold .cover-ph__bg,
.cover-ph--gate .cover-ph__bg,
.cover-ph--crane .cover-ph__bg,
.cover-ph--filter .cover-ph__bg,
.cover-ph--cup .cover-ph__bg,
.cover-ph--column .cover-ph__bg { background: linear-gradient(145deg, #061d3d 0%, #0c3a66 48%, #0a2d5c 100%); }

.catalog-card__img .cover-ph,
.card__media .cover-ph { min-height: 100%; }

.product-card__img .cover-ph { min-height: 100%; aspect-ratio: 4 / 3; }

.product-gallery__main .cover-ph { min-height: 360px; aspect-ratio: 4 / 3; }

.home-catalog .card__media .cover-ph,
.home-catalog .card__media > .catalog-card__img .cover-ph { aspect-ratio: 4 / 3; min-height: 100%; }

.home-split__media .cover-ph__icon { width: min(32%, 104px); }

.news-item .cover-ph { width: 200px; height: 120px; flex-shrink: 0; padding: 0.75rem; }
.news-item__thumb .cover-ph { width: 100%; height: 100%; padding: 0.65rem; }
.news-item .cover-ph__icon { width: 56px; }
.news-item .cover-ph__meta { display: none; }
