/*
Custom Css
*/

.product-gallery-shell {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.product-gallery {
    position: relative;
    min-width: 0;
}

.product-gallery-main {
    background: #f5f5f5;
    overflow: hidden;
}

.product-gallery-image {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 16px;
}

.product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 100%;
    overflow-y: auto;
}

.product-gallery-thumb {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 0;
    padding: 6px;
    overflow: hidden;
}

.product-gallery-thumb.active,
.product-gallery-thumb:focus {
    border-color: #59ab6e;
    outline: none;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 12px;
    z-index: 2;
}

.product-gallery-control {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.product-gallery-control .carousel-control-prev-icon,
.product-gallery-control .carousel-control-next-icon {
    width: 18px;
    height: 18px;
    filter: invert(1) grayscale(1);
}

@media (max-width: 767.98px) {
    .product-gallery-shell {
        grid-template-columns: 1fr;
    }

    .product-gallery-thumbs {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .product-gallery-thumb {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }
}
