/* ProWatches Frontend Styles */

.prowatches-wrapper {
    margin: 20px 0;
    clear: both;
}

.prowatches-attribute {
    margin-bottom: 25px;
}

.prowatches-label {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.prowatches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prowatches-swatch {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prowatches-swatch-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    overflow: hidden;
    background: #fff;
    border: 2px solid #ddd;
}

/* Color Swatch */
.prowatches-swatch-color .swatch-color {
    display: block;
    width: 100%;
    height: 100%;
}

/* Size Swatch */
.prowatches-swatch-size .prowatches-swatch-inner {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 12px;
    color: #333;
}

.prowatches-swatch-size .swatch-size {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 600;
}

/* Image Swatch */
.prowatches-swatch-image .prowatches-swatch-inner {
    padding: 0;
    background: #f5f5f5;
}

.prowatches-swatch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text Swatch */
.prowatches-swatch-text .prowatches-swatch-inner {
    background: #f5f5f5;
    padding: 0 12px;
    font-size: 12px;
    color: #333;
}

.prowatches-swatch-text .swatch-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    white-space: nowrap;
}

/* Active State */
.prowatches-swatch.active .prowatches-swatch-inner {
    border-color: #333;
    background: #333;
    color: #fff;
}

.prowatches-swatch-color.active .prowatches-swatch-inner {
    border-color: #333;
}

.prowatches-swatch-color.active .swatch-color {
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #333;
}

/* Hover Effects */
.prowatches-swatch:hover .prowatches-swatch-inner {
    transform: scale(1.05);
}

/* Tooltips */
.prowatches-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    margin-bottom: 8px;
    z-index: 1000;
}

.prowatches-swatch:hover .prowatches-tooltip {
    opacity: 1;
}

.prowatches-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Hidden Select */
.prowatches-hidden-select {
    display: none !important;
}