/* Product Slider - Clean 2 Column Layout */
.product-slider {
    display: flex;
    gap: 15px;
    max-width: 100%;
    margin-bottom: 20px;
}

/* Main image column */
.slider-main {
    flex: 1;
    min-width: 0;
    /* Allow shrinking */
}

.main-image {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.main-image a {
    display: block;
    text-decoration: none;
}

/* Navigation thumbnails column */
.slider-nav {
    width: 90px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.thumb-item {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f8f9fa;
    transition: all 0.2s ease;
    opacity: 0.6;
    /* Default opacity samar */
}

.thumb-item:hover {
    opacity: 0.8;
    border-color: #007bff;
    transform: scale(1.02);
}

.thumb-item.active {
    opacity: 1;
    /* Active opacity full */
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-slider {
        flex-direction: column;
        gap: 12px;
    }

    .slider-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .thumb-item {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    /* Scrollbar styling */
    .slider-nav::-webkit-scrollbar {
        height: 4px;
    }

    .slider-nav::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }

    .slider-nav::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }

    .slider-nav::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
}

@media (max-width: 480px) {
    .product-slider {
        gap: 10px;
    }

    .thumb-item {
        width: 60px;
        height: 60px;
    }
}