:root {
  --pcs-red: #7d1115;
  --pcs-red-soft: #f9eeee;
  --pcs-text: #241010;
  --pcs-muted: #877879;
  --pcs-border: #ead9d9;
  --pcs-page: #ffffff;
}

body.pcs-product-category-page {
  background: var(--pcs-page);
  color: var(--pcs-text);
}

/* Woodmart category archives: leave Elementor header/footer alone, replace only the shop body. */
body.pcs-product-category-page.woodmart-archive-shop .wd-page-title,
body.pcs-product-category-page.woodmart-archive-shop .wd-nav-product-cat,
body.pcs-product-category-page.woodmart-archive-shop .wd-sidebar,
body.pcs-product-category-page.woodmart-archive-shop .wd-show-sidebar-btn,
body.pcs-product-category-page.woodmart-archive-shop .shop-loop-head > .wd-shop-tools:first-child,
body.pcs-product-category-page.woodmart-archive-shop .wd-products-per-page,
body.pcs-product-category-page.woodmart-archive-shop .wd-products-shop-view,
body.pcs-product-category-page.woodmart-archive-shop .woocommerce-ordering {
  display: none !important;
}

body.pcs-product-category-page.woodmart-archive-shop #main-content.wd-content-layout {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 32px 28px 0 !important;
  box-sizing: border-box;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-content-area {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body.pcs-product-category-page.woodmart-archive-shop .shop-loop-head {
  display: block !important;
  margin: 0 !important;
}

body.pcs-product-category-page.woodmart-archive-shop .shop-loop-head > .wd-shop-tools {
  display: block !important;
  width: 100% !important;
}

body.pcs-product-category-page.woodmart-archive-shop .pcs-products-wrap {
  display: block !important;
  width: 100% !important;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

body.pcs-product-category-page .woocommerce-products-header,
body.pcs-product-category-page .page-title {
  margin: 34px auto 22px;
  text-align: center;
}

body.pcs-product-category-page .woocommerce-products-header__title,
body.pcs-product-category-page .page-title {
  color: var(--pcs-red);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.pcs-category-title {
  margin: 4px 0 34px;
  color: var(--pcs-red);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.pcs-filter-panel {
  width: 100%;
  max-width: none;
  margin: 0 0 42px;
  padding: 0;
}

.pcs-breadcrumb,
.pcs-breadcrumb a,
.pcs-breadcrumb span {
  color: #2c2020;
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
}

.pcs-breadcrumb {
  margin-bottom: 36px;
}

.pcs-breadcrumb span {
  margin: 0 4px;
  color: var(--pcs-muted);
}

.pcs-filter-group + .pcs-filter-group {
  margin-top: 34px;
}

.pcs-filter-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--pcs-red);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.pcs-filter-icon {
  position: relative;
  width: 22px;
  height: 18px;
  flex: 0 0 22px;
}

.pcs-filter-icon::before,
.pcs-filter-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--pcs-red);
}

.pcs-filter-icon::before {
  top: 4px;
  box-shadow: 0 8px 0 var(--pcs-red);
}

.pcs-filter-icon::after {
  top: 1px;
  left: 5px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--pcs-red);
  background: #fff;
  box-shadow: 9px 8px 0 -2px #fff, 9px 8px 0 0 var(--pcs-red);
}

.pcs-filter-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 32px;
}

.pcs-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #faf6f6;
  color: #511013;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pcs-filter-chip:hover,
.pcs-filter-chip:focus {
  border-color: #d95050;
  color: var(--pcs-red);
  outline: none;
}

.pcs-filter-chip.is-active {
  border-color: #e04949;
  background: #fff8f8;
}

.pcs-chip-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.pcs-filter-group--size .pcs-chip-mark {
  display: none;
}

.pcs-size-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 25px;
  flex: 0 0 24px;
  color: currentColor;
}

.pcs-custom-filter-icon {
  width: 24px;
  height: 25px;
  flex: 0 0 24px;
  object-fit: contain;
}

.pcs-size-icon::before,
.pcs-size-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  border: 2px solid currentColor;
}

.pcs-size-icon--no-show::before {
  right: 0;
  bottom: 3px;
  width: 22px;
  height: 11px;
  border-radius: 3px 3px 7px 8px;
  transform: skewX(-18deg);
}

.pcs-size-icon--no-show::after {
  left: 2px;
  bottom: 8px;
  width: 12px;
  height: 7px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 8px 0 0;
  transform: rotate(10deg);
}

.pcs-size-icon--ankle::before,
.pcs-size-icon--semi-long::before,
.pcs-size-icon--long::before {
  left: 3px;
  bottom: 3px;
  width: 21px;
  border-radius: 2px 2px 7px 7px;
  border-top: 0;
  transform: skewX(-12deg);
}

.pcs-size-icon--ankle::before {
  height: 13px;
}

.pcs-size-icon--semi-long::before {
  height: 18px;
}

.pcs-size-icon--long::before {
  height: 24px;
}

.pcs-size-icon--ankle::after,
.pcs-size-icon--semi-long::after,
.pcs-size-icon--long::after {
  left: 3px;
  width: 9px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 2px 0 0;
  transform: skewX(-12deg);
}

.pcs-size-icon--ankle::after {
  bottom: 12px;
  height: 7px;
}

.pcs-size-icon--semi-long::after {
  bottom: 17px;
  height: 10px;
}

.pcs-size-icon--long::after {
  bottom: 23px;
  height: 12px;
}

.pcs-filter-chip.is-active .pcs-chip-mark {
  position: relative;
  background: currentColor;
}

.pcs-filter-chip.is-active .pcs-chip-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pcs-filter-group--size .pcs-filter-chip.is-active .pcs-chip-mark {
  background: transparent;
}

.pcs-filter-group--size .pcs-filter-chip.is-active .pcs-chip-mark::after {
  display: none;
}

.pcs-chip-close {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.pcs-chip-close::before,
.pcs-chip-close::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.pcs-chip-close::before {
  transform: rotate(45deg);
}

.pcs-chip-close::after {
  transform: rotate(-45deg);
}

body.pcs-product-category-page .woocommerce-result-count,
body.pcs-product-category-page .woocommerce-ordering {
  display: none;
}

.pcs-products-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 28px 56px;
}

body.pcs-product-category-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px 22px;
  width: 100% !important;
  max-width: none;
  margin: 0 auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  box-sizing: border-box;
}

body.pcs-product-category-page .pcs-products-wrap ul.products {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.pcs-product-category-page ul.products::before,
body.pcs-product-category-page ul.products::after {
  display: none !important;
}

body.pcs-product-category-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0;
  background: #fff;
}

body.pcs-product-category-page ul.products li.product a.woocommerce-LoopProduct-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

body.pcs-product-category-page ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1.22;
  margin: 0 0 12px !important;
  object-fit: cover;
  background: #f2eeee;
}

body.pcs-product-category-page ul.products li.product .woocommerce-loop-product__title {
  min-height: 38px;
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: #3b3333;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.35;
}

body.pcs-product-category-page ul.products li.product .price {
  display: flex !important;
  align-items: baseline;
  gap: 9px;
  margin: 0 !important;
  color: #7f1115 !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.2;
}

body.pcs-product-category-page ul.products li.product .price del {
  order: -1;
  color: #858080 !important;
  font-size: 13px;
  font-weight: 500;
  opacity: 1 !important;
}

body.pcs-product-category-page ul.products li.product .price ins {
  color: #b3090d;
  font-weight: 800;
  text-decoration: none;
}

body.pcs-product-category-page ul.products li.product .onsale {
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 3px 6px;
  border-radius: 2px;
  background: #23b34a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

body.pcs-product-category-page ul.products li.product .button,
body.pcs-product-category-page ul.products li.product .added_to_cart,
body.pcs-product-category-page ul.products li.product .star-rating {
  display: none !important;
}

body.pcs-product-category-page .wd-product .add-to-cart-loop,
body.pcs-product-category-page .wd-product .wd-add-btn,
body.pcs-product-category-page .wd-product .added_to_cart {
  display: none !important;
}

/* Woodmart and CFVS variation markup: keep every card compact and scannable. */
body.pcs-product-category-page.woodmart-archive-shop .wd-products-element > .products.wd-products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 42px 18px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-products-element > .products.wd-products > .wd-product {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product-wrapper {
  height: 100%;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product-thumb {
  aspect-ratio: 0.82 / 1;
  overflow: hidden;
  background: #f4f4f4;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product-thumb .product-image-link,
body.pcs-product-category-page.woodmart-archive-shop .wd-product-thumb .product-image-link > img {
  display: block;
  width: 100%;
  height: 100%;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product-thumb .product-image-link > img {
  margin: 0 !important;
  object-fit: cover;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product-img-hover,
body.pcs-product-category-page.woodmart-archive-shop .wd-product .wd-buttons,
body.pcs-product-category-page.woodmart-archive-shop .wd-product .wd-product-cats,
body.pcs-product-category-page.woodmart-archive-shop .wd-product .star-rating {
  display: none !important;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product .product-element-bottom {
  display: flex;
  flex-direction: column;
  padding-top: 9px;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product .wd-entities-title {
  display: -webkit-box;
  min-height: 34px;
  margin: 0 !important;
  overflow: hidden;
  color: #3b3333;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product .wd-entities-title a {
  color: inherit;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product .wrap-price {
  order: 2;
  margin: 6px 0 0 !important;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product .price {
  color: #7d1115 !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.2;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw_variations_form {
  order: 3;
  margin: 8px 0 0 !important;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw_variations_form table,
body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw_variations_form tr,
body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw_variations_form tbody,
body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw_variations_form td {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw_variations_form select,
body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw_variations_form .reset_variations,
body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw_variations_form .label {
  display: none !important;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw-swatches-container {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  max-height: none;
  overflow: visible;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw-swatches-option {
  width: 28px !important;
  min-width: 28px !important;
  height: 35px !important;
  min-height: 35px !important;
  margin: 0 !important;
  border: 1px solid #d7d7d7 !important;
  border-radius: 0 !important;
}

body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw-swatch-inner {
  background-position: center;
  background-size: cover !important;
}

.pcs-variation-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.pcs-variation-thumbs img {
  width: 34px !important;
  height: 43px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border: 1px solid #d9d9d9;
  object-fit: cover;
}

body.pcs-product-category-page .woocommerce-pagination {
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 0 28px 48px;
}

@media (max-width: 767px) {
  body.pcs-product-category-page.woodmart-archive-shop #main-content.wd-content-layout {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 24px 10px 0 !important;
  }

  body.pcs-product-category-page.woodmart-archive-shop .wd-content-area,
  body.pcs-product-category-page.woodmart-archive-shop .pcs-products-wrap,
  body.pcs-product-category-page.woodmart-archive-shop .wd-products-element {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.pcs-product-category-page .woocommerce-products-header,
  body.pcs-product-category-page .page-title {
    margin-top: 22px;
  }

  .pcs-filter-panel,
  .pcs-products-wrap,
  body.pcs-product-category-page .woocommerce-pagination {
    padding-right: 0;
    padding-left: 0;
  }

  .pcs-breadcrumb {
    margin-bottom: 22px;
  }

  .pcs-category-title {
    margin: 0 0 22px;
    font-size: 24px;
  }

  .pcs-breadcrumb,
  .pcs-breadcrumb a,
  .pcs-breadcrumb span {
    font-size: 12px;
  }

  .pcs-filter-group + .pcs-filter-group {
    margin-top: 22px;
  }

  .pcs-filter-group h2 {
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
  }

  .pcs-filter-icon {
    width: 15px;
    height: 13px;
    flex-basis: 15px;
    transform: scale(0.68);
    transform-origin: left center;
  }

  .pcs-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .pcs-filter-chip {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    min-height: 24px;
    gap: 4px;
    padding: 5px 8px;
    font-size: 10px;
    white-space: nowrap;
  }

  .pcs-chip-mark {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
    border-width: 1px;
    border-radius: 2px;
  }

  .pcs-size-icon {
    width: 14px;
    height: 16px;
    flex-basis: 14px;
    transform: scale(0.68);
    transform-origin: left center;
    margin-right: -2px;
  }

  .pcs-custom-filter-icon {
    width: 14px;
    height: 16px;
    flex-basis: 14px;
  }

  body.pcs-product-category-page ul.products {
    gap: 36px 12px;
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  body.pcs-product-category-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
  }

  body.pcs-product-category-page ul.products li.product .price {
    font-size: 15px !important;
  }

  body.pcs-product-category-page ul.products li.product .price del {
    font-size: 10px;
  }

  body.pcs-product-category-page.woodmart-archive-shop .wd-products-element > .products.wd-products {
    gap: 30px 12px !important;
  }

  body.pcs-product-category-page.woodmart-archive-shop .wd-product .product-element-bottom {
    padding-top: 7px;
  }

  body.pcs-product-category-page.woodmart-archive-shop .wd-product .wd-entities-title {
    min-height: 30px;
    font-size: 13px !important;
  }

  body.pcs-product-category-page.woodmart-archive-shop .wd-product .price {
    font-size: 14px !important;
  }

  body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw_variations_form {
    margin-top: 7px !important;
  }

  body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw-swatches-container {
    gap: 5px;
    max-height: none;
  }

  body.pcs-product-category-page.woodmart-archive-shop .wd-product .cfvsw-swatches-option {
    width: 25px !important;
    min-width: 25px !important;
    height: 30px !important;
    min-height: 30px !important;
  }
}

/* Desktop only: preserve the original card design and show four products per row. */
@media (min-width: 768px) {
  body.pcs-product-category-page.woodmart-archive-shop .wd-content-area {
    display: grid !important;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
    gap: 36px;
  }

  body.pcs-product-category-page.woodmart-archive-shop .shop-loop-head {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  body.pcs-product-category-page.woodmart-archive-shop .pcs-products-wrap {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  body.pcs-product-category-page.woodmart-archive-shop .pcs-category-title {
    margin-top: 0;
    text-align: left;
  }

  body.pcs-product-category-page.woodmart-archive-shop .pcs-filter-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.pcs-product-category-page.woodmart-archive-shop .pcs-filter-chip {
    width: 100%;
  }

  body.pcs-product-category-page ul.products,
  body.pcs-product-category-page.woodmart-archive-shop .wd-products-element > .products.wd-products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
