

.romatex-product-gallery-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.romatex-product-gallery {
    display: flex;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.romatex-product-gallery--thumbs-right {
    flex-direction: row;
}

.romatex-product-gallery--thumbs-left {
    flex-direction: row-reverse;
}

.romatex-product-gallery--thumbs-bottom {
    flex-direction: column;
}

.romatex-product-gallery--thumbs-top {
    flex-direction: column-reverse;
}

.romatex-product-gallery__main-wrap {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.romatex-product-gallery__main-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    align-self: stretch;
    position: relative;
    z-index: 1;
}

.romatex-product-gallery__main-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.romatex-product-gallery__main-wrap--zoom:hover .romatex-product-gallery__main-image {
    transform: scale(1.1);
}

.romatex-product-gallery__wishlist-btn {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 999;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #333333;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    font-size: 20px;
    box-sizing: border-box;
}

.romatex-product-gallery__wishlist-btn svg,
.romatex-product-gallery__wishlist-btn i {
    width: 20px;
    height: 20px;
    font-size: inherit;
    line-height: 1;
    display: inline-block;
    fill: currentColor;
    color: inherit;
    stroke: none;
    transition: fill 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.romatex-product-gallery__wishlist-btn svg path {
    fill: currentColor;
    color: inherit;
}

.romatex-product-gallery__wishlist-btn:hover {
    opacity: 0.92;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.romatex-product-gallery__wishlist-btn.is-active,
.romatex-product-gallery__wishlist-btn.active {
    color: #e74c3c;
    fill: #e74c3c;
}

.romatex-product-gallery__wishlist-btn.is-active svg,
.romatex-product-gallery__wishlist-btn.active svg,
.romatex-product-gallery__wishlist-btn.is-active i,
.romatex-product-gallery__wishlist-btn.active i {
    fill: #e74c3c;
    color: #e74c3c;
}

.romatex-product-gallery__wishlist-btn.is-active svg path,
.romatex-product-gallery__wishlist-btn.active svg path {
    fill: #e74c3c;
}

.romatex-product-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #333333;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    font-size: 18px;
    box-sizing: border-box;
}

.romatex-product-gallery__arrow--prev {
    left: 16px !important;
    right: auto !important;
}

.romatex-product-gallery__arrow--next {
    right: 16px !important;
    left: auto !important;
}

.romatex-product-gallery__arrow svg,
.romatex-product-gallery__arrow i {
    width: 18px;
    height: 18px;
    font-size: inherit;
    line-height: 1;
    display: inline-block;
    fill: currentColor;
    color: inherit;
    stroke: none;
    transition: fill 0.2s ease, color 0.2s ease;
}

.romatex-product-gallery__arrow svg path {
    fill: currentColor;
    color: inherit;
}

.romatex-product-gallery__arrow:hover {
    transform: translateY(-50%) scale(1.08);
}

.romatex-product-gallery__arrow:disabled,
.romatex-product-gallery__arrow.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.romatex-product-gallery__thumbs-wrap {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: auto;
    scrollbar-width: thin;
}

.romatex-product-gallery--thumbs-right .romatex-product-gallery__thumbs-wrap,
.romatex-product-gallery--thumbs-left .romatex-product-gallery__thumbs-wrap {
    flex-direction: column;
    max-height: 100%;
}

.romatex-product-gallery--thumbs-bottom .romatex-product-gallery__thumbs-wrap,
.romatex-product-gallery--thumbs-top .romatex-product-gallery__thumbs-wrap {
    flex-direction: row;
    width: 100%;
}

.romatex-product-gallery__thumb-item {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.romatex-product-gallery__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.romatex-product-gallery__thumb-item.is-active {
    border-color: #ff9800;
}

.romatex-product-gallery__thumb-item:hover {
    opacity: 0.9;
}

.romatex-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.romatex-gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.romatex-gallery-lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.romatex-gallery-lightbox__close {
    position: absolute;
    top: 24px;
    inset-inline-end: 24px;
    font-size: 32px;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 767px) {
    .romatex-product-gallery {
        flex-direction: column !important;
    }

    .romatex-product-gallery__thumbs-wrap {
        flex-direction: row !important;
        width: 100% !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .romatex-product-gallery__thumb-item {
        flex-shrink: 0 !important;
    }
}
