/* Base Swatch Styling */
.tka-pv-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.tka-pv-swatch {
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    gap: 1rem;
}

.tka-pv-swatch:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tka-pv-swatch.selected {
    box-shadow: 0 0 0 2px #fff inset, 0 0 5px rgba(0, 0, 0, 0.2) !important;
    transform: scale(1.05);
    /* Slight enlargement on selection for premium feel */
}

/* Color Swatch */
.tka-pv-color .tka-pv-swatch-color {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

/* Image Swatch */
.tka-pv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Mixed Swatches (Color+Text, Image+Text) */
.tka-pv-color_text,
.tka-pv-image_text {
    width: auto !important;
    /* Override global fixed width */
    padding-right: 12px !important;
    justify-content: flex-start;
}

.tka-pv-color_text .tka-pv-swatch-color,
.tka-pv-image_text img {
    border-radius: 50%;
    margin-right: 8px;
    margin-left: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.tka-pv-color_text .tka-pv-swatch-value,
.tka-pv-image_text .tka-pv-swatch-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Button (Text) Swatch */
.tka-pv-button {
    padding: 0 12px;
}

.tka-pv-button .tka-pv-swatch-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Out of stock handling (Crossed out logic) */
.tka-pv-swatch.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

.tka-pv-swatch.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 1.5px;
    background-color: #e74c3c;
    transform: translateY(-50%) rotate(45deg);
    z-index: 2;
}

.tka-pv-swatch.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #ddd;
}