.yc-estore-product-page {
    --yc-media-accent: #cf4747;
    --yc-media-text: #111827;
    --yc-media-ink: rgba(17, 24, 39, 0.86);
    --yc-media-surface: #f7f8fa;
    --yc-media-border: rgba(17, 24, 39, 0.08);
    --yc-media-focus-ring: rgba(207, 71, 71, 0.34);
    --yc-media-hit-size: 44px;
    --yc-media-control-surface-size: 36px;
    --yc-media-control-radius: 14px;
    --yc-media-control-border: rgba(255, 255, 255, 0.24);
    --yc-media-control-border-hover: rgba(255, 255, 255, 0.34);
    --yc-media-control-background: rgba(255, 255, 255, 0.48);
    --yc-media-control-background-hover: rgba(255, 255, 255, 0.58);
    --yc-media-control-filter: blur(18px) saturate(1.1);
    --yc-media-control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.08), 0 8px 20px rgba(15, 23, 42, 0.10);
    --yc-media-shell-border: rgba(255, 255, 255, 0.72);
    --yc-media-shell-background: rgba(255, 255, 255, 0.76);
    --yc-media-shell-filter: blur(16px);
    --yc-media-shell-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    --yc-media-shell-radius: 8px;
    --yc-media-thumb-size: 64px;
    --yc-media-thumb-size-compact: 48px;
    --yc-media-thumb-radius: 6px;
    --yc-media-thumb-active-radius: 12px;
    --yc-media-thumb-opacity: 0.68;
    --yc-media-thumb-active-border: rgba(207, 71, 71, 0.90);
    --yc-media-disabled-opacity: .32;
    --yc-media-fallback-background: rgba(255, 255, 255, 0.94);
}

.yc-product-gallery {
    --yc-gallery-accent: var(--yc-media-accent);
    --yc-gallery-surface: var(--yc-media-surface);
    --yc-gallery-border: var(--yc-media-border);
    --yc-gallery-glass-background: rgba(255, 255, 255, 0.56);
    --yc-gallery-glass-border: rgba(255, 255, 255, 0.78);
    --yc-gallery-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 26px rgba(15, 23, 42, 0.12);
    --yc-gallery-zoom-surface-size: var(--yc-media-control-surface-size);
    --yc-gallery-zoom-icon-size: 18px;
    --yc-gallery-zoom-radius: var(--yc-media-control-radius);
    display: block;
    position: relative;
    width: 100%;
}

.yc-product-gallery .product-image {
    width: 100%;
}

.yc-product-gallery__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--yc-gallery-border);
    border-radius: var(--yc-media-shell-radius);
    background: var(--yc-gallery-surface);
}

.yc-product-gallery__slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.yc-product-gallery__slider .single-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.yc-product-gallery__slider .single-image.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.yc-gallery-drag-current,
.yc-gallery-drag-candidate {
    visibility: visible !important;
    pointer-events: none !important;
    transition: transform 220ms ease-out, opacity 220ms ease-out, box-shadow 220ms ease-out;
    will-change: transform, opacity;
}

.yc-gallery-is-dragging .single-image {
    transition: none !important;
}

.yc-gallery-drag-candidate {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .yc-gallery-drag-current,
    .yc-gallery-drag-candidate {
        transition-duration: 1ms;
    }
}

.yc-product-gallery__image-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.yc-product-gallery .product-image .single-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: center;
    cursor: zoom-in;
}

.yc-product-gallery .yc-product-gallery__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: auto;
    z-index: 4;
    isolation: isolate;
    width: var(--yc-media-hit-size);
    height: var(--yc-media-hit-size);
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: var(--yc-media-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    touch-action: manipulation;
}

.yc-product-gallery .yc-product-gallery__zoom::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--yc-gallery-zoom-surface-size);
    height: var(--yc-gallery-zoom-surface-size);
    box-sizing: border-box;
    border: 1px solid var(--yc-media-control-border);
    border-radius: var(--yc-gallery-zoom-radius);
    background: var(--yc-media-control-background);
    -webkit-backdrop-filter: var(--yc-media-control-filter);
    backdrop-filter: var(--yc-media-control-filter);
    box-shadow: var(--yc-media-control-shadow);
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.yc-product-gallery .yc-product-gallery__zoom > .mdi {
    position: relative;
    z-index: 1;
    width: var(--yc-gallery-zoom-icon-size);
    height: var(--yc-gallery-zoom-icon-size);
    flex: 0 0 var(--yc-gallery-zoom-icon-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--yc-media-ink);
    font-size: var(--yc-gallery-zoom-icon-size);
    line-height: 1;
    transform: translateY(-0.5px);
}

.yc-product-gallery .yc-product-gallery__zoom:focus-visible {
    outline: none;
}

.yc-product-gallery .yc-product-gallery__zoom:focus-visible::before {
    box-shadow: var(--yc-media-control-shadow), 0 0 0 3px var(--yc-media-focus-ring);
}

.yc-product-gallery .yc-product-gallery__zoom:active::before {
    transform: translate(-50%, -50%) scale(.98);
}

.yc-product-gallery .yc-product-gallery__zoom:hover {
    background: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .yc-product-gallery .yc-product-gallery__zoom:hover::before {
        border-color: var(--yc-media-control-border-hover);
        background: var(--yc-media-control-background-hover);
    }
}

@media (prefers-reduced-motion: reduce) {
    .yc-product-gallery .yc-product-gallery__zoom::before {
        transition-duration: 1ms;
    }

    .yc-product-gallery .yc-product-gallery__zoom:active::before {
        transform: translate(-50%, -50%);
    }

}

.yc-product-gallery__stage .yc-product-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    isolation: isolate;
    width: var(--yc-media-hit-size);
    height: var(--yc-media-hit-size);
    box-sizing: border-box;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--yc-media-ink);
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
    line-height: 1;
    touch-action: manipulation;
}

.yc-product-gallery__stage .yc-product-gallery__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--yc-media-control-surface-size);
    height: var(--yc-media-control-surface-size);
    box-sizing: border-box;
    border: 1px solid var(--yc-media-control-border);
    border-radius: var(--yc-media-control-radius);
    background: var(--yc-media-control-background);
    -webkit-backdrop-filter: var(--yc-media-control-filter);
    backdrop-filter: var(--yc-media-control-filter);
    box-shadow: var(--yc-media-control-shadow);
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.yc-product-gallery__arrow > .mdi {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--yc-media-ink);
    font-size: 22px;
    line-height: 1;
    transition: color 0.2s ease;
}

.yc-product-gallery__arrow--prev > .mdi {
    transform: translate(-0.5px, -0.5px);
}

.yc-product-gallery__arrow--next > .mdi {
    transform: translate(0.5px, -0.5px);
}

@media (hover: hover) and (pointer: fine) {
    .yc-product-gallery__stage .yc-product-gallery__arrow:hover::before {
        border-color: var(--yc-media-control-border-hover);
        background: var(--yc-media-control-background-hover);
    }

    .yc-product-gallery__stage .yc-product-gallery__arrow:hover > .mdi {
        color: var(--yc-gallery-accent);
    }
}

.yc-product-gallery__stage .yc-product-gallery__arrow:active::before {
    transform: translate(-50%, -50%) scale(.98);
}

.yc-product-gallery__stage .yc-product-gallery__arrow:focus-visible {
    outline: none;
}

.yc-product-gallery__stage .yc-product-gallery__arrow:focus-visible::before {
    box-shadow: var(--yc-media-control-shadow), 0 0 0 3px var(--yc-media-focus-ring);
}

.yc-product-gallery__stage .yc-product-gallery__arrow:focus-visible > .mdi {
    color: var(--yc-gallery-accent);
}

.yc-product-gallery__stage .yc-product-gallery__arrow[disabled] {
    opacity: var(--yc-media-disabled-opacity);
    pointer-events: none;
    cursor: default;
}

@media (prefers-reduced-motion: reduce) {
    .yc-product-gallery__stage .yc-product-gallery__arrow::before {
        transition-duration: 1ms;
    }

    .yc-product-gallery__stage .yc-product-gallery__arrow > .mdi {
        transition-duration: 1ms;
    }

    .yc-product-gallery__stage .yc-product-gallery__arrow:active::before {
        transform: translate(-50%, -50%);
    }
}

.yc-product-gallery__stage .yc-product-gallery__arrow--prev {
    left: 12px;
}

.yc-product-gallery__stage .yc-product-gallery__arrow--next {
    right: 12px;
}

.yc-product-gallery__status {
    position: static;
}

.yc-product-gallery__exit {
    position: absolute;
    top: 14px;
    right: 66px;
    z-index: 4;
    isolation: isolate;
    width: var(--yc-media-hit-size);
    height: var(--yc-media-hit-size);
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: var(--yc-media-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    text-rendering: auto;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
}

.yc-product-gallery__exit::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--yc-media-control-surface-size);
    height: var(--yc-media-control-surface-size);
    box-sizing: border-box;
    border: 1px solid var(--yc-media-control-border);
    border-radius: var(--yc-media-control-radius);
    background: var(--yc-media-control-background);
    -webkit-backdrop-filter: var(--yc-media-control-filter);
    backdrop-filter: var(--yc-media-control-filter);
    box-shadow: var(--yc-media-control-shadow);
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.yc-product-gallery__exit > .mdi {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.yc-product-gallery__exit[hidden] {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .yc-product-gallery__exit:hover::before {
        border-color: var(--yc-media-control-border-hover);
        background: var(--yc-media-control-background-hover);
    }
}

.yc-product-gallery__exit:active::before {
    transform: translate(-50%, -50%) scale(.98);
}

@media (prefers-reduced-motion: reduce) {
    .yc-product-gallery__exit::before {
        transition-duration: 1ms;
    }

    .yc-product-gallery__exit:active::before {
        transform: translate(-50%, -50%);
    }
}

.yc-product-gallery__exit:focus-visible {
    outline: none;
}

.yc-product-gallery__exit:focus-visible::before {
    box-shadow: var(--yc-media-control-shadow), 0 0 0 3px var(--yc-media-focus-ring);
}

.yc-product-gallery__meta {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 4;
    width: min(88%, 520px);
    height: 108px;
    box-sizing: border-box;
    display: block;
    border: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    pointer-events: none;
    transform: translateX(-50%);
}

.yc-product-gallery__title {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    height: 36px;
    width: max-content;
    max-width: min(240px, calc(100% - 32px));
    padding: 0 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--yc-media-control-border);
    border-radius: 16px;
    background: var(--yc-media-control-background);
    -webkit-backdrop-filter: var(--yc-media-control-filter);
    backdrop-filter: var(--yc-media-control-filter);
    box-shadow: var(--yc-media-control-shadow);
    color: var(--yc-media-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateX(-50%);
}

.yc-product-gallery__title[hidden] {
    display: none;
}

.yc-product-gallery__counter {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    height: 36px;
    min-width: 52px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--yc-media-control-border);
    border-radius: 16px;
    background: var(--yc-media-control-background);
    -webkit-backdrop-filter: var(--yc-media-control-filter);
    backdrop-filter: var(--yc-media-control-filter);
    box-shadow: var(--yc-media-control-shadow);
    color: var(--yc-media-ink);
    font-size: 12px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
    pointer-events: none;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .yc-product-gallery .yc-product-gallery__zoom::before {
        border-color: var(--yc-media-border);
        background: var(--yc-media-fallback-background);
    }

    .yc-product-gallery__stage .yc-product-gallery__arrow::before {
        border-color: var(--yc-media-border);
        background: var(--yc-media-fallback-background);
    }

    .yc-product-gallery__title {
        border-color: var(--yc-media-border);
        background: var(--yc-media-fallback-background);
    }

    .yc-product-gallery__exit::before {
        border-color: var(--yc-media-border);
        background: var(--yc-media-fallback-background);
    }

    .yc-product-gallery__counter {
        border-color: var(--yc-media-border);
        background: var(--yc-media-fallback-background);
    }
}

@media (max-width: 767px) {
    .yc-product-gallery__stage {
        margin-left: 0;
        margin-right: 0;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .yc-product-gallery__slider {
        touch-action: pan-y;
    }

    .yc-product-gallery__stage,
    .yc-product-gallery__slider,
    .yc-product-gallery__slider .single-image,
    .yc-product-gallery__image-frame {
        width: 100%;
    }

    .yc-product-gallery .yc-product-gallery__zoom {
        top: 12px;
        right: 10px;
    }

    .yc-product-gallery__status {
        position: static;
    }

    .yc-product-gallery__exit {
        position: absolute;
        top: 12px;
        right: 62px;
        width: var(--yc-media-hit-size);
        height: var(--yc-media-hit-size);
    }

    .yc-product-gallery__exit > .mdi {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        font-size: 20px;
    }

    .yc-product-gallery__meta {
        display: contents;
        position: static;
        left: auto;
        bottom: auto;
        width: auto;
        height: auto;
        transform: none;
    }

    .yc-product-gallery__title {
        position: absolute;
        top: 0;
        left: 50%;
        bottom: auto;
        width: auto;
        height: 36px;
        min-height: 36px;
        max-width: clamp(96px, 32vw, 200px);
        box-sizing: border-box;
        padding: 0 12px;
        border: 1px solid var(--yc-gallery-glass-border);
        border-radius: 18px;
        background: var(--yc-gallery-glass-background);
        -webkit-backdrop-filter: blur(30px) saturate(1.25);
        backdrop-filter: blur(30px) saturate(1.25);
        box-shadow: var(--yc-gallery-glass-shadow);
        color: #111827;
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        transform: translateX(-50%);
    }

    .yc-product-gallery__counter {
        position: absolute;
        top: 16px;
        left: 14px;
    }

    .yc-product-gallery__stage .yc-product-gallery__arrow--prev {
        left: 8px;
    }

    .yc-product-gallery__stage .yc-product-gallery__arrow--next {
        right: 8px;
    }

    @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .yc-product-gallery__title {
            border-color: var(--yc-gallery-glass-border);
            background: rgba(255, 255, 255, 0.94);
        }
    }
}
