/**
 * See And Boss Vocens - Product Gallery Widget Styles
 * vocens.cloud
 */

.sb-product-gallery-section {
    min-height: auto;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    width: 100%;
}

.sb-gallery-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Gallery Title */
.sb-gallery-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 50px;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Main Image */
.sb-main-image {
    position: relative;
    width: 100%;
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.sb-main-image img {
    width: 100%;
    height: 700px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.sb-image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #7c7c7c 0%, #2a2a2a 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.sb-image-badge i {
    font-size: 18px;
    animation: snowflakeSpin 3s linear infinite;
}

@keyframes snowflakeSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation Buttons */
.sb-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #7c7c7c 0%, #2a2a2a 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sb-nav-button:hover {
    background: linear-gradient(135deg, #8c8c8c 0%, #3a3a3a 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.sb-nav-button.prev {
    left: 20px;
}

.sb-nav-button.next {
    right: 20px;
}

/* Thumbnail Gallery Slider */
.sb-thumbnail-slider-wrapper {
    position: relative;
    width: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.sb-thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 700px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #7c7c7c #f0f0f0;
    padding-right: 10px;
}

.sb-thumbnail-gallery::-webkit-scrollbar {
    width: 8px;
}

.sb-thumbnail-gallery::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.sb-thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #7c7c7c;
    border-radius: 10px;
}

.sb-thumbnail-gallery::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

.sb-thumbnail {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 100%;
    flex-shrink: 0;
}

.sb-thumbnail:hover {
    border-color: #7c7c7c;
    transform: translateX(-5px);
    box-shadow: 0 10px 25px rgba(124, 124, 124, 0.2);
}

.sb-thumbnail.active {
    border-color: #7c7c7c;
    box-shadow: 0 10px 25px rgba(124, 124, 124, 0.3);
}

.sb-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    padding: 10px;
}

.sb-thumbnail:hover img {
    transform: scale(1.1);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 992px) {
    .sb-gallery-title {
        font-size: 36px;
    }
    
    .sb-main-image img {
        height: 500px;
    }
    
    .sb-thumbnail-slider-wrapper {
        width: 180px;
    }
    
    .sb-thumbnail-gallery {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .sb-gallery-container {
        padding: 0 25px;
    }
    
    .sb-product-gallery-section {
        padding: 50px 0;
    }
    
    .sb-gallery-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .sb-gallery-content {
        flex-direction: column;
    }
    
    .sb-thumbnail-slider-wrapper {
        width: 100%;
        order: 2;
    }
    
    .sb-thumbnail-gallery {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding-right: 0;
        padding-bottom: 10px;
    }
    
    .sb-thumbnail {
        min-width: 120px;
        width: 120px;
    }
    
    .sb-thumbnail:hover {
        transform: translateY(-5px);
    }
    
    .sb-thumbnail-gallery::-webkit-scrollbar {
        width: auto;
        height: 8px;
    }
    
    .sb-main-image {
        order: 1;
        margin-bottom: 20px;
    }
    
    .sb-main-image img {
        height: 400px;
    }
    
    .sb-image-badge {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .sb-nav-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .sb-nav-button.prev {
        left: 10px;
    }
    
    .sb-nav-button.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .sb-gallery-title {
        font-size: 22px;
    }
    
    .sb-main-image img {
        height: 300px;
    }
    
    .sb-thumbnail-gallery {
        gap: 10px;
    }
    
    .sb-thumbnail {
        min-width: 100px;
        width: 100px;
    }
    
    .sb-thumbnail img {
        height: 100px;
    }
    
    .sb-image-badge {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .sb-image-badge i {
        font-size: 14px;
    }
}
