/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

/* carrello off canvas */
.mfn-cart-holder .mfn-ch-content .mfn-ch-product .woocommerce-Price-amount {
    color: #0A122A;
}
.wc-block-product-categories.is-list ul li {
    position: relative;
    border-bottom: 1px solid #cccccc6b;
    padding-right: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
}



  /* Wrapper per prezzo + bottone */
  .woocommerce ul.products li.product .price,
  .woocommerce ul.products li.product .button {
    display: inline-block;
    vertical-align: middle;
  }
  
  /* Fix per bottone */
  .woocommerce ul.products li.product .add_to_cart_button {
    margin-left: auto;
  }


/* ============================
  search layout
  ============================ */
.search-results .search-item .search-footer{
    text-align: left;
    display: inline;
    padding: 10px 15px;
    /* color: #ffe713; */
    background-color: #0A122A;
}
.search-footer a{
    color: #ffe713; 
}
.search-item{
    margin: 50px 100px 0 100px;
    background-color: #F7F7F7;
    border-radius: 15px;
}

.search-results .search-item .search-content{
    padding: 20px 30px 30px 30px;
}

.pager {
    margin-bottom: 30px;
}

@media only screen and (max-width: 767px) {
   .search-item {
       margin: 50px 10px;
   }
   .search-results .search-item .search-content{
      width: fit-content;
}
}

/* ============================
  CLAMP TITLE WOOCOMMERCE
  ============================ */
/* Tronca titolo prodotti a 2 righe */
h4.title a{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  margin-bottom: 15px;
}


/* ============================
  meta pagina prodotto singolo
  ============================ */
.wc-block-featured-category .wc-block-featured-category__title {
    font-size: 28px;
}
.posted_in{
    display: none;
}

.iva-inclusa {
    font-size: 0.6em;
    color: #576d80;
}

/* ============================
   FIX LISTA PRODOTTI (BeTheme)
   ============================ */
/* Layout: immagine/titolo full width + riga prezzo/bottone */
.woocommerce ul.products li.mfn-product-li-item{
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  grid-auto-rows: auto;
  align-content: start;
  row-gap: 20px;
}

.woocommerce ul.products li.mfn-product-li-item > .mfn-li-product-row-image,
.woocommerce ul.products li.mfn-product-li-item > .mfn-li-product-row-title,
.woocommerce ul.products li.mfn-product-li-item > .mfn-after-shop-loop-item-title,
.woocommerce ul.products li.mfn-product-li-item > .mfn-before-shop-loop-item{
  grid-column: 1 / -1 !important;
}

/* Prezzo a sinistra */
.woocommerce ul.products li.mfn-product-li-item > .mfn-li-product-row-price{
  grid-column: 1 !important;
  align-self: flex-start;
  justify-self: start;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

/* Bottone a destra */
.woocommerce ul.products li.mfn-product-li-item > .mfn-li-product-row-button{
  grid-column: 2 !important;
  align-self: flex-start;
  justify-self: end;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  display: flex !important;
}

/* Prezzo in offerta: scontato sopra, barrato sotto */
.woocommerce ul.products li.mfn-product-li-item .mfn-li-product-row-price .price{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  gap: 10px; /* 15px è tantissimo */
}

.woocommerce ul.products li.mfn-product-li-item .mfn-li-product-row-price .price ins{
  order: 1;
  display: block !important;
  margin: 0 !important;
  text-decoration: none;
}

.woocommerce ul.products li.mfn-product-li-item .mfn-li-product-row-price .price del{
  order: 2;
  display: block !important;
  margin: 0 !important;
  font-size: 12px;
  opacity: .6;
  color:#576d80;
}

ul.products.masonry.isotope.isotope-loading { opacity: 0; pointer-events:none; }
ul.products.masonry.isotope.isotope-ready   { opacity: 1; transition: opacity .2s ease; }

.blog_slider_header .slider_navigation {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    padding: 10px;
}


@media (max-width: 767px) {
  .woocommerce ul.products:has(li.product-category) {
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    gap:10px !important;
    -webkit-overflow-scrolling:touch;
    touch-action: pan-x;
  }
  .woocommerce ul.products:has(li.product-category) > li.product-category{
    flex:0 0 auto !important;
    width:auto !important;
    display:inline-flex !important;
  }
}


.scheda-tecnica {
  width:100%;
  border-collapse: collapse;
}
.scheda-tecnica td {
  border-bottom:1px solid #eee;
  padding:8px;
}
.scheda-tecnica td:first-child {
  font-weight:600;
  width:40%;
}


