/* Product image gallery: Invins Digital brand system */
.custom-gallery {
    --gallery-brand: #DF4979;
    --gallery-coral: #E15A53;
    --gallery-gradient: linear-gradient(270deg, #E04C74, #E15A53, #E04C74);
    --gallery-text: #444647;
    --gallery-muted: #757575;
    --gallery-border: #EBEBEB;
    --gallery-border-pink: #F5B8CC;
    --gallery-surface: #FFFFFF;
    --gallery-soft: #FDF5F7;
    --gallery-radius: 20px;
    --gallery-radius-sm: 12px;
    --gallery-shadow: 0 4px 16px rgba(0, 0, 0, .10);
    --gallery-shadow-pink: 0 4px 20px rgba(223, 73, 121, .25);
    position: relative;
    width: 100%;
}

.custom-gallery .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-gallery-main {
    position: relative;
    overflow: visible !important;
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    border-radius: var(--gallery-radius);
    box-shadow: none !important;
}

.custom-gallery-main-link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.custom-gallery-main-link > .custom-gallery-main-image {
    display: block;
    width: 100%;
    height: auto;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    object-fit: cover;
    transition: opacity .22s ease, transform .35s ease;
}

.custom-gallery-main:hover .custom-gallery-main-image {
    transform: translateY(-4px);
}

.custom-gallery-main.loading .custom-gallery-main-image {
    opacity: .58;
}

.custom-gallery-main .text_zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: var(--gallery-brand);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none !important;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.custom-gallery-main .text_zoom .icon-zoom-in {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
}

.custom-gallery-main .text_zoom:hover,
.custom-gallery-main .text_zoom:focus-visible,
.custom-gallery-main.is-magnifier-enabled .text_zoom {
    background: transparent !important;
    color: var(--gallery-coral);
    box-shadow: none !important;
    transform: translateY(-1px);
}

.custom-gallery-main.is-magnifier-enabled .text_zoom .icon-zoom-in::before {
    content: "x";
    color: #DF4979 !important;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .65);
}

.custom-gallery-lens {
    position: absolute;
    z-index: 8;
    width: clamp(680px, 42vw, 820px) !important;
    height: clamp(680px, 42vw, 820px) !important;
    border: 3px solid rgba(255, 255, 255, .95);
    border-radius: 9999px;
    background-color: #FFFFFF;
    background-repeat: no-repeat;
    box-shadow: 0 14px 34px rgba(68, 70, 71, .22), 0 0 0 1px rgba(223, 73, 121, .22);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.9);
    transition: opacity .14s ease, transform .14s ease;
}

.custom-gallery-lens.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.custom-gallery-arrow,
.thumbs-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 184, 204, .75);
    border-radius: 9999px;
    background: rgba(255, 255, 255, .92);
    color: var(--gallery-brand);
    box-shadow: 0 8px 24px rgba(68, 70, 71, .14);
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.custom-gallery-arrow:hover,
.custom-gallery-arrow:focus-visible,
.thumbs-arrow:hover,
.thumbs-arrow:focus-visible {
    background: var(--gallery-gradient);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: var(--gallery-shadow-pink);
}

.custom-gallery-arrow:focus-visible,
.thumbs-arrow:focus-visible,
.custom-thumb:focus-visible {
    outline: 3px solid rgba(223, 73, 121, .22);
    outline-offset: 3px;
}

.custom-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    opacity: 0;
    transform: translateY(-50%) scale(.96);
}

.custom-gallery-arrow.prev { left: 14px; }
.custom-gallery-arrow.next { right: 14px; }

.custom-gallery-main:hover .custom-gallery-arrow,
.custom-gallery-main:focus-within .custom-gallery-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.custom-gallery-thumbs-wrap {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 0;
    border: 0 !important;
    border-radius: var(--gallery-radius-sm);
    background: transparent !important;
    box-shadow: none !important;
}

.custom-gallery-thumbnails {
    display: flex;
    min-width: 0;
    max-width: 100%;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pinch-zoom;
    cursor: grab;
}

.custom-gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.custom-gallery-thumbnails.dragging {
    cursor: grabbing;
}

.custom-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    overflow: hidden;
    padding: 0;
    border: 0 !important;
    border-radius: 14px;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    scroll-snap-align: center;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity .18s ease;
}

.custom-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: cover;
}

.custom-thumb:hover {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: .86;
}

.custom-thumb.active,
.custom-thumb[aria-selected="true"] {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 1;
}

.productfull .custom-gallery .custom-gallery-main,
.productfull .custom-gallery .custom-gallery-main-link,
.productfull .custom-gallery .custom-gallery-main-image,
.productfull .custom-gallery .custom-gallery-thumbs-wrap,
.productfull .custom-gallery .custom-thumb,
.productfull .custom-gallery .custom-thumb img,
.productfull .custom-gallery .text_zoom {
    border-color: transparent !important;
    box-shadow: none !important;
}

.productfull .custom-gallery .text_zoom {
    display: inline-flex !important;
    background: transparent !important;
}

.thumbs-arrow {
    width: 36px;
    height: 36px;
    opacity: 0;
    transform: scale(.96);
}

.custom-gallery-thumbs-wrap:hover .thumbs-arrow,
.custom-gallery-thumbs-wrap:focus-within .thumbs-arrow {
    opacity: 1;
    transform: scale(1);
}

html.has-touch .custom-gallery-arrow,
html.has-touch .thumbs-arrow,
html.touch-primary .custom-gallery-arrow,
html.touch-primary .thumbs-arrow {
    display: none !important;
}

@media (max-width: 768px) {
    .productfull .product-image .custom-gallery {
        width: min(100%, calc(100vw - 30px));
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
        overflow: hidden;
    }

    .custom-gallery-main {
        border-radius: var(--gallery-radius-sm);
    }

    .custom-gallery-main .text_zoom {
        right: 12px;
        bottom: 12px;
        width: 42px;
        height: 42px;
    }

    .custom-gallery-lens {
        width: min(260px, 78vw) !important;
        height: min(260px, 78vw) !important;
    }

    .custom-gallery-thumbs-wrap {
        display: block;
        margin-top: 14px;
        padding: 8px;
        overflow: hidden;
    }

    .custom-gallery-thumbnails {
        gap: 8px;
        max-width: 100%;
    }

    .custom-thumb {
        width: 62px;
        height: 62px;
        border-radius: 12px;
    }
}

@media (min-width: 720px) and (max-width: 1399px) and (pointer: coarse) {
    .custom-gallery-lens {
        width: min(460px, 76vw) !important;
        height: min(460px, 76vw) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-gallery-main-link > .custom-gallery-main-image,
    .custom-gallery-arrow,
    .thumbs-arrow,
    .custom-thumb {
        transition: none;
    }

    .custom-gallery-main:hover .custom-gallery-main-image {
        transform: none;
    }
}
