/* MN4.5 - Category/Catalog public page CSS
   Surface CSS only. No business rules, no SQL, no JS dependency. */

.category-hero {
  background: var(--mp-surface, #fff);
  border-radius: var(--mp-radius, 22px);
  box-shadow: var(--mp-shadow, 0 16px 40px rgba(17, 24, 39, .08));
  padding: 32px;
  margin-bottom: 28px;
}

.category-hero__content {
  max-width: 760px;
}

.category-hero .breadcrumbs {
  margin-bottom: 1rem;
}

.category-hero__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--mp-ink, #1f2937);
  font-weight: 850;
}

.category-hero__text {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--mp-muted, #6b7280);
}

.category-products {
  padding: .5rem 0 4rem;
}

.category-products .section-header {
  margin-bottom: 1.25rem;
}

.category-products .section-header__title {
  margin: 0;
  color: var(--mp-ink, #1f2937);
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 850;
}

.category-products .section-header__text {
  margin: .25rem 0 0;
  color: var(--mp-muted, #6b7280);
}

/* Catalog product grid isolated from generic search/card button styles. */
.category-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.category-products .product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .07);
}

.category-products .product-card > .product-card__link,
.category-products .product-card > a.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  line-height: normal;
}

.category-products .product-card > .product-card__link:hover,
.category-products .product-card > a.product-card__link:hover {
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.category-products .product-card__image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: #f6eeeb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-products .product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-products .product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: .45rem;
  padding: 1rem;
  background: #ffffff;
}

.category-products .product-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.7em;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--mp-ink, #1f2937);
  font-weight: 800;
}

.category-products .product-card__bakery {
  margin: 0;
  min-height: 1.25em;
  color: var(--mp-muted, #6b7280);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.35;
}

.category-products .product-card__price {
  margin: .1rem 0 .55rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.category-products .product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 36px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--mp-brand, #a30d18);
  color: #ffffff;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.category-products .empty-state {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(17, 24, 39, .08);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
}

.category-products .empty-state h3,
.category-products .empty-state p {
  margin-top: 0;
}

@media (min-width: 1180px) {
  .category-products .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .category-products .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .category-hero {
    padding: 24px;
    border-radius: 18px;
  }

  .category-products .product-grid {
    grid-template-columns: 1fr;
  }
}

/* MN6B_VISUAL_POLISH_MPV — Public product card polish. Surface CSS only. */
.product-card__image-wrap,
.search-results .product-card__image,
.category-products .product-card__image-wrap {
  background: #f8f1ef;
}

.product-card__image,
.category-products .product-card__image,
.business-profile-page .product-card__image {
  object-fit: cover;
}

.product-card,
.category-products .product-card {
  will-change: transform;
}

.product-card:hover,
.category-products .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(17, 24, 39, .10);
}

.product-card__title {
  text-wrap: balance;
}

.product-card__price,
.product-card__price-line {
  letter-spacing: -.01em;
}

.product-card__cta {
  cursor: pointer;
}
/* END MN6B_VISUAL_POLISH_MPV */
