/* /cakes — All Cakes category listing. Card grid ported from the design handoff's
   CardListing.css; the trust-strip below it reuses .GTAChoose/.CounterCardListing/
   .CounterCardCTA from inner-hero.css (§14/§16), so this file only needs the grid. */

/* Hero banner image (upload/banners/all-cakes.png, upload/banners/desserts.png — small
   near-square, often transparent PNGs) needs to be shown in full, not cropped like the
   shared content-blocks.css hero treatment (tuned for landscape design photography).
   Same fix as category.css's .HeroInner override (§17). */
.HeroInner .hero-a-media .frame {
  background: var(--cream);
}

.HeroInner .hero-a-media .frame img {
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
}

.cardSection {
  padding: 80px 0;
  background: var(--white);
}

.cardListing {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .cardListing {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .cardListing {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .cardListing {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cardListing .card {
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid #8080801a;
  overflow: hidden;
  position: relative;
  transition: all 0.6s;
}

.cardListing .card:hover {
  box-shadow: 0px 0px 50px 0px #e2327d36;
  border: 1px solid transparent;
  z-index: 1;
}

.cardListing .card figure {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--gold-pale);
  padding: 10px;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  width: 100%;
  margin: 0;
}

.cardListing .card figure img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s;
}

.cardListing .card:hover figure img {
  transform: scale(1.1);
}

.cardListing .card h2 {
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  color: var(--gray-txt);
  padding: 16px 10px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
