body.post-type-archive-product .dp-shop-categories,
body.tax-product_cat .dp-shop-categories {
  margin: 34px 0 42px !important;
}

body.post-type-archive-product .dp-shop-categories__grid,
body.tax-product_cat .dp-shop-categories__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

body.post-type-archive-product .dp-shop-category-card,
body.tax-product_cat .dp-shop-category-card {
  --dp-cat-img-opacity: .82;
  --dp-cat-img-x: 50%;
  --dp-cat-img-y: 50%;
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  min-height: 390px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 34px !important;
  background: #0d0d0f !important;
  box-shadow: none !important;
}

body.tax-product_cat .dp-shop-category-card.dp-shop-category-card--small {
  min-height: 320px !important;
}

body.post-type-archive-product .dp-shop-category-card::before,
body.tax-product_cat .dp-shop-category-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  background-image: var(--dp-cat-img) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: var(--dp-cat-img-x) var(--dp-cat-img-y) !important;
  opacity: var(--dp-cat-img-opacity) !important;
  filter: none !important;
  transform: scale(1.015) !important;
  transform-origin: center !important;
  transition: transform .35s ease, opacity .25s ease !important;
  pointer-events: none !important;
}

body.post-type-archive-product .dp-shop-category-card::after,
body.tax-product_cat .dp-shop-category-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  background: linear-gradient(90deg, rgba(5,5,6,.78) 0%, rgba(5,5,6,.48) 48%, rgba(5,5,6,.18) 100%) !important;
  pointer-events: none !important;
}

body.post-type-archive-product .dp-shop-category-card:hover::before,
body.tax-product_cat .dp-shop-category-card:hover::before {
  transform: scale(1.045) !important;
}

body.post-type-archive-product .dp-shop-category-card__media,
body.tax-product_cat .dp-shop-category-card__media,
body.post-type-archive-product .dp-shop-category-card__image,
body.tax-product_cat .dp-shop-category-card__image,
body.post-type-archive-product .dp-shop-category-card__placeholder,
body.tax-product_cat .dp-shop-category-card__placeholder {
  display: none !important;
}

body.post-type-archive-product .dp-shop-category-card__body,
body.tax-product_cat .dp-shop-category-card__body {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 40px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  transform: none !important;
}

body.post-type-archive-product .dp-shop-category-card__label,
body.tax-product_cat .dp-shop-category-card__label {
  margin: 0 0 16px !important;
  color: rgba(255,255,255,.72) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
}

body.post-type-archive-product .dp-shop-category-card__title,
body.tax-product_cat .dp-shop-category-card__title,
body.tax-product_cat .dp-shop-category-card.dp-shop-category-card--small .dp-shop-category-card__title {
  display: block !important;
  max-width: 9ch !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(38px, 3.5vw, 66px) !important;
  font-weight: 950 !important;
  line-height: .94 !important;
  letter-spacing: -.045em !important;
  text-align: left !important;
  text-decoration: none !important;
  text-shadow: none !important;
  text-transform: uppercase !important;
  white-space: normal !important;
}

body.tax-product_cat .dp-shop-category-card.dp-shop-category-card--small .dp-shop-category-card__title {
  font-size: clamp(32px, 3vw, 52px) !important;
}

body.post-type-archive-product .dp-shop-category-card__meta,
body.tax-product_cat .dp-shop-category-card__meta {
  margin: 22px 0 0 !important;
  color: #ef5151 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: left !important;
}

body.post-type-archive-product .dp-shop-category-card__children,
body.tax-product_cat .dp-shop-category-card__children {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  width: 100% !important;
  margin: 26px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.post-type-archive-product .dp-shop-category-card__child,
body.tax-product_cat .dp-shop-category-card__child {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  transition: background .2s ease, color .2s ease !important;
}

body.post-type-archive-product .dp-shop-category-card__child:hover,
body.tax-product_cat .dp-shop-category-card__child:hover {
  background: #ef5151 !important;
  color: #fff !important;
  transform: none !important;
}

@media (max-width: 1024px) {
  body.post-type-archive-product .dp-shop-categories__grid,
  body.tax-product_cat .dp-shop-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.post-type-archive-product .dp-shop-category-card,
  body.tax-product_cat .dp-shop-category-card {
    min-height: 340px !important;
  }

  body.post-type-archive-product .dp-shop-category-card__body,
  body.tax-product_cat .dp-shop-category-card__body {
    padding: 32px !important;
  }
}

@media (max-width: 680px) {
  body.post-type-archive-product .dp-shop-categories,
  body.tax-product_cat .dp-shop-categories {
    margin: 26px 0 32px !important;
  }

  body.post-type-archive-product .dp-shop-categories__grid,
  body.tax-product_cat .dp-shop-categories__grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.post-type-archive-product .dp-shop-category-card,
  body.tax-product_cat .dp-shop-category-card,
  body.tax-product_cat .dp-shop-category-card.dp-shop-category-card--small {
    min-height: 300px !important;
    border-radius: 26px !important;
  }

  body.post-type-archive-product .dp-shop-category-card__body,
  body.tax-product_cat .dp-shop-category-card__body {
    padding: 28px 24px !important;
  }

  body.post-type-archive-product .dp-shop-category-card__title,
  body.tax-product_cat .dp-shop-category-card__title,
  body.tax-product_cat .dp-shop-category-card.dp-shop-category-card--small .dp-shop-category-card__title {
    max-width: 10ch !important;
    font-size: clamp(36px, 11vw, 50px) !important;
  }

  body.post-type-archive-product .dp-shop-category-card__meta,
  body.tax-product_cat .dp-shop-category-card__meta {
    margin-top: 18px !important;
    font-size: 14px !important;
  }

  body.post-type-archive-product .dp-shop-category-card__children,
  body.tax-product_cat .dp-shop-category-card__children {
    gap: 7px !important;
    margin-top: 20px !important;
  }

  body.post-type-archive-product .dp-shop-category-card__child,
  body.tax-product_cat .dp-shop-category-card__child {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 9.5px !important;
  }
}
