/* Light and depth for the homepage product mosaic. */
body[data-page="home"] .category {
  border: 1px solid rgba(0, 73, 82, .07);
  box-shadow: var(--product-tile-shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}

body[data-page="home"] .category:hover,
body[data-page="home"] .category:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 39px rgba(30, 58, 52, .17),
    0 4px 10px rgba(30, 58, 52, .045),
    inset 0 1px rgba(255, 255, 255, .52);
}

body[data-page="home"] .category-spices {
  background: radial-gradient(ellipse 95% 100% at 0 0, rgba(255, 255, 255, .16), transparent 72%),
    linear-gradient(145deg, #08717a 0%, #005d67 56%, #004a54 100%);
}

body[data-page="home"] .category-kissel {
  background: var(--kissel-surface);
}

body[data-page="home"] .category-drinks {
  background: linear-gradient(145deg, #f0f5e9 0%, #e3eddc 46%, #d4e2cc 100%);
}

body[data-page="home"] .category-catalog {
  background: linear-gradient(145deg, #fffdf8 0%, #fbf4e9 55%, #f3e8d7 100%);
}

body[data-page="home"] .category-open,
body[data-page="home"] .category-soups .category-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 48px;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  margin-top: auto;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: linear-gradient(145deg, #0d7180, #005360);
  box-shadow: inset 0 1px rgba(255, 255, 255, .21),
    0 7px 17px rgba(0, 60, 70, .16);
  color: #fffdf7;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
  transition: width .33s cubic-bezier(.22, 1, .36, 1), box-shadow .24s ease;
}

body[data-page="home"] .category-spices .category-open,
body[data-page="home"] .category-kissel .category-open {
  border-color: rgba(255, 255, 255, .36);
  background: linear-gradient(145deg, #fffdf7, #f4eadb);
  box-shadow: inset 0 1px rgba(255, 255, 255, .92),
    0 7px 17px rgba(0, 35, 40, .14);
  color: var(--teal);
}

body[data-page="home"] .category-open svg {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="home"] .category-open-text {
  display: block;
  flex: none;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-5px);
  transition: max-width .33s cubic-bezier(.22, 1, .36, 1), opacity .2s ease,
    transform .3s ease;
}

body[data-page="home"] .category:hover .category-open,
body[data-page="home"] .category:focus-visible .category-open {
  width: 180px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .27),
    0 11px 22px rgba(0, 60, 70, .2);
}

body[data-page="home"] .category:hover .category-open-text,
body[data-page="home"] .category:focus-visible .category-open-text {
  max-width: 140px;
  opacity: 1;
  transform: translateX(0);
}

@media (hover: none), (max-width: 680px) {
  body[data-page="home"] .category-open,
  body[data-page="home"] .category-soups .category-open {
    width: min(100%, 172px);
    min-height: 39px;
    height: 39px;
    padding: 0 10px;
    gap: 5px;
    font-size: .72rem;
  }

  body[data-page="home"] .category-open svg {
    flex-basis: 19px;
    width: 19px;
    height: 19px;
  }

  body[data-page="home"] .category-open-text {
    max-width: 140px;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 420px) {
  body[data-page="home"] .category-spices,
  body[data-page="home"] .category-kissel,
  body[data-page="home"] .category-drinks,
  body[data-page="home"] .category-catalog {
    padding-inline: 16px;
  }

  body[data-page="home"] .category-open,
  body[data-page="home"] .category-soups .category-open {
    font-size: .68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .category,
  body[data-page="home"] .category-open,
  body[data-page="home"] .category-open-text {
    transition: none;
  }

  body[data-page="home"] .category:hover,
  body[data-page="home"] .category:focus-visible {
    transform: none;
  }
}
