/* Shared catalog finish for batteries and solar panels. */
.catalog-polished .hero {
  padding-block: clamp(34px, 4.5vw, 58px) clamp(28px, 3.5vw, 44px) !important;
}

.catalog-polished .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr) !important;
  gap: clamp(28px, 4vw, 58px) !important;
  align-items: center !important;
}

.catalog-polished .hero h1 {
  max-width: 760px !important;
  margin: 12px 0 18px !important;
  font-size: clamp(44px, 5vw, 72px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.035em !important;
  text-wrap: balance;
}

.catalog-polished .hero p {
  max-width: 680px !important;
  font-size: clamp(16px, 1.25vw, 18px) !important;
  line-height: 1.52 !important;
  text-wrap: pretty;
}

.catalog-polished .hero-actions {
  margin-top: 22px !important;
}

.catalog-polished .hero-warranty {
  grid-template-columns: 104px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100%;
  max-width: 410px !important;
  padding: 18px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  background: rgba(245, 247, 248, 0.7) !important;
}

.catalog-polished .hero-warranty-logo {
  min-height: 104px !important;
  border-radius: 6px !important;
}

.catalog-polished .hero-warranty-logo img {
  width: 86px !important;
  max-width: 86px !important;
  max-height: 82px !important;
  object-fit: contain;
}

.catalog-panels .hero-warranty-logo img {
  width: 52px !important;
  max-width: 52px !important;
  max-height: 86px !important;
}

.catalog-polished .hero-warranty > div:last-child {
  display: flex !important;
  flex-direction: column;
  align-self: center;
  gap: 6px !important;
  min-width: 0;
  overflow: visible !important;
}

.catalog-polished .hero-warranty h2 {
  margin: 0 !important;
  white-space: nowrap;
  font-size: clamp(27px, 2.2vw, 32px) !important;
  line-height: 1 !important;
  letter-spacing: -0.025em !important;
}

.catalog-polished .hero-warranty p {
  max-width: none !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  overflow-wrap: normal !important;
}

.catalog-polished #shop {
  padding-top: clamp(26px, 3vw, 42px) !important;
}

.catalog-polished #shop,
.catalog-polished #faq {
  scroll-margin-top: 88px;
}

.catalog-polished .shop-layout {
  grid-template-columns: 252px minmax(0, 1fr) !important;
  gap: 18px !important;
}

.catalog-polished .shop-filter {
  top: 88px !important;
  gap: 14px !important;
  padding: 18px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.catalog-polished .filter-group {
  gap: 5px !important;
  padding-top: 12px !important;
}

.catalog-polished .filter-option {
  min-height: 44px !important;
  padding-inline: 2px !important;
  font-weight: 720 !important;
}

.catalog-polished .filter-option input {
  width: 20px !important;
  height: 20px !important;
}

.catalog-polished .filter-reset {
  min-height: 44px !important;
}

.catalog-polished .shop-results {
  gap: 12px !important;
}

.catalog-polished .shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}

.catalog-polished .active-filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.catalog-polished .active-filter-list:empty {
  display: none;
}

.catalog-polished .active-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(143, 174, 53, 0.42);
  border-radius: 999px;
  background: rgba(143, 174, 53, 0.08);
  color: #1a1d21;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.catalog-polished .active-filter-chip::after {
  content: "×";
  margin-left: 7px;
  color: rgba(11, 13, 15, 0.52);
  font-size: 16px;
  line-height: 1;
}

.catalog-polished .shop-grid {
  gap: 12px !important;
}

.catalog-polished .shop-card.product-card {
  min-height: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(43, 49, 55, 0.14) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.catalog-polished .shop-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px rgba(11, 13, 15, 0.08) !important;
}

.catalog-polished .product-card-image {
  height: 196px !important;
  margin: 10px 0 12px !important;
  border-radius: 6px !important;
  background: transparent !important;
}

.catalog-polished .product-card-image img {
  height: 184px !important;
  max-width: 88% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 14px 22px rgba(11, 13, 15, 0.12)) !important;
}

.catalog-panels .product-card-image img {
  height: 176px !important;
}

.catalog-polished .product-kind {
  display: block;
  margin-bottom: 5px;
  color: rgba(11, 13, 15, 0.56);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.catalog-polished .product-model {
  display: block;
  color: #0b0d0f;
  overflow-wrap: anywhere;
}

.catalog-polished .shop-card.product-card h3 {
  min-height: 54px;
  margin: 8px 0 0 !important;
  font-size: clamp(16px, 1.4vw, 19px) !important;
  line-height: 1.12 !important;
}

.catalog-polished .shop-card.product-card .item-price {
  margin-top: 16px !important;
  font-size: clamp(22px, 2vw, 28px) !important;
}

.catalog-polished .shop-card .item-price::after {
  content: none !important;
}

.catalog-polished .seo-faq {
  padding-top: clamp(42px, 5vw, 68px) !important;
}

.catalog-polished .related-link-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.catalog-polished .related-link-group {
  padding-top: 14px;
  border-top: 1px solid rgba(43, 49, 55, 0.12);
}

.catalog-polished .related-link-group h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.2;
}

.catalog-polished .related-link-group .related-links {
  margin-top: 0;
}

.catalog-polished .related-links a {
  min-height: 40px;
  border-radius: 6px;
}

@media (max-width: 980px) {
  .catalog-polished .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .catalog-polished .hero-warranty {
    grid-template-columns: 88px minmax(0, 1fr) !important;
  }

  .catalog-polished .hero-warranty-logo {
    min-height: 88px !important;
  }

  .catalog-polished .shop-layout {
    grid-template-columns: 1fr !important;
  }

  .catalog-polished .related-link-groups {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .catalog-polished {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .catalog-polished .hero {
    padding-block: 28px 22px !important;
  }

  .catalog-polished .hero h1 {
    margin: 10px 0 14px !important;
    font-size: clamp(36px, 10.2vw, 46px) !important;
  }

  .catalog-polished .hero p {
    font-size: 15px !important;
  }

  .catalog-polished .hero-actions .btn {
    min-height: 50px !important;
  }

  .catalog-polished .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-polished .active-filter-list {
    justify-content: flex-start;
  }

  .catalog-polished .active-filter-chip {
    min-height: 36px;
  }

  .catalog-polished .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .catalog-polished .shop-card.product-card {
    padding: 12px !important;
  }

  .catalog-polished .product-card-image {
    height: 132px !important;
    margin: 7px 0 9px !important;
  }

  .catalog-polished .product-card-image img,
  .catalog-panels .product-card-image img {
    height: 126px !important;
    max-width: 90% !important;
  }

  .catalog-polished .shop-card-top {
    gap: 5px !important;
  }

  .catalog-polished .spec-badge {
    padding: 4px 6px !important;
    font-size: 9px !important;
  }

  .catalog-polished .product-kind {
    font-size: 10px;
  }

  .catalog-polished .shop-card.product-card h3 {
    min-height: 58px;
    margin-top: 5px !important;
    font-size: clamp(14px, 4vw, 17px) !important;
  }

  .catalog-polished .shop-card.product-card .item-price {
    margin-top: 12px !important;
    font-size: clamp(20px, 6vw, 26px) !important;
  }

  .catalog-polished .related-link-groups {
    grid-template-columns: 1fr;
  }

  .catalog-polished .related-links a {
    min-height: 44px;
  }

  .catalog-polished .mobile-sticky-cta .btn,
  .catalog-polished .filter-reset,
  .catalog-polished .filter-option,
  .catalog-polished .catalog-preset-chip,
  .catalog-polished .mobile-filter-toggle {
    min-height: 44px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-polished .shop-card,
  .catalog-polished .shop-card:hover {
    transform: none !important;
    transition: none !important;
  }
}

/* Win over legacy catalog rules without changing the shared site layer. */
body.catalog-polished:has(.shop-layout) .shop-card.product-card {
  padding: 18px !important;
}

body.catalog-polished:has(.shop-layout) .hero-warranty {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 390px !important;
  min-height: 0 !important;
  padding: 18px !important;
  border-radius: 8px !important;
  background: rgba(245, 247, 248, 0.7) !important;
  box-shadow: none !important;
}

body.catalog-polished:has(.shop-layout) .hero-warranty-logo {
  display: grid !important;
  min-height: 104px !important;
  place-items: center !important;
  border-radius: 6px !important;
}

body.catalog-panels:has(.shop-layout) .hero-warranty-logo img {
  width: 64px !important;
  max-width: 64px !important;
  max-height: 88px !important;
}

body.catalog-polished:has(.shop-layout) .hero-warranty > div:last-child {
  display: flex !important;
  min-width: 0 !important;
  height: auto !important;
  align-self: center !important;
  flex-direction: column !important;
  gap: 6px !important;
}

body.catalog-polished:has(.shop-layout) .hero-warranty h2 {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
  font-size: clamp(27px, 2.2vw, 32px) !important;
  line-height: 1 !important;
}

body.catalog-polished:has(.shop-layout) .hero-warranty p {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  overflow-wrap: normal !important;
}

body.catalog-polished:has(.shop-layout) .product-card-image,
body.catalog-polished:has(.shop-layout) .product-card-image.is-battery {
  width: 100% !important;
  height: 196px !important;
  min-height: 0 !important;
  margin: 10px 0 12px !important;
  overflow: hidden !important;
}

body.catalog-polished:has(.shop-layout) .product-card-image img,
body.catalog-polished:has(.shop-layout) .product-card-image.is-battery img,
body.catalog-polished:has(.shop-layout) .product-card-image.is-battery img.battery-image-fill,
body.catalog-polished:has(.shop-layout) .product-card-image.is-panel img {
  width: auto !important;
  height: auto !important;
  max-width: 88% !important;
  max-height: 184px !important;
  padding: 0 !important;
  object-fit: contain !important;
  filter: drop-shadow(0 14px 22px rgba(11, 13, 15, 0.12)) !important;
}

body.catalog-panels:has(.shop-layout) .product-card-image.is-panel img {
  max-height: 176px !important;
}

body.catalog-polished:has(.shop-layout) .shop-card.product-card h3 {
  min-height: 54px !important;
  margin: 8px 0 0 !important;
  font-size: clamp(16px, 1.4vw, 19px) !important;
  line-height: 1.12 !important;
}

body.catalog-polished:has(.shop-layout) .shop-card.product-card .item-price {
  margin-top: 16px !important;
  padding-top: 12px !important;
  font-size: clamp(22px, 2vw, 28px) !important;
}

@media (max-width: 640px) {
  body.catalog-polished:has(.shop-layout) .hero-warranty {
    display: none !important;
  }

  body.catalog-polished:has(.shop-layout) .shop-card,
  body.catalog-polished:has(.shop-layout) .shop-card.product-card {
    height: auto !important;
    min-width: 0 !important;
    padding: 12px !important;
    overflow: hidden !important;
  }

  body.catalog-polished:has(.shop-layout) .shop-card[hidden],
  body.catalog-polished:has(.shop-layout) .shop-card.is-hidden {
    display: none !important;
  }

  body.catalog-polished:has(.shop-layout) .shop-card.product-card > div:first-child {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
  }

  body.catalog-polished:has(.shop-layout) .product-specs {
    display: none !important;
  }

  body.catalog-polished:has(.shop-layout) .product-card-image,
  body.catalog-polished:has(.shop-layout) .product-card-image.is-battery {
    height: 132px !important;
    min-height: 132px !important;
    margin: 7px 0 9px !important;
  }

  body.catalog-polished:has(.shop-layout) .product-card-image img,
  body.catalog-polished:has(.shop-layout) .product-card-image.is-battery img,
  body.catalog-polished:has(.shop-layout) .product-card-image.is-battery img.battery-image-fill,
  body.catalog-polished:has(.shop-layout) .product-card-image.is-panel img {
    width: 100% !important;
    height: 100% !important;
    max-width: 90% !important;
    max-height: 126px !important;
    padding: 4px !important;
  }

  body.catalog-polished:has(.shop-layout) .shop-card.product-card h3 {
    min-height: 58px !important;
    margin: 5px 0 0 !important;
    font-size: clamp(14px, 4vw, 17px) !important;
    line-height: 1.12 !important;
  }

  body.catalog-polished:has(.shop-layout) .shop-card.product-card .item-price {
    margin-top: 10px !important;
    padding-top: 10px !important;
    font-size: clamp(20px, 6vw, 26px) !important;
  }
}
