



/* PRESI DAILY OFFER COUNTDOWN CSS START */

.single-product .presi-offer-countdown {
    display: grid;
    width: 340px;
    max-width: 100%;
    margin: 5px 0 13px;
    padding: 6px 9px 7px;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    column-gap: 6px;
    row-gap: 3px;
    border: 1px solid #dedede;
    border-left: 3px solid #b00020;
    border-radius: 4px;
    background: #f7f7f7;
    box-shadow: 0 2px 5px rgb(0 0 0 / 4%);
}

.single-product .presi-offer-countdown__icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    object-fit: contain;
}

.single-product .presi-offer-countdown__title {
    margin: 0;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.15px;
    text-align: center;
    white-space: nowrap;
}

.single-product .presi-offer-countdown__timer {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-items: center;
    justify-content: center;
    justify-self: center;
    gap: 3px;
}

.single-product .presi-offer-countdown__unit {
    display: flex;
    width: 38px;
    padding: 1px;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    justify-content: center;
    background: transparent;
    color: #111;
}

.single-product .presi-offer-countdown__unit strong {
    color: #111;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.single-product .presi-offer-countdown__unit small {
    margin-top: 3px;
    color: #b00020;
    font-size: 7.5px;
    font-weight: 600;
    line-height: 1;
}

.single-product .presi-offer-countdown__separator {
    color: #b00020;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

@media (max-width: 768px) {
    .single-product .presi-offer-countdown {
        margin-top: 4px;
        margin-bottom: 11px;
        margin-left: auto;
        margin-right: auto;
        padding: 7px 9px 8px;
        column-gap: 6px;
        row-gap: 4px;
    }

    .single-product .presi-offer-countdown__icon {
        width: 20px;
        height: 20px;
    }

    .single-product .presi-offer-countdown__title {
        font-size: 13px;
    }

    .single-product .presi-offer-countdown__unit {
        width: 39px;
    }

    .single-product .presi-offer-countdown__unit strong {
        font-size: 15px;
    }

    .single-product .presi-offer-countdown__unit small {
        font-size: 7.5px;
    }
}

/* PRESI DAILY OFFER COUNTDOWN CSS END */

/* PRESI MOBILE SINGLE PRODUCT TITLE START */

@media (max-width: 768px) {
    .single-product div.product .product_title {
        font-size: calc(
            clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem) - 2px
        );
    }
}

/* PRESI MOBILE SINGLE PRODUCT TITLE END */


/* PRESI SINGLE ADD TO CART BUTTON START */

/*
 * Final single-product override.
 * GeneratePress/WooCommerce can apply a later button reset,
 * therefore only the conflicting visual properties use !important.
 */
body.single-product.woocommerce div.product form.cart
button.single_add_to_cart_button {
    min-height: 44px;
    padding: 11px 22px;
    border: 1px solid #111 !important;
    border-radius: 3px !important;
    background-color: #111 !important;
    box-shadow: 0 3px 8px rgb(0 0 0 / 16%) !important;
    color: #fff !important;
    font-family: Commissioner, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

body.single-product.woocommerce div.product form.cart
button.single_add_to_cart_button:hover {
    border-color: #000 !important;
    background-color: #000 !important;
    box-shadow: 0 5px 11px rgb(0 0 0 / 22%) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

body.single-product.woocommerce div.product form.cart
button.single_add_to_cart_button:focus-visible {
    outline: 2px solid #b00020;
    outline-offset: 3px;
}

body.single-product.woocommerce div.product form.cart
button.single_add_to_cart_button:active {
    box-shadow: 0 2px 5px rgb(0 0 0 / 17%) !important;
    transform: translateY(0);
}

body.single-product.woocommerce div.product form.cart
button.single_add_to_cart_button:disabled {
    border-color: #777 !important;
    background-color: #777 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

/* PRESI SINGLE ADD TO CART BUTTON END */


/* PRESI DELIVERY ESTIMATOR CSS START */

.single-product .presi-delivery-estimator {
    text-align: center;
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 14px 0 18px;
    padding: 12px 14px;
    border: 1px solid #e1e1e1;
    border-left: 3px solid #b00020;
    border-radius: 4px;
    background: #fafafa;
    box-shadow: 0 2px 7px rgb(0 0 0 / 5%);
}

.single-product .presi-delivery-estimator__header {
    margin: 0 0 10px;
    padding: 0 0 9px;
    border-bottom: 1px solid #dedede;
    text-align: center;
}

.single-product .presi-delivery-estimator__header-icon {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto 4px;
    object-fit: contain;
}

.single-product .presi-delivery-estimator__title {
    margin: 0;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.single-product .presi-delivery-estimator__content {
    min-width: 0;
}

.single-product .presi-delivery-estimator__message {
    margin: 0;
    color: #111;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.single-product .presi-delivery-estimator__message +
.presi-delivery-estimator__message {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #dedede;
}

.single-product .presi-delivery-estimator__heading {
    display: block;
    margin-bottom: 2px;
    color: #111;
    font-weight: 600;
}

.single-product .presi-delivery-estimator__line {
    display: inline;
}

.single-product .presi-delivery-estimator__countdown {
    color: #b00020;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.single-product .presi-delivery-estimator__date {
    color: #173f6b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .single-product .presi-delivery-estimator {
    text-align: center;
        max-width: none;
        margin-top: 12px;
        margin-bottom: 16px;
        padding: 11px 12px;
    }

    .single-product .presi-delivery-estimator__message {
        font-size: 13px;
        line-height: 1.42;
    }

    .single-product .presi-delivery-estimator__message +
    .presi-delivery-estimator__message {
        margin-top: 8px;
        padding-top: 8px;
    }
}

/* PRESI DELIVERY ESTIMATOR CSS END */


/* PRESI PRODUCT SCORE INDICATORS CSS START */

.single-product .presi-product-scores {
    display: grid;
    width: fit-content;
    max-width: 100%;
    margin: 9px 0 14px;
    gap: 7px;
}

.single-product .presi-product-scores__item {
    display: flex;
    min-height: 27px;
    padding: 2px 0;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #111;
}

.single-product .presi-product-scores__icon {
    display: inline-flex;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    align-items: center;
    justify-content: center;
    color: #111;
}

.single-product .presi-product-scores__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.single-product .presi-product-scores__text {
    color: #111;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.single-product .presi-product-scores__text strong {
    margin-right: 4px;
    color: #b00020;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .single-product .presi-product-scores {
        width: 100%;
        margin-top: 8px;
        margin-bottom: 12px;
        gap: 7px;
    }

    .single-product .presi-product-scores__item {
        min-height: 29px;
        padding: 2px 0;
    }

    .single-product .presi-product-scores__icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .single-product .presi-product-scores__text {
        font-size: 13px;
        font-weight: 600;
    }
}

/* PRESI PRODUCT SCORE INDICATORS CSS END */


/* PRESI ADD TO CART BUTTON ICON START */

/*
 * Minimal premium shopping-bag icon.
 * Inline CSS mask: no image file and no additional HTTP request.
 */
body.single-product
.single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

body.single-product
.single_add_to_cart_button::before {
    display: inline-block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    content: "";
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.8 8.2h14.4l-1 12.3H5.8L4.8 8.2Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.5 9V6.8A3.5 3.5 0 0 1 12 3.3a3.5 3.5 0 0 1 3.5 3.5V9' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.8 8.2h14.4l-1 12.3H5.8L4.8 8.2Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.5 9V6.8A3.5 3.5 0 0 1 12 3.3a3.5 3.5 0 0 1 3.5 3.5V9' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/* PRESI ADD TO CART BUTTON ICON END */



/* PRESI PRODUCT DESCRIPTION BELOW CART CSS START */

/*
 * Centered product description with symmetrical separators.
 * The product-tag icon is an inline mask with no HTTP request.
 */
body.single-product
.presi-product-description {
    width: 100%;
    margin: 3px 0;
    padding: 14px 0;
    border-top: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
    text-align: center;
}

body.single-product
.presi-product-description__title {
    margin: 0 0 8px;
    color: #111;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

/* Modern product-tag icon. */
body.single-product
.presi-product-description__title::before {
    display: block;
    width: 27px;
    height: 27px;
    margin: 0 auto 6px;
    content: "";
    background-color: #111;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.4 13.1 12 21.5 2.5 12V3h9l8.9 8.9a.85.85 0 0 1 0 1.2Z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='7.3' cy='7.3' r='1.35' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.4 13.1 12 21.5 2.5 12V3h9l8.9 8.9a.85.85 0 0 1 0 1.2Z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='7.3' cy='7.3' r='1.35' fill='black'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

body.single-product
.presi-product-description__content {
    color: #222;
    font-size: 15px;
    line-height: 1.65;
    text-align: center;
}

body.single-product
.presi-product-description__content > :first-child {
    margin-top: 0;
}

body.single-product
.presi-product-description__content > :last-child {
    margin-bottom: 0;
}

body.single-product
.presi-product-description__content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
}

body.single-product
.presi-product-description__content ul,
body.single-product
.presi-product-description__content ol {
    display: inline-block;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
}

@media (max-width: 768px) {
    body.single-product
    .presi-product-description {
        margin-top: 3px;
        margin-bottom: 3px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    body.single-product
    .presi-product-description__title {
        margin-bottom: 7px;
        font-size: 15px;
    }

    body.single-product
    .presi-product-description__title::before {
        width: 26px;
        height: 26px;
        margin-bottom: 5px;
    }

    body.single-product
    .presi-product-description__content {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* PRESI PRODUCT DESCRIPTION BELOW CART CSS END */

/* PRESI DELIVERY HEADER SIZE START */

/*
 * Slightly larger delivery-estimator icon and title.
 */
body.single-product
.presi-delivery-estimator__header-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

body.single-product
.presi-delivery-estimator__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

/* PRESI DELIVERY HEADER SIZE END */

/* PRESI PRODUCT TRUST BLOCK CSS START */

/*
 * Product-page trust block.
 * The shield icon is an inline SVG mask with no HTTP request.
 */
body.single-product
.presi-product-trust {
    display: block;
    clear: both;
    float: none;
    box-sizing: border-box;
    width: min(100%, 820px);
    margin: 34px auto 20px;
    padding: 26px 28px;
    border: 1px solid #dedede;
    border-radius: 2px;
    background-color: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.045);
    text-align: center;
}

body.single-product
.presi-product-trust__icon {
    display: block;
    width: 43px;
    height: 43px;
    margin: 0 auto 9px;
    background-color: #111;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8 4.8 5.9v5.2c0 4.8 2.9 8.5 7.2 10.2 4.3-1.7 7.2-5.4 7.2-10.2V5.9L12 2.8Z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m8.7 12.1 2.1 2.1 4.6-4.6' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8 4.8 5.9v5.2c0 4.8 2.9 8.5 7.2 10.2 4.3-1.7 7.2-5.4 7.2-10.2V5.9L12 2.8Z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m8.7 12.1 2.1 2.1 4.6-4.6' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

body.single-product
.presi-product-trust__title {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 18px;
    color: #111;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

body.single-product
.presi-product-trust__list {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

body.single-product
.presi-product-trust__list li {
    margin: 0;
    padding: 12px 8px;
    color: #111;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
}

body.single-product
.presi-product-trust__list li + li {
    border-top: 1px solid #e5e5e5;
}

@media (max-width: 768px) {
    body.single-product
    .presi-product-trust {
        width: 100%;
        margin-top: 26px;
        margin-bottom: 16px;
        padding: 22px 16px;
    }

    body.single-product
    .presi-product-trust__icon {
        width: 39px;
        height: 39px;
        margin-bottom: 8px;
    }

    body.single-product
    .presi-product-trust__title {
        margin-bottom: 14px;
        font-size: 19px;
    }

    body.single-product
    .presi-product-trust__list li {
        padding: 11px 4px;
        font-size: 14px;
        line-height: 1.5;
    }
}

/* PRESI PRODUCT TRUST BLOCK CSS END */



/* PRESI DESKTOP PRODUCT GALLERY SIZE START */

/*
 * Compact native WooCommerce gallery on desktop.
 *
 * The descendant image selector also supports image optimization systems
 * that wrap the WooCommerce image inside a picture element.
 */
@media (min-width: 1025px) {
    body.single-product
    .woocommerce
    div.product
    div.images.woocommerce-product-gallery {
        width: 44%;
        box-sizing: border-box;
    }

    body.single-product
    .woocommerce
    div.product
    div.summary {
        width: 52%;
        box-sizing: border-box;
    }

    body.single-product
    .woocommerce-product-gallery
    .woocommerce-product-gallery__wrapper
    .woocommerce-product-gallery__image
    picture {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    body.single-product
    .woocommerce-product-gallery
    .woocommerce-product-gallery__wrapper
    .woocommerce-product-gallery__image
    img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: min(58vh, 560px);
        margin-right: auto;
        margin-left: auto;
        object-fit: contain;
    }
}


/* PRESI MOBILE PRODUCT GALLERY SIZE START */

/*
 * Reduce the rendered mobile product image by 10%.
 * Aspect ratio, image quality, slider and lightbox remain unchanged.
 */
@media (max-width: 768px) {
    body.single-product
    .woocommerce-product-gallery
    .woocommerce-product-gallery__wrapper
    .woocommerce-product-gallery__image
    img {
        display: block;
        width: 90%;
        max-width: 90%;
        height: auto;
        margin-right: auto;
        margin-left: auto;
        object-fit: contain;
    }
}

/* PRESI MOBILE PRODUCT GALLERY SIZE END */

/* PRESI DESKTOP PRODUCT GALLERY SIZE END */





/* PRESI PRODUCT GALLERY ARROWS CSS START */

/*
 * Native WooCommerce gallery arrows.
 *
 * Positioned beside the main image on desktop and mobile.
 * Transparent circular controls with black borders and chevrons.
 */
body.single-product
.woocommerce-product-gallery {
    position: relative;
}

body.single-product
.woocommerce-product-gallery
.flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.single-product
.woocommerce-product-gallery
.flex-direction-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.single-product
.woocommerce-product-gallery
.flex-direction-nav a {
    position: absolute;
    top: 42%;
    z-index: 8;
    display: flex;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    border: 2px solid #111;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    line-height: 1;
    opacity: 1;
    transform: translateY(-50%);
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

body.single-product
.woocommerce-product-gallery
.flex-direction-nav
.flex-prev {
    right: auto;
    left: 8px;
}

body.single-product
.woocommerce-product-gallery
.flex-direction-nav
.flex-next {
    right: 8px;
    left: auto;
}

body.single-product
.woocommerce-product-gallery
.flex-direction-nav a::before {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #111;
    border-right: 2px solid #111;
    content: "";
    font-family: inherit;
}

body.single-product
.woocommerce-product-gallery
.flex-direction-nav
.flex-prev::before {
    transform: translateX(2px) rotate(-135deg);
}

body.single-product
.woocommerce-product-gallery
.flex-direction-nav
.flex-next::before {
    transform: translateX(-2px) rotate(45deg);
}

body.single-product
.woocommerce-product-gallery
.flex-direction-nav a:hover {
    border-color: #000;
    background-color: rgba(0, 0, 0, 0.06);
}

body.single-product
.woocommerce-product-gallery
.flex-direction-nav a:focus-visible {
    border-color: #000;
    outline: 2px solid #111;
    outline-offset: 3px;
}

body.single-product
.woocommerce-product-gallery
.flex-direction-nav
.flex-disabled {
    cursor: default;
    opacity: 0.25;
    pointer-events: none;
}

@media (max-width: 768px) {
    /*
     * Mobile side rails:
     *
     * - 38px transparent touch target
     * - 32px visible circular control
     * - the control extends into the normal mobile page padding
     * - the visible circle does not overlap the 90% product image
     */
    body.single-product
    .woocommerce-product-gallery {
        overflow: visible;
    }

    body.single-product
    .woocommerce-product-gallery
    .flex-direction-nav a {
        top: 42%;
        width: 38px;
        height: 38px;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body.single-product
    .woocommerce-product-gallery
    .flex-direction-nav
    .flex-prev {
        right: auto;
        left: -19px;
    }

    body.single-product
    .woocommerce-product-gallery
    .flex-direction-nav
    .flex-next {
        right: -19px;
        left: auto;
    }

    /*
     * Visible 32px black circular outline.
     */
    body.single-product
    .woocommerce-product-gallery
    .flex-direction-nav a::after {
        position: absolute;
        inset: 3px;
        z-index: 0;
        box-sizing: border-box;
        border: 2px solid #111;
        border-radius: 50%;
        background: transparent;
        content: "";
    }

    body.single-product
    .woocommerce-product-gallery
    .flex-direction-nav a::before {
        position: relative;
        z-index: 1;
        width: 8px;
        height: 8px;
        border-width: 2px;
    }

    body.single-product
    .woocommerce-product-gallery
    .flex-direction-nav a:hover {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body.single-product
    .woocommerce-product-gallery
    .flex-direction-nav a:hover::after {
        background-color: rgba(0, 0, 0, 0.06);
    }

    body.single-product
    .woocommerce-product-gallery
    .flex-direction-nav a:focus-visible {
        border: 0;
        outline: 2px solid #111;
        outline-offset: 1px;
    }
}

/* PRESI PRODUCT GALLERY ARROWS CSS END */

/* PRESI NATIVE LIGHTBOX BUTTON START */

/*
 * Native WooCommerce PhotoSwipe trigger.
 *
 * The gallery image itself remains non-clickable through the existing
 * lightweight JavaScript. Lightbox opens only from this explicit button.
 */
body.single-product
.woocommerce-product-gallery {
    position: relative;
}

body.single-product
.woocommerce-product-gallery
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 10px !important;
    right: 13px !important;
    bottom: auto !important;
    left: auto;
    z-index: 20;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 1.5px solid #111;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 0;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition:
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

/* Clean magnifying-glass icon without an external request. */
body.single-product
.woocommerce-product-gallery
.woocommerce-product-gallery__trigger::before {
    display: block;
    width: 18px;
    height: 18px;
    content: "";
    background-color: currentColor;
    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16 16 4.5 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16 16 4.5 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

/* Remove any character or icon inserted by WooCommerce. */
body.single-product
.woocommerce-product-gallery
.woocommerce-product-gallery__trigger
img,
body.single-product
.woocommerce-product-gallery
.woocommerce-product-gallery__trigger
span {
    display: none;
}

body.single-product
.woocommerce-product-gallery
.woocommerce-product-gallery__trigger:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 3px 11px rgba(0, 0, 0, 0.17);
    transform: translateY(-1px);
}

body.single-product
.woocommerce-product-gallery
.woocommerce-product-gallery__trigger:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

/*
 * On mobile the image occupies 90% of the gallery.
 * Keep the button aligned with its bottom-right corner and above thumbnails.
 */
@media (max-width: 768px) {
    body.single-product
    .woocommerce-product-gallery
    .woocommerce-product-gallery__trigger {
        right: calc(5% + 3px) !important;
        top: 10px !important;
        bottom: auto !important;
        width: 38px;
        height: 38px;
    }

    body.single-product
    .woocommerce-product-gallery
    .woocommerce-product-gallery__trigger::before {
        width: 17px;
        height: 17px;
    }
}

/* PRESI NATIVE LIGHTBOX BUTTON END */

/* PRESI PHOTOSWIPE HIDDEN CONTROLS START */

/*
 * Hide the fullscreen and zoom controls from the product Lightbox.
 * Close, navigation arrows and image counter remain available.
 */
.pswp--supports-fs .pswp__button--fs,
.pswp--zoom-allowed .pswp__button--zoom {
    display: none !important;
}

/* PRESI PHOTOSWIPE HIDDEN CONTROLS END */


/* PRESI PHOTOSWIPE CLOSE CONTROL START */

/*
 * Clear PhotoSwipe exit control on desktop and mobile.
 * Native functionality and accessibility remain unchanged.
 */
.pswp
.pswp__button--close {
    display: inline-flex !important;
    width: auto !important;
    min-width: 112px;
    height: 48px;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin: 0;
    padding: 0 13px;
    border: 0;
    border-radius: 0 0 0 4px;
    background-color: rgba(0, 0, 0, 0.72) !important;
    background-image: none !important;
    color: #ff3b4f;
    box-shadow: none;
    opacity: 1 !important;
    font-family: Commissioner, sans-serif;
    cursor: pointer;
}

.pswp
.pswp__button--close::before {
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0;
    content: "Κλείσιμο";
    color: #ff3b4f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* Lightweight red X without an external image request. */
.pswp
.pswp__button--close::after {
    display: block;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    content: "";
    background-color: #ff3b4f;
    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5 19 19M19 5 5 19' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5 19 19M19 5 5 19' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.pswp
.pswp__button--close:hover,
.pswp
.pswp__button--close:active {
    background-color: rgba(0, 0, 0, 0.92) !important;
    color: #ff5364;
}

.pswp
.pswp__button--close:focus-visible {
    outline: 2px solid #ff3b4f;
    outline-offset: -3px;
}

/* PRESI PHOTOSWIPE CLOSE CONTROL END */
