/**
 * Galeri produk — layout bebas Tailwind/Bootstrap (dipakai storefront + admin).
 */
.product-gallery-sw {
    display: flex;
    flex-direction: column;
    outline: none;
    min-height: 0;
}

.product-gallery-sw .pg-inner {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: rgba(249, 250, 251, 0.9);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.product-gallery-sw .pg-viewport {
    position: relative;
    flex: 1 1 auto;
    min-height: 10rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

@media (min-width: 576px) {
    .product-gallery-sw .pg-viewport {
        min-height: 14rem;
    }
    .product-gallery-sw .pg-slide-inner {
        min-height: 14rem !important;
    }
}

.product-gallery-sw .js-slide {
    width: 100%;
}

.product-gallery-sw .pg-slide-inner {
    min-height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
}

.product-gallery-sw .pg-slide-inner img {
    width: 45%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.product-gallery-sw .pg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.product-gallery-sw .pg-nav:hover {
    background: #fff;
}

.product-gallery-sw .pg-prev {
    left: 0.5rem;
}

.product-gallery-sw .pg-next {
    right: 0.5rem;
}

.product-gallery-sw .pg-thumb-strip {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 0.25rem 0.25rem;
    scrollbar-width: thin;
}

.product-gallery-sw .pg-thumb {
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border-radius: 0.375rem;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 576px) {
    .product-gallery-sw .pg-thumb {
        width: 4rem;
        height: 4rem;
    }
}

.product-gallery-sw .pg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-sw .pg-thumb.thumb-active {
    border-color: #ff324d;
    box-shadow: 0 0 0 1px rgba(255, 50, 77, 0.25);
}

.product-gallery-sw .pg-indicator {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.product-gallery-sw .pg-indicator .js-slide-indicator {
    font-weight: 600;
    color: #111827;
}

/* Sembunyikan slide (tanpa Tailwind di storefront) */
.product-gallery-sw .hidden {
    display: none !important;
}

.product-gallery-sw .pg-admin-controls {
    margin-top: 0.75rem;
}

.product-gallery-sw .pg-admin-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
}

.product-gallery-sw .pg-admin-controls .text-muted {
    color: #6b7280;
}

.product-gallery-sw .pg-admin-controls .text-danger {
    color: #dc2626;
}
