/* 01. Llistat productes simples pack */
.pack-product-simple-item {
    padding: 8px 0 8px 0;
    border-bottom: 1px solid #fff;
    color: #fff;
}

/* 02. Llistat productes del pack (horitzontal slide)*/
.pack-products-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.pack-product-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pack-product-image {
    width: 100%;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.pack-product-image img {
    height: 100%;
    width: auto;
    object-fit: cover;
    margin-bottom: 10px;
    min-width: 305px;
}

.pack-product-info {
    width: 100%;
}

.pack-product-title,
.qodef-woo-product-title,
.qodef-e-title.entry-title,
td.product-name {
    font-weight: 400;
    font-family: "Plus Jakarta Sans", Sans-serif !important;
    font-size: 16px !important;
    line-height: 1.2;
    letter-spacing: 0.5px;
    /* Ajusta segons les teves necessitats */
    display: flex;
    justify-content: flex-start;
    /* Alinea arriba */
    margin-top: 10px;
    text-align: center;
    min-height: 50px;
    text-transform: capitalize;
}

.qodef-woo-product-title {
    color: #000;
    min-height: 60px !important;
    margin-bottom: 50px;

}

.pack-product-price {
    font-size: 16px !important;
    font-family: "Plus Jakarta Sans", Sans-serif !important;
    padding: 30px 0;
    /* margin: 55px 0 38px; */
    float: left;
    margin-bottom: 50px;
    /* Marge inferior per deixar espai per al botó */
}

.qodef-e-title.entry-title {
    text-align: left !important;
}

.pack-product-price ins {
    text-decoration: none !important;
    ;
}


/* Opcional: ocultar scrollbar (per a una aparença més neta) */
.pack-products-list::-webkit-scrollbar {
    display: none;
}

.pack-products-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.pack-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.pack-products-list {
    display: flex;
    gap: 0px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    /* per a Firefox */
}

.pack-products-list::-webkit-scrollbar {
    display: none;
    /* per a Chrome/Safari */
}

.pack-product-item {
    min-width: 25%;
    max-width: 25%;
    flex: 0 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .pack-product-item {
        min-width: 100%;
        max-width: 100%;
    }
}

.section-product-item {
    display: flex;
    align-items: stretch;
    /* per assegurar que imatge i text ocupen tota l'alçada */
}

.section-product-image {
    flex: 0 0 60%;
    display: flex;
    align-items: flex-end;
    /* ✅ Alineació a la part inferior */
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.section-product-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* o 'cover' si vols retallar */
    display: block;
    /* margin-bottom: -180px; */
}



/* Fletxes */
.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.1);
}

.pack-products-container {
    position: relative;
    overflow: visible;
    /* permite que los botones se salgan del contenedor */
}

.pack-carousel-wrapper {
    position: relative;
    overflow: visible;
    /* asegura que las flechas no se oculten */
}

.carousel-arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
    pointer-events: auto;
    /* asegura que se pueda hacer clic */
}

.carousel-arrow.left {
    left: -40px;
}

.carousel-arrow.right {
    right: -40px;
}

/* Estils pel botó "Añadir al carrito" */
.pack-product-add-to-cart .button.add_to_cart_button {
    display: inline-block;
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #ffffff;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 16px;
    padding-right: 26px;
    /* Espai extra a la dreta per la fletxa */
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 200px;
    font-family: Arial, sans-serif;
    border-radius: 0;
    line-height: 1.2;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.pack-product-add-to-cart .button.add_to_cart_button:hover {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
}

.pack-product-add-to-cart .button.add_to_cart_button:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* .single_add_to_cart_button.button::after {
    font-size: 20px;
    content: "→";
    position: absolute;
    right: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-5px);
    margin-top: -4px;
} */

.single_add_to_cart_button.button:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* .pack-product-add-to-cart .button.add_to_cart_button:hover {

} */

.pack-product-add-to-cart .button.add_to_cart_button:focus {
    outline: none;
}

/* Estils addicionals per a la disposició dels productes */
.pack-product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    position: relative;
    padding-bottom: 45px;
    /* Espai per al botó */
    height: 100%;
    box-sizing: border-box;
}

.pack-product-info {
    text-align: center;
    margin-top: 10px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* Estils per la posició del botó */
.pack-product-add-to-cart {
    position: relative;
    width: 100%;
    height: 36px;
    /* Alçada fixa pel contenidor del botó */
}

/* Estils responsivos - adaptar per mòbils */
@media (max-width: 768px) {
    .pack-product-add-to-cart .button.add_to_cart_button {
        font-size: 11px;
        padding: 6px 12px;
        padding-right: 22px;
        /* Ajustem l'espai per la fletxa */
    }
}




/*Llistat pasos del tractament (Paso 1, Paso 2, ...)*/
.trat-products-container {
    padding: 30px 0;
}

.trat-products-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.trat-product-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    color: white;
    font-family: 'Helvetica Neue', sans-serif;
}

.trat-product-image img {
    width: 103px;
    height: 103px;
    object-fit: cover;
    border-radius: 4px;
}

.trat-product-info {
    flex: 1;
}

.trat-product-step {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #ccc;
    margin-bottom: 5px;
}

.trat-product-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.trat-product-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #e0e0e0;
}






/* Llistat variants del pack */
.pack-variants-container {
    margin: 20px 0;
}

.pack-variants-title {
    margin-bottom: 10px;
    font-weight: bold;
}

.pack-variants-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pack-variant-button {
    padding: 8px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.pack-variant-button:hover {
    background-color: #e0e0e0;
    color: #171719;
}

.pack-variant-button.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pack-variants-dropdown {
    max-width: 300px;
}

.pack-variant-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}


/* Fomatejem la imatge de les variants */
.pack-variants-buttons {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pack-variant-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 9px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 0px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    min-width: 230px;
    max-width: 100%;
}

.variant-image-wrapper {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 0px;
    overflow: hidden;
}

.variant-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.pack-variant-button.active {
    background-color: #111;
    color: #fff;
    border-color: #000;
}

.pack-variants-buttons .text {
    font-size: 11px;
    font-weight: 300;
    font-family: "Plus Jakarta Sans", sans-serif;
    margin-left: 0px;
}

.pack-variants-buttons .text .variant-moments {
    font-size: 12px;
}

.pack-variants-buttons .text .variant-tipo-pack {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}




/* Llistat tots els packs com a seccions */
.pack-sections-container {
    background-color: #191717;
    color: white;
    padding: 0px 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100vw;
    /* margin: -100px; */
}

.section-product-item {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    height: 600px;
    /* Alçada fixa */
    max-height: 600px;
    overflow: hidden;
    margin-top: 130px;
}

/* Alternança d'ordre per seccions parelles */
.section-product-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Imatge */
.section-product-image {
    flex: 0 0 55%;
    overflow: hidden;
    height: 100%;
}

.section-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Retalla i omple */
    object-position: center;
    display: block;
}

/* Text */
.section-product-info {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 250px;
    color: white;
    max-height: 600px;
    height: 600px;
}

.section-product-title {
    font-size: 63px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "Cormorant Garamond", Sans-serif;
    line-height: 1;
}

.section-product-desc {
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
    /* Respecta salts de línia del HTML */
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* Responsive per mòbils */
@media (max-width: 768px) {
    .section-product-item {
        flex-direction: column !important;
        height: auto;
        max-height: none;
    }

    .section-product-image,
    .section-product-info {
        flex: 1 1 100%;
        max-width: 100%;
        height: auto;
    }

    .section-product-image img {
        height: auto;
        object-fit: contain;
    }

    .section-product-info {
        padding: 20px;
    }
}

/* Estils per col-locar els badges a l'imatge principal segons criteris (regalo, mejor precio, ...) */
.woocommerce-product-gallery__wrapper {
    position: relative;
}

.woocommerce-product-gallery__image>.pack-badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    right: -10px;
}

.pack-badge-wrapper {
    position: absolute;
    top: 30px;
    right: -5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
    pointer-events: none;
    align-items: flex-end;
    /* perquè no bloquegi clics */
}

.pack-badge {
    background-color: #a8905c;
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    font-size: 22px;
    font-family: "Cormorant Garamond", Sans-serif;
    width: max-content;
}

.pack-badge.regalo {
    background-color: #a8905c;
}

.pack-badge.oferta {
    background-color: #a8905c;
}