
/* Main Image Navigation */
.pic-main-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.pic-main-nav-btn:hover {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    opacity: 1;
}

.pic-main-prev { left: 10px; }
.pic-main-next { right: 10px; }

/* Thumbnail Navigation */
.pic-thumb-wrapper {
    position: relative;
    margin-top: 10px;
    /* Ensure space for arrows if they are outside, or handle inside */
    padding: 0 35px; /* Add padding to container so arrows fit inside the relative area */
    box-sizing: border-box;
    display: block !important; /* Ensure it is visible */
}

.pic-thumb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    z-index: 1000; /* High z-index */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding: 0;
    line-height: 1;
}

.pic-thumb-nav-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    border-color: #bbb;
}

/* Position arrows inside the padded area */
.pic-thumb-prev { left: 0; }
.pic-thumb-next { right: 0; }

/* Overlay Text */
.pic-image-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    z-index: 9999 !important;
    pointer-events: none; /* Let clicks pass through */
    opacity: 0;
    animation: picFadeIn 0.3s forwards;
}

@keyframes picFadeIn {
    to { opacity: 1; }
}

/* Fix relative positioning for gallery to hold absolute arrows */
.woocommerce-product-gallery {
    position: relative !important;
}

.woocommerce-product-gallery.pic-no-flex .woocommerce-product-gallery__image {
    display: none;
}
.woocommerce-product-gallery.pic-no-flex .woocommerce-product-gallery__image.pic-main-active {
    display: block;
}

/* Smooth scroll for thumbs */
.flex-control-thumbs {
    scrollbar-width: none; /* Firefox */
}
.flex-control-thumbs::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}

/* Zoom Styles */
.woocommerce-product-gallery.pic-zoom-enabled .woocommerce-product-gallery__image {
    cursor: zoom-in;
}
.woocommerce-product-gallery.pic-zoom-enabled.pic-zoom-lens .woocommerce-product-gallery__image {
    cursor: crosshair;
}
.woocommerce-product-gallery.pic-zoom-none .woocommerce-product-gallery__image {
    cursor: default;
}
