/* Premium Enhanced Zoom Styling */
#simple-zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Brighter background as requested */
    z-index: 9999;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1); /* Improved easing */
    backdrop-filter: blur(6px); /* Modern blur effect */
    -webkit-backdrop-filter: blur(6px);
}

#zoom-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(80, 80, 80, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#zoom-close:hover {
    background: rgba(120, 120, 120, 0.5);
    transform: scale(1.1) rotate(90deg);
    color: #fff;
}

#zoom-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 16px; /* Rounder corners as requested */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

#zoom-nav {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#zoom-prev,
#zoom-next {
    background: rgba(50, 50, 50, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 30px;
    margin: 0 15px;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#zoom-prev:hover,
#zoom-next:hover {
    background: rgba(70, 70, 70, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#zoom-counter {
    margin: 0 25px;
    font-size: 15px;
    background: rgba(50, 50, 50, 0.5);
    padding: 12px 25px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Premium gallery thumbnails */
.product-gallery-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
}

.product-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.product-gallery-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.gallery-thumb {
    width: 90px;
    height: 90px;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-thumb.active {
    border-color: #c41e3a;
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(196, 30, 58, 0.25);
}

.gallery-thumb.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #c41e3a;
    transform: translateX(-50%) rotate(180deg);
}

.gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

/* Premium main image experience */
.product-gallery-main {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-gallery-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.product-gallery-main:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.product-gallery-main img {
    max-height: 92%;
    max-width: 92%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.product-gallery-main:hover img {
    transform: scale(1.02);
}

.zoom-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-gallery-main:hover .zoom-indicator {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Hide placeholder thumbnails that are not needed */
.placeholder-thumb.hidden {
    display: none;
}
