.sb-swatches-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}
.sb-swatch {
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}
.sb-swatch-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.sb-shape-circle .sb-swatch-inner,
.sb-shape-square .sb-swatch-inner {
    width: var(--swatch-size);
    height: var(--swatch-size);
    border: var(--border-width) solid #ddd;
    overflow: hidden;
}
.sb-shape-circle .sb-swatch-inner {
    border-radius: 50% !important;
}
.sb-shape-square .sb-swatch-inner {
    border-radius: var(--border-radius) !important;
}
.sb-swatch.sb-selected .sb-swatch-inner {
    border-color: var(--border-color);
    box-shadow: 0 0 0 1px var(--border-color);
}
.sb-swatch-color {
    width: 100%;
    height: 100%;
    display: block;
}
.sb-swatch-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sb-swatch-text {
    background: #f5f5f5;
    padding: 5px 12px;
    font-size: 13px;
    white-space: nowrap;
}
.sb-swatch-label {
    display: block;
    font-size: 12px;
    margin-top: 6px;
    color: #333;
}
.sb-swatch {
    transition: transform 0.1s ease;
}
/* حالت ناموجود (out of stock) */
.sb-swatch.sb-out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}
.sb-swatch.sb-out-of-stock .sb-cross-red {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    color: #ff0000;
    background: rgba(255,255,255,0.7);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}
/* حالت غیرفعال (disabled) */
.sb-swatch.sb-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.sb-swatch.sb-disabled .sb-cross-black {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    background: rgba(255,255,255,0.7);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}
@media (max-width: 768px) {
    .sb-swatches-wrapper {
        gap: 8px;
    }
    .sb-swatch-inner {
        width: calc(var(--swatch-size) * 0.8);
        height: calc(var(--swatch-size) * 0.8);
    }
    .sb-swatch-text {
        font-size: 11px;
        padding: 3px 8px;
    }
}
.column-sb_preview {
    width: 60px;
    text-align: center;
}
.sb-shortcode-swatches {
    margin: 10px 0;
}
.sb-shortcode-attribute {
    margin-bottom: 10px;
}
.sb-attr-name {
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
}
.sb-swatches-list {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.sb-mini-swatch-item {
    display: inline-block;
    margin: 4px;
}
.sb-mini-color {
    width: 30px;
    height: 30px;
    display: inline-block;
}
.sb-mini-image {
    width: 30px;
    height: 30px;
    object-fit: cover;
}
.sb-mini-text {
    padding: 4px 10px;
    background: #f5f5f5;
    font-size: 12px;
    white-space: nowrap;
}
.sb-more-btn {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 8px;
    transition: 0.2s;
}
.sb-more-btn:hover {
    background: #ddd;
}
@media (max-width: 768px) {
    .sb-mini-color, .sb-mini-image {
        width: 24px;
        height: 24px;
    }
    .sb-mini-text {
        font-size: 10px;
        padding: 2px 6px;
    }
}