/*
 * NewProjectJP Dark Commerce 1.3.9 — Four-column WooCommerce archive cards.
 * Scope all layout rules to the theme archive wrapper. Do not affect
 * checkout, product detail pages, other plugin grids or category tiles.
 */
.np-woo-wrap.woocommerce ul.products,
.np-woo-wrap.woocommerce ul.products.columns-3,
.np-woo-wrap.woocommerce ul.products.columns-4 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 0 !important;
  margin: 0 0 35px !important;
  list-style: none !important;
  clear: both;
}
.np-woo-wrap.woocommerce ul.products::before,
.np-woo-wrap.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  float: none !important;
  clear: none !important;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #302b39 !important;
  border-radius: 16px !important;
  background: #16151b !important;
  overflow: hidden;
  box-shadow: none !important;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card:hover {
  border-color: #7852a4 !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.23) !important;
  transform: translateY(-3px);
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card > a.np-catalog-card__image {
  display: block !important;
  width: 100% !important;
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  background: #1b1526;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card > a.np-catalog-card__image img {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover;
  object-position: center;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  transition: transform .25s ease;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card:hover > a.np-catalog-card__image img {
  transform: scale(1.025);
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__featured {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  padding: 6px 12px;
  margin: 0;
  border-radius: 100px;
  background: linear-gradient(110deg,#b63bdb,#7748ef);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: .005em;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 153px;
  padding: 14px 15px 17px !important;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__cat {
  margin: 0 0 6px !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #b1a9c2;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: start;
  gap: 5px 9px;
  min-height: 51px;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card h2.woocommerce-loop-product__title {
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.32 !important;
  color: #fefcff;
  letter-spacing: -.025em;
  word-wrap: break-word;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__headline .np-category-state {
  display: inline-flex;
  margin: 0 !important;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin: auto 0 0 !important;
  padding-top: 14px;
  width: 100%;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__price {
  margin: 0 !important;
  min-width: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
  color: #fff;
  overflow-wrap: anywhere;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__price small {
  font-weight: 450;
  font-size: 12px;
  color: #aba5bc;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__price .amount {
  color: #fff !important;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__button {
  margin: 0 !important;
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 38px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  color: #fff !important;
  background: linear-gradient(110deg,#be2ed7,#7648f0);
  text-align: center;
}
.np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__button:hover {
  filter: brightness(1.14);
}
.np-woo-wrap.woocommerce .woocommerce-result-count,
.np-woo-wrap.woocommerce .woocommerce-ordering {
  color: #aca4bb;
  font-size: 13px;
  margin-bottom: 22px;
}
.np-woo-wrap.woocommerce .woocommerce-ordering select {
  background: #17141f;
  color: #f4efff;
  border: 1px solid #41354e;
  border-radius: 10px;
  padding: 8px 12px;
  max-width: 220px;
}
/* Four products across on desktop, three on small desktop, two on tablets. */
@media (max-width: 1100px) {
  .np-woo-wrap.woocommerce ul.products,
  .np-woo-wrap.woocommerce ul.products.columns-3,
  .np-woo-wrap.woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 820px) {
  .np-woo-wrap.woocommerce ul.products,
  .np-woo-wrap.woocommerce ul.products.columns-3,
  .np-woo-wrap.woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 620px) {
  .np-woo-wrap.woocommerce ul.products,
  .np-woo-wrap.woocommerce ul.products.columns-3,
  .np-woo-wrap.woocommerce ul.products.columns-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__body {
    min-height: 150px;
    padding: 15px 16px 18px !important;
  }
  .np-woo-wrap.woocommerce ul.products li.product.np-catalog-card .np-catalog-card__headline {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .np-woo-wrap.woocommerce ul.products li.product.np-catalog-card,
  .np-woo-wrap.woocommerce ul.products li.product.np-catalog-card img {
    transition: none !important;
  }
}
