:root {
  --flower-category-gap: 20px;
}

.flower-categories {
  position: relative;
  isolation: isolate;
  padding-top: 72px;
  padding-bottom: 88px;
}

.flower-categories__header {
  position: relative;
  min-height: 236px;
  display: flex;
  align-items: center;
}

.flower-categories__copy {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.flower-categories__eyebrow {
  margin: 0 0 16px;
  color: #6d8584;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.flower-categories__title {
  max-width: 580px;
  margin: 0;
  color: #073f37;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(44px, 4vw, 58px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
}

.flower-categories__description {
  max-width: 560px;
  margin: 18px 0 0;
  color: #76858c;
  font-size: 18px;
  line-height: 1.45;
}

.flower-categories__decoration {
  position: absolute;
  z-index: 0;
  top: -24px;
  right: -20px;
  width: min(70%, 850px);
  height: 290px;
  object-fit: contain;
  object-position: right top;
  pointer-events: none;
}

.flower-categories__toolbar {
  display: none;
}

.flower-categories__all-link,
.flower-categories__mobile-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #064b3f;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
}

.flower-categories__all-link .icon,
.flower-categories__mobile-cta .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.flower-categories__all-link:hover .icon,
.flower-categories__mobile-cta:hover .icon {
  transform: translateX(3px);
}

.flower-categories__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--flower-category-gap);
}

.flower-category-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e9eeec;
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.flower-category-card:hover {
  border-color: #f4c6cb;
  box-shadow: 0 10px 24px rgba(18, 62, 55, .08);
  transform: translateY(-2px);
}

.flower-category-card:focus-visible,
.flower-categories__all-link:focus-visible,
.flower-categories__mobile-cta:focus-visible {
  outline: 3px solid rgba(239, 48, 77, .28);
  outline-offset: 4px;
}

.flower-category-card__image {
  display: block;
  aspect-ratio: 1.34;
  overflow: hidden;
  background: #f9e7e7;
}

.flower-category-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.flower-category-card:hover .flower-category-card__image img {
  transform: scale(1.03);
}

.flower-category-card__content {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 15px;
}

.flower-category-card__content > span:first-child {
  min-width: 0;
}

.flower-category-card__title,
.flower-category-card__count {
  display: block;
}

.flower-category-card__title {
  color: #17272c;
  font-family: var(--font-display, Georgia, serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.12;
}

.flower-category-card__count {
  margin-top: 6px;
  color: #77858c;
  font-size: 14px;
  line-height: 1.25;
}

.flower-category-card__arrow {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f1;
  color: #c9243c;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.flower-category-card__arrow .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.flower-category-card:hover .flower-category-card__arrow {
  background: #ef304d;
  color: #fff;
  transform: translateX(2px);
}

.flower-categories__mobile-cta {
  position: relative;
  z-index: 1;
  display: none;
}

@media (max-width: 1179px) {
  .flower-categories__decoration {
    width: 42%;
    height: 300px;
    right: 0;
  }

  .flower-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .flower-categories {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .flower-categories__header {
    min-height: 0;
    display: block;
  }

  .flower-categories__copy {
    max-width: none;
  }

  .flower-categories__eyebrow {
    margin-bottom: 13px;
    font-size: 11px;
    letter-spacing: .12em;
  }

  .flower-categories__title {
    max-width: 360px;
    font-size: clamp(34px, 9vw, 40px);
    line-height: .98;
  }

  .flower-categories__description {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.45;
  }

  .flower-categories__decoration,
  .flower-categories__toolbar {
    display: none;
  }

  .flower-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
  }

  .flower-category-card--mobile-hidden {
    display: none;
  }

  .flower-category-card {
    border-radius: 16px;
  }

  .flower-category-card__image {
    aspect-ratio: 1.08;
  }

  .flower-category-card__content {
    min-height: 56px;
    align-items: flex-start;
    gap: 6px;
    padding: 11px 10px 12px;
  }

  .flower-category-card__title {
    font-size: 16px;
  }

  .flower-category-card__count {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.22;
  }

  .flower-category-card__arrow {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    margin-top: 1px;
  }

  .flower-category-card__arrow .icon {
    width: 16px;
    height: 16px;
  }

  .flower-categories__mobile-cta {
    display: flex;
    width: 100%;
    min-height: 54px;
    justify-content: center;
    margin-top: 20px;
    border-radius: 16px;
    background: #fff0f1;
    color: #ef304d;
  }
}

@media (max-width: 359px) {
  .flower-category-card__content {
    padding-inline: 8px;
  }

  .flower-category-card__title {
    font-size: 15px;
  }

  .flower-category-card__count {
    font-size: 11px;
  }
}
