/* ================================
   Probest main listing page
   body_id: probest
================================ */

/* Hero */

body#probest .probest-hero {
  position: relative;
  height: 45vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

body#probest .probest-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body#probest .probest-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body#probest .probest-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.38));
}

body#probest .probest-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 96px;
}

body#probest .probest-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;

  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  line-height: 1.4;
}

body#probest .probest-breadcrumb a {
  color: rgba(255, 255, 255, 0.64);
  text-decoration: none;
  transition: color 180ms ease;
}

body#probest .probest-breadcrumb a:hover {
  color: #ffffff;
}

body#probest .probest-hero h1 {
  margin: 0;

  color: #ffffff;
  font-size: 64px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Intro */

body#probest .probest-intro-section {
  background: #ffffff;
  padding: 56px 0;
}

body#probest .probest-intro-container {
  max-width: 860px;
}

body#probest .probest-intro-section h2 {
  margin: 0 0 16px;

  color: #111827;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body#probest .probest-intro-section p {
  margin: 0;

  color: #444444;
  font-size: 18px;
  line-height: 1.75;
}

/* Product grid */

body#probest .probest-products-section {
  background: #f8f7f4;
}

body#probest .probest-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

body#probest .probest-products-grid > .animated-section {
  min-width: 0;
  height: 100%;
}

/* Card */

body#probest .probest-product-card {
  display: flex;
  flex-direction: column;

  height: 100%;
  min-height: 430px;
  overflow: hidden;

  border-radius: 24px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;

  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.08);

  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

body#probest .probest-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

/* Image area */

body#probest .probest-product-image {
  height: 220px;
  min-height: 220px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
  background: #ffffff;
  overflow: hidden;
}

body#probest .probest-product-image img {
  display: block;

  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 175px;

  object-fit: contain;
  margin: 0 auto;

  transition: transform 320ms ease;
}

body#probest .probest-product-card:hover .probest-product-image img {
  transform: scale(1.035);
}

/* Content */

body#probest .probest-product-content {
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 22px 22px 24px;
  background: #f8f7f4;
}

body#probest .probest-product-logo-wrap {
  display: block;

  width: 92px;
  max-width: 92px;
  height: 26px;

  margin: 0 0 14px;
  padding: 0;
}

body#probest .probest-product-logo {
  display: block;

  width: auto;
  height: auto;
  max-width: 92px;
  max-height: 26px;

  object-fit: contain;
}

body#probest .probest-product-content h3 {
  margin: 0 0 10px;

  color: #111827;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

body#probest .probest-product-content p {
  margin: 0 0 18px;

  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

body#probest .probest-product-button {
  margin-top: auto;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #e30613;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body#probest .probest-product-button svg {
  transition: transform 180ms ease;
}

body#probest .probest-product-card:hover .probest-product-button svg {
  transform: translateX(4px);
}

body#probest .probest-product-card,
body#probest .probest-product-card *,
body#probest .probest-product-card h3,
body#probest .probest-product-card p,
body#probest .probest-product-card span {
  white-space: normal;
}

body#probest .probest-product-button {
  white-space: nowrap;
}

@media (max-width: 1240px) {
  body#probest .probest-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  body#probest .probest-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body#probest .probest-product-card {
    min-height: 410px;
  }

  body#probest .probest-hero h1 {
    font-size: 54px;
  }
}

@media (max-width: 767px) {
  body#probest {
    overflow-x: hidden;
  }

  body#probest .probest-hero {
    min-height: 340px;
  }

  body#probest .probest-hero h1 {
    font-size: 38px;
  }

  body#probest .probest-intro-section {
    padding: 44px 0;
  }

  body#probest .probest-intro-section h2 {
    font-size: 28px;
  }

  body#probest .probest-intro-section p {
    font-size: 16px;
  }

  body#probest .probest-products-section {
    overflow: hidden;
  }

  body#probest .probest-products-section .container-main {
    width: 100%;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
    overflow: visible;
  }

  body#probest .probest-products-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    overflow: visible;
  }

  body#probest .probest-products-grid > .animated-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    overflow: visible;
  }

  body#probest .probest-product-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    border-radius: 24px;
  }

  body#probest .probest-product-image {
    width: 100%;
    height: 230px;
    min-height: 230px;
    max-height: 230px;
    padding: 22px;
  }

  body#probest .probest-product-image img {
    max-width: 92%;
    max-height: 190px;
  }

  body#probest .probest-product-content {
    padding: 24px 24px 26px;
  }

  body#probest .probest-product-logo-wrap {
    height: auto;
  }

  body#probest .probest-product-content h3 {
    font-size: 22px;
    line-height: 1.22;
  }

  body#probest .probest-product-content p {
    display: block;
    overflow: visible;

    font-size: 15px;
    line-height: 1.55;
    -webkit-line-clamp: unset;
  }

  body#probest .probest-product-button {
    margin-top: 0;
  }
}
