/* Category 4279 only: present new subcategories as text cards while no
   verified thumbnails have been selected under the technical image gate. */
body.term-4279 .category-grid-item .wd-cat-thumb {
  display: none;
}

body.term-4279 .category-grid-item .wd-cat-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  padding: 16px 40px 16px 18px;
  border: 1px solid #e8defb;
  border-left: 4px solid #6246ea;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8f5ff 0%, #fff 100%);
  box-shadow: 0 4px 14px rgba(47, 31, 91, .07);
  transition: box-shadow .18s ease, transform .18s ease;
}

body.term-4279 .category-grid-item .wd-cat-inner::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6246ea;
  font-size: 24px;
  line-height: 1;
}

body.term-4279 .category-grid-item .wd-cat-inner:hover {
  box-shadow: 0 8px 20px rgba(47, 31, 91, .13);
  transform: translateY(-2px);
}

body.term-4279 .category-grid-item .wd-cat-content {
  width: auto;
  padding: 0;
  text-align: left;
}

body.term-4279 .category-grid-item .wd-entities-title {
  color: #20262d;
  font-size: 16px;
  line-height: 1.35;
}

@media (max-width: 767px) {
  body.term-4279 .category-grid-item .wd-cat-inner {
    min-height: 78px;
    padding: 12px 32px 12px 12px;
  }
  body.term-4279 .category-grid-item .wd-entities-title {
    font-size: 14px;
  }
  body.term-4279 .category-grid-item .wd-cat-inner::after {
    right: 10px;
  }
}

.raimag-home-child-intro {
  margin: 0 0 22px;
  padding: 15px 18px;
  border: 1px solid #e5e3ef;
  border-left: 4px solid #6853c6;
  border-radius: 9px;
  background: #fbfaff;
  color: #1d2940;
  line-height: 1.55;
}

.raimag-home-child-intro p {
  margin: 0;
}

@media (max-width: 767px) {
  .raimag-home-child-intro {
    margin-bottom: 18px;
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* The archive combines category and product cards in one Woodmart grid.
   Make the first product begin a new row after all five category cards. */
body.term-4279 .products.wd-products.wd-grid-g > .category-grid-item + .product-grid-item {
  grid-column: 1;
}
