/* Product Color Picker Frontend Styles */
.pcp-color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 16px 0px 8px 0px; 
}

.pcp-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pcp-color-option:hover {
    transform: scale(1.05);
}

.pcp-color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pcp-color-code {
    font-weight: bold;
    color: #555;
}

.pcp-main-image-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 480px;
}

.pcp-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    width: 100%;
    object-position: center;
}

.pcp-magnifier {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 10;
}

.pcp-magnifier:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 1);
}

.pcp-magnifier svg {
    width: 22px;
    height: 22px;
    color: #333;
}

/* Lightbox Styles */
.pcp-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pcp-lightbox-content {
    position: relative;
    width: 90%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.pcp-lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: 70vh;
}

.pcp-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.pcp-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

.pcp-lightbox-color-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.pcp-lightbox-color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    border: 3px solid transparent;
}

.pcp-lightbox-color-option:hover {
    transform: scale(1.1);
}

.pcp-lightbox-color-option.active {
    border: 3px solid white;
}

/* Mobil cihazlar için medya sorgusu */
@media only screen and (max-width: 768px) {
    .pcp-main-image-container {
        height: auto;
    }
    
    .pcp-lightbox-content {
        width: 90%;
        height: auto;
    }
	
	.pcp-color-selector {
    display: flex;
    gap: 5px;
    justify-content: space-around;
	}
	
	.pcp-color-code {
    font-weight: 700;
    font-size: 12px;
	}
	
	.pcp-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
	}
	
	.pcp-color-circle {
    width: 40px;
    height: 40px;
	}
}