body.hr-shop-red.type-category #content .subcategories {
  --hr-sub-gap: clamp(10px, 1.4vw, 18px);
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 246px), 1fr));
  gap: var(--hr-sub-gap);
  width: 100%;
  max-width: 100%;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

body.hr-shop-red.type-category #content .subcategories:has(> li:nth-child(4):last-child) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(246px, calc((100% - var(--hr-sub-gap)) / 2))), 1fr));
}

body.hr-shop-red.type-category #content .subcategories::before,
body.hr-shop-red.type-category #content .subcategories::after,
body.hr-shop-red.type-category #content .subcategories > li > a::before,
body.hr-shop-red.type-category #content .subcategories > li > a::after,
body.hr-shop-red.type-category #content .subcategories > li > a > .text::after {
  content: none;
}

body.hr-shop-red.type-category #content .subcategories > li {
  display: flex;
  align-items: stretch;
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.hr-shop-red.type-category #content .subcategories > li > a {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 92px;
  margin: 0;
  padding: clamp(10px, 1.15vw, 15px);
  border: 1px solid #e5d8d2;
  border-radius: 15px;
  background: linear-gradient(145deg, #fffdfa 14%, #f8f0ec 100%);
  box-shadow: 0 8px 22px -18px #6e392b90;
  color: #302625;
  text-align: left;
  text-decoration: none;
}

body.hr-shop-red.type-category #content .subcategories > li > a > .image {
  position: static;
  display: grid;
  flex: 0 0 clamp(72px, 37%, 122px);
  place-items: center;
  width: auto;
  height: auto;
  max-width: none;
  aspect-ratio: 7 / 5;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #eadfd9;
  border-radius: 10px;
  background: #fffdfb;
}

body.hr-shop-red.type-category #content .subcategories > li > a > .image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain;
}

body.hr-shop-red.type-category #content .subcategories > li > a > .text {
  position: static;
  display: block;
  min-width: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 0;
  color: inherit;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.hr-shop-red.type-category #content .subcategories > li > a > .text::before {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 0 8px;
  border-radius: 2px;
  background: #a02c38;
  content: '';
}

body.hr-shop-red.type-category #content .subcategories > li > a:focus-visible {
  outline: 3px solid #852632;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  body.hr-shop-red.type-category #content .subcategories > li > a:hover {
    border-color: #c28185;
    box-shadow: 0 12px 26px -18px #6e392bc7;
    color: #822634;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.hr-shop-red.type-category #content .subcategories > li > a {
    transition: border-color 240ms ease, box-shadow 240ms ease, color 240ms ease;
  }
}
