/* Unified variant selector — shared on index, category, product page. Circles with clear selected state. */
.product-variant-selector,
.variant-selector.js-product-variant-selector {
    margin: 0.5rem 0;
}
.product-selected-color-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.35rem;
}
.product-variant-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.product-variant-dot {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    flex-shrink: 0;
    background-clip: padding-box;
    display: inline-block;
}
.product-variant-dot:hover {
    transform: scale(1.1);
    border-color: rgba(0, 0, 0, 0.35);
}
.product-variant-dot.is-active {
    border-color: var(--primary-color, #0d9488);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-color, #0d9488);
    outline: none;
}
.product-variant-dot:focus-visible {
    outline: 2px solid var(--primary-color, #0d9488);
    outline-offset: 2px;
}
/* Ensure circles on mobile: slightly larger for touch */
@media (max-width: 767px) {
    .product-variant-dot {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* Hot variant: small fire icon on the dot */
.product-variant-dot-wrap {
    position: relative;
    display: inline-block;
}
.product-variant-dot-hot-icon {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    pointer-events: none;
}
.product-variant-dot-hot-icon i {
    font-size: 8px;
}
@media (max-width: 767px) {
    .product-variant-dot-hot-icon {
        top: -2px;
        right: -2px;
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    .product-variant-dot-hot-icon i {
        font-size: 9px;
    }
}

.product-variant-dot-more {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    background: #f3f4f6 !important;
    border-color: #e5e7eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    aspect-ratio: 1;
    border-radius: 50%;
}
