@media (max-width: 400px) {
	main {
		margin-left: 1rem;
		margin-right: 1rem;
	}
}

@media (max-width: 600px) {
	.swiper-button-next, .swiper-button-prev {
		display: none;
	}
}

/* breadcrumbs */
.wc-block-breadcrumbs {
  max-width: 1200px !important;
}

/* main cart content */
.wc-block-components-main {
  padding: 0 !important;
}
/* tabella prodotti */

.wc-block-components-product-name {
  font-weight: 500;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  background: #fff;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
  background: #036;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.wc-block-cart-item__remove-link {
  font-weight: 500 !important;
  text-underline-offset: 2px;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus, .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
  opacity: 1 !important;
}

.wc-block-cart-item__total .wc-block-components-product-price__value {
  font-weight: 600;
}

.is-large.wc-block-cart .wc-block-cart-items td {
  border-top: 1px solid #f1c040 !important;
}

.is-medium table.wc-block-cart-items:not(.wc-block-mini-cart-items):not(:last-child) .wc-block-cart-items__row  {
  border-bottom: 1px solid #f1c040 !important;
}

.wc-block-cart-items.wp-block-woocommerce-cart-line-items-block {
	border-bottom: unset !important;
  padding: 1rem !important;
  background-color: #ebebeb !important;
  border-radius: 1rem !important;
}

.wc-block-components-quantity-selector::after {
  border: 1px solid #f1c040;
}

.wc-block-cart-items__row img {
  border-radius: 4px;
}

tbody .wc-block-components-product-badge {
  text-transform: none;
}

/* cross-sell */
.wp-block-woocommerce-cart-cross-sells-block > div:nth-child(2) {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 1rem;
}

.cross-sells-product {
  position: relative;
  aspect-ratio: 1 / 1.5856;
  padding: 1rem !important;
  box-sizing: border-box !important;
  border-radius: 1rem;
  background-color: #ebebeb;
  max-width: 288px;
  width: 249px !important;
}

.wp-block-cart-cross-sells-product__product-image img {
  border-radius: 1rem;
}

.cross-sells-product h3 a {
  text-decoration: none;
  width: 80%;
  padding: 0.5rem 0 !important;
  transform: translate(-50%, 0);
  border-radius: 5px;
  backdrop-filter: blur(10px);
  background-color: rgba(53, 53, 53, 0.4);
  bottom: 36%;
  position: absolute;
  color: #fff;
  font-weight: 600 !important;
}

.custom-cart-cross-sell .wc-block-components-product-price {
  width: fit-content;
  position: absolute;
  left: 50%;
  transform: translatex(-50%);
  bottom: 20%;
  background-color: #fff;
  padding: 0 0.5rem;
  border: #000 solid 2px;
  border-radius: 0.5rem;
  line-height: calc(2.5rem - 4px);
	 color: #036;
  font-weight: 600;
}

.custom-cart-cross-sell .from-price {
  color: #000;
  font-weight: 300;
}

/*.wp-block-cart-cross-sells-product__product-add-to-cart*/

.custom-cart-cross-sell .wp-block-button {
  position: absolute;
  bottom: 1rem;
  transform: translateX(-50%);
  left: 50%;
}

.custom-cart-cross-sell .button-single-product-link {
  height: 2.5rem;
  line-height: 2.5rem;
  padding: 0 0.5rem;
  border: 1px solid #f1c040;
  border-radius: 0.5rem;
  box-sizing: border-box;
  background-color: #f1c040;
  font-weight: 600;
  text-decoration: none !important;
  color: #000 !important;
  text-align: center;
}

.custom-cart-cross-sell .button-single-product-link:hover {
  background-color: #fff !important;
}

@media (max-width: 1230px) {
	.wp-block-woocommerce-cart-cross-sells-block > div:nth-child(2) {
		justify-content: space-evenly;
	}
}

/* sidebar riepilogo carrello */
.wp-block-woocommerce-cart-totals-block {
  position: sticky;
  top: 12.5rem;
  align-self: flex-start;
}

.wp-block-woocommerce-cart-order-summary-block {
  border: 1px solid #f1c040;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.wc-block-components-totals-wrapper, .wp-block-woocommerce-cart-order-summary-totals-block, .wc-block-components-totals-wrapper  {
  border-top: 1px solid #f1c040;
}

.wc-block-cart__totals-title {
  padding-left: 1rem !important;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
  background-color: #373737;
  border: 2px solid #f1c040;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
  background: #f1c040;
}

.page-template-page-cart .wc-block-cart__submit-button {
  border: 1px solid #f1c040;
  color: #036;
  transition: 0.5s;
}

.page-template-page-cart .wc-block-cart__submit-button:hover {
  color: #f1c040;
  background-color: #036;
}

.wc-block-cart__submit-button:hover {
  background-color: #fff;
}

.wc-block-components-totals-coupon__input input {
  background-color: #ebebeb !important;
  border-color: #f1c040 !important;
}

.wc-block-components-totals-coupon__button {
  border: 1px solid #f1c040 !important;
  padding: 0 24px !important;
}

.wc-block-components-totals-coupon__button:hover {
  background-color: #fff;
}

.is-medium.wc-block-cart .wc-block-components-sidebar .wc-block-cart__totals-title,
.is-mobile.wc-block-cart .wc-block-components-sidebar .wc-block-cart__totals-title,
.is-small.wc-block-cart .wc-block-components-sidebar .wc-block-cart__totals-title {
  display: block;
padding-left: 16px;
  padding-right: 16px;
font-weight: 600;
}

.wc-block-components-totals-coupon.wc-block-components-panel, .wc-block-components-totals-item, #radio-control-0-free_shipping\:1__label, .wc-block-components-shipping-rates-control__package__description--free {
  padding-left: 1rem;
  padding-right: 1rem;
}

div#shipping-calculator-form-wrapper.wc-block-components-shipping-calculator form.wc-block-components-shipping-calculator-address button {
  background-color: #f1c040;
  color: #036;
  transition: 0.5s;
}


div#shipping-calculator-form-wrapper.wc-block-components-shipping-calculator form.wc-block-components-shipping-calculator-address button:hover {
  background-color: #036;
  color: #f1c040;
}

div#shipping-calculator-form-wrapper.wc-block-components-shipping-calculator form.wc-block-components-shipping-calculator-address button:focus {
  color: #036;
}

div#shipping-calculator-form-wrapper.wc-block-components-shipping-calculator span.wc-block-components-button__text {
  font-size: 1rem;
  white-space: wrap;
}

/* Empty cart */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before { 
	background-color: transparent;
	background-image: url(https://www.vsarredocasa.it/wp-content/uploads/2025/03/cert-empty-img.webp);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	content: "";
	display: block;
	height: 10rem;
	width: 10rem;
	margin: 0 auto 2rem;
	mask-image: unset;
}

.link-go-back-shop a {
  background-color: #f1c040;
  padding: 0.5rem;
  border-radius: 0.5rem;
  text-decoration: none !important;
  transition: 0.5s;
}

.link-go-back-shop a:hover {
  background-color: #036;
}

/* empty cart up sell */
.continer-product-collection-empty-cart .continer-items-product-collection {
	display: grid;
	grid-gap: 1rem !important;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.continer-product-collection-empty-cart 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;
}

.continer-product-collection-empty-cart img {
  border-radius: 1rem;
}

.product_cat-product-empty-cart .wc-block-grid__product-onsale {
  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(3rem);
  top: -1rem;
}

.product_cat-product-empty-cart .wc-block-grid__product-onsale span {
  background-color: transparent;
}


.continer-product-collection-empty-cart h3 {
  text-decoration: none;
  width: 80%;
  padding: 0.5rem 0 !important;
  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;
}

.continer-product-collection-empty-cart .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;
}

.continer-product-collection-empty-cart .button-single-product-link {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.95rem !important;
  font-weight: 600;
  text-decoration: none !important;
  color: #000 !important;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #f1c040;
  text-align: center;
  width: fit-content;
  border: 1px solid #f1c040;
  line-height: calc(2rem - 2px);
  height: calc(2rem - 2px);
}

.continer-product-collection-empty-cart .button-single-product-link:hover {
  background-color: #fff;
}

.continer-product-collection-empty-cart .wc-block-components-product-price {
  width: fit-content;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  border-radius: 0.5rem;
  border: #000 solid 1px;
  line-height: calc(2.5rem - 2px);
  height: calc(2.5rem - 2px);
}

.continer-product-collection-empty-cart .from-price {
  color: #000;
  font-weight: 300;
}

.continer-product-collection-empty-cart .woocommerce-Price-amount.amount {
  color: #036;
  font-weight: 600;
}