/* Light Distribution Patterns Styles */

.light-patterns-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.light-patterns-section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.light-patterns-container {
    background-color: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.light-pattern-thumbnails {
    display: flex;
    gap: 15px;
    padding: 20px;
    overflow-x: auto;
    border-bottom: 1px solid #f0f0f0;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.light-pattern-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.light-pattern-thumbnails::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.light-pattern-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.light-pattern-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.light-pattern-thumbnail {
    cursor: pointer;
    border: 3px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 8px;
    background-color: white;
    text-align: center;
    flex-shrink: 0;
    min-width: 100px;
    max-width: 120px;
}

.light-pattern-thumbnail:hover {
    border-color: #ed6c00;
    box-shadow: 0 2px 8px rgba(237, 108, 0, 0.15);
}

.light-pattern-thumbnail.active,
.light-pattern-thumbnail.active:hover {
    border-color: #ed6c00;
    background-color: #fffaf5;
}

.light-pattern-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 8px;
}

.light-pattern-thumbnail-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.light-pattern-main {
    padding: 25px;
}

.light-pattern-main-image {
    text-align: center;
}

.light-pattern-main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.light-pattern-info {
    text-align: right;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    padding: 0 20px;
}

.light-pattern-info-content {
    white-space: pre-wrap;
    margin: 0;
}

/* Product Color Images Styles */

.color-images-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.color-main-image {
    text-align: center;
    padding: 20px 0;
}

.color-main-image img {
    max-width: 100%;
    height: auto;
}

.color-selection-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
}

.color-selection-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.color-thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.color-thumbnail-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.color-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    width: 45px;
    height: 45px;
    position: relative;
    overflow: hidden;
}

.color-thumbnail:hover {
    transform: translateY(-2px);
}

.color-thumbnail.active {
    border-color: #ed6c00;
}

.color-thumbnail::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.color-thumbnail.active::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.color-thumbnail img {
    display: none;
}

.color-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    text-align: center;
    width: 60px;
}

.color-button {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.color-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,0.25) 100%);
    border-radius: 6px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.color-button:hover {
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.color-button:hover::before {
    background: linear-gradient(120deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,0.3) 100%);
}

@media screen and (max-width: 768px) {
    .color-selection-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }
    
    .color-selection-label {
        margin-bottom: 10px;
    }
    
    .color-thumbnails {
        gap: 10px;
    }
    
    .color-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .color-name {
        font-size: 11px;
        width: 50px;
    }
}