/* ##################################################
   #   App additions on top of the Green Light design  #
   ################################################## */

/* Rich text coming from the dashboard (services, products, projects, legal pages) */
.details-rich h2 {
  margin-bottom: 26px;
  font-size: clamp(34px, 3.6vw, 54px);
}

.details-rich h3 {
  margin: 36px 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--second-color);
}

.details-rich p,
.details-rich li {
  font-size: 16px;
  line-height: 1.85;
  color: #607068;
}

.details-rich ul:not([class]) {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.details-rich ul:not([class]) li {
  position: relative;
  padding-inline-start: 42px;
  font-size: 15px;
  font-weight: 600;
  color: var(--second-color);
}

.details-rich ul:not([class]) li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 11px;
  background: rgba(8, 123, 60, 0.08);
  color: var(--main-color);
}

.details-rich table {
  width: 100%;
  margin-bottom: 0;
  border: 1px solid var(--line-color);
  border-collapse: collapse;
}

.details-rich table tr + tr {
  border-top: 1px solid var(--line-color);
}

.details-rich table th,
.details-rich table td {
  padding: 16px 22px;
  font-size: 14px;
}

.details-rich table th,
.details-rich table td:first-child:not(:only-child) {
  width: 38%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--main-color);
  background: var(--fifth-color);
  border-inline-end: 1px solid var(--line-color);
}

.details-rich table td {
  font-weight: 600;
  color: var(--second-color);
}

.details-rich table p {
  margin: 0;
  font-size: inherit;
  line-height: 1.5;
  color: inherit;
}

.details-rich a {
  color: var(--main-color);
  text-decoration: underline;
}

/* Pagination */
.pagination {
  --bs-pagination-color: var(--second-color);
  --bs-pagination-hover-color: var(--main-color);
  --bs-pagination-active-bg: var(--main-color);
  --bs-pagination-active-border-color: var(--main-color);
  --bs-pagination-focus-box-shadow: 0 0 0 4px rgba(72, 189, 97, 0.15);
  justify-content: center;
  gap: 6px;
}

/* Forms */
.quote-form .cf-turnstile,
.contact-form .cf-turnstile,
.details-form .cf-turnstile {
  max-width: 100%;
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: progress;
}

/* Uploaded logos can have any aspect ratio */
.header .navbar-brand img,
.footer-brand img,
.loading .pulse-circle img {
  object-fit: contain;
}

/* Social media links (footer + contact page) */
.social-links a {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.footer-brand .social-links a {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #b8c8bf;
}

.footer-brand .social-links a:hover {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: #04110b;
}

.contact-cards .social-links a {
  display: inline-grid;
  background: rgba(8, 123, 60, 0.08);
  color: var(--main-color);
  font-size: 15px;
  line-height: 1;
}

.contact-cards .social-links a:hover {
  background: var(--main-color);
  color: var(--white-color);
}

.contact-cards .social-links i {
  width: auto;
  height: auto;
  display: inline;
  background: none;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

/* Subcategory links reuse the product tag pills */
.details-tags a {
  color: inherit;
  text-decoration: none;
}

/* Category tabs above the products grid */
.product-filter li {
  padding: 0;
}

.product-filter li a {
  display: block;
  padding: 10px 18px;
}

.product-filter li.active {
  background: var(--main-color);
  border-color: var(--main-color);
  color: var(--white-color);
}

/* Downloadable product datasheet */
.datasheet-card {
  padding: 22px 24px;
  border: 1px solid var(--line-color);
  border-radius: 3px 22px 3px 22px;
  background: var(--fifth-color);
}

.datasheet-card .datasheet-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 24px;
  background: rgba(8, 123, 60, 0.1);
  color: var(--main-color);
}

.datasheet-card strong {
  display: block;
  font-size: 16px;
  color: var(--second-color);
}

.datasheet-card small {
  font-size: 13px;
  color: #65736b;
}

.details-rich .datasheet-card a.btn-main {
  color: var(--white-color);
  text-decoration: none;
}

/* Product page: contained product photo, sticky quote form, related products slider */
.product-details-image {
  height: clamp(300px, 38vw, 460px);
  min-height: 0;
  padding: 28px;
  border: 1px solid var(--line-color);
  background: #fff;
}

.product-details-image img {
  object-fit: contain;
  filter: none;
}

.product-details-image::after {
  display: none;
}

@media (min-width: 992px) {
  .product-details-aside {
    position: sticky;
    top: 110px;
  }
}

.related-products .product-card {
  min-height: 460px;
}

.related-products-swiper {
  padding: 8px 0 14px;
}

.related-products-nav button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-color);
  border-radius: 50%;
  background: var(--white-color);
  color: var(--second-color);
  font-size: 14px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.related-products-nav button:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  color: var(--white-color);
}

.related-products-nav button.swiper-button-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Empty-state message used when a listing has no records */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: #65736b;
}
