.wc-color-palette-swatches {
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.swatches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.swatch-item {
    display: inline-block;
}

.wc-color-palette-swatch {
    display: none;
}

.swatch-label {
    display: inline-block;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.swatch-label.color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    position: relative;
}

.swatch-label.color::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.wc-color-palette-swatch:checked + .swatch-label {
    border-color: #333;
}

.wc-color-palette-swatch:checked + .swatch-label.color::after {
    border-color: #333;
}

.swatch-label:hover {
    border-color: #999;
}

.swatch-label.text {
    background-color: #f8f8f8;
}

.swatch-label.image {
    background-size: cover;
    background-position: center;
}

.color-swatch-preview {
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* سازگاری با المنتور */
.elementor-widget-woocommerce-product-add-to-cart .wc-color-palette-swatches {
    margin: 10px 0;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .swatches-container {
        gap: 8px;
    }
    
    .swatch-label {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .swatch-label.color {
        width: 35px;
        height: 35px;
    }
}