.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;
    }
}
.simple-color-palette {
    font-family: "IRANYekanX", Sans-serif;
    display: flex;
    padding: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 10px!important;
    align-items: center;
    font-size: 15px;
}
.simple-color-palette h4{
    font-size:15px;
    font-weight: 700!important;
}
 .cart .button,.woocommerce div.product form.cart div.quantity{
     height: fit-content!important;
 }
 .cart{
    display: inline-block!important;
       justify-content: space-between;
    align-items: center;
 }
 @media screen and (max-width:768px){
     .cart{
         display: flex;
         flex-direction: column;
         align-items: flex-start;
    
     }
     .quantity,.single_add_to_cart_button,.quantity .qty{
         width: 100%!important;
         margin-right: 0!important;
     }
     .input-text.qty{
         margin-bottom: 10px;
     }
 }
.in-stock{
display:none}
