/* Responsive Figma-style WooCommerce catalogue. */

body.pla-shop-catalog-page {
  background: #f4f6fa;
}

body.pla-shop-catalog-page .pla-main {
  background:
    radial-gradient(circle at 5% 0%, rgba(77, 50, 194, .08), transparent 28rem),
    #f4f6fa;
}

body.pla-shop-catalog-page .pla-woocommerce,
body.pla-shop-catalog-page .woocommerce {
  box-sizing: border-box;
  width: min(calc(100% - 40px), var(--pla-content-width));
  max-width: var(--pla-content-width);
  margin-right: auto;
  margin-left: auto;
}

body.pla-shop-catalog-page .pla-woocommerce {
  padding: 40px 0 68px;
}

body.pla-shop-catalog-page .pla-woocommerce *,
body.pla-shop-catalog-page .pla-woocommerce *::before,
body.pla-shop-catalog-page .pla-woocommerce *::after {
  box-sizing: border-box;
}

body.pla-shop-catalog-page .woocommerce-breadcrumb {
  margin: 0 0 14px;
  color: #6c778b;
  font-size: .78rem;
}

body.pla-shop-catalog-page .woocommerce-breadcrumb a {
  color: #4d32c2;
  font-weight: 750;
  text-decoration: none;
}

body.pla-shop-catalog-page .woocommerce-products-header {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 10%, rgba(19, 179, 162, .45), transparent 16rem),
    linear-gradient(130deg, #24175d, #4d32c2 62%, #087f73);
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(36, 23, 93, .18);
}

body.pla-shop-catalog-page .woocommerce-products-header__title,
body.pla-shop-catalog-page .woocommerce-products-header h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

body.pla-shop-catalog-page .term-description {
  max-width: 760px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
  line-height: 1.65;
}

body.pla-shop-catalog-page .term-description > :last-child {
  margin-bottom: 0;
}

body.pla-shop-catalog-page .woocommerce-notices-wrapper:empty {
  display: none;
}

body.pla-shop-catalog-page .woocommerce-result-count,
body.pla-shop-catalog-page .woocommerce-ordering {
  float: none;
  margin: 0;
}

body.pla-shop-catalog-page .woocommerce-result-count {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  margin-bottom: 22px;
  padding: 10px 15px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: #ffffff;
  color: #657086;
  font-size: .8rem;
  font-weight: 750;
}

body.pla-shop-catalog-page .woocommerce-ordering {
  float: right;
  margin-bottom: 22px;
}

body.pla-shop-catalog-page .woocommerce-ordering select {
  min-width: 225px;
  min-height: 46px;
  padding: 9px 38px 9px 13px;
  border: 1px solid #ccd5e2;
  border-radius: 10px;
  background-color: #ffffff;
  color: #3f4a5e;
  font: inherit;
  font-size: .8rem;
  font-weight: 750;
  cursor: pointer;
}

body.pla-shop-catalog-page .woocommerce-ordering select:focus {
  border-color: #735bd3;
  outline: 3px solid rgba(77, 50, 194, .12);
}

body.pla-shop-catalog-page ul.products {
  display: grid !important;
  clear: both;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 0 !important;
  padding: 0;
}

body.pla-shop-catalog-page ul.products:has(> li.product:only-child) {
  grid-template-columns: minmax(0, 620px) !important;
  justify-content: center;
}

body.pla-shop-catalog-page ul.products:has(> li.product:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 440px)) !important;
  justify-content: center;
}

body.pla-shop-catalog-page ul.products > li.product:only-child {
  padding: 0 28px 28px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(36, 23, 93, .12);
}

body.pla-shop-catalog-page ul.products > li.product:only-child img {
  width: calc(100% + 56px);
  aspect-ratio: 16 / 9;
  margin-right: -28px !important;
  margin-left: -28px !important;
  padding: 24px;
}

body.pla-shop-catalog-page ul.products > li.product:only-child .woocommerce-loop-product__title {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
}

body.pla-shop-catalog-page ul.products > li.product:only-child .price {
  font-size: 1.35rem;
}

body.pla-shop-catalog-page ul.products::before,
body.pla-shop-catalog-page ul.products::after {
  display: none !important;
}

body.pla-shop-catalog-page ul.products li.product {
  position: relative;
  display: flex;
  float: none !important;
  width: auto !important;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  margin: 0 !important;
  overflow: hidden;
  padding: 0 18px 18px;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, .065);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.pla-shop-catalog-page ul.products li.product:hover {
  transform: translateY(-3px);
  border-color: #d2c9f4;
  box-shadow: 0 18px 40px rgba(36, 23, 93, .12);
}

body.pla-shop-catalog-page ul.products li.product > a.woocommerce-LoopProduct-link {
  display: flex;
  min-width: 0;
  flex: 1 0 auto;
  flex-direction: column;
  color: #172033;
  text-decoration: none;
}

body.pla-shop-catalog-page ul.products li.product img {
  display: block;
  width: calc(100% + 36px);
  max-width: none;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 -18px 17px !important;
  padding: 16px;
  border-bottom: 1px solid #edf0f4;
  background: #fafbfc;
  object-fit: contain;
}

body.pla-shop-catalog-page ul.products li.product .woocommerce-loop-product__title,
body.pla-shop-catalog-page ul.products li.product h2,
body.pla-shop-catalog-page ul.products li.product h3 {
  margin: 0 0 10px;
  padding: 0 !important;
  color: #172033;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -.018em;
}

body.pla-shop-catalog-page ul.products li.product .star-rating {
  margin: 0 0 10px;
  color: #e6a600;
  font-size: .78rem;
}

body.pla-shop-catalog-page ul.products li.product .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin: auto 0 15px;
  color: #087f73;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
}

body.pla-shop-catalog-page ul.products li.product .price del {
  color: #8b94a6;
  font-size: .78rem;
  font-weight: 650;
  opacity: 1;
}

body.pla-shop-catalog-page ul.products li.product .price ins {
  color: #087f73;
  font-weight: 900;
  text-decoration: none;
}

body.pla-shop-catalog-page ul.products li.product .button,
body.pla-shop-catalog-page ul.products li.product .added_to_cart {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #4d32c2;
  border-radius: 9px;
  background: #4d32c2;
  color: #ffffff;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(77, 50, 194, .17);
}

body.pla-shop-catalog-page ul.products li.product .button:hover,
body.pla-shop-catalog-page ul.products li.product .button:focus-visible,
body.pla-shop-catalog-page ul.products li.product .added_to_cart:hover,
body.pla-shop-catalog-page ul.products li.product .added_to_cart:focus-visible {
  border-color: #2f1c82;
  background: #2f1c82;
  color: #ffffff;
}

body.pla-shop-catalog-page ul.products li.product .added_to_cart {
  margin-top: 8px;
  border-color: #b9ded8;
  background: #eaf8f5;
  color: #087368;
  box-shadow: none;
}

body.pla-shop-catalog-page ul.products li.product .onsale {
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 3;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e7a900;
  color: #24175d;
  font-size: .66rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(71, 52, 0, .16);
}

body.pla-shop-catalog-page ul.products li.product-category mark {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eee9ff;
  color: #4d32c2;
  font-size: .68rem;
}

body.pla-shop-catalog-page .woocommerce-pagination {
  margin-top: 30px;
}

body.pla-shop-catalog-page .woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  border: 0;
}

body.pla-shop-catalog-page .woocommerce-pagination ul.page-numbers li {
  border: 0;
}

body.pla-shop-catalog-page .woocommerce-pagination .page-numbers a,
body.pla-shop-catalog-page .woocommerce-pagination .page-numbers span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid #d9dfe8;
  border-radius: 9px;
  background: #ffffff;
  color: #4d586c;
  font-weight: 850;
  line-height: 1;
}

body.pla-shop-catalog-page .woocommerce-pagination .page-numbers a:hover,
body.pla-shop-catalog-page .woocommerce-pagination .page-numbers a:focus-visible,
body.pla-shop-catalog-page .woocommerce-pagination .page-numbers .current {
  border-color: #4d32c2;
  background: #4d32c2;
  color: #ffffff;
}

body.pla-shop-catalog-page .woocommerce-info,
body.pla-shop-catalog-page .woocommerce-message,
body.pla-shop-catalog-page .woocommerce-error {
  margin: 0 0 22px;
  padding: 16px 18px 16px 48px;
  border: 1px solid #bddfd9;
  border-top: 1px solid #bddfd9;
  border-radius: 12px;
  background: #eaf8f5;
  color: #245c55;
}

body.pla-shop-catalog-page .woocommerce-info {
  border-color: #d9d0fa;
  background: #f3efff;
  color: #4935a0;
}

body.pla-shop-catalog-page .woocommerce-error {
  border-color: #efc4d3;
  background: #fff0f5;
  color: #8b2850;
}

@media (max-width: 980px) {
  body.pla-shop-catalog-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  body.pla-shop-catalog-page .pla-woocommerce,
  body.pla-shop-catalog-page .woocommerce {
    width: min(calc(100% - 28px), var(--pla-content-width));
  }

  body.pla-shop-catalog-page .pla-woocommerce {
    padding: 28px 0 50px;
  }

  body.pla-shop-catalog-page .woocommerce-products-header {
    border-radius: 16px;
  }

  body.pla-shop-catalog-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 520px) {
  body.pla-shop-catalog-page .pla-woocommerce,
  body.pla-shop-catalog-page .woocommerce {
    width: min(calc(100% - 20px), var(--pla-content-width));
  }

  body.pla-shop-catalog-page .woocommerce-result-count,
  body.pla-shop-catalog-page .woocommerce-ordering {
    display: block;
    float: none;
    width: 100%;
  }

  body.pla-shop-catalog-page .woocommerce-result-count {
    min-height: 0;
    margin-bottom: 10px;
  }

  body.pla-shop-catalog-page .woocommerce-ordering {
    margin-bottom: 16px;
  }

  body.pla-shop-catalog-page .woocommerce-ordering select {
    width: 100%;
    min-width: 0;
  }

  body.pla-shop-catalog-page ul.products {
    grid-template-columns: 1fr;
  }

  body.pla-shop-catalog-page ul.products:has(> li.product:nth-child(2):last-child) {
    grid-template-columns: 1fr !important;
  }

  body.pla-shop-catalog-page ul.products li.product img {
    aspect-ratio: 16 / 11;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pla-shop-catalog-page ul.products li.product {
    transition: none;
  }
}
