/* R3-FINAL-FIX-2: product card system unification */

body .hsj-r3-wishlist-card-shell--collection,
body .hsj-r3-product-card-shell--intention,
body .hsj-r3-product-card-shell--quiz {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border: 1px solid rgba(229, 216, 200, 0.62);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(47, 36, 28, 0.05);
  overflow: hidden;
}

body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3,
body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-link,
body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  color: #2f241c;
  text-decoration: none;
}

body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-link,
body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-link {
  padding: 0 2px;
}

body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-media,
body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-media,
body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 14px;
  border-radius: 20px;
  background: #fbf8f3;
  overflow: hidden;
}

body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-media img,
body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-media img,
body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-category,
body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-category,
body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3__meta {
  margin: 0;
  color: #8b796c;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-title,
body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-title,
body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3__title {
  margin: 0;
  color: #2f241c;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 600;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-price,
body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-price,
body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3__price {
  margin: 4px 0 0;
  color: #6f6258;
  font-size: 15px;
  font-weight: 500;
}

body .hsj-r3-product-card__actions {
  margin-top: 14px;
}

body .hsj-r3-product-card__add-to-cart {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background: #3a2a22;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

body .hsj-r3-product-card__add-to-cart:hover,
body .hsj-r3-product-card__add-to-cart:focus,
body .hsj-r3-product-card__add-to-cart:visited {
  background: #241914;
  color: #ffffff;
  text-decoration: none;
}

body .hsj-r3-product-card-shell--intention .hsj-r3-wishlist-card-slot,
body .hsj-r3-product-card-shell--quiz .hsj-r3-wishlist-card-slot,
body .hsj-r3-wishlist-card-shell--collection .hsj-r3-wishlist-card-slot {
  top: 10px;
  right: 10px;
}

body .hsj-r3-product-card-shell--intention .hsj-r3-wishlist-card-slot .woosw-btn,
body .hsj-r3-product-card-shell--quiz .hsj-r3-wishlist-card-slot .woosw-btn,
body .hsj-r3-wishlist-card-shell--collection .hsj-r3-wishlist-card-slot .woosw-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
}

body .hsj-r3-product-card-shell--intention .hsj-r3-wishlist-card-slot .woosw-btn-icon,
body .hsj-r3-product-card-shell--quiz .hsj-r3-wishlist-card-slot .woosw-btn-icon,
body .hsj-r3-wishlist-card-shell--collection .hsj-r3-wishlist-card-slot .woosw-btn-icon {
  font-size: 15px !important;
}

body.page-id-825 .hsj-quiz-v3__result-grid {
  align-items: stretch;
}

body.page-id-825 .hsj-quiz-v3__result-empty {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: #6f6258;
  font-size: 15px;
  line-height: 1.7;
}

body.page-id-829 .hsj-r3-intention__grid {
  align-items: stretch;
}

body.page-id-829 .hsj-r3-intention__card {
  margin: 0;
}

body.single-product .related.products {
  margin-bottom: 56px;
}

body.single-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

body.single-product .related.products ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.single-product .related.products li.product > .woosw-btn,
body.single-product .related.products li.product > .woosw-btn.woosw-added,
body.single-product .related.products li.product > .woosw-btn.woosw-btn-has-icon,
body.single-product .related.products li.product > .woosw-btn.woosw-btn-icon-text {
  top: 10px !important;
  right: 10px !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  box-shadow: 0 3px 9px rgba(47, 33, 27, 0.07) !important;
}

body.single-product .related.products li.product > .woosw-btn .woosw-btn-icon {
  font-size: 14px !important;
}

body.single-product .related.products li.product > .woosw-btn .woosw-btn-text {
  display: none !important;
}

body.single-product .related.products li.product .woocommerce-LoopProduct-link,
body.single-product .related.products li.product .woocommerce-loop-product__link,
body.single-product .related.products li.product .ast-loop-product__link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

body.single-product .related.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.85em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.single-product .related.products li.product .price {
  margin-top: auto;
}

body.single-product .related.products li.product .button.add_to_cart_button,
body.single-product .related.products li.product .button.product_type_simple,
body.single-product .related.products li.product .button.product_type_variable,
body.single-product .related.products li.product .button.product_type_external {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

@media (min-width: 1024px) {
  body.single-product .related.products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

@media (max-width: 1023px) {
  body .hsj-r3-product-card-shell--intention,
  body .hsj-r3-product-card-shell--quiz,
  body .hsj-r3-wishlist-card-shell--collection {
    padding: 8px;
    border-radius: 20px;
  }

  body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-media,
  body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-media,
  body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3__media {
    margin-bottom: 12px;
    border-radius: 18px;
  }

  body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-title,
  body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-title,
  body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3__title {
    font-size: 14px;
    line-height: 1.4;
  }

  body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-price,
  body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-price,
  body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3__price {
    font-size: 13px;
  }

  body .hsj-r3-product-card__add-to-cart {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 11px;
  }
}

@media (max-width: 767px) {
  body .hsj-r3-product-card-shell--intention .hsj-r3-wishlist-card-slot .woosw-btn,
  body .hsj-r3-product-card-shell--quiz .hsj-r3-wishlist-card-slot .woosw-btn,
  body .hsj-r3-wishlist-card-shell--collection .hsj-r3-wishlist-card-slot .woosw-btn,
  body.single-product .related.products li.product > .woosw-btn,
  body.single-product .related.products li.product > .woosw-btn.woosw-added,
  body.single-product .related.products li.product > .woosw-btn.woosw-btn-has-icon,
  body.single-product .related.products li.product > .woosw-btn.woosw-btn-icon-text {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
  }

  body .hsj-r3-product-card-shell--intention .hsj-r3-wishlist-card-slot .woosw-btn-icon,
  body .hsj-r3-product-card-shell--quiz .hsj-r3-wishlist-card-slot .woosw-btn-icon,
  body .hsj-r3-wishlist-card-shell--collection .hsj-r3-wishlist-card-slot .woosw-btn-icon,
  body.single-product .related.products li.product > .woosw-btn .woosw-btn-icon {
    font-size: 13px !important;
  }

  body.single-product .related.products {
    margin-bottom: 48px;
  }
}


body .hsj-r3-product-card-shell--collection .hsj-r3-wishlist-card-slot,
body .hsj-r3-product-card-shell--collection .woosw-btn,
body .hsj-r3-product-card-shell--intention .hsj-r3-wishlist-card-slot,
body .hsj-r3-product-card-shell--intention .woosw-btn,
body .hsj-r3-product-card-shell--quiz .hsj-r3-wishlist-card-slot,
body .hsj-r3-product-card-shell--quiz .woosw-btn,
body.single-product .related.products li.product > .woosw-btn,
body.single-product .related.products li.product > .hsj-r3-wishlist-card-slot,
body.single-product .related.products li.product > .woosw-added {
  display: none !important;
}



body .hsj-r3-product-card__actions {
  display: flex;
  margin-top: 14px;
}

body .hsj-r3-product-card__add-to-cart,
body .hsj-r3-product-card__actions .button,
body.single-product .related.products li.product .button.add_to_cart_button,
body.single-product .related.products li.product .button.product_type_simple,
body.single-product .related.products li.product .button.product_type_variable,
body.single-product .related.products li.product .button.product_type_external {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: #3a2a22;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

body .hsj-r3-product-card__add-to-cart:hover,
body .hsj-r3-product-card__add-to-cart:focus,
body .hsj-r3-product-card__add-to-cart:visited,
body .hsj-r3-product-card__actions .button:hover,
body .hsj-r3-product-card__actions .button:focus,
body .hsj-r3-product-card__actions .button:visited,
body.single-product .related.products li.product .button.add_to_cart_button:hover,
body.single-product .related.products li.product .button.product_type_simple:hover,
body.single-product .related.products li.product .button.product_type_variable:hover,
body.single-product .related.products li.product .button.product_type_external:hover {
  background: #241914;
  color: #ffffff;
  text-decoration: none;
}

body.single-product .related.products ul.products li.product {
  display: flex;
  flex-direction: column;
}

body.single-product .related.products li.product .price {
  margin-top: auto;
}

@media (max-width: 1023px) {
  body .hsj-r3-product-card__add-to-cart,
  body .hsj-r3-product-card__actions .button,
  body.single-product .related.products li.product .button.add_to_cart_button,
  body.single-product .related.products li.product .button.product_type_simple,
  body.single-product .related.products li.product .button.product_type_variable,
  body.single-product .related.products li.product .button.product_type_external {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
  }
}

/* R3-FINAL-FIX-8 start */
body .hsj-r3-wishlist-card-shell--collection,
body .hsj-r3-product-card-shell--intention,
body .hsj-r3-product-card-shell--quiz {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3,
body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-link,
body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-link {
  gap: 8px;
}

body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-media,
body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-media,
body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3__media {
  margin-bottom: 12px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .hsj-r3-product-card-shell--intention .hsj-r3-intention__card-media img,
body .hsj-r3-product-card-shell--quiz .hsj-r3-intention__card-media img,
body .hsj-r3-wishlist-card-shell--collection .hsj-product-card-v3__media img {
  border-radius: 0 !important;
}

body .hsj-r3-product-card__actions {
  margin-top: 12px !important;
}

body.single-product .related.products {
  margin: 36px 0 24px !important;
  padding: 0 !important;
}

body.single-product .related.products ul.products {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 18px 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch !important;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after {
  display: none !important;
}

body.single-product .related.products ul.products li.product {
  width: calc((100% - 18px) / 2) !important;
  flex: 0 0 calc((100% - 18px) / 2) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
}

body.single-product .related.products li.product .woocommerce-LoopProduct-link,
body.single-product .related.products li.product .woocommerce-loop-product__link,
body.single-product .related.products li.product .ast-loop-product__link {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body.single-product .related.products li.product img {
  margin: 0 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.single-product .related.products li.product .woocommerce-loop-product__title {
  min-height: 2.8em !important;
  margin: 0 !important;
}

body.single-product .related.products li.product .price {
  min-height: 1.45em;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .related.products li.product .button.add_to_cart_button,
body.single-product .related.products li.product .button.product_type_simple,
body.single-product .related.products li.product .button.product_type_variable,
body.single-product .related.products li.product .button.product_type_external {
  margin-top: 10px !important;
}

body.single-product .site-content,
body.single-product .ast-woocommerce-container {
  padding-bottom: 0 !important;
}

body.single-product .hsj-r2-footer,
body.single-product footer.site-footer,
body.single-product .site-footer {
  margin-top: 0 !important;
  padding-top: 24px !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.single-product .related.products ul.products,
  body.single-product .related.products ul.products.products,
  body.single-product .related.products ul.products[class*="columns-"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px 20px !important;
  }

  body.single-product .related.products ul.products li.product {
    width: calc((100% - 20px) / 2) !important;
    flex: 0 0 calc((100% - 20px) / 2) !important;
  }
}

@media (min-width: 1024px) {
  body.single-product .related.products {
    margin: 40px 0 18px !important;
  }

  body.single-product .related.products ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px 24px !important;
  }

  body.single-product .related.products ul.products li.product {
    width: calc((100% - 72px) / 4) !important;
    flex: 0 0 calc((100% - 72px) / 4) !important;
  }

  body.single-product .hsj-r2-footer,
  body.single-product footer.site-footer,
  body.single-product .site-footer {
    padding-top: 18px !important;
  }
}

@media (max-width: 767px) {
  body.single-product .related.products {
    margin: 32px 0 12px !important;
  }

  body.single-product .related.products ul.products {
    gap: 16px 14px !important;
  }

  body.single-product .related.products ul.products li.product {
    width: calc((100% - 14px) / 2) !important;
    flex: 0 0 calc((100% - 14px) / 2) !important;
  }

  body.single-product .hsj-r2-footer,
  body.single-product footer.site-footer,
  body.single-product .site-footer {
    padding-top: 14px !important;
  }
}
/* R3-FINAL-FIX-8 end */

/* R3-FINAL-FIX-8B start */
body.single-product .related.products li.product > .woosw-btn,
body.single-product .related.products li.product > .woosw-btn.woosw-added,
body.single-product .related.products li.product > .woosw-btn.woosw-btn-has-icon,
body.single-product .related.products li.product > .woosw-btn.woosw-btn-icon-text,
body.single-product .related.products li.product .astra-shop-thumbnail-wrap > .ast-on-card-button,
body.single-product .related.products li.product .astra-shop-thumbnail-wrap > .ast-on-card-button .ast-card-action-tooltip,
body.single-product .related.products li.product .astra-shop-thumbnail-wrap > .ast-on-card-button .ahfb-svg-iconset {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* R3-FINAL-FIX-8B end */

/* R3-FINAL-FIX-10A start */
body.search.search-results.post-type-archive-product li.product > .woosw-btn,
body.search.search-results.post-type-archive-product li.product > .woosw-btn.woosw-added,
body.search.search-results.post-type-archive-product li.product > .woosw-btn.woosw-btn-has-icon,
body.search.search-results.post-type-archive-product li.product > .woosw-btn.woosw-btn-icon-text {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* R3-FINAL-FIX-10A end */

/* R3-VISUAL-CLOSURE-BATCH-1: center sparse formal catalog grids. */
@media (min-width: 1024px) and (max-width: 1180px) {
  body.page-id-815 .hsj-collection-v3__grid:has(> .hsj-r3-wishlist-card-shell--collection:first-child:nth-last-child(1)) {
    grid-template-columns: minmax(0, calc((100% - 48px) / 3));
    justify-content: center;
  }

  body.page-id-815 .hsj-collection-v3__grid:has(> .hsj-r3-wishlist-card-shell--collection:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, minmax(0, calc((100% - 48px) / 3)));
    justify-content: center;
  }

  body.page-id-815 .hsj-collection-v3__grid:has(> .hsj-r3-wishlist-card-shell--collection:first-child:nth-last-child(3)) {
    grid-template-columns: repeat(3, minmax(0, calc((100% - 48px) / 3)));
    justify-content: center;
  }

  :is(body.page-id-822, body.page-id-823) .hsj-collection-v3__grid:has(> .hsj-r3-wishlist-card-shell--collection:first-child:nth-last-child(1)) {
    grid-template-columns: minmax(0, calc((100% - 44px) / 3));
    justify-content: center;
  }

  :is(body.page-id-822, body.page-id-823) .hsj-collection-v3__grid:has(> .hsj-r3-wishlist-card-shell--collection:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, minmax(0, calc((100% - 44px) / 3)));
    justify-content: center;
  }
}

@media (min-width: 1181px) {
  body.page-id-815 .hsj-collection-v3__grid:has(> .hsj-r3-wishlist-card-shell--collection:first-child:nth-last-child(1)) {
    grid-template-columns: minmax(0, calc((100% - 96px) / 4));
    justify-content: center;
  }

  body.page-id-815 .hsj-collection-v3__grid:has(> .hsj-r3-wishlist-card-shell--collection:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, minmax(0, calc((100% - 96px) / 4)));
    justify-content: center;
  }

  body.page-id-815 .hsj-collection-v3__grid:has(> .hsj-r3-wishlist-card-shell--collection:first-child:nth-last-child(3)) {
    grid-template-columns: repeat(3, minmax(0, calc((100% - 96px) / 4)));
    justify-content: center;
  }

  :is(body.page-id-822, body.page-id-823) .hsj-collection-v3__grid:has(> .hsj-r3-wishlist-card-shell--collection:first-child:nth-last-child(1)) {
    grid-template-columns: minmax(0, calc((100% - 84px) / 4));
    justify-content: center;
  }

  :is(body.page-id-822, body.page-id-823) .hsj-collection-v3__grid:has(> .hsj-r3-wishlist-card-shell--collection:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, minmax(0, calc((100% - 84px) / 4)));
    justify-content: center;
  }
}

@media (max-width: 1023px) {
  :is(body.page-id-815, body.page-id-822, body.page-id-823) .hsj-collection-v3__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-id-815 .hsj-collection-v3__grid > .hsj-r3-wishlist-card-shell--collection:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 20px) / 2);
    justify-self: center;
  }

  :is(body.page-id-822, body.page-id-823) .hsj-collection-v3__grid > .hsj-r3-wishlist-card-shell--collection:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 18px) / 2);
    justify-self: center;
  }
}

@media (max-width: 767px) {
  :is(body.page-id-815, body.page-id-822, body.page-id-823) .hsj-collection-v3__grid > .hsj-r3-wishlist-card-shell--collection:last-child:nth-child(odd) {
    width: calc((100% - 12px) / 2);
  }
}

/* R3-VISUAL-CLOSURE-BATCH-1-R1: show complete mobile catalog titles. */
@media (max-width: 767px) {
  :is(body.page-id-815, body.page-id-822, body.page-id-823)
  .hsj-collection-v3__grid
  > .hsj-r3-wishlist-card-shell--collection
  .hsj-product-card-v3__title {
    display: block;
    max-height: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
  }
}
