nav.woocommerce-MyAccount-navigation {
    border-right: 2px solid #0f4c755c;
    padding: 20px;
}

nav.woocommerce-MyAccount-navigation ul li {
    padding: 14px;
}
li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--dashboard.is-active {
    background: #0f4c755c;
}

nav.woocommerce-MyAccount-navigation ul {
    list-style-type: none;
}


.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    padding: 13px;
}



.woocommerce-product-gallery__trigger {
    content: "";
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg>...</svg>') no-repeat center;
    background-size: contain;
}

.woocommerce-product-gallery__trigger::before {
    display: none; /* Nasconde l'icona originale */
}


.main-slider {
    width: 100%;
    height: 450px;
}

.main-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-slider {
    margin-top: 10px;
    width: 100%;
    height: 100px;
}

.thumbnail-slider .swiper-slide {
    width: 25%;
    cursor: pointer;
    opacity: 0.6;
}

.thumbnail-slider .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #0073aa;
}

/* Tabs single product */

.woocommerce div.product .woocommerce-tabs ul.tabs li:before {
    content: '';
    width: auto;
    height: 1px;
    border-bottom: 1px solid !important;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 20px;
    display: block;
    border-radius: 0;
    box-shadow: none !important;
    transform: scale(0, 1);
    transform-origin: center left;
    transition: 200ms ease;
}


.woocommerce div.product .woocommerce-tabs ul.tabs li:after {
    content: '';
    width: 1px;
    height: 20px;
    border-width: 0 1px 0 0;
    border-style: solid;
    position: absolute;
      /* top: calc(50% - 6px); */
    right: 0;
    transform: translateY(-50%);
    display: block;
    border-radius: 0;
    box-shadow: none !important;
}


.woocommerce div.product .woocommerce-tabs ul.tabs li:last-child:after {
 height: 0;
  }



.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border:none; 
   background-color: transparent; 
    color: #515151;
    display: inline-block;
    position: relative;
    z-index: 0;
    border-radius: 4px 4px 0 0;
    margin: 0 -5px;
    padding: 0 1em;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: #ffffff00;
    color: #515151;
    z-index: 2;
    border-bottom-color: #a00e0e;
    border-bottom: 2px solid;
}



/* ------------------------------------------------------------- Single product --------------------------------------------- */
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #000000;
    font-size: 1.25em;
}
p.price {
    display: flex;
    align-items: baseline;
    flex-direction: row-reverse;
    justify-content: start;
    gap: 15px;
}

span.woocommerce-Price-amount.amount {
    font-weight: 700;
    font-size: 2rem;
}

span.woocommerce-Price-amount.amount {
    font-weight: 700;
    font-size: 2rem;
}

del span.woocommerce-Price-amount.amount {
    font-weight: 500;
    font-size: 1.25rem;
}

.risparmio-prezzo span.woocommerce-Price-amount.amount {
    font-weight: 500;
    font-size: 1.25rem;
    font-weight: bold;
}

.woocommerce div.product p.price ins, .woocommerce div.product span.price ins {
    font-weight: 700;
    font-size: 2rem;
    text-decoration: none;
}


.woocommerce span.onsale {
    min-height: 3.236em;
    min-width: 3.236em;
    padding: 0.600em;
    font-size: 1em;
    margin-left: 40px;
    font-weight: 700;
    position: relative;
    /* right: 0; */
    text-align: center;
    line-height: 3.236;
    /* top: -.5em; */
    /* left: -.5em; */
    margin: 66px;
    border-radius: 0;
    background-color: #ff0000;
    color: #fff;
    font-size: .857em;
    z-index: 9;
}

.woocommerce div.product form.cart {
    gap: 10px;
    margin-bottom: 2em;
    margin-top: 2rem;
    display: flex;
    align-items: center;
}

button.single_add_to_cart_button.button.alt {
    background: var(--woo-link-botton-bg);
    color: var(--woo-link-botton-color);
    font-weight: 500;
    font-size: 1.1rem;
}
button.single_add_to_cart_button.button.alt:hover {
    background: var(--woo-link-botton-bg);
    color: var(--woo-link-botton-color);
    font-weight: 500;
    font-size: 1.1rem;
}

/* quantity */
.custom-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: #f0f0f0;
    padding: 2px;
}

.custom-quantity button {
    background: transparent;
    color: rgb(0, 0, 0);
    border: none;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.custom-quantity button:hover {
    background-color: #b6b6b6;
}

.custom-quantity input.qty {
    text-align: center;
    width: 50px;
    height: 36px;
    font-size: 16px;
    border: transparent;
    background: transparent;
}



/* -------------------------------------------------- archive product ------------------------------------- */


.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {

    border: 1px solid #dadada;
    padding: 25px;
}


.product-image {
    position: relative;
    width: 100%;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.product-image img {
    width: 200px;
    min-height: 200px;
    position: absolute;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
    object-fit: cover;
}


.woocommerce ul.products li.product a img {
    width: 200px;
}
.front-image {
    z-index: 2;
    opacity: 1;
}

.back-image {
    transform: rotateY(180deg);
    opacity: 0;
    position: absolute;
}

.product-image:hover .front-image {
    transform: rotateY(180deg);
    opacity: 0;
}

.product-image:hover .back-image {
    transform: rotateY(0deg);
    opacity: 1;
}

.product-info {
    text-align: center;
    margin-top: 10px;
}

.woocommerce-loop-product__title, .woocommerce-Price-amount, .add_to_cart_button {
    display: block;
    margin-top: 5px;
}



/* ----------------------------------------- archive product price --------------------------------------------- */

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price {
    color: #060606;
}

.woocommerce ul.products li.product .price {
    display: block;
    font-weight: 700;
    margin-bottom: .5em;
    font-size: 1.4rem;
    display: flex;
    align-items: baseline;
    flex-direction: row-reverse;
    justify-content: start;
    gap: 10px;
}

.woocommerce ul.products li.product .price del {
    font-size: 1rem;
    font-weight: 600;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}


a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    background: var(--woo-link-botton-bg);
    color: var(--woo-link-botton-color);
    font-weight: 500;
    font-size: 1rem;
}



/* ----------------------------------- Single product gallery -----------------------------------------------*/

/* Nasconde la scrollbar su Chrome, Edge e Safari */
.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

/* Nasconde la scrollbar su Firefox */
.woocommerce div.product div.images .flex-control-thumbs {
    scrollbar-width: none;
}




/* Container delle miniature con scroll fluido e snap (opzionale) */
.woocommerce div.product div.images .flex-control-thumbs {
    position: relative;             /* Per il posizionamento assoluto delle frecce */
    overflow-x: auto;               /* Scroll orizzontale */
    overflow-y: hidden;             /* Nasconde lo scroll verticale */
    margin: 0;
    padding: 0;
    display: flex;                  /* Disposizione in riga */
    cursor: grab;                   /* Indicatore per il drag */
    scroll-behavior: smooth;        /* Scroll fluido */
    /* Opzionale: scroll-snap per un effetto "a scatto" (se le miniature hanno dimensioni uniformi) */
    scroll-snap-type: x mandatory;
}

.woocommerce div.product div.images .flex-control-thumbs > * {
    flex-shrink: 0;
    width: 200px;        /* Imposta una larghezza fissa per ogni elemento */
}

/* Applica lo scroll-snap agli elementi interni (se vuoi l'effetto snap) */
.woocommerce div.product div.images .flex-control-thumbs > * {
    scroll-snap-align: start;
}

/* Stato attivo durante il drag */
.woocommerce div.product div.images .flex-control-thumbs.active {
    cursor: grabbing;
}

/* Stile per le frecce di navigazione */
.scroll-arrow {
    position: absolute;
    bottom: 5%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

/* Posizionamento interno delle frecce */
.scroll-arrow-left {
    left: -20px;
}

.scroll-arrow-right {
    right: -20px;
}

/* Effetto hover per le frecce */
.scroll-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

