/* ==========================================================
   OPAL'S CAKE — PREMIUM CATEGORIES
   Compact 6 Cards / One Row Desktop
========================================================== */

.category-section {
  position: relative;
  overflow: hidden;
}


/* ==========================================================
   GRID
========================================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}


/* ==========================================================
   CARD
========================================================== */

.category-card {
  position: relative;
  min-width: 0;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  text-align: left;

  border: 1px solid rgba(99, 39, 79, .10);
  border-radius: 18px;

  box-shadow:
    0 8px 24px
    rgba(99, 39, 79, .05);

  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}


.category-card--link {
  cursor: pointer;
}


@media (hover: hover) and (pointer: fine) {

  .category-card:hover {
    transform: translateY(-5px);

    border-color:
      rgba(202, 87, 141, .24);

    box-shadow:
      0 15px 32px
      rgba(99, 39, 79, .10);
  }

}


/* ==========================================================
   IMAGE
========================================================== */

.category-image-wrap {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}


.category-image-wrap::after {
  content: "";

  position: absolute;

  width: 70%;
  height: 25%;

  left: 50%;
  bottom: -15%;

  transform: translateX(-50%);

  border-radius: 50%;

  background:
    rgba(99, 39, 79, .07);

  filter: blur(16px);

  pointer-events: none;
}


.category-image {
  position: relative;
  z-index: 2;

  width: 92%;
  object-fit: contain;

  transition:
    transform .4s
    cubic-bezier(.2, .75, .25, 1);
}


@media (hover: hover) and (pointer: fine) {

  .category-card:hover
  .category-image {
    transform:
      scale(1.04)
      translateY(-2px);
  }

}


/* ==========================================================
   CONTENT
========================================================== */

.category-content {
  flex: 1;

  display: flex;
  flex-direction: column;

  padding:
    14px
    13px
    15px;
}


.category-eyebrow {
  margin-bottom: 5px;

  color: var(--primary);

  font-size: .56rem;
  font-weight: 900;

  letter-spacing: .10em;

  text-transform: uppercase;
}


.category-card h3 {
  color: var(--secondary);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1rem;
  font-weight: 600;

  line-height: 1.2;

  letter-spacing: -.02em;
}


/* ==========================================================
   ACTION
========================================================== */

.category-action,
.category-note {
  margin-top: auto;
  padding-top: 11px;

  font-size: .67rem;
  font-weight: 800;
}


.category-action {
  width: fit-content;

  display: inline-flex;
  align-items: center;

  gap: 6px;

  color: var(--primary);

  transition:
    color .25s ease;
}


.category-action > span {
  width: 21px;
  height: 21px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--soft);

  font-size: .7rem;

  transition:
    transform .25s ease,
    background .25s ease,
    color .25s ease;
}


@media (hover: hover) and (pointer: fine) {

  .category-card--link:hover
  .category-action {
    color: var(--secondary);
  }


  .category-card--link:hover
  .category-action > span {
    transform: translateX(2px);

    background: var(--primary);

    color: #ffffff;
  }

}


.category-note {
  color: var(--muted);

  font-weight: 600;

  line-height: 1.4;
}


/* ==========================================================
   FOCUS
========================================================== */

.category-card--link:focus-visible {
  outline:
    3px solid
    rgba(202, 87, 141, .25);

  outline-offset: 3px;
}


/* ==========================================================
   RESPONSIVE — SMALL DESKTOP / TABLET
========================================================== */

@media(max-width: 1100px) {

  .category-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 16px;
  }


  .category-card h3 {
    font-size: 1.1rem;
  }

}


/* ==========================================================
   MOBILE
========================================================== */

@media(max-width: 650px) {

  .category-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 12px;
  }


  .category-card {
    border-radius: 16px;
  }


  .category-image-wrap {
    margin:
      7px
      7px
      0;

    border-radius: 12px;
  }


  .category-content {
    padding:
      12px
      11px
      13px;
  }


  .category-card h3 {
    font-size: .95rem;
  }


  .category-eyebrow {
    font-size: .52rem;
  }


  .category-action,
  .category-note {
    padding-top: 9px;

    font-size: .63rem;
  }

}


/* ==========================================================
   VERY SMALL MOBILE
========================================================== */

@media(max-width: 360px) {

  .category-grid {
    grid-template-columns: 1fr;
  }


  .category-image-wrap {
    aspect-ratio: 1.45 / 1;
  }


  .category-image {
    width: 82%;
    height: 82%;
  }


  .category-card h3 {
    font-size: 1.05rem;
  }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media(prefers-reduced-motion: reduce) {

  .category-card,
  .category-image,
  .category-action > span {
    transition: none;
  }

}