.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
}

.main-image-container {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.thumbnail-carousel {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
    position: relative;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.control-btn {
    background: rgba(70, 130, 180, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    background: rgba(30, 58, 138, 0.9);
    transform: scale(1.1);
}

.control-btn:disabled {
    background: rgba(128, 128, 128, 0.5);
    cursor: not-allowed;
    transform: none;
}

.thumbnail-track {
    display: flex;
    gap: 15px;
    padding: 0 10px;
}

.thumbnail-item {
    flex: 0 0 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail-item.active {
    border-color: #4682b4;
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Custom scrollbar for thumbnail track */
.thumbnail-carousel::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumbnail-carousel::-webkit-scrollbar-thumb {
    background: #4682b4;
    border-radius: 3px;
}

.thumbnail-carousel::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 20px;
    }

    .main-image-container {
        height: 250px;
    }

    .thumbnail-item {
        flex: 0 0 80px;
        height: 60px;
    }
}