:root {
  --pink: #e5007d;
  --pink-dark: #bc0066;
  --pink-soft: #fff0f8;
  --ink: #21181d;
  --muted: #70666c;
  --line: #f0d9e5;
  --bg: #fffafd;
}

.home-category-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 1px 14px;
}

.home-category-grid::-webkit-scrollbar { display: none; }

.home-category-grid a {
  position: relative;
  display: flex;
  flex: 0 0 235px;
  flex-direction: column;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #fff0f8);
  padding: 19px;
  scroll-snap-align: start;
}

.home-category-grid a:hover {
  border-color: #f3b9d5;
  box-shadow: 0 14px 36px #9d075315;
}

.home-category-grid strong { max-width: 68%; font-size: 17px; }
.home-category-grid small { margin-top: 6px; font-size: 12px; }
.home-category-grid img { right: -5px; bottom: -4px; width: 58%; height: 72%; }
.category-row-shell .row-arrow { top: 48%; }

.category-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 14px;
}

.category-grid::-webkit-scrollbar { display: none; }
.catalog-category-shell { position: relative; }
.catalog-category-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffffff2;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 22px #42142c1d;
}
.catalog-category-arrow.prev { left: -17px; }
.catalog-category-arrow.next { right: -17px; }
.catalog-category-arrow[hidden] { display: none; }
.catalog-category-arrow:disabled { opacity: .35; cursor: default; }
.category-grid .category-tile {
  display: block;
  flex: 0 0 235px;
  min-height: 148px;
  padding: 19px;
  scroll-snap-align: start;
  background: linear-gradient(145deg, #fff, #fff0f8);
}
.category-grid .category-tile strong,
.category-grid .category-tile small { display: block; position: relative; z-index: 2; max-width: 45%; }
.category-grid .category-tile strong { font-size: 17px; line-height: 1.25; }
.category-grid .category-tile small { margin-top: 9px; align-self: auto; line-height: 1.3; }
.category-grid .category-tile img { right: 4px; bottom: 2px; width: 52%; height: 76%; object-position: right bottom; }

@media (max-width: 760px) {
  .home-category-grid { gap: 10px; }
  .home-category-grid a { flex-basis: 44vw; min-width: 148px; min-height: 132px; padding: 15px; }
  .home-category-grid strong { font-size: 15px; }
  .home-category-grid img { width: 60%; height: 68%; }
  .category-grid { gap: 10px; }
  .category-grid .category-tile { flex-basis: 44vw; min-width: 148px; min-height: 132px; padding: 15px; }
  .category-grid .category-tile strong { font-size: 15px; }
  .category-grid .category-tile strong,
  .category-grid .category-tile small { max-width: 45%; }
  .category-grid .category-tile img { right: 2px; width: 49%; height: 70%; }
  .catalog-category-arrow { width: 36px; height: 36px; font-size: 25px; }
  .catalog-category-arrow.prev { left: -8px; }
  .catalog-category-arrow.next { right: -8px; }
}
