.woocommerce-products-header__title.page-title {
  display: none;
}

/* product gallery*/
.single-product .woocommerce span.onsale {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem !important;
  width: 5rem !important;
  font-size: 1rem;
  color: #039 !important;
  white-space: nowrap;
  height: 5rem !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  transform: rotate(320deg);
  backdrop-filter: blur(10px);
  background-color: rgba(241, 191, 64, 0.65) !important;
}

.wp-block-group.product-img-gallery-continer {
  margin-left: 0 !important;
}

.wp-block-woocommerce-product-image-gallery.product-img-gallery-continer {
  position: sticky;
  position: -webkit-sticky;
  top: 200px;
  height: fit-content;
  background-color: #ebebeb;
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.product-img-gallery-continer .flex-viewport {
  border-radius: 1rem;
}

.woocommerce-product-gallery__image {
  border-radius: 1rem;
}

.product-img-gallery-continer .woocommerce-product-gallery--with-images {
  margin: 0 !important;
}

ol.flex-control-nav.flex-control-thumbs {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4rem, -webkit-max-content));
    grid-template-columns: repeat(auto-fill, minmax(4rem, max-content));
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1rem !important;
}


.woocommerce div.product div.images .flex-control-thumbs li {
  margin: 0;
  list-style: none;
  width: 4rem !important;
  height: auto;
  border: 1px solid #f1c040;
  border-radius: 0.25rem;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active, .woocommerce div.product div.images .flex-control-thumbs li img:hover {
  opacity: 1;
  border: 2px solid #036;
  box-sizing: border-box;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
  cursor: pointer;
  opacity: .75;
  margin: 0;
}

@media (max-width: 781px) {
	.product-img-gallery-wrapper{
		display: flex;
		justify-content: center;
	}
}

/* product gallery modal */
.pswp__bg {
  background: rgba(0,51,102,0.95);
}

.pswp__item div.pswp__zoom-wrap img.pswp__img {
  border-radius: 1rem;
  max-width: calc(100% - 2rem) !important;
  margin: 0 1rem !important;
  height: auto !important;
}

.pswp__button.pswp__button--arrow--left {
  left: 1rem;
}

.pswp__button.pswp__button--arrow--right {
  right: 1rem;
}

.pswp__button.pswp__button--arrow--left, .pswp__button.pswp__button--arrow--right {
  background-color: #f1c040 !important;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 5rem;
  width: 3rem;
}

.pswp__button.pswp__button--arrow--left:hover, .pswp__button.pswp__button--arrow--right:hover {
  background-color: #fff !important;
}

.pswp__button.pswp__button--arrow--left::before, .pswp__button.pswp__button--arrow--right::before {
  content: "";
  height: 1.5rem;
  width: 1.5rem;
  display: block;
  background-size: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pswp__button--arrow--left::before {
  background: url(https://www.vsarredocasa.it/wp-content/themes/ttfivechild/assets/icons/vs-prev-arrow.svg) 0 0 no-repeat;
}

.pswp__button--arrow--right::before {
  background: url(https://www.vsarredocasa.it/wp-content/themes/ttfivechild/assets/icons/vs-next-arrow.svg) 0 0 no-repeat;
}

/* tabdescription */
#custom-single-product-form #tab-description strong {
  font-weight: 700;
}

/* wishlist */
.add_to_wishlist-continer {
  height: 3.75rem;
}

@media (max-width: 780px) {
.wp-block-spacer {
  height: 0 !important;
}
}

.add_to_wishlist-row {
	height: 3.75rem;
  display: flex;
  justify-content: right;
}

.add_to_wishlist-row .yith-wcwl-add-to-wishlist-button .yith-wcwl-add-to-wishlist-button__label {
	right: calc(100% + 8px);
	left: unset !important;
}

/*-- READ MORE ACCORDION --*/
.accordion-wrapper {
  text-align: right;
}

.accordion-wrapper button.accordion {
  font-size: 1rem;
  font-family: var(--wp--preset--font-family--raleway) !important;
  font-weight: 500;
  display: inline-block;
  margin: 0;
  padding: 0.75rem 1rem;
  background-color: #f1c040;
  color: #036;
  border: none;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: 0.5s;
}

button.accordion span {
  margin-right: 0.5rem;
}

.accordion-wrapper button.accordion:hover {
  color: #f1c040;
  background-color: #036;
}

/* mostra/nascondi contenuto extra */
.extra-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion[aria-expanded="true"]::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-bottom: 0.7rem solid black;
    border-radius: 0.25rem;
}

.accordion[aria-expanded="false"]::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-top: 0.7rem solid black;
    border-radius: 0.25rem;
}

.accordion[aria-expanded="true"]:hover::after {
	border-bottom-color: #f1c040;
}

.accordion[aria-expanded="false"]:hover::after {
	border-top-color: #f1c040;
}

.accordion[aria-expanded="true"]::after,
.accordion[aria-expanded="false"]::after {
    transition: border-color 0.5s;
}

/* dettagli prodotto */
dt {
  font-weight: bold;
  display: inline;
}

dd {
  margin: 0;
  display: inline;
}

/* total price counter */
#custom-single-product-form .price {
  font-size: 1.25rem;
}

#custom-single-product-form .custom-price-label {
  font-weight: 300;
  color: #000;
}

#custom-single-product-form .custom-price-amount {
  color: #036;
  font-weight: 600;
}

#custom-single-product-form .woocommerce-Price-currencySymbol {
  top: -.25rem;
  font-size: 1rem;
  position: relative;
}

/* variation section */
.single_variation_wrap {
  display: flex;
  flex-direction: column;
}

.woocommerce-variation.single_variation {
  order: 2;
  margin-top: 0.5rem;
}

#custom-single-product-form .price {
  font-size: 1.25rem;
}

.custom-price-amount {
  color: #036;
  font-weight: 600;
}

/* variation swatcher */
.cfvsw-label-stacked table.variations td {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.cfvsw-swatches-option.cfvsw-label-option {
  background-color: #f1c040;
  border: 1px solid #f1c040;
  line-height: 2rem;
	padding: 0 0.5rem;
}

.cfvsw-swatches-option.cfvsw-label-option:hover {
	background-color: #fff;
	transition: 0.5s;
}

.cfvsw-swatches-option.cfvsw-label-option.cfvsw-selected-swatch {
  background-color: #fff;
  border: 1px solid #4ab866 !important;
}

#custom-add-tu-cart-options .reset_variations[style*="visibility: visible;"] {
	position: static;
}

#custom-add-tu-cart-options .reset_variations[style*="visibility: visible;"]:hover {
  background-color: #036;
  color: #f1c040;
}

#custom-add-tu-cart-options .reset_variations {
  position: absolute;
  top: -9999px;
  left: -9999px;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.25rem;
	color: #036;
	text-decoration: none !important;
	padding: 0.5rem;
	margin-top: 0.5rem;
	border-radius: 0.25rem;
	background-color: #f1c040;
	transition: 0.5s;
}

/* quantity / add_to_cart_button */
.quantity input {
  border: 1px solid #f1c040;
  border-radius: 4px;
}

.woocommerce-variation-add-to-cart .quantity {
  height: 3.25rem;
}

.single_add_to_cart_button.button.alt.wp-element-button {
	color: #036;
	border: 1px solid #f1c040;
	height: 3.25rem;
	line-height: calc(3.25rem - 1rem);
	transition: 0.5s;
}

.single_add_to_cart_button.button.alt.wp-element-button:hover {
  background-color: #036;
  color: #f1c040;
}

/* add to cart button */
.single_add_to_cart_button {
  font-size: 1.25rem;
  font-family: var(--wp--preset--font-family--raleway);
  font-weight: 600;
  color: #000;
	padding: 0.5rem 1rem;
}

/* hide brand */
.single-product-form .posted_in {
  display: none;
}

/* product-table*/
.product-table.misure {
  width: 100%;
  margin-bottom: 1rem;
  text-align: left;
	border-radius: 1rem;
  overflow: hidden;
}

/* Stile per le celle della tabella */
.product-table td {
  padding: 0.5rem 0;
  border-right: 1px solid transparent;
}

/* Stile per l'intestazione della tabella */
.product-table .row-head {
 background-color: #f1c040;
  vertical-align: middle;
  border-bottom: 1px solid transparent;
}

/* Stile per le righe della tabella */
.product-table .color-odd {
  background-color: #ebebeb;
}

.product-table .color-even {
  background-color: #c0c0c0;
}

/* Stile per la prima colonna */
.product-table .column-1 {
  vertical-align: top;
  padding-left: 1rem;
  border-right: none;
}

/* Stile per la seconda colonna */
.product-table .column-2 {
  vertical-align: top;
  padding-left: 1rem;
}

.product-table.misure ul {
  display: block;
  padding-left: 1rem;
	margin: 0;
}

/* custom single-product details tabs */
ul.tabs.wc-tabs {
  display: none;
}

/* up sell */
section.up-sells .up-sell-grid-continer {
	display: grid;
	grid-gap: 1rem !important;
  grid-template-columns: repeat(auto-fit, minmax(288px, 288px));
  justify-content: center;
}

section.up-sells li {
	position: relative;
  width: 18rem !important;
  aspect-ratio: 1 / 1.7;
  background-color: #ebebeb;
  box-sizing: border-box;
  padding: 1rem !important;
  border-radius: 1rem;
  margin: 0 !important;
}

section.up-sells a.yith-wcwl-add-to-wishlist-button-anchor-wrapper {
  position: absolute;
  top: 0;
}
section.up-sells .wc-block-grid__product-onsale {
  position: absolute;
  width: 5rem;
  height: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  background-color: rgba(241, 191, 64, 0.65);
  color: #039 !important;
  white-space: nowrap;
  transform: rotate(20deg) translateX(50%);
  top: -0.5rem;
}

section.up-sells .wc-block-components-product-sale-badge span {
  background-color: transparent;
}

section.up-sells img {
  border-radius: 1rem;
}

section.up-sells h3 {
  text-decoration: none;
  transform: translate(-50%, 0);
  border-radius: 5px;
  backdrop-filter: blur(10px);
  background-color: rgba(53, 53, 53, 0.4);
  text-align: center;
  bottom: 41%;
  position: absolute;
  left: 50%;
  margin: 0 auto !important;
  font-size: var(--wp--preset--font-size--extra-small) !important;
	font-weight: 600 !important;
}

.wp-block-post-title a {
  line-height: 2.25rem;
  width: 14.5rem;
  text-decoration: none !important;
}

.wp-block-post-title a:hover {
  color: var(--wp--preset--color--primary);
}

section.up-sells .wp-block-post-excerpt__excerpt {
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.156), 1rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  padding-top: 0.5rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

section.up-sells .button-single-product-link {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.179), 1rem) !important;
  font-weight: 600;
  text-decoration: none !important;
  color: #036 !important;
  border-radius: 0.5rem;
  background-color: #f1c040;
  text-align: center;
  width: fit-content;
  height: 2.5rem;
  line-height: 2.5rem;
  padding: 0 0.5rem;
  border: 1px solid #f1c040;
  box-sizing: border-box;
	transition: 0.5s;
}

section.up-sells .button-single-product-link:hover {
	color: #f1c040 !important;
  background-color: #036;
}

section.up-sells .wc-block-components-product-price {
  bottom: 1rem;
  left: 1rem;
  width: fit-content;
  position: absolute;
  padding: 0 0.5rem !important;
  border-radius: 0.5rem;
  border: #000 solid 1px;
  line-height: calc(2.5rem - 2px);
  height: calc(2.5rem - 2px);
}

section.up-sells .woocommerce-Price-currencySymbol {
  top: -.25rem;
  font-size: 0.65rem;
  position: relative;
}

/* variations form */
.woocommerce div.product form.cart {
  margin-bottom: 2rem;
}

/*table.variations.cfvsw-variation-disable-logic tr {
  height: 5.5rem;
}*/

/* product tag */
.taxonomy-product_tag.wp-block-post-terms {
  font-size: 1rem;
  line-height: 150%;
}

/* descriptions tab */
.custom-descriptions {
  font-size: 1rem;
  line-height: 150%;
}

/* product-gallery */
/*.wc-block-product-gallery-large-image-next-previous-container {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}*/