/* ======================================================
 * FC SWATCHES – BASE
 * ====================================================== */

.fc-swatches {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* baza wspólna */
.fc-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    outline: none;
    position: relative;
    flex-shrink: 0;
}

/* ======================================================
 * SWATCH KOLOR (HEX / pa_kolor)
 * ====================================================== */

.fc-swatch--color {
    width: clamp(14px, 1vw, 18px);
    height: clamp(14px, 1vw, 18px);
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.18);
    background-clip: padding-box;
    box-sizing: border-box;
}

/* hover */
.fc-swatch--color:hover {
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

/* active (ZAMIANA ::after → box-shadow) */
.fc-swatch--color.is-active {
    box-shadow: 0 0 0 2px rgba(0,0,0,.55);
}

/* USUNIĘCIE STAREGO RINGA */
.fc-swatch--color.is-active::after {
    display: none;
    content: none;
}

/* focus (accessibility) */
.fc-swatch--color:focus,
.fc-swatch--color:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,.35);
}

/* ======================================================
 * SWATCH TEKSTOWY (fallback – bez HEX)
 * ====================================================== */

.fc-swatch--text {
    height: auto;
    min-height: 14px;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 9.5px;
    line-height: 1.1;
    background: var(--theme-palette-color-2);
    color: #222;
    white-space: nowrap;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid var(--theme-palette-color-1);
    box-sizing: border-box;
}

/* hover */
.fc-swatch--text:hover {
    background: #e9e9e9;
}

/* active */
.fc-swatch--text.is-active {
    background: var(--theme-palette-color-6);
    color: #fff;
    border-color: var(--theme-palette-color-6);
}

/* focus */
.fc-swatch--text:focus,
.fc-swatch--text:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,.35);
}

/* ======================================================
 * CARD CONTEXT
 * ====================================================== */

.fc-swatches--card {
    margin-top: 0;
    padding: 4px;
    flex-wrap: nowrap;      /* jedna linia */
    overflow: hidden;
    max-width: 100%;
}

/* +X */
.fc-swatches--card .fc-swatch--more {
    height: 14px;
    border-radius: 7px;
    padding: 0 6px;
    font-size: 10px;
    line-height: 14px;
    background: var(--theme-palette-color-2);
    color: var(--theme-palette-color-5);
    border: 1px solid var(--theme-palette-color-1);
    cursor: default;
    white-space: nowrap;
}

/* ======================================================
 * SINGLE CONTEXT
 * ====================================================== */

.fc-swatches--single {
    margin: 12px 0;
    flex-wrap: wrap;
}

.fc-swatches--single .fc-swatch--color {
    width: 22px;
    height: 22px;
}

.fc-swatches--single .fc-swatch--text {
    font-size: 11px;
    padding: 4px 8px;
    max-width: none;
}

//* ======================================================
 * FC CARD IMAGE OVERLAY – 1:1 BLOCKSY FIX
 * ====================================================== */

.fc-card-image {
    position: relative;
}

.fc-card-image-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 2;
}

.fc-card-image-overlay.is-visible {
    opacity: 1;
}
