/* ═══ CATALOG SWATCHES ═══════════════════════════════
 * Color swatches displayed under each product card.
 * Inspired by the InkSide Configurator look (premium 2026).
 * ═════════════════════════════════════════════════════ */

body.inkside-theme .ink-catalog-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 var(--ink-space-md) var(--ink-space-md);
    max-height: 30px;
    overflow: hidden;
    align-items: center;
}

body.inkside-theme .ink-catalog-swatch {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: var(--ink-radius-full);
    border: 1.5px solid var(--ink-border);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition:
        transform var(--ink-transition-fast),
        border-color var(--ink-transition-fast),
        box-shadow var(--ink-transition-fast);
}

body.inkside-theme .ink-catalog-swatch:hover {
    transform: scale(1.2);
    border-color: var(--ink-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    z-index: 2;
}

/* ── White / light swatches need visible border ── */
body.inkside-theme .ink-catalog-swatch--light {
    border-color: var(--ink-border-hover);
}

/* ── "+N more" indicator ── */
body.inkside-theme .ink-catalog-swatch--more {
    background: var(--ink-bg-subtle);
    border-color: var(--ink-border);
    font-size: 9px;
    font-weight: 700;
    color: var(--ink-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 24px;
    padding: 0 4px;
    border-radius: var(--ink-radius-full);
    cursor: default;
}

body.inkside-theme .ink-catalog-swatch--more:hover {
    transform: none;
    border-color: var(--ink-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ── Tooltip on hover (uses native title attribute, no custom JS needed) ── */
