.lxd-product-gallery-widget {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lxd-product-gallery-widget .lxd-gallery-main {
    position: relative;
    width: 100%;
    display: block;
}

.lxd-product-gallery-widget .lxd-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    background: #fff;
}

.lxd-product-gallery-widget .lxd-gallery-caption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    text-align: center;
}

/* Navigation Arrows - Overlaid on main image */
.lxd-product-gallery-widget .lxd-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.lxd-product-gallery-widget .lxd-gallery-nav-prev {
    left: 20px;
}

.lxd-product-gallery-widget .lxd-gallery-nav-next {
    right: 20px;
}

.lxd-product-gallery-widget .lxd-gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #000;
}

.lxd-product-gallery-widget .lxd-gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.lxd-product-gallery-widget .lxd-gallery-nav svg {
    width: 12px;
    height: 20px;
    flex-shrink: 0;
}

/* Bullets - Overlaid at bottom of main image */
.lxd-product-gallery-widget .lxd-gallery-bullets {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 20px;
}

.lxd-product-gallery-widget .lxd-gallery-bullet {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    max-width: 10px;
    max-height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lxd-product-gallery-widget .lxd-gallery-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.3);
}

.lxd-product-gallery-widget .lxd-gallery-bullet.is-active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Thumbnails - Below main image */
.lxd-product-gallery-widget .lxd-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0 8px;
    margin: 0;
    list-style: none;
}

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

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

.lxd-product-gallery-widget .lxd-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

.lxd-product-gallery-widget .lxd-gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

.lxd-product-gallery-widget .lxd-gallery-thumb {
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    flex: 0 0 auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lxd-product-gallery-widget .lxd-gallery-thumb.is-active {
    border-color: #c29b4f;
    box-shadow: 0 0 0 1px #c29b4f;
}

.lxd-product-gallery-widget .lxd-gallery-thumb img {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
}

@media (max-width: 767px) {
    .lxd-product-gallery-widget {
        gap: 12px;
    }
    
    .lxd-product-gallery-widget .lxd-gallery-nav {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .lxd-product-gallery-widget .lxd-gallery-nav-prev {
        left: 10px;
    }
    
    .lxd-product-gallery-widget .lxd-gallery-nav-next {
        right: 10px;
    }
    
    .lxd-product-gallery-widget .lxd-gallery-nav svg {
        width: 10px;
        height: 16px;
    }
    
    .lxd-product-gallery-widget .lxd-gallery-bullets {
        bottom: 15px;
        padding: 6px 12px;
    }
    
    .lxd-product-gallery-widget .lxd-gallery-bullet {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
        max-width: 8px;
        max-height: 8px;
    }
    
    .lxd-product-gallery-widget .lxd-gallery-thumb img {
        width: 140px;
        height: 140px;
    }
}
