/* ============================================================
   Virtual Combinations Widget – style frontowe
   ============================================================ */

.vc-widget {
    margin: 16px 0 20px;
    font-family: inherit;
}

/* ---- Sekcje ---- */
.vc-section {
    margin-bottom: 14px;
}

.vc-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-selected-label {
    font-weight: 400;
    color: #555;
}

/* ---- Swatche kolorów ---- */
.vc-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vc-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    outline: none;
    background-color: #ccc;
    padding: 0;
    font-size: 0.65rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px #ccc;
}

.vc-color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #666;
}

.vc-color-swatch.active {
    border-color: #fff;
    box-shadow: 0 0 0 3px #333;
    transform: scale(1.08);
}

.vc-color-swatch.vc-has-texture {
    background-size: cover;
    background-position: center;
    background-color: transparent;
}

.vc-color-swatch.vc-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.vc-color-swatch.vc-disabled:hover {
    transform: none;
    box-shadow: 0 0 0 1px #ccc;
}

/* ---- Przyciski rozmiarów ---- */
.vc-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vc-size-btn {
    min-width: 44px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    outline: none;
}

.vc-size-btn:hover {
    border-color: #333;
    background: #f5f5f5;
}

.vc-size-btn.active {
    border-color: #333;
    background: #333;
    color: #fff;
    font-weight: 600;
}

.vc-size-btn.vc-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.vc-size-btn.vc-disabled:hover {
    border-color: #ccc;
    background: #fff;
    color: #333;
}

/* ---- Info (cena / dostępność) ---- */
.vc-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 8px;
    font-size: 0.9rem;
}

.vc-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}

.vc-availability {
    font-size: 0.82rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.vc-in-stock {
    background: #e9f5e9;
    color: #2e7d32;
}

.vc-out-stock {
    background: #fdecea;
    color: #c62828;
}

/* ---- Alert niedostępności ---- */
.vc-unavailable {
    margin-top: 10px;
    font-size: 0.875rem;
}

/* ---- Responsywność ---- */
@media (max-width: 480px) {
    .vc-color-swatch {
        width: 30px;
        height: 30px;
    }

    .vc-size-btn {
        min-width: 38px;
        height: 36px;
        font-size: 0.8rem;
    }
}

/* ============================================================
   Wersja kompaktowa – kafelek produktu w liście (kategoria,
   wyszukiwarka, nowości, bestsellery...)
   ============================================================ */

.vc-widget-compact {
    margin: 8px 0;
    text-align: left;
}

.vc-compact-section {
    margin-bottom: 6px;
}

.vc-swatches-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.vc-swatch-sm {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid transparent;
    cursor: pointer;
    background-color: #ccc;
    padding: 0;
    box-shadow: 0 0 0 1px #ccc;
    transition: box-shadow 0.15s, transform 0.15s;
}

.vc-swatch-sm:hover {
    transform: scale(1.12);
}

.vc-swatch-sm.active {
    box-shadow: 0 0 0 2px #333;
}

.vc-swatch-sm.vc-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.vc-size-buttons-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.vc-size-btn-sm {
    min-width: 28px;
    height: 24px;
    padding: 0 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 0.72rem;
    cursor: pointer;
}

.vc-size-btn-sm.active {
    border-color: #333;
    background: #333;
    color: #fff;
    font-weight: 600;
}

.vc-size-btn-sm.vc-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.vc-unavailable-compact {
    text-align: center;
    font-size: 0.72rem;
    color: #c62828;
    margin: 4px 0;
}
