/* Custom Variation Swatches */
.ptfc-swatches-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}
.ptfc-swatch-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    user-select: none;
    position: relative;
    overflow: hidden;
}
.ptfc-swatch-item.is-image {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #ddd;
    color: transparent !important;
}
.ptfc-swatch-item:hover {
    border-color: #999;
}
.ptfc-swatch-item.selected {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
    color: #000;
}
.ptfc-swatch-item.is-image.selected {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
    border-color: #000;
}
.ptfc-swatch-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}
.ptfc-swatch-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 10;
}
.ptfc-swatch-item:hover .ptfc-swatch-tooltip {
    display: block;
}
.ptfc-swatch-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #000;
}
form.variations_form select.ptfc-swatched {
    display: none !important;
}
