/* Product category landing — intro + catalog grid */

main.products-category-page {
  min-height: 100vh;
}

.products-category-page .hero .text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
}

/* ——— Intro ——— */
.category-intro {
  padding: 2.5rem 0 1rem;
  background: linear-gradient(180deg, #f8f9fb 0%, #fff 40%);
}

.category-intro__inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.category-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: #292929;
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}

.category-back:hover {
  color: #58669f;
}

.category-back .fa {
  font-size: 0.85em;
}

.category-intro__layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 2.5rem;
  align-items: start;
}

@media only screen and (max-width: 900px) {
  .category-intro__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.category-intro__content .sub-heading {
  font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
  margin-bottom: 0.75rem !important;
  text-align: left;
}

.category-intro__content .highlight {
  color: #58669f;
}

.category-intro__lead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #5c5c5c;
  margin: 0 0 1.25rem;
  max-width: 52rem;
}

.category-intro__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.category-intro__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #3a3a3a;
}

.category-intro__highlights .fa {
  color: #58669f;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.category-intro__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Contact card (from product details) */
main.products-category-page .pd-contact-card {
  border: 1px solid #e7e9ee;
  border-radius: 12px;
  padding: 1.35rem 1.25rem 1.5rem;
  background: #fff;
  box-shadow: 0 8px 28px rgba(41, 41, 41, 0.06);
}

main.products-category-page .pd-contact-card__title {
  font-family: "Oswald", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.35rem !important;
  color: #111 !important;
}

main.products-category-page .pd-contact-card__sub {
  font-size: 0.88rem;
  color: #7a8088;
  line-height: 1.45;
  margin: 0 0 1rem !important;
}

main.products-category-page .pd-contact-card__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: #292929 !important;
  margin-bottom: 0.65rem;
  transition: color 0.2s;
}

main.products-category-page .pd-contact-card__link:hover {
  color: #58669f !important;
}

main.products-category-page .pd-contact-card__link .fa {
  width: 1.1rem;
  color: #58669f;
}

main.products-category-page .pd-contact-card__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eef0f4;
}

main.products-category-page .pd-contact-card__socials a {
  font-size: 1.35rem;
  color: #58669f !important;
  transition: opacity 0.2s, transform 0.2s;
}

main.products-category-page .pd-contact-card__socials a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

main.products-category-page .pd-buy-now {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.85rem 1.25rem !important;
  border-radius: 10px !important;
  border: none !important;
  background: #58669f !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: "Roboto", sans-serif !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

main.products-category-page .pd-buy-now:hover {
  background: #3d4a73 !important;
  color: #fff !important;
}

.category-intro__applications {
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 7px;
  padding: 1.1rem 1.15rem;
}

.category-intro__applications h3 {
  font-family: "Oswald", sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #292929;
  margin: 0 0 0.65rem !important;
}

.category-intro__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-intro__tag {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #58669f;
  background: #58669f14;
  border: 1px solid #58669f33;
}

/* ——— Applications pill carousel ——— */
.category-pills {
  width: 100%;
  background: #fff;
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.category-pills .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #eef0f47c;
  border-bottom: 1px solid #eef0f47c;
  padding: 2.75rem 0;
}

.category-pills__viewport {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.category-pills-swiper {
  overflow: visible;
}

.category-pills-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.category-pills-swiper .swiper-slide {
  width: auto;
  height: auto;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid #d2d7df;
  border-radius: 999px;
  background: #fff;
  color: #5c5c5c;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
}

.category-pill .fa-solid {
  font-size: 1rem;
  color: #7a8088;
  flex-shrink: 0;
}

@media only screen and (max-width: 600px) {
  .category-pills {
    margin-top: 1rem;
  }
  .category-pills .container {
    padding: 2rem 0;
  }
}

/* ——— Products in category ——— */
.category-products {
  padding: 2rem 0 4rem;
  background: #fff;
}

.category-products__inner {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.category-products__head {
  margin-bottom: 1.5rem;
}

.category-products__head h2 {
  font-family: "Oswald", sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #292929;
  margin: 0 0 0.35rem !important;
}

.category-products__head p {
  font-size: 0.98rem;
  color: #5c5c5c;
  margin: 0;
  line-height: 1.5;
}

.category-products .catalog-toolbar {
  margin-bottom: 1.5rem;
}

.category-products .catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media only screen and (max-width: 1100px) {
  .category-products .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 520px) {
  .category-products .catalog-grid {
    grid-template-columns: 1fr;
  }
}

.category-not-found {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #5c5c5c;
}

.category-not-found h2 {
  font-size: 1.5rem !important;
  margin-bottom: 0.75rem !important;
}

.category-not-found a {
  color: #58669f;
  font-weight: 500;
}

/* ======================CUSTOM PRODUCTS CARDS STYLES ====================== */
.category-products__inner {
  max-width: 1200px;
}

/* ——— Fallback gallery when a category has no products ——— */
.category-products .catalog-grid.is-gallery {
  gap: 1rem;
}

.category-products .catalog-grid.is-gallery .category-gallery__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef0f4;
}

.category-products .catalog-grid.is-gallery .category-gallery__item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

@media only screen and (max-width: 1100px) {
  .category-products .catalog-grid.is-gallery .category-gallery__item img {
    height: 200px;
  }
}

@media only screen and (max-width: 520px) {
  .category-products .catalog-grid.is-gallery .category-gallery__item img {
    height: 240px;
  }
}