/**
 * Single Product Page Styles
 */

/* ===================================================================
   BUTTONS
   =================================================================== */
   
body.single-product .woocommerce-message .button.wc-forward, body.single-product .woocommerce-info .button.wc-forward {
    background-color: var(--button-text, #533D28) !important;
}

body.single-product .button.buy-now,
body.single-product .button.buy-now:hover {
    padding: 29px 16px;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--button-bg);
    color: var(--button-text);
    font-family: "Work Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
}

body.single-product .button.add_to_cart_button.ajax_add_to_cart {
    background-color: #533d28;
    color: #fff;
    font-family: "Work Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
}

body.single-product .button.add_to_cart_button.ajax_add_to_cart:hover {
    background-color: #533d28;
    color: #fff;
}

body.single-product .col-single-poduct .single_add_to_cart_button.button::after {
    content: "\f290";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-flex;
    margin-left: 14px;
    width: 30px;
    height: 30px;
    color: var(--button-bg);
    justify-content: center;
    align-items: center;
    font-size: 15px;
    background-color: var(--button-text);
    border-radius: 50%;
    padding-right: .5px;
}

body.single-product .product-right-col .single_add_to_cart_button {
    display: flex !important;
    justify-content: center;
    align-items: center;
}


/* ===================================================================
   CONTENT WARNINGS
   =================================================================== */

body.single-product .caution-image {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

body.single-product .caution-image svg {
    width: 100%;
    height: 100%;
    display: block;
}

body.single-product .caution-tooltip {
    box-shadow: none !important;
}

body.single-product .acf-caution-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

body.single-product .main-caution-div {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

body.single-product .caution-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    color: var(--page-text, #2c3e50);
}

body.single-product .caution-tooltip {
    position: absolute;
    bottom: 50px;
    left: 0;
    padding: 23px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    z-index: 1000;
    pointer-events: none;
    background-color: var(--page-text, #2c3e50);
    border-top-color: var(--page-text, #2c3e50);
}

body.single-product .main-caution-div:hover .caution-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.single-product .caution-title {
    font-family: "Work Sans", Sans-Serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--page-bg, #ffffff);
}

body.single-product .caution-text {
    font-family: "Work Sans", Sans-Serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--page-bg, #ffffff);
}


/* ===================================================================
   IMAGE CAROUSEL & LIGHTBOX
   =================================================================== */

body.single-product .elementor-image-carousel img.swiper-slide-image {
    max-height: 600px;
}

body.single-product .elementor-slideshow__header svg {
    display: none !important;
}

body.single-product .elementor-lightbox .elementor-lightbox-image {
    box-shadow: none !important;
    padding: 55px 0 !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
}

body.single-product .elementor-lightbox-image {
    flex: 1 0 100%;
}

body.single-product .elementor-lightbox .elementor-lightbox-item {
    background-color: var(--page-bg, #570C35) !important;
}

body.single-product .elementor-slideshow--ui-hidden .elementor-slideshow__header {
    opacity: 1 !important;
}

body.single-product .elementor-slideshow__header {
    align-items: center;
    display: inline !important;
    font-size: 14px;
    padding-inline-end: 0;
    padding-inline-start: 0;
    z-index: 10;
    bottom: -14px !important;
}

body.single-product .dialog-close-button-icon,
body.single-product .elementor-lightbox .swiper .elementor-swiper-button svg {
    fill: var(--text-color, #570C35) !important;
}

body.single-product .dialog-lightbox-close-button {
    position: fixed;
    top: auto;
    left: auto !important;
    border: 1px solid var(--text-color, #570C35) !important;
    border-radius: 100px;
}


/* ===================================================================
   SWIPER NAVIGATION
   =================================================================== */

body.single-product .elementor-swiper-button svg {
    border: 1px solid var(--text-color, #570C35) !important;
    border-radius: 100px;
    padding: 5px;
}

body.single-product .elementor-lightbox .swiper .elementor-swiper-button-next,
body.single-product .elementor-lightbox .swiper .elementor-swiper-button-prev {
    z-index: 9999;
}

body.single-product .elementor-lightbox .swiper .swiper-pagination-fraction {
    margin-bottom: 10px;
    color: var(--text-color, #570C35) !important;
    position: fixed;
    bottom: 0;
    left: auto;
    font-family: "Work Sans", Sans-serif;
}

body.single-product .elementor-swiper-button.elementor-lightbox-prevent-close .e-font-icon-svg {
    fill: var(--page-bg) !important;
    color: var(--page-bg) !important;
}


/* ===================================================================
   VARIATIONS & TABLES
   =================================================================== */

body.single-product table tbody > tr:nth-child(odd) > td,
body.single-product table tbody > tr:nth-child(odd) > th {
    background-color: transparent !important;
}

body.single-product table.variations {
    width: 182px !important;
}

body.single-product .variations .label label {
    color: var(--text-color);
    font-family: "Work Sans", Sans-Serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    margin-right: 17px;
}

body.single-product .variations .label,
body.single-product .variations .value {
    padding: 0;
    text-align: left;
}

body.single-product .variations .value #pa_langue {
    color: var(--text-color) !important;
    background-color: var(--page-bg) !important;
    border: 2px solid var(--text-color) !important;
    font-family: "Work Sans", Sans-Serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    padding: 12px 15px 12px 12px;
}

body.single-product .variations .value .reset_variations {
    color: var(--text-color) !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}


/* ===================================================================
   PRODUCT META (AUTHORS, TRANSLATORS)
   =================================================================== */

.product-translators {
    display: block;
    line-height: 20px;
}

.translator-label,
.translator-names {
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
}

.aria-label-text {
    color: var(--text-color);
}


/* ===================================================================
   DYNAMIC BACKGROUND & MISC
   =================================================================== */

body.single-product .elementor-4056 {
    background-color: var(--page-bg);
}

body.single.single-product #elementor-lightbox-slideshow-7d5d83bb {
    background: var(--page-bg) !important;
}

body.single-product #white-color .trp-switcher-dropdown-list .trp-language-item .trp-language-item-name {
    color: #fff !important;
}

body.single-product .woocommerce ins {
    text-decoration: none !important;
}


/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 768px) {
    body.single-product .caution-tooltip {
        min-width: 200px;
        max-width: 280px;
        padding: 14px;
    }

    body.single-product .caution-title {
        font-size: 14px;
    }

    body.single-product .caution-text {
        font-size: 13px;
    }
}
