/********************************/
/********************************/
/* Prodotto                     */
/********************************/
/********************************/

/* PRODUCT LIST */

/* strong.product-item-name {
	min-height: 45px;
} */


ol.product-items {
    display: flex;
    flex-wrap: wrap;
}
body.page-products .products-grid .product-item {
	display: flex;
    position: relative;
}
body.page-products .product-item-info {
    display: flex;
    flex-direction: column;
        /* background: green; */
}
body.page-products .product-item-info .product-item-details {
	display: flex;
    flex-direction: column;
    /* background: red; */
    flex: 1 0 auto;
}
strong.product-item-name {
	flex: 1 0 auto;
}

li.product-item .price-box {
    margin: 0px 0 5px;
}

.product-item .action.tocart.btn--doar {
  padding: 14px 10px 14px 17px;
}

.product-item .action.tocart.btn--doar:focus {
    background-color: #5b1e85;
}

.product-item .action.tocart.btn--doar:hover {
    text-shadow: none;
}


.product-item .product-image-photo {
    transition: all .5s ease; 
}

.product-item:hover .product-image-photo {
    /* transition: all .5s ease;  */
    transform: scale(0.9, 0.9);
}

.product-item .stock.unavailable {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 4px 10px 4px;
    font-size: 10px;
    background: #cc2727;
    color: #fff;
}


/* Animazione bordo immagine */
/* .product-item .product-item-photo {
    position: relative;
}

.product-item .product-item-photo span.animBorder {
  position: absolute;
  z-index: 3;
  display: block;
  background: #000;
  transition: transform ease-in-out 0.2s;
}

.product-item .product-item-photo span.animBorder:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition-delay: 0s;
}

.product-item:hover .product-item-photo span.animBorder:nth-child(1) {
  transform: scaleX(1);
  transform-origin: left;
}

.product-item .product-item-photo span.animBorder:nth-child(3) {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition-delay: 0.4s;
}

.product-item:hover .product-item-photo span.animBorder:nth-child(3) {
  transform: scaleX(1);
  transform-origin: right;
}

.product-item .product-item-photo span.animBorder:nth-child(2) {
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: bottom;
  transition-delay: 0.2s;
}

.product-item:hover .product-item-photo span.animBorder:nth-child(2) {
  transform: scaleY(1);
  transform-origin: top;
}

.product-item .product-item-photo span.animBorder:nth-child(4) {
  bottom: 0;
  left: 0;
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  transition-delay: 0.6s;
}

.product-item:hover .product-item-photo span.animBorder:nth-child(4) {
  transform: scaleY(1);
  transform-origin: bottom;
} */


.swatch-option.selected {
    outline: 2px solid #5b1e85;
}


/* PRODOTTO SINGOLO */

@media (max-width: 767px) {
	.product-info-main .box-tocart .field.qty {
		display: inline-block;
    	vertical-align: bottom;
    	margin-bottom: 0;
	}
	.product-info-main .box-tocart .actions {
		display: inline-block;
    	vertical-align: middle;
	}
}

div.fotorama__thumb-border {
	border: 1px solid #5b1e85;
}
div.fotorama__active .fotorama__dot {
    background-color: #5b1e85;
    border-color: #5b1e85;
}

.productIsComingSoon {
    width: 100%;
    margin: 25px 0px;
    text-align: center;
    background: transparent;
    color: #5b1e85;
    line-height: 2.2rem;
    padding: 14px 17px;
    font-size: 1.8rem;
    border: 1px solid #5b1e85;
    font-weight: 700;
    box-sizing: border-box;
}

.productIsComingSoon--list {
    /* border: 1px solid #5b1e85;
    color: #5b1e85;
    cursor: pointer;
    display: inline-block;
    font-family: 'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
    font-weight: 700;
    padding: 12px 13px;
    font-size: 1.4rem;
    box-sizing: border-box;
    vertical-align: middle; */

    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 4px 10px 4px;
    font-size: 12px;
    background: #5b1e85;
    color: #fff;
}

.product-info-stock-sku .stock span {
    background: #000;
    color: #fff;
    padding: 4px 10px 4px;
    font-size: 10px;
    border-radius: 7px;
    display: inline-block;
    margin-bottom: 20px;
}
.product-info-stock-sku .stock.available span { background: #9ac12d; }
.product-info-stock-sku .stock.unavailable span { background: #cc2727; }


.product-info-main .product.attribute.overview,
.product-info-main .product.attribute.description {
  font-family: 'PT Serif', serif;
}

.product-info-main .box-tocart .action.tocart.btn--doar {
    padding: 14px 10px 14px 17px;
}

.product-info-main .box-tocart .action.tocart.btn--doar:hover {
    text-shadow: none;
}

.product-info-main .box-tocart .action.tocart.btn--doar:focus {
    background-color: #5b1e85;
}

.btn {
    padding: 15px;
    font-weight: 700;
    font-size: 2rem;
    text-decoration: none;
    text-align: center;
    transition: all .9s ease; 
}

.btn--doar {
    color: #fff;
    padding-right: 0;
    background-color: #5b1e85;
    display: inline-block;
    -webkit-clip-path: polygon(0% 0%, 100% 0, 100% 70%, 90% 100%, 0% 100%);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 75% 100%, 0 100%);
}

.btn--doar:hover,
.btn--doar:focus { 
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 100%);  
}

.btn--doar:after {
    content: "to";
    color: #fff;
    display: inline-block;
    position: relative;
    right: -55px;
    padding-right: 0px;
    background: url('../images/form/cart-white.svg') no-repeat;
    background-position-y: center;
    background-position-x: 100px;
    transition: all 0.5s ease;
    background-size: 80% 80%;
}

html:lang(it) .btn--doar:after {
  content: "al";
}

.btn--doar:hover:after,
.btn--doar:focus:after {
    background-position-x: right;
    padding-right: 40px;
    margin: -5px 0px -5px 4px;
    right: 0px;
}

@media (max-width: 767px) {

    .btn--doar {
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 100%); 
    }
    .btn--doar:after {
        background-position-x: right;
        padding-right: 40px;
        margin: -5px 0px -5px 4px;
        right: 0px;
    }

}


/* PRODOTTI CORRELATI - IN PRODOTTO SINGOLO */

div.block.upsell,
div.block.related,
div.block.crosssell {
  overflow: auto;
  width: 100%;
  margin-top: 25px;
  padding-top: 50px;
}

body.page-layout-1column .products-grid .product-item {
  position: relative;
}
body.page-layout-1column .products-grid .product-item .product-item-info {
    max-width: 100%;
    width: 240px;
}

body.page-layout-1column .products-grid .product-item {
    width: calc((100% - 6%) / 4);
}
body.page-layout-1column .products-grid .product-item:nth-child(3n + 1) {
  margin-left: 2%;
}
body.page-layout-1column .products-grid .product-item:nth-child(4n + 1) {
  margin-left: 0;
}


@media (max-width: 767px) {
  body.page-layout-1column .products-grid .product-item:nth-child(4n + 1) {
    margin-left: 2%;
  }
  body.page-layout-1column .products-grid .product-item:nth-child(2n + 1) {
    margin-left: 0;
  }
  body.page-layout-1column .products-grid .product-item {
    width: calc((100% - 2%) / 2);
  }
}


