.xl-action {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
}
.xl-action > * { grid-area: 1 / 1; }
.xl-button-fill {
    position: absolute;
    inset: -50% -25%;
    border-radius: 50%;
    background: var(--xl-fill, #f4eee2);
    transform: translate3d(0,-76%,0);
    pointer-events: none;
}
.xl-button-sizer { visibility: hidden; }
.xl-button-label, .xl-button-loader { position: relative; color: inherit; }
.xl-button-label { transition: opacity .15s, color .5s .1s; }
.xl-button-loader { display: none; gap: 6px; }
.xl-button-loader i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.xl-action[aria-busy="true"] .xl-button-label { opacity: 0; }
.xl-action[aria-busy="true"] .xl-button-loader { display: flex; }
.xl-action[aria-busy="true"] .xl-button-loader i { animation: xl-cart-dot .65s alternate infinite; }
.xl-action[aria-busy="true"] .xl-button-loader i:nth-child(2) { animation-delay: .12s; }
.xl-action[aria-busy="true"] .xl-button-loader i:nth-child(3) { animation-delay: .24s; }
@keyframes xl-cart-dot { from { transform: scale(.6); } to { transform: scale(1.6); } }
body .single_add_to_cart_button.xl-action { border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
    .xl-button-fill { transition: transform .6s cubic-bezier(.22,.76,.25,1); }
    body .xl-action:not(:disabled):not(.disabled):hover .xl-button-fill { transform: translate3d(0,0,0); }
    body .xl-action:not(:disabled):not(.disabled):hover .xl-button-label,
    body .xl-action:not(:disabled):not(.disabled):hover .xl-button-loader { color: #171717; }
}

body .woocommerce-product-gallery.xl-gallery { position: relative; min-width: 0; width: 100%; }
.xl-gallery .woocommerce-product-gallery__wrapper {
    position: relative;
    min-width: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow: auto hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    margin: 0;
}
.xl-gallery .woocommerce-product-gallery__wrapper::-webkit-scrollbar { display: none; }
.xl-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
    float: none;
    display: block;
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
}
.xl-gallery .woocommerce-product-gallery__image a { display: block; cursor: zoom-in; }
.xl-gallery .woocommerce-product-gallery__image img,
.xl-gallery-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}
.xl-gallery-preview { display: none; }
.xl-gallery-zoom {
    position: absolute;
    inset: 12px 12px auto auto;
    z-index: 2;
    width: 44px;
    height: 44px;
    background: #f4eee2;
    color: #171717;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #171717;
    border-radius: 50%;
    cursor: zoom-in;
}
.xl-search-icon {
    width: 13px;
    height: 13px;
    border: 1.5px solid;
    border-radius: 50%;
    position: relative;
}
.xl-search-icon::after {
    content: '';
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
}
.xl-gallery-dots { display: flex; justify-content: center; }
.xl-gallery-dots[hidden] { display: none; }
.xl-gallery-dot {
    padding: 0;
    width: 32px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #242424;
    cursor: pointer;
}
.xl-gallery-dot::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    margin: auto;
    border-radius: 999px;
    background: currentColor;
    opacity: .42;
    transition: width .2s, opacity .2s;
}
.xl-gallery-dot[aria-current="true"]::before { width: 20px; opacity: 1; }
@media (min-width: 1024px) {
    body .woocommerce-product-gallery.xl-gallery {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        gap: 12px;
        align-items: start;
    }
    .xl-gallery .woocommerce-product-gallery__wrapper {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
        overflow: visible;
        scroll-snap-type: none;
    }
    .xl-gallery-preview {
        display: grid;
        position: sticky;
        top: calc(20px + var(--wp-admin--admin-bar--height, 0px));
        align-self: start;
        width: 100%;
        overflow: hidden;
        padding: 0;
        border: 0;
        background: #f4eee2;
        cursor: zoom-in;
    }
    .xl-gallery-preview img { grid-area: 1/1; opacity: 0; transition: opacity .28s ease; }
    .xl-gallery-preview img.xl-visible { opacity: 1; z-index: 1; }
    .xl-gallery .xl-gallery-dots, .xl-gallery-zoom { display: none; }
}

.xl-card-overflow {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    transition: transform .6s ease-out;
}
.xl-card-track { display: flex; width: 100%; height: 100%; transition: transform .4s cubic-bezier(.25,1,.5,1); }
.xl-card-cell { position: relative; min-width: 0; flex: 0 0 100%; }
body .xl-card.is-carousel-ready .xl-card-overflow .product-slide {
    opacity: 1;
    visibility: visible;
    transition: none;
    transform: none;
}
.xl-card-overflow [hidden] { display: none !important; }
.xl-card .carousel-dots { margin-block-start: 6px; }
.xl-card .xl-card-view, .xl-card .xl-card-buy {
    background: #242424;
    color: #fff;
    border: 1px solid #242424;
    text-decoration: none;
    cursor: pointer;
}
.xl-card-view { position: absolute; z-index: 2; top: 10px; right: 10px; width: 44px; height: 44px; }
.xl-card-view svg { display: block; }
.xl-card-buy {
    display: grid;
    width: max-content;
    max-width: 100%;
    min-height: 44px;
    margin: 0 auto 12px;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
}
.xl-card .card-copy { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.xl-card .card-copy > .product-desc { display: none; }
.xl-card-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px;
}
.xl-card .xl-card-meta .product-title {
    margin: 0;
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.xl-card-price {
    margin: 0;
    font-size: clamp(13px, 1.15vw, 17px);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}
.lightboxes .card.xl-card { grid-template-columns: minmax(0, 1fr); }
.lightboxes .xl-card .card-visual { grid-row: auto; }
.lightboxes .xl-card .card-copy { align-self: stretch; max-width: none; }
.lightboxes .xl-card .card-visual .xl-card-buy { margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
    .xl-card:hover .xl-card-overflow { transform: scale(1.05); }
    .xl-card .xl-card-view {
        opacity: 0;
        pointer-events: none;
        transform: translateY(4px);
        transition: transform .28s, opacity .28s;
    }
    .xl-card:hover .xl-card-view,
    .xl-card:focus-within .xl-card-view {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    .xl-action *, .xl-gallery *, .xl-card *, .xl-card *::before {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
    body .xl-action .xl-button-fill { display: none; }
    body .xl-action:hover :is(.xl-button-label,.xl-button-loader) { color: inherit; }
    .xl-card:hover .xl-card-overflow { transform: none; }
}
