/* Product category archive background */
body.tax-product_cat .site-content,
body.post-type-archive-product .site-content {
  background: #faf8f4;
}


/* Category heading */
body.tax-product_cat .woocommerce-products-header {
  background: #151515;
  color: #fff;
  border-radius: 34px;
  padding: 54px 46px;
  margin-bottom: 42px;
  position: relative;
  overflow: hidden;
}

body.tax-product_cat .woocommerce-products-header::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(199,154,59,.22);
}

body.tax-product_cat .woocommerce-products-header h1 {
  color: #fff;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

body.tax-product_cat .term-description {
  color: rgba(255,255,255,.78);
  max-width: 680px;
  font-size: 17px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* Result count / sorting bar */
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .woocommerce-ordering {
  margin-bottom: 26px;
}

body.tax-product_cat .woocommerce-ordering select {
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  padding: 12px 18px;
  background: #fff;
  font-weight: 700;
  color: #74716b;
}

/* Product grid */
body.tax-product_cat ul.products,
body.post-type-archive-product ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

body.tax-product_cat ul.products li.product,
body.post-type-archive-product ul.products li.product {
  width: 100% !important;
  margin: 0 !important;

  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 28px;
  padding: 18px 18px 22px !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

body.tax-product_cat ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0,0,0,.10);
}

body.tax-product_cat ul.products li.product img,
body.post-type-archive-product ul.products li.product img {
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 18px !important;
}

body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
  color: #151515;
  font-size: 22px !important;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  padding: 0 !important;
  margin-bottom: 8px !important;
}

body.tax-product_cat ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price {
  color: #151515 !important;
  font-size: 18px !important;
  font-weight: 900;
  margin-bottom: 16px;
}

/* Buttons */
body.tax-product_cat ul.products li.product .button,
body.post-type-archive-product ul.products li.product .button {
  border-radius: 999px;
  background: #c79a3b !important;
  color: #151515 !important;
  font-weight: 900;
  padding: 13px 20px;
  text-decoration: none;
  margin-top: 4px !important;
}

/* Remove ugly sale badge if needed */
body.tax-product_cat .onsale,
body.post-type-archive-product .onsale {
  background: #c79a3b !important;
  color: #151515 !important;
  border-radius: 999px !important;
  font-weight: 900;
}

/* Mobile */
@media (max-width: 980px) {
  body.tax-product_cat ul.products,
  body.post-type-archive-product ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body.tax-product_cat ul.products,
  body.post-type-archive-product ul.products {
    grid-template-columns: 1fr !important;
  }

  body.tax-product_cat .woocommerce-products-header {
    padding: 34px 26px;
  }
}

.riikas-loop-specs {
  color: #74716b;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 18px;
  font-weight: 700;
}

.riikas-product-filter {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;

  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;

  padding: 16px 18px;
  margin: 0 0 30px;

  box-shadow: 0 12px 28px rgba(0,0,0,.04);
}

.riikas-filter-title {
  color: #74716b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-right: 16px;
  border-right: 1px solid rgba(0,0,0,.10);
}

.riikas-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #151515;
  font-size: 14px;
  font-weight: 800;
}

.riikas-filter-group label {
  margin: 0 4px 0 0;
  font-weight: 900;
}

.riikas-filter-group input {
  width: 72px;
  height: 36px;

  border: 1px solid rgba(0,0,0,.16);
  border-radius: 8px;

  padding: 6px 8px;

  background: #faf8f4;
  color: #151515;

  font-size: 14px;
  font-weight: 700;
}

.riikas-filter-group small {
  color: #151515;
  font-size: 13px;
  font-weight: 700;
}

.riikas-filter-button {
  height: 38px;
  border: 0;
  border-radius: 999px;

  background: #c79a3b;
  color: #151515;

  padding: 0 18px;

  font-size: 13px;
  font-weight: 900;

  cursor: pointer;
}

.riikas-filter-reset {
  color: #74716b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.riikas-filter-reset:hover {
  color: #151515;
}

@media (max-width: 760px) {
  .riikas-product-filter {
    display: grid;
    gap: 14px;
  }

  .riikas-filter-title {
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,.10);
    padding: 0 0 10px;
  }

  .riikas-filter-group {
    justify-content: space-between;
  }

  .riikas-filter-group input {
    width: 84px;
  }
}
body.tax-product_cat .ast-woocommerce-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 20px 90px;
}