/* The same compact category blocks in public pages and the owner's preview. */
.sf7-root {
  width: calc(100% - var(--pd-page-gutter, 24px) * 2);
  max-width: var(--pd-content-width, 1440px);
  margin-inline: auto;
  padding: 24px 0 36px;
}
.sf7-section {
  margin-bottom: 36px;
}
.sf7-root .sf7-hero {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid #dfe7ed;
  border-radius: 18px;
}
.sf7-root h1,
#category-page-v8 .sf7-hero h1 {
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.16;
  margin-bottom: 14px;
}
.sf7-root h2 {
  font-size: clamp(24px, 2.4vw, 32px);
}
.sf7-description {
  font-size: 15px;
  line-height: 1.7;
}
.sf7-with-image {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.sf7-hero-image,
#category-page-v8 .sf7-hero-image {
  aspect-ratio: 1.65;
  max-height: 320px;
  object-fit: cover;
}
.sf7-grid {
  gap: 20px;
  align-items: stretch;
}
.sf7-category {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}
.sf7-category-photo {
  aspect-ratio: 1.8;
}
.sf7-category-photo img {
  padding: 12px;
}
.sf7-category-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}
.sf7-category-copy h3 {
  font-size: 20px;
}
.sf7-category-copy > span {
  margin-top: auto;
}
.sf7-product {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 16px;
}
.sf7-product-photo {
  aspect-ratio: 1.1;
}
.sf7-product > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.sf7-product h3 {
  min-height: 2.6em;
  font-size: 15px;
  text-wrap: auto;
}
.sf7-product strong {
  margin-top: auto;
  padding-top: 12px;
}
.sf7-banner {
  padding: clamp(24px, 3vw, 36px);
}
.sf7-banner img {
  aspect-ratio: 1.8;
}
.sf7-benefit {
  padding: 24px;
}
.sf7-benefit > span {
  margin-bottom: 12px;
}
.sf7-button {
  gap: 16px;
  margin-top: 20px;
  min-height: 46px;
  border-radius: 10px;
  font-size: 14px;
}
@media (max-width: 900px) {
  .sf7-grid {
    gap: 16px;
  }
  .sf7-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .sf7-root {
    padding-block: 20px 28px;
  }
  .sf7-with-image {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sf7-root .sf7-hero {
    padding: 22px;
  }
  .sf7-section {
    margin-bottom: 28px;
  }
  .sf7-grid {
    gap: 12px;
  }
  .sf7-category-copy {
    padding: 14px;
  }
  .sf7-category-copy h3 {
    font-size: 16px;
  }
  .sf7-description {
    font-size: 14px;
  }
  .sf7-product {
    padding: 10px;
  }
  .sf7-product h3 {
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .sf7-categories {
    grid-template-columns: 1fr;
  }
}
