.pc-product-gallery-carousel,
.pc-product-gallery-carousel *,
.pc-product-gallery-carousel *::before,
.pc-product-gallery-carousel *::after {
    box-sizing: border-box;
}

.pc-product-gallery-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.pc-main-image-wrap {
    position: relative;
    width: 100%;
    background: #f7f7f7;
    overflow: hidden;
}

.pc-main-image-button {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
}

.pc-main-product-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: opacity 0.2s ease-in-out;
}

.pc-main-arrow {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.pc-main-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.pc-main-arrow-prev {
    left: 16px;
}

.pc-main-arrow-next {
    right: 16px;
}

.pc-thumbnail-carousel-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 14px;
    overflow: hidden;
}

.pc-thumbnail-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pinch-zoom;
    overscroll-behavior-x: contain;
    padding: 2px;
    white-space: nowrap;
}

.pc-thumbnail-carousel.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.pc-thumbnail-carousel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.pc-product-thumb {
    appearance: none;
    -webkit-appearance: none;
    display: block !important;
    flex: 0 0 90px !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 90px !important;
    min-height: 90px !important;
    border: 2px solid transparent;
    padding: 0 !important;
    margin: 0 !important;
    background: #f7f7f7;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.75;
    transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.pc-product-thumb:hover,
.pc-product-thumb.is-active {
    opacity: 1;
    border-color: #222;
}

.pc-product-thumb:hover {
    transform: translateY(-2px);
}

.pc-product-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.pc-thumb-scroll {
    appearance: none;
    -webkit-appearance: none;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border: none;
    border-radius: 999px;
    background: #222;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 3;
    padding: 0 !important;
    margin: 0 !important;
}

.pc-thumb-scroll:hover {
    transform: scale(1.05);
}

.pc-product-lightbox {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 2147483647 !important;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    padding: 30px;
}

.pc-product-lightbox.is-open {
    display: flex !important;
}

.pc-product-lightbox-overlay {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1;
    background: rgba(0, 0, 0, 0.86);
}

.pc-product-lightbox-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.pc-lightbox-close {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-lightbox-arrow {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-lightbox-prev {
    left: -65px;
}

.pc-lightbox-next {
    right: -65px;
}

body.pc-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .pc-main-product-image {
        aspect-ratio: 4 / 3;
    }

    .pc-main-arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .pc-main-arrow-prev {
        left: 10px;
    }

    .pc-main-arrow-next {
        right: 10px;
    }

    .pc-thumbnail-carousel-wrap {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .pc-thumbnail-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        touch-action: pan-x pinch-zoom;
        min-width: 0;
        max-width: 100%;
        padding: 2px;
    }

    .pc-product-thumb {
        flex: 0 0 72px !important;
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        height: 72px !important;
        min-height: 72px !important;
    }

    .pc-thumb-scroll {
        display: flex !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        font-size: 16px;
        z-index: 3;
    }

    .pc-product-lightbox {
        padding: 18px;
    }

    .pc-lightbox-close {
        top: 10px;
        right: 10px;
    }

    .pc-lightbox-prev {
        left: 10px;
    }

    .pc-lightbox-next {
        right: 10px;
    }

    .pc-lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
