/* Mandorlamore — scheda prodotto e corporate gift */
.stock{display:none !important;}

/*PRODOTTO*/
.single-product form.cart button.loading{opacity:.6; pointer-events:none;}
.crop-atc-error{width:100%; margin-bottom:12px; font-size:14px; color:var(--main-color);}
.single-product form.cart a.added_to_cart,
.product_meta .posted_in,
.woocommerce-variation.single_variation,
.reset_variations{display:none !important;}
.breakdance .breakdance-woocommerce .woocommerce-product-attributes tr.woocommerce-product-attributes-item--attribute_pa_assortimenti,
.breakdance .breakdance-woocommerce .woocommerce-product-attributes tr.woocommerce-product-attributes-item--attribute_pa_dimensione,
.breakdance .breakdance-woocommerce .woocommerce-product-attributes tr.woocommerce-product-attributes-item--attribute_confezione{display:none !important;}

.var-buttons{display:flex; flex-wrap:wrap; gap:.5rem;}
.var-btn{border:1px solid var(--main-color); background:transparent; color:var(--main-color); border-radius:999px; padding:.45rem 1.6rem; font-size:.75rem; text-transform:uppercase; cursor:pointer; transition:background .2s, color .2s; font-family:"Finalsix";}
.var-btn:hover, .var-btn.is-active{background:var(--main-color); color:#fff;}
.var-btn:disabled{opacity:.35; cursor:not-allowed;}

.bde-wooproductcartbutton.breakdance-woocommerce > form:not(.variations_form),
.woocommerce-variation-add-to-cart.variations_button{border:1px solid; border-radius:50px; overflow:hidden; width:auto !important; max-width:300px !important; display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important;}
.breakdance-woocommerce .form-row label,
.breakdance-woocommerce .comment-form label,
.breakdance-woocommerce table.variations label{font-size:12px; text-transform:uppercase;}
.woocommerce-variation-add-to-cart.variations_button button{text-wrap:nowrap;}
.breakdance-woocommerce .quantity input{min-width:80px; border-right:1px solid #bcbec0; font-family:"Finalsix"; font-weight:700; color:var(--main-color);}


.single-product p.stock.out-of-stock {
all: unset;
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 40px;
    border: 1px solid #a51f36;
    /* border-radius: 999px; */
    background: transparent !important;
    color: #a51f36 !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0;
    cursor: default;
}

.single-product .woocommerce-variation-add-to-cart-disabled .quantity,
.single-product .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button {
  display: none;
}
/* Selettore quantità nascosto (scorta = 1 o venduto singolarmente) */
.single-product form.cart .quantity:has(input[type="hidden"]) {
  display: none;
}
.single-product form.cart:has(.quantity input[type="hidden"]) .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;          /* stessa altezza della pillola normale */
  padding: 0 40px;
  width: auto;
}

.single-product form.cart .quantity:has(input[type="hidden"]) {
  display: none;
}
.single-product form.cart:has(.quantity input[type="hidden"]) .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 40px;
  width: auto;
}

/* Prezzo */
.js-product-price .price{display:inline-flex !important; flex-direction:row !important; align-items:baseline; gap:.6rem;}
.js-product-price .price del{order:1;}
.js-product-price .price ins{order:2; text-decoration:none;}
.breakdance-woocommerce .entry-summary .price,
.breakdance-woocommerce.bde-wooproductprice .price,
.breakdance-woocommerce ul.products li.product .price{flex-direction:column !important; flex-wrap:nowrap !important; align-content:flex-start !important; align-items:flex-start !important;}
.breakdance-woocommerce .product del .woocommerce-Price-amount bdi{font-size:14px !important;}
span.woocommerce-Price-amount.amount{margin:0 auto;}

/* Pulsanti popup */
.popup-buttons{display:flex; align-items:center; margin-top:1.5rem;}
.popup-btn{display:flex; align-items:center; gap:.5rem; background:none; border:0; padding:0 1.25rem; color:var(--main-color); font-size:.6rem; line-height:1.2; letter-spacing:.04em; text-transform:uppercase; text-align:left; cursor:pointer; transition:opacity .2s;}
.popup-btn:first-child{padding-left:0;}
.popup-btn + .popup-btn{border-left:1px solid rgba(163, 32, 53, .25);}
.popup-btn img{width:28px; height:28px;}
.popup-btn:hover{opacity:.7;}

/* Popup */
.popup-info{max-width:70vw; max-height:60vh; width:100%; border:none; border-radius:20px; scrollbar-width:none;}
.popup-info::-webkit-scrollbar{display:none;}
.popup-info .popup-info__close{position:absolute; right:20px; background:none; border:none; font-size:20px; cursor:pointer;}
.info-mandorle{display:flex; flex-direction:column; flex-wrap:nowrap;}
.info-mandorla{display:flex; flex-direction:row; flex-wrap:nowrap; justify-content:flex-start; align-items:flex-start; padding:30px;}
.info-mandorla:not(:last-child){border-bottom:1px solid var(--main-color);}
.info-prodotto{padding:30px;}
.info-mandorla .info-mandorla__media{width:250px; display:flex; flex-direction:column; flex-wrap:nowrap; align-items:center;}
.info-mandorla .info-mandorla__media img{max-width:150px; margin-left:-30px;}
.info-mandorla__nome{text-align:center; text-transform:uppercase; font-size:14px; font-weight:700;}
.info-mandorla__col{max-width:calc(100% - 200px); width:100%; padding-left:40px; border-left:1px solid var(--main-color); margin-left:40px;}
h4.info-mandorla__titolo{display:flex; flex-direction:row; flex-wrap:nowrap; justify-content:flex-start; align-items:center; font-size:16px; text-transform:uppercase; font-weight:600;}
h4.info-mandorla__titolo img{width:30px; margin-right:15px;}

/* Fila mandorle */
ul.mandorle{margin:0; padding:0; display:flex; list-style:none; flex-direction:row; flex-wrap:wrap; justify-content:flex-start; align-items:flex-start;}
li.mandorle__item{width:20%; max-width:140px; padding-right:15px; margin-bottom:15px;}
li.mandorle__item a{display:flex; flex-direction:column; flex-wrap:nowrap; align-items:center;}
li.mandorle__item a img{margin-left:-25px; max-width:90px;}
li.mandorle__item span{text-transform:uppercase; font-size:10px; text-align:center; line-height:1.1;}
.altri-prodotti li.mandorle__item{width:25%; max-width:25%;}
.altri-prodotti li.mandorle__item a img{margin-left:0; max-width:80%;}

/* Galleria prodotto: thumbnail verticali a sinistra */
.bde-wooproductimages .woocommerce-product-gallery{display:grid !important; grid-template-columns:60px 1fr !important; gap:4.5rem; align-items:start;}
.bde-wooproductimages .flex-viewport{grid-column:2; grid-row:1; min-width:0;}
.bde-wooproductimages .flex-control-thumbs{
  grid-column:1; grid-row:1 !important;
  display:flex !important; flex-direction:column !important; gap:1rem;
  margin:0 !important; padding:0; list-style:none;
  height:0; min-height:100%;   /* alta quanto l'immagine principale */
  overflow-y:auto; scrollbar-width:none;
}
.bde-wooproductimages .flex-control-thumbs::-webkit-scrollbar{display:none;}
.bde-wooproductimages .flex-control-thumbs li{flex-shrink:0; width:100% !important; height:auto !important; float:none !important; margin:0 !important; aspect-ratio:1 / 1; overflow:hidden;}
.bde-wooproductimages .flex-control-thumbs img{display:block; width:100% !important; height:100% !important; max-width:none; margin:0 !important; object-fit:cover; opacity:.5; cursor:pointer; transition:opacity .2s;}
.bde-wooproductimages .flex-control-thumbs img.flex-active,
.bde-wooproductimages .flex-control-thumbs img:hover{opacity:1;}
.breakdance .bde-wooproductimages-865-146.breakdance-woocommerce .flex-control-nav li{flex-basis:unset !important;}

/* Prodotto con una sola immagine: niente colonna miniature */
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper{grid-column:1 / -1; width:100%; max-width:none;}
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper img{width:100%; height:auto;}


/* Curva grigia sotto il carrello (top calcolato dal JS) */
.product-curve-bg{position:absolute !important; left:0; right:0; bottom:0; top:550px !important; background:#f3f1f2; z-index:0; pointer-events:none;}
.product-curve-bg ~ *{position:relative; z-index:1;}
.is-oxygen-builder .product-curve-bg{opacity:.5;}

/* Galleria corporate: come la galleria prodotto */
.crop-gallery{display:grid; grid-template-columns:60px 1fr; gap:4.5rem; align-items:start;}
.crop-gallery.is-single{grid-template-columns:1fr;}
.crop-gallery__main{grid-column:2; grid-row:1; display:grid; min-width:0;}
.crop-gallery.is-single .crop-gallery__main{grid-column:1;}
.crop-gallery__slide{grid-area:1 / 1; margin:0; opacity:0; pointer-events:none; transition:opacity .4s ease;}
.crop-gallery__slide.is-active{opacity:1; pointer-events:auto;}
.crop-gallery__slide img{display:block; width:100%; height:auto;}
.crop-gallery__thumbs{grid-column:1; grid-row:1; display:flex; flex-direction:column; gap:1rem; margin:0; padding:0; list-style:none; height:0; min-height:100%; overflow-y:auto; scrollbar-width:none;}
.crop-gallery__thumbs::-webkit-scrollbar{display:none;}
.crop-gallery__thumbs li{flex-shrink:0; aspect-ratio:1 / 1; overflow:hidden;}
.crop-gallery__thumb{display:block; width:100%; height:100%; padding:0; border:0; background:none; cursor:pointer;}
.crop-gallery__thumb img{display:block; width:100%; height:100%; object-fit:cover; opacity:.5; transition:opacity .2s;}
.crop-gallery__thumb:hover img,
.crop-gallery__thumb.is-active img{opacity:1;}


@media (max-width:991px){
  /* Popup info impilati */
  .info-mandorla{flex-direction:column; padding:20px;}
  .info-mandorla .info-mandorla__media{align-items:flex-start; width:100%;}
  .info-mandorla__nome{text-align:left;}
  .info-mandorla__col{max-width:100%; padding-left:0; border-left:none; margin-left:0;}

  .bde-wooproductimages .woocommerce-product-gallery{gap:1.5rem;}
  .crop-gallery{gap:1.5rem;}
}



@media (max-width:767px){
  .popup-buttons{margin-top:1.25rem;}
	li.mandorle__item {		width: 33%;}
	.popup-btn {border-left: unset !important; width: 50%;
    margin-bottom: 15px;
    padding: 0;}
	.popup-buttons{flex-wrap: wrap;
    justify-content: flex-start;}

  /* Galleria prodotto: miniature sotto, in orizzontale */
  .bde-wooproductimages .woocommerce-product-gallery{grid-template-columns:1fr !important;}
  .bde-wooproductimages .flex-viewport{grid-column:1;}
  .bde-wooproductimages .flex-control-thumbs{grid-column:1; grid-row:2 !important; flex-direction:row !important; height:auto; min-height:0; overflow-x:auto;}
  .bde-wooproductimages .flex-control-thumbs li{width:70px !important;}

  /* Galleria corporate */
  .crop-gallery{grid-template-columns:1fr;}
  .crop-gallery__main{grid-column:1;}
  .crop-gallery__thumbs{grid-column:1; grid-row:2; flex-direction:row; height:auto; min-height:0; overflow-x:auto; overflow-y:hidden;}
  .crop-gallery__thumbs li{width:70px;}
}
