/* Store 3DH archive polish: keep product-category archives aligned with the shop front page. */
body.tax-product_cat #page-container,
body.tax-product_tag #page-container {
  background: #f6f3ee;
}

body.tax-product_cat .s3dh-shop-hero,
body.tax-product_tag .s3dh-shop-hero {
  max-width: 1180px;
  margin: 28px auto 34px;
  padding: clamp(28px, 4vw, 54px);
  border-radius: 28px;
  background: radial-gradient(circle at 80% 10%, rgba(224, 43, 32, .22), transparent 32%), linear-gradient(135deg, #151515 0%, #25201b 100%);
  color: #fff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .16);
}

body.tax-product_cat .s3dh-shop-kicker,
body.tax-product_tag .s3dh-shop-kicker {
  color: #ffb3aa;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.tax-product_cat .s3dh-shop-hero h1,
body.tax-product_tag .s3dh-shop-hero h1 {
  color: #fff;
  font-size: clamp(2.15rem, 4.6vw, 4.4rem);
  letter-spacing: -.04em;
  line-height: .96;
}

body.tax-product_cat .s3dh-shop-hero p:not(.s3dh-shop-kicker),
body.tax-product_tag .s3dh-shop-hero p:not(.s3dh-shop-kicker) {
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.55;
}

body.tax-product_cat .s3dh-cat-bar,
body.tax-product_tag .s3dh-cat-bar {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.tax-product_cat .s3dh-cat-bar a,
body.tax-product_tag .s3dh-cat-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

body.tax-product_cat .s3dh-cat-bar a:hover,
body.tax-product_cat .s3dh-cat-bar a:focus,
body.tax-product_tag .s3dh-cat-bar a:hover,
body.tax-product_tag .s3dh-cat-bar a:focus {
  background: #e02b20;
  border-color: #e02b20;
}

body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
  box-sizing: border-box;
  max-width: min(1180px, 100%) !important;
  width: 100% !important;
  margin: 0 auto 70px !important;
  gap: 26px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch;
}

body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  list-style: none;
}

body.tax-product_cat ul.products li.product > a,
body.tax-product_tag ul.products li.product > a,
body.tax-product_cat .dwe_single_woo_product,
body.tax-product_tag .dwe_single_woo_product {
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(47, 39, 34, .1);
  box-shadow: 0 14px 36px rgba(47, 39, 34, .09);
  overflow: hidden;
}

body.tax-product_cat ul.products li.product > a,
body.tax-product_tag ul.products li.product > a {
  display: block;
  color: #171310 !important;
  text-decoration: none;
}

body.tax-product_cat ul.products li.product img,
body.tax-product_tag ul.products li.product img {
  aspect-ratio: 1 / 1;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  background: #f1eee8;
  padding: 14px;
}

body.tax-product_cat ul.products li.product h2,
body.tax-product_tag ul.products li.product h2,
body.tax-product_cat ul.products li.product h4,
body.tax-product_tag ul.products li.product h4 {
  min-height: 3.15em;
  padding: 0 18px;
  color: #171310 !important;
  line-height: 1.18 !important;
}

body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price {
  display: block;
  padding: 0 18px;
  color: #6f6258 !important;
  font-weight: 800;
  text-align: center;
}

body.woocommerce-shop .threedh-archive-swatches,
body.tax-product_cat .threedh-archive-swatches,
body.tax-product_tag .threedh-archive-swatches {
  padding: 0 18px;
  gap: 7px !important;
  flex-wrap: wrap;
  max-height: none;
  align-items: center;
  justify-content: center;
}

body.woocommerce-shop .threedh-archive-swatch,
body.tax-product_cat .threedh-archive-swatch,
body.tax-product_tag .threedh-archive-swatch,
body.woocommerce-shop .threedh-archive-more,
body.tax-product_cat .threedh-archive-more,
body.tax-product_tag .threedh-archive-more {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 999px !important;
}

body.woocommerce-shop .threedh-archive-swatch,
body.tax-product_cat .threedh-archive-swatch,
body.tax-product_tag .threedh-archive-swatch {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  overflow: hidden !important;
  flex: 0 0 32px !important;
  line-height: 0 !important;
}

body.woocommerce-shop .threedh-archive-swatch img,
body.tax-product_cat .threedh-archive-swatch img,
body.tax-product_tag .threedh-archive-swatch img,
body.woocommerce-shop ul.products li.product .threedh-archive-swatches .threedh-archive-swatch.threedh-archive-swatch--image img,
body.tax-product_cat ul.products li.product .threedh-archive-swatches .threedh-archive-swatch.threedh-archive-swatch--image img,
body.tax-product_tag ul.products li.product .threedh-archive-swatches .threedh-archive-swatch.threedh-archive-swatch--image img {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
}

body.woocommerce-shop .threedh-archive-swatches--labels .threedh-archive-swatch,
body.tax-product_cat .threedh-archive-swatches--labels .threedh-archive-swatch,
body.tax-product_tag .threedh-archive-swatches--labels .threedh-archive-swatch,
body.woocommerce-shop .threedh-archive-swatch--label,
body.tax-product_cat .threedh-archive-swatch--label,
body.tax-product_tag .threedh-archive-swatch--label,
body.woocommerce-shop .threedh-archive-more,
body.tax-product_cat .threedh-archive-more,
body.tax-product_tag .threedh-archive-more {
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 38px !important;
  max-width: 100% !important;
  min-height: 28px !important;
  height: auto !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  flex: 0 1 auto !important;
}

body.tax-product_cat ul.products li.product .button,
body.tax-product_tag ul.products li.product .button,
body.tax-product_cat ul.products li.product .add_to_cart_button,
body.tax-product_tag ul.products li.product .add_to_cart_button {
  margin: 14px 18px 18px !important;
  width: calc(100% - 36px) !important;
  min-height: 44px;
  border-radius: 999px !important;
  background: #18120f !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 900 !important;
  letter-spacing: .03em;
}

body.tax-product_cat nav.woocommerce-pagination,
body.tax-product_tag nav.woocommerce-pagination {
  margin: 26px auto 70px;
}

body.tax-product_cat nav.woocommerce-pagination a,
body.tax-product_cat nav.woocommerce-pagination span,
body.tax-product_tag nav.woocommerce-pagination a,
body.tax-product_tag nav.woocommerce-pagination span {
  min-width: 38px;
  min-height: 38px;
  border-radius: 999px;
}

@media (max-width: 1100px) {
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 780px) {
  body.tax-product_cat .s3dh-shop-hero,
  body.tax-product_tag .s3dh-shop-hero { margin: 16px 14px 24px; border-radius: 22px; }
  body.tax-product_cat .s3dh-cat-bar a,
  body.tax-product_tag .s3dh-cat-bar a { flex: 1 1 calc(50% - 8px); font-size: 13px; }
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products { width: calc(100vw - 24px) !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
  body.tax-product_cat ul.products li.product h2,
  body.tax-product_tag ul.products li.product h2,
  body.tax-product_cat ul.products li.product h4,
  body.tax-product_tag ul.products li.product h4 { padding-inline: 12px; font-size: 14px !important; }
  body.tax-product_cat ul.products li.product .price,
  body.tax-product_tag ul.products li.product .price,
  body.tax-product_cat .threedh-archive-swatches,
  body.tax-product_tag .threedh-archive-swatches { padding-inline: 12px; }
  body.tax-product_cat ul.products li.product .button,
  body.tax-product_tag ul.products li.product .button { margin-inline: 12px !important; width: calc(100% - 24px) !important; font-size: 12px !important; }
}

@media (max-width: 430px) {
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products { grid-template-columns: 1fr !important; max-width: 340px !important; }
  body.tax-product_cat .s3dh-cat-bar a,
  body.tax-product_tag .s3dh-cat-bar a { flex-basis: 100%; }
}
