/* Echo Powerplay brand + system repair
   Scoped to the plugin body class so deactivation is a complete rollback. */

.echo-powerplay-brand-system-repair .em-catalog-head {
  padding: 20px 0 !important;
  background:
    radial-gradient(circle at 86% 16%, rgba(230, 55, 67, .18), transparent 30%),
    linear-gradient(135deg, #121a23 0%, #090e14 68%) !important;
}

.echo-powerplay-brand-system-repair .em-catalog-head::after {
  right: -60px;
  bottom: -230px;
  width: 520px;
  height: 360px;
  border-color: rgba(255, 255, 255, .07);
}

.echo-powerplay-brand-system-repair .em-catalog-head-row {
  min-height: 104px;
  align-items: center !important;
  gap: 30px;
}

.echo-powerplay-brand-system-repair .em-catalog-heading-block {
  display: grid;
  gap: 7px;
}

.echo-powerplay-brand-system-repair .em-catalog-back {
  width: fit-content;
  margin: 0 !important;
  color: #9aa7b4;
  font-size: .7rem;
  letter-spacing: .02em;
}

.echo-powerplay-brand-system-repair .em-catalog-head h1 {
  max-width: 900px;
  margin: 0 !important;
  font-size: clamp(2.25rem, 4vw, 4rem) !important;
  line-height: .92 !important;
  letter-spacing: -.05em;
}

.echo-powerplay-brand-system-repair .em-catalog-head-aside {
  display: block !important;
  flex: 0 0 auto;
  margin-left: auto;
}

.echo-powerplay-brand-system-repair .em-catalog-trust {
  display: none !important;
}

.echo-powerplay-brand-system-repair .em-catalog-brand-plate {
  display: grid !important;
  place-items: center;
  width: min(300px, 26vw) !important;
  min-height: 96px !important;
  padding: 15px 22px !important;
  border: 0;
  border-radius: 15px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.echo-powerplay-brand-system-repair .em-catalog-brand-plate > span {
  display: none !important;
}

.echo-powerplay-brand-system-repair .em-catalog-brand-plate img {
  width: auto;
  max-width: 238px !important;
  max-height: 66px !important;
  object-fit: contain;
}

.echo-powerplay-brand-system-repair .em-catalog-brand-plate.em-powerplay-brand-applied-torque-solutions img {
  width: 238px;
  height: 70px;
}

.echo-powerplay-brand-system-repair .em-catalog-brand-plate.em-powerplay-brand-superpro img {
  width: 240px;
  height: 70px;
  object-fit: cover;
  object-position: center;
}

.echo-powerplay-brand-system-repair .em-catalog-system-plate {
  display: block !important;
  width: 260px !important;
  min-width: 0 !important;
  height: 100px;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 15px !important;
  background: #f1f3f5 !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .30) !important;
}

.echo-powerplay-brand-system-repair .em-catalog-system-plate img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #f1f3f5;
  object-fit: cover !important;
  object-position: center;
}

.echo-powerplay-brand-system-repair .em-catalog-system-plate > span {
  display: none !important;
}

/* Shop by System: nine compact, useful cards with one canonical visual each. */
.echo-powerplay-brand-system-repair .em-systems-section {
  padding-block: 48px !important;
}

.echo-powerplay-brand-system-repair .em-systems-section .em-section-head {
  margin-bottom: 20px;
}

.echo-powerplay-brand-system-repair .em-systems-section .em-section-head h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.65rem);
}

.echo-powerplay-brand-system-repair .em-system-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.echo-powerplay-brand-system-repair .em-system-card {
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 4px 14px;
  min-height: 132px !important;
  padding: 10px !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #121a23, #0b1016) !important;
}

.echo-powerplay-brand-system-repair .em-system-art {
  grid-row: 1 / 3;
  width: 132px;
  min-height: 110px !important;
  height: 110px;
  margin: 0 !important;
  border-radius: 10px !important;
  background: #edf0f2 !important;
}

.echo-powerplay-brand-system-repair .em-system-art img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center;
}

.echo-powerplay-brand-system-repair .em-system-card strong {
  align-self: end;
  margin: 0 0 2px !important;
  font-size: 1.02rem;
  line-height: 1.15;
}

.echo-powerplay-brand-system-repair .em-system-card > .em-powerplay-system-count {
  display: block !important;
  align-self: start;
  margin: 0 !important;
  color: #ff7a83;
  font-size: .7rem;
  font-weight: 900;
}

/* Brand directory: real assets, product counts, and less dead space. */
.echo-powerplay-brand-system-repair.echo-brands-directory-page .em-content-shell {
  width: min(calc(100% - 32px), 1220px);
  padding: 44px 0 72px;
}

.echo-powerplay-brand-system-repair.echo-brands-directory-page .em-content-shell article {
  padding: 24px !important;
}

.echo-powerplay-brand-system-repair.echo-brands-directory-page .em-content-shell h1 {
  margin: 4px 0 20px !important;
  font-size: clamp(2.75rem, 5vw, 4.8rem) !important;
  line-height: .92;
}

.echo-powerplay-brand-system-repair .em-brand-directory {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px !important;
}

.echo-powerplay-brand-system-repair .em-brand-directory .em-brand-card {
  flex: 0 1 calc((100% - 50px) / 6);
}

.echo-powerplay-brand-system-repair .em-brand-card {
  position: relative;
  min-height: 108px !important;
  padding: 15px 15px 28px !important;
  overflow: hidden;
  background: linear-gradient(145deg, #121922, #0b1016) !important;
}

.echo-powerplay-brand-system-repair .em-brand-card img {
  width: auto;
  max-width: 88% !important;
  max-height: 54px !important;
  object-fit: contain;
}

.echo-powerplay-brand-system-repair .em-brand-card.em-powerplay-brand-applied-torque-solutions,
.echo-powerplay-brand-system-repair .em-brand-card.em-powerplay-brand-superpro {
  background: linear-gradient(145deg, #121922, #0b1016) !important;
  border-color: rgba(255, 255, 255, .12);
}

.echo-powerplay-brand-system-repair .em-brand-card.em-powerplay-brand-applied-torque-solutions img {
  width: 92%;
  height: 68px;
}

.echo-powerplay-brand-system-repair .em-brand-card.em-powerplay-brand-superpro img {
  width: 94%;
  height: 66px;
  object-fit: cover;
  object-position: center;
}

.echo-powerplay-brand-system-repair .em-powerplay-card-count {
  position: absolute;
  right: 11px;
  bottom: 8px;
  color: #8e9ba8;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .02em;
}

.echo-powerplay-brand-system-repair .em-brand-card.em-powerplay-brand-applied-torque-solutions .em-powerplay-card-count,
.echo-powerplay-brand-system-repair .em-brand-card.em-powerplay-brand-superpro .em-powerplay-card-count {
  color: #8e9ba8;
}

@media (max-width: 1080px) {
  .echo-powerplay-brand-system-repair .em-brand-directory .em-brand-card {
    flex-basis: calc((100% - 30px) / 4);
  }
}

@media (max-width: 820px) {
  .echo-powerplay-brand-system-repair .em-catalog-head {
    padding: 12px 0 11px !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-head-row,
  .echo-powerplay-brand-system-repair .em-catalog-head-brand .em-catalog-head-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 112px !important;
    min-height: 78px;
    gap: 12px !important;
    text-align: left !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-head-system .em-catalog-head-row {
    grid-template-columns: minmax(0, 1fr) 98px !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-heading-block {
    gap: 4px;
  }

  .echo-powerplay-brand-system-repair .em-catalog-head h1,
  .echo-powerplay-brand-system-repair .em-catalog-head-brand h1 {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    border: 0 !important;
    font-size: clamp(1.55rem, 7vw, 2.15rem) !important;
    line-height: .96 !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-head-aside,
  .echo-powerplay-brand-system-repair .em-catalog-head-brand .em-catalog-head-aside {
    display: block !important;
    margin: 0 !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-brand-plate,
  .echo-powerplay-brand-system-repair .em-catalog-head-brand .em-catalog-brand-plate {
    width: 112px !important;
    height: 64px;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 7px !important;
    border-radius: 11px !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-brand-plate img,
  .echo-powerplay-brand-system-repair .em-catalog-head-brand .em-catalog-brand-plate img {
    max-width: 98px !important;
    max-height: 50px !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-brand-plate.em-powerplay-brand-applied-torque-solutions img,
  .echo-powerplay-brand-system-repair .em-catalog-brand-plate.em-powerplay-brand-superpro img {
    width: 98px;
    height: 50px;
  }

  .echo-powerplay-brand-system-repair .em-catalog-system-plate {
    width: 98px !important;
    height: 64px;
    min-height: 64px !important;
    border-radius: 11px !important;
    box-shadow: none !important;
  }

  .echo-powerplay-brand-system-repair .em-systems-section {
    padding-block: 32px !important;
  }

  .echo-powerplay-brand-system-repair .em-system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .echo-powerplay-brand-system-repair .em-system-card {
    display: flex !important;
    min-height: 154px !important;
    padding: 8px !important;
  }

  .echo-powerplay-brand-system-repair .em-system-art {
    width: 100%;
    min-height: 96px !important;
    height: 96px;
  }

  .echo-powerplay-brand-system-repair .em-system-card strong {
    margin: 9px 2px 0 !important;
    font-size: .84rem;
  }

  .echo-powerplay-brand-system-repair .em-system-card > .em-powerplay-system-count {
    margin: 2px 2px 0 !important;
    font-size: .63rem;
  }

  .echo-powerplay-brand-system-repair.echo-brands-directory-page .em-content-shell {
    width: min(calc(100% - 20px), 1220px);
    padding: 26px 0 68px;
  }

  .echo-powerplay-brand-system-repair.echo-brands-directory-page .em-content-shell article {
    padding: 15px !important;
  }

  .echo-powerplay-brand-system-repair.echo-brands-directory-page .em-content-shell h1 {
    margin-bottom: 14px !important;
    font-size: 2.75rem !important;
  }

  .echo-powerplay-brand-system-repair .em-brand-directory {
    gap: 9px !important;
  }

  .echo-powerplay-brand-system-repair .em-brand-directory .em-brand-card {
    flex-basis: calc((100% - 9px) / 2);
  }

  .echo-powerplay-brand-system-repair .em-brand-card {
    min-height: 88px !important;
    padding: 10px 10px 24px !important;
  }

  .echo-powerplay-brand-system-repair .em-brand-card img {
    max-height: 40px !important;
  }

  .echo-powerplay-brand-system-repair .em-brand-card.em-powerplay-brand-applied-torque-solutions img,
  .echo-powerplay-brand-system-repair .em-brand-card.em-powerplay-brand-superpro img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .echo-powerplay-brand-system-repair .em-catalog-head-row,
  .echo-powerplay-brand-system-repair .em-catalog-head-brand .em-catalog-head-row {
    grid-template-columns: minmax(0, 1fr) 96px !important;
    gap: 9px !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-head-system .em-catalog-head-row {
    grid-template-columns: minmax(0, 1fr) 88px !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-head h1,
  .echo-powerplay-brand-system-repair .em-catalog-head-brand h1 {
    font-size: 1.62rem !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-head-brand h1 {
    font-size: 1.35rem !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-brand-plate,
  .echo-powerplay-brand-system-repair .em-catalog-head-brand .em-catalog-brand-plate {
    width: 96px !important;
    height: 56px;
    min-height: 56px !important;
    padding: 6px !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-brand-plate img,
  .echo-powerplay-brand-system-repair .em-catalog-head-brand .em-catalog-brand-plate img,
  .echo-powerplay-brand-system-repair .em-catalog-brand-plate.em-powerplay-brand-applied-torque-solutions img,
  .echo-powerplay-brand-system-repair .em-catalog-brand-plate.em-powerplay-brand-superpro img {
    width: 84px;
    height: 44px;
    max-width: 84px !important;
    max-height: 44px !important;
  }

  .echo-powerplay-brand-system-repair .em-catalog-system-plate {
    width: 88px !important;
    height: 56px;
    min-height: 56px !important;
  }

  .echo-powerplay-brand-system-repair .em-system-card {
    min-height: 145px !important;
  }

  .echo-powerplay-brand-system-repair .em-system-art {
    min-height: 88px !important;
    height: 88px;
  }
}
