.image-indicators .screen-reader-text {
    display: none !important;
}

.product-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
}

.product-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.product-link img {
    width: 100%;
    height: auto;
    display: block;
}

.hover-image {
    display: none;
}

.product-link:hover .main-image {
    display: none;
}

.product-link:hover .hover-image {
    display: none;
}

.product-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    object-fit: cover;
}

.gallery-image:first-child {
    position: relative;
    opacity: 1;
    height: auto;
}

.hover-areas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.area {
    flex: 1;
    height: 100%;
}

.image-indicators {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    padding: 0;
    background: none;
    pointer-events: all;
}

.product-gallery:hover .image-indicators {
    opacity: 1;
}

.indicators-wrapper {
    display: flex;
    width: 100%;
    position: relative;
    gap: 2px;
    padding: 5px 0;
}

.indicator {
    flex: 1;
    height: 2px;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
    margin: 0;
    background: transparent;
    min-width: 25px; /* מינימום רוחב */
    position: relative;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.indicator:hover {
    border-bottom-color: rgba(0, 0, 0, 0.5);
    border-bottom-width: 3px;
}

.indicator.active {
    border-bottom-color: rgba(0, 0, 0, 0.8) !important;
    border-bottom-width: 2px !important;
}

.indicator:hover,
.indicator:focus {
    background: none;
    outline: none;
}

.image-indicators {
    padding: 0;
    background: none;
    border-radius: 0;
    gap: 0;
}

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .hover-areas {
        display: none;
    }

    .image-indicators {
        opacity: 1;
        bottom: 2px;
        padding: 5px 0;
    }

    .indicator {
        min-height: 4px;
        border-bottom-width: 3px;
    }

    .gallery-image {
        transition: opacity 0.4s ease;
    }
    
    /* Mobile Touch Target Improvements - Accessibility for Gallery */
    button.indicator,
    button[id*="mas-gallery-"][id*="-tab-"].indicator {
        min-height: 44px !important;
        padding: 12px 0 !important;
        margin: 2px 0 !important;
        touch-action: manipulation !important;
        flex: 1 !important;
        display: block !important;
        position: relative !important;
    }
    
    button.indicator.active,
    button[id*="mas-gallery-"][id*="-tab-"].indicator.active {
        min-height: 44px !important;
        padding: 12px 0 !important;
        margin: 2px 0 !important;
    }
    
    /* Ensure indicators stay as lines, not circles */
    .indicators-wrapper {
        display: flex !important;
        width: 100% !important;
        gap: 2px !important;
        padding: 5px 0 !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .product-gallery {
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .indicator {
        padding: 8px 0;
    }
}
