/*
 Theme Name:   Booklovers Child Theme
 Theme URI:    http://booklovers.ancorathemes.com
 Description:  Booklovers Child Theme
 Author:       AncoraThemes
 Author URI:   http://ancorathemes.com
 Template:     booklovers
 Version:      1.0
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  booklovers
*/


/* =Theme customization starts here
------------------------------------------------------------ */

a.wpcme-url.wpcme-btn.single_add_to_cart_button.button.alt {
	background:var( --e-global-color-primary )!important;
	border-radius:999px!important;
	box-shadow:none!important;
	color:white!important;
	border:none!important;
	width:inherit!important;
	margin-right:4px!important;
}

.sc_blogger .sc_blogger_filters .sc_item_filters_tabs li a {
	color: #1B727C!important;
}

.team_page_wrap_info .team_page_wrap_info_over {
	display:none;
}

.sc_layouts_title_title>.sc_layouts_title_caption {
	text-align:center;
}

/* Hide sidebar specifically on pa_authors taxonomy archive pages */
.tax-pa_authors .sidebar_inner {
  display: none;
}

/* Make content full width specifically on pa_authors taxonomy archive pages,
   but only if the body also has body_style_wide and not expand_content */
.tax-pa_authors.body_style_wide:not(.expand_content) .content_wrap > .content {
  width: 100%;
}
.sc_layouts_row_type_compact .sc_layouts_item a:not(.sc_button):not([class*="button"]), [class*="scheme_"].sc_layouts_row_type_compact .sc_layouts_item a:not(.sc_button):not([class*="button"]) {
	text-transform:capitalize;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	border-radius:999px!important;
}

.post_featured.with_thumb.post_featured_bg {
	border-radius:24px;
}

/* Then, show them ONLY on the shop page */
body.shop div#herobooks p,
body.woocommerce-shop div#herobooks p,
.post-type-archive-product div#herobooks p {
  display: block;
}

.sc_layouts_row_type_compact .search_wrap .search_submit:before, [class*="scheme_"].sc_layouts_row_type_compact .search_wrap .search_submit:before {
	color:white!important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
    border: none;
    border-radius: 40px!important;
} 

.woocommerce div.product form.cart. .woocommerce-page div.product form.cart{
  padding: 34px!important;
  margin-bottom: 44px;
  border-bottom: none!important;
  display: contents;
}

.sidebar_default[class*="scheme_"] .sidebar_inner {
    padding: 3.8em 0;
    background-color: #ffffff;
    color: var(--theme-color-alter_text);
    border-radius: 20px;
} 

.content {
	background:none!important;
}

.woocommerce div.product div.images.woocommerce-product-gallery--without-thumbs {
	border-radius:20px!Im
}

.woocommerce ul.products li.product .post_featured {
	border-radius:20px;
}

.woocommerce-page div.product form.cart {
  margin-bottom: 30px;
} 

.woocommerce div.product form.cart::after, .woocommerce div.product form.cart::before {
  content: " ";
  display: inline;
} 

.woocommerce div.product form.cart, .woocommerce-page div.product form.cart {
	margin-bottom:32px!important;
	border-bottom:0
}

.woocommerce div.product form.cart, .woocommerce-page div.product form.cart {
	display:contents!important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
	margin-bottom:20px;
}

.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-disabled {
	display:none;
}

.author-image img {
  border-radius: 50%;
  width: 120px !important;
  height: 120px !important;
  object-fit: cover;
  object-position: center;
  display: block; /* Remove any inline characteristics */
  margin-top: 32px;
  padding: 0;
  box-sizing: border-box;
}

.tinv-wishlist tfoot tr td {
	display:none;
}

.elementor-17999 .elementor-element.elementor-element-65406a63:not(.elementor-motion-effects-element-type-background) {
	margin:32px;
	border-radius:20px
}

.top_panel {
	background:#EAF3F4;
}

/* Fix per layout prodotti in homepage su mobile */

/* Target specifico per blocchi TRX Addons e SC Blogger in homepage */
@media only screen and (max-width: 767px) {
  /* Assicurati che le colonne siano visualizzate correttamente */
  .trx_addons_column-1_5.trx_addons_column-1_3-mobile {
    width: 50% !important;
    flex: 0 0 50% !important;
    float: left !important;
    clear: none !important;
    padding: 5px !important;
    box-sizing: border-box !important;
  }
  
  /* Corregge la classe che forza il layout a una singola colonna */
  .trx_addons_column-1_3-mobile {
    width: 50% !important;
    max-width: 50% !important;
  }
  
  /* Reset eventuali margini che potrebbero causare problemi */
  .sc_blogger_item,
  .sc_blogger_item_body,
  .sc_blogger_item_content {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Assicura che le immagini si adattino correttamente */
  .sc_blogger_item .post_featured img,
  .sc_blogger_item .post_thumb {
    width: 100% !important;
    height: auto !important;
  }
  
  /* Testo più compatto su mobile */
  .sc_blogger_item_title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 5px 0 !important;
  }
  
  /* Aggiustamenti prezzo */
  .sc_blogger_item_price {
    font-size: 13px !important;
  }
  
  /* Forzatura del container principale a flex */
  .sc_blogger_content {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  
  /* Fix specifico per classi TRX Addons */
  [class*="trx_addons_column-"] {
    float: left !important;
    width: 50% !important;
    padding: 5px !important;
    box-sizing: border-box !important;
  }
}

/* Specifico per Safari iOS */
@supports (-webkit-touch-callout: none) {
  @media only screen and (max-width: 767px) {
    .trx_addons_column-1_5.trx_addons_column-1_3-mobile,
    .trx_addons_column-1_3-mobile {
      width: 50% !important;
      float: left !important;
    }
    
    /* Forza il ricalcolo del layout su iOS */
    .sc_blogger_content {
      transform: translateZ(0) !important;
      -webkit-transform: translateZ(0) !important;
    }
  }
}

/* Fix specifico per iOS Safari */

/* Media query per mobile con !important su tutte le proprietà */
@media only screen and (max-width: 767px) {
  /* Reset completo del container */
  ul.products.products_style_centered,
  .woocommerce ul.products {
    display: flex !important;
    flex-flow: row wrap !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Forza ogni prodotto a occupare esattamente il 50% dello spazio */
  ul.products.products_style_centered li.product,
  .woocommerce ul.products li.product,
  ul.products li.product.type-product,
  li.product.type-product {
    width: 50% !important;
    max-width: 50% !important;
    min-width: 50% !important;
    flex: 0 0 50% !important;
    float: none !important;
    margin: 0 !important;
    padding: 5px !important;
    box-sizing: border-box !important;
    clear: none !important;
    display: block !important;
  }
  
  /* Assicura che tutti gli elementi interni occupino il 100% dello spazio disponibile */
  ul.products li.product .post_item,
  li.product.type-product .post_item,
  .post_featured,
  .post_data,
  .post_data_inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Aggiusta le immagini */
  ul.products li.product img,
  li.product.type-product img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
  
  /* Dimensione testo ottimizzata per mobile */
  .woocommerce-loop-product__title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin: 5px 0 !important;
  }
  
  .price {
    font-size: 12px !important;
  }
  
  .button {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
}

/* Specifico per Safari su iOS */
@supports (-webkit-touch-callout: none) {
  @media only screen and (max-width: 767px) {
    ul.products.products_style_centered,
    .woocommerce ul.products {
      display: flex !important;
      flex-flow: row wrap !important;
    }
    
    ul.products.products_style_centered li.product,
    .woocommerce ul.products li.product,
    ul.products li.product.type-product,
    li.product.type-product {
      width: 50% !important;
      flex: 0 0 50% !important;
    }
  }
}

/* Reset della cache per forzare il ridisegno */
@media only screen and (max-width: 767px) {
  ul.products {
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }
}

.sc_layouts_row_type_compact .sc_layouts_item a:not(.sc_button):not([class*="button"]), [class*="scheme_"].sc_layouts_row_type_compact .sc_layouts_item a:not(.sc_button):not([class*="button"]) {
	color:white;
}

p.price, .woocommerce div.product .summary span.onsale {
	display:none!important;
}

.menu_mobile .menu_mobile_inner {
	background:var( --e-global-color-primary );
}

.sc_layouts_title_title>.sc_layouts_title_caption {
	text-align:left;
}

