/* Variant Color Grouping Enhancements */

/* Color indicator circle on variant cards */
.color-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Color name label */
.color-name-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    text-align: center;
    padding: 8px 4px 4px;
    font-size: 0.75em;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 6px 6px;
}

/* Enhance variant card for color groups */
.child-variant-card.color-group-card {
    position: relative;
    transition: all 0.2s ease;
}

.child-variant-card.color-group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.child-variant-card.color-group-card.selected {
    border: 2px solid #212529;
    box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.2);
}

/* Size stock indicator */
.size-stock-indicator {
    color: #28a745;
    font-weight: 500;
}

/* Size button enhancements */
.size-btn {
    position: relative;
    min-width: 50px;
    margin: 4px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.size-btn:hover:not(:disabled) {
    border-color: var(--primary, #0088CC);
    background-color: var(--primary-rgba-10, rgba(0, 136, 204, 0.1));
}

.size-btn.selected {
    border-color: var(--primary, #0088CC);
    background-color: var(--primary, #0088CC);
    color: white;
}

.size-btn:disabled {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.size-btn:disabled::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #dc3545;
    font-size: 0.8em;
    font-weight: bold;
}

/* Info message styling */
.variant-info-message {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 8px;
    font-style: italic;
}

/* Error message styling */
.variant-error-message {
    font-size: 0.9em;
    color: #dc3545;
    margin-top: 8px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .color-name-label {
        font-size: 0.7em;
        padding: 6px 2px 2px;
    }
    
    .color-indicator {
        width: 14px;
        height: 14px;
        bottom: 3px;
        right: 3px;
    }
    
    .size-btn {
        min-width: 45px;
        padding: 6px 10px;
        font-size: 0.9em;
    }
}