/*
Theme Name: Romanelli Srl
Theme URI: 
Description: Child theme of Shoptimizer
Author: ATK LAB
Author URI: https://www.atklab.com/
Template: shoptimizer
Version: 1.2.2
Text Domain: romanellisrl
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

/* WooCommerce */
.woocommerce-pagination {
    visibility: hidden;
}

/* Loop */
ul.products {
    margin-top: 40px;
}

ul.products li.product,
.static-cta-buttons ul.products li.product:not(.product-category) {
    margin-bottom: 40px;
}

/* Make the image wrapper a responsive square and hide overflow */
ul.products li.product .woocommerce-image__wrapper,
ul.products li.product .shoptimizer-plp-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
    ul.products li.product .woocommerce-image__wrapper,
    ul.products li.product .shoptimizer-plp-image-wrapper {
        height: 0;
        padding-top: 100%;
    }
}

/* Stretch & centre the real <img> inside the square */
ul.products li.product .woocommerce-image__wrapper img,
ul.products li.product .shoptimizer-plp-image-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    transition: transform .2s ease-in-out;
}

/* Hover effect: keep centre point AND apply zoom-out */
ul.products li.product:hover .woocommerce-image__wrapper img,
ul.products li.product:hover .shoptimizer-plp-image-wrapper img {
    transform: translate(-50%, -50%) scale(.98);
}

/* Block the theme’s old hover rule from overriding */
li.product:not(.product-category):hover img {
    transform: translate(-50%, -50%) scale(.98) !important;
}

/* Button in single product to download technical sheet*/
.sheet-button{
	background-color:#57728b !important;
	width:fit-content;
	padding:0.5rem 0.5rem;
	border-radius:4px;
}
.sheet-button:hover{
	background-color:#dd3333 !important;
}
.sheet-button a{
	color:white;
		font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}
.sheet-button:hover a{
	color:white !important;
}

/* Single product custom meta */
.entry-summary .product_meta {
    left: unset;
    right: unset;
    margin-left: unset;
    margin-right: unset;
    text-align: inherit;
    display: inline-block;
}

.entry-summary .product_meta .posted_in {
    margin: 0;
    display: inline-block;
}

.product-rental .posted_in{
	color:#dd3333 !important;
}

/* FiboFilters */
.fibofilters-show-more-button-container {
    padding: 20px 0 60px;
}

.fibofilters-show-previous-button-container {
    padding: 40px 0;
}

.atk-price {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0rem 0.6rem;
    align-items: center;
}

.atk-price .discount {
    padding: 0.1rem 0.6rem;
    border: 2px solid rgb(160, 160, 160);
    border-radius: 4rem;
    width: fit-content;
}

.atk-price ins {
    width: 100%;
    font-size: 1.7rem;
    font-weight: 700;
}

.atk-price .suffix {
    font-size: 1rem;
    font-weight: 500;
}

.atk-price .spinner {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: none;
    background-color: rgb(210,210,210);
    -webkit-animation: heartbeat 1.5s ease-in-out infinite both;
    animation: heartbeat 1.5s ease-in-out infinite both;
}

.atk-price .spinner.hide {
    opacity: 0;
}

.atk-price a {
    margin-top: 15px;
}

.call-back-feature.on-summary{
	position: relative;
	z-index: 5;
	right: 0;
	bottom: 0;
	margin: 15px 0;
}

.call-back-feature.on-summary:hover{
	transform: none;
}

.call-back-feature.on-summary button{
	padding: 1rem;
}

.atk-service.button {
	padding: 0;
}

.atk-service.button a {
	padding: 1rem !important;
	color: white !important;
}

/**
 * ----------------------------------------
 * animation heartbeat
 * ----------------------------------------
 */
@-webkit-keyframes heartbeat {
  from {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-transform-origin: center center;
            transform-origin: center center;
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  10% {
    -webkit-transform: scale(0.91);
            transform: scale(0.91);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  17% {
    -webkit-transform: scale(0.98);
            transform: scale(0.98);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  33% {
    -webkit-transform: scale(0.87);
            transform: scale(0.87);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  45% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
}
@keyframes heartbeat {
  from {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-transform-origin: center center;
            transform-origin: center center;
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  10% {
    -webkit-transform: scale(0.91);
            transform: scale(0.91);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  17% {
    -webkit-transform: scale(0.98);
            transform: scale(0.98);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  33% {
    -webkit-transform: scale(0.87);
            transform: scale(0.87);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  45% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
}


.view-product {
    background-color: rgb(0,0,0,0.6) !important;
}

.mainproduct {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 0 !important;
}

.mainproduct .woocommerce-image__wrapper {
    overflow: visible !important;
}

.mainproduct .woocommerce-card__header {
    display: flex;
    flex-direction: row;
    height: 100%;
    flex-wrap: wrap;
}

.mainproduct .woocommerce-card__header > *{
    width: 100%;
}

.mainproduct .woocommerce-card__header .add-to-cart-wrapper {
    margin-top: auto;
    display: block;
}

.mainproduct .woocommerce-card__header .add-to-cart-wrapper.hide {
    display: none;
}

.mainproduct .woocommerce-card__header .add-to-cart-wrapper .button.added {
    display: block;
}

.mainproduct .woocommerce-card__header .add_to_cart_button,
.mainproduct .woocommerce-card__header .view-product {
    position: relative !important;
}

.mainproduct .woocommerce-card__header .view-product.hide {
    display: none;
}

.mainproduct .woocommerce-card__header .add-to-cart-form {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.mainproduct .woocommerce-card__header .add-to-cart-form .add_to_cart_button,
.mainproduct .woocommerce-card__header .view-product {
    position: relative !important;
    margin-top: auto;
}

/* User switching */

.usfw-wrapper  {
    display: none;
}

.atk-menu-customer-manager a,
.atk-menu-user-switch-back a {
    display: flex !important;
    padding-top: 0 !important;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: min-content;
    line-height: 1em;
}

.atk-menu-customer-manager a img,
.atk-menu-user-switch-back a img {
    width: 25px;
}

.atk-menu-user-switch-back a {
    padding-top: 0 !important;
}

.atk-menu-current-user span {
    display: block;
    font-size: 14px;
    line-height: 1em;
    color: #404040;
}

.atk-menu-current-user .value {
    font-weight: 600;
}

#atk-customers-grid.ag-theme-quartz {
    width: 100%;
    height: 70vh;
}

#atk-customers-grid.ag-theme-quartz > div {
    border: none !important;
}

#atk-customers-grid .switch-user {
    padding: 0rem 0.5rem;
    line-height: 1.7em;
}

.ag-toolbar {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ag-toolbar button {
    padding: 0 2rem;
    background-color: #404040;
    min-height: 40px;
}

.atk-customers-text-filter-wrapper {
    position: relative;
}

.atk-customers-text-filter-wrapper input {
    width: 500px;
    max-width: 100%;
}

.atk-customers-text-filter-wrapper label {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    transform: translateY(-50%);
    width: 25px;
    opacity: 0.8;
}

.single-product .product_meta {
    width: 100% !important;
}

/* Checkout */
#billing_invoice_type_field,
#billing_cf_field {
    width: 100%;
}
#billing_invoice_type_field .select2 {
    width: 100%;
}

/* Multiple shipping address */
.dsabafw_select_shippingg,
.dsabafw_selectt {
    justify-content: space-between;
    background-color: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.3rem;
}

.dsabafw_selectt select,
.dsabafw_selectt button,
.dsabafw_select_shippingg select,
.dsabafw_select_shippingg button {
    width: 100%;
}

.dsabafw_select_shippingg button,
.dsabafw_selectt button {
    display: none;
    border-radius: 0.3rem;
    background-color: #404040;

}

.dsabafw_table_custom {
    flex-flow: row;
}

.dsabafw_table_custom .form_option_billing,
.dsabafw_table_custom .form_option_shipping {
    display: block;
    height: 40px;
    padding: 10px 20px !important;
    border-radius: 4px;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 40px;
    text-align: center;
    padding: 3px 15px;
    line-height: 1em;
}

.dsabafw_table_custom h3 {
    color: black;
}

.dsabafw_table_custom .shipping_addresses,
.dsabafw_table_custom .billing_addresses {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dsabafw_table_custom .form_option_ship_edit,
.dsabafw_table_custom .delete_ship_address,
.dsabafw_table_custom .form_option_edit,
.dsabafw_table_custom .delete_bill_address {
    padding: 10px 15px;
    width: fit-content;
    width: 49%;
    margin-top: 10px;
    border-radius: 4px;
}

.dsabafw_table_custom .defalt_addd_shipping,
.dsabafw_table_custom .defalut_address {
    padding: 10px 15px;
    width: fit-content;
    border-radius: 4px;
    min-width: 51%;
}

.billing_empty_message .billing_empty_message {
border-radius: 4px;
}