.catalog-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.catalog-hero-image,
.catalog-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.catalog-hero-image {
  object-fit: cover;
}

.catalog-hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.36));
}

.catalog-hero-content {
  position: relative;
  padding-bottom: 54px;
}

.catalog-hero-content h1 {
  max-width: 760px;
  margin-bottom: 16px;
}

.catalog-hero-content p:not(.section-kicker) {
  max-width: 740px;
  margin: 0;
  font-size: 1.08rem;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.catalog-contact-link {
  color: #8d9dad;
  font-weight: 700;
  text-decoration: none;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.14);
}

.catalog-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.catalog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.catalog-card-body h2 {
  font-size: 1.55rem;
}

.catalog-card-body p {
  flex: 1;
  margin: 0;
  color: #5a5f66;
}

.catalog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-badge,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
}

.catalog-card .catalog-badge,
.catalog-card .tag-pill,
.product-summary .tag-pill,
.admin-item .tag-pill {
  color: #fff;
  background: #222;
  border-color: #222;
}

.catalog-price {
  color: #111;
  font-size: 1rem;
  font-weight: 800;
}

.catalog-price-muted {
  color: #6f757d;
}

.product-page {
  background: #f5f6f7;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 40px;
}

.product-gallery-main {
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

.product-gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.product-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb.is-active {
  border-color: #111;
}

.product-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-summary > p {
  margin: 0;
  color: #555b62;
}

.product-meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-contact-card {
  padding: 28px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

.product-contact-card p:last-of-type {
  margin-bottom: 0;
}

.product-dark-outline {
  border-color: #555;
  color: #222;
  background: rgba(255, 255, 255, 0.82);
}

.product-dark-outline:hover {
  color: #fff;
  background: #222;
}

.empty-state {
  text-align: center;
}

@media (max-width: 1020px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .catalog-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .catalog-grid,
  .product-gallery-strip {
    grid-template-columns: 1fr;
  }
}
